Add generic HAVE_RM_CTX implementation
[platform/upstream/glibc.git] / ChangeLog
1 2014-06-23  Will Newton  <will.newton@linaro.org>
2             Wilco  <wdijkstr@arm.com>
3
4         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
5         implementation.  Include get-rounding-mode.h.
6         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
7         [!libc_feholdsetround_noex_ctx]: Define
8         libc_feholdsetround_noex_ctx.
9         [!libc_feholdsetround_noexf_ctx]: Define
10         libc_feholdsetround_noexf_ctx.
11         [!libc_feholdsetround_noexl_ctx]: Define
12         libc_feholdsetround_noexl_ctx.
13         (libc_feholdsetround_ctx): New function.
14         (libc_feresetround_ctx): New function.
15         (libc_feholdsetround_noex_ctx): New function.
16         (libc_feresetround_noex_ctx): New function.
17
18 2014-06-23  Roland McGrath  <roland@hack.frob.com>
19
20         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
21         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
22         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
23         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
24         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
25         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
26
27         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
28         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
29         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
31         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
32         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
33         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
34         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
35         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
36         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
37         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
38         Moved ...
39         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
40         ... here.
41         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
42         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
43         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
44         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
45         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
46         Moved ...
47         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
48         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
49         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
50         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
51         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
52         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
53         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
54         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
55         Moved ...
56         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
57         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
58         Moved ...
59         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
60         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
61         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
62         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
63         Moved ...
64         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
65         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
66         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
67         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
68         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
69         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
70         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
71         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
72         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
73         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
74         Moved ...
75         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
76         ... here.
77         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
78         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
79         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
80         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
81         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
82         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
83         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
84         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
85         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
86         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
87         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
88         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
89         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
90         Moved ...
91         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
92         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
93         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
94         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
95         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
96         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
97         Moved ...
98         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
99         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
100         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
101         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
102         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
103
104         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
105         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
106         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
107         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
108         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
109         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
110         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
111         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
112         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
113         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
114         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
115         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
116         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
117         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
118         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
119         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
120         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
121         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
122         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
123         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
124         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
125         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
126         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
127         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
128         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
129         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
130         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
131         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
132
133 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
134
135         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
136         (FALLOC_FL_COLLAPSE_RANGE): New macro.
137         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
138         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
139         (IPV6_PMTUDISC_INTERFACE): Likewise.
140         (IPV6_PMTUDISC_OMIT): Likewise.
141
142 2014-06-23  Andreas Schwab  <schwab@suse.de>
143
144         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
145         Remove unused errout label.
146
147 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
148
149         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
150         macro: hardware supports Vector Crypto instructions.
151
152 2014-06-23  Will Newton  <will.newton@linaro.org>
153
154         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
155         rather than __builtin_expect.
156
157         * elf/dl-lookup.c (undefined_msg): Remove variable.
158         (_dl_lookup_symbol_x): Replace undefined_msg with string
159         literal.
160
161         * elf/dl-lookup.c (do_lookup_unique): New function.
162         (do_lookup_x): Move STB_GNU_UNIQUE handling code
163         to a separate function.
164
165 2014-06-23  Andreas Schwab  <schwab@suse.de>
166
167         [BZ #17079]
168         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
169         before reading the next line.
170
171 2014-06-23  Will Newton  <will.newton@linaro.org>
172
173         * test-skeleton.c (signal_handler): Use printf and %m
174         rather than perror.  Use printf rather than fprintf to
175         stderr.  Use puts rather than fputs to stderr.
176         (main): Likewise.
177
178 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
179
180         * nscd/nscd.c (thread_info_t): Remove typedef.
181         (thread_info): Remove variable.
182
183 2014-06-21  Allan McRae  <allan@archlinux.org>
184
185         * NEWS: Mention CVE-2014-4043.
186
187 2014-06-20  Roland McGrath  <roland@hack.frob.com>
188
189         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
190         * nptl/smp.h: ... here.
191
192         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
193
194         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
195         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
196         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
197         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
198
199         * nptl/allocatestack.c: Include <stack-aliasing.h>.
200         * nptl/stack-aliasing.h: New file.
201         * sysdeps/i386/i686/stack-aliasing.h: New file.
202         * sysdeps/i386/i686/nptl/Makefile: File removed.
203         * sysdeps/x86_64/stack-aliasing.h: New file.
204         * sysdeps/x86_64/nptl/Makefile
205         (CFLAGS-pthread_create.c): Variable removed.
206
207         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
208         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
209         old file.
210         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
211         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
212         old file.
213
214 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
215
216         * sysdeps/unix/sysv/linux/arm/kernel-features.h
217         (__ASSUME_SIGFRAME_V2): Remove macro.
218         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
219         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
220         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
221         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
222         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
223         Declare as function.  Remove conditional macro definitions.
224         (__default_rt_sa_restorer): Likewise.
225         (__default_sa_restorer_v1): Remove declaration.
226         (__default_sa_restorer_v2): Likewise.
227         (__default_rt_sa_restorer_v1): Likewise.
228         (__default_rt_sa_restorer_v2): Likewise.
229         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
230         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
231         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
232
233 2014-06-20  Roland McGrath  <roland@hack.frob.com>
234
235         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
236         (libpthread-routines): Add sysdep.
237         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
238         * sysdeps/unix/sysv/linux/sparc/Versions
239         (libpthread: GLIBC_2.3.3): New version set.
240         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
241         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
242         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
243         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
244         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
245         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
246         Moved ...
247         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
248         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
249         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
250         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
251         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
252         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
253         * sysdeps/sparc/nptl/sem_init.c: ... here.
254         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
255         * sysdeps/sparc/nptl/sem_post.c: ... here.
256         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
257         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
258         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
259         * sysdeps/sparc/nptl/sem_wait.c: ... here.
260         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
261         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
262         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
263         (libpthread-routines): Add cpu_relax.
264         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
265         File removed.
266         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
267         (librt: GLIBC_2.3.3): New version set.
268         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
269         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
270         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
271         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
272         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
273         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
274         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
275         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
276         Moved ...
277         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
278         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
279         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
280         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
281         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
282         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
283         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
284         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
285         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
286         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
287         Moved ...
288         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
289         Update #include.
290         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
291         Moved ...
292         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
293         Update #include.
294         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
295         Moved ...
296         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
297         Update #include.
298         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
299         Moved ...
300         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
301         Update #include.
302         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
303         Moved ...
304         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
305         Update #include.
306         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
307         Moved ...
308         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
309         Update #include.
310         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
311         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
312         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
313         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
314         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
315         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
316         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
317         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
318         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
319         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
320         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
321         Moved ...
322         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
323         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
324         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
325         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
326         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
327
328 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
329
330         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
331         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
332         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
333         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
334         * nscd/nscd.c: Likewise.
335         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
336         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
337         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
338         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
339
340         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
341         <kernel-features.h>.
342         (init_mq_netlink): Remove conditional have_sock_cloexec
343         definitions.  Remove code conditional on have_sock_cloexec < 0.
344         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
345         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
346         * sysdeps/unix/sysv/linux/opensock.c: Do not include
347         <kernel-features.h>.
348         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
349         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
350
351 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
352
353         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
354         Add tests for memset_chk and memset.
355
356         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
357         with AVX2_Usable.
358
359 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
360
361         [BZ #16046]
362         * elf/tst-dl-iter-static.c: New file.
363         * elf/Makefile (tests-static): Add tst-dl-iter-static.
364
365         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
366         error.
367
368 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
369
370         * sysdeps/unix/sysv/linux/kernel-features.h
371         (__ASSUME_F_GETOWN_EX): Remove macro.
372         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
373         <kernel-features.h>.
374         (miss_F_GETOWN_EX): Remove variable or macro.
375         (do_fcntl): Do not check miss_F_GETOWN_EX.
376         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
377
378         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
379         Remove macro.
380         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
381         [!__ASSUME_AT_RANDOM]: Remove conditional code.
382         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
383
384         * sysdeps/unix/sysv/linux/kernel-features.h
385         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
386         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
387         [ADJ_OFFSET_SS_READ]: Make code unconditional.
388         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
389
390 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
391
392         [BZ #17075]
393         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
394         Fix calculation of the symbol's value.
395         * sysdeps/arm/tst-armtlsdescloc.c: New file.
396         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
397         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
398         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
399         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
400         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
401         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
402         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
403         (modules-names): Add `tst-armtlsdescmod',
404         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
405         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
406         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
407         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
408         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
409         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
410         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
411         ($(objpfx)tst-armtlsdescloc): New dependency.
412         ($(objpfx)tst-armtlsdescextnow): Likewise.
413         ($(objpfx)tst-armtlsdescextlazy): Likewise.
414         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
415         TLS scheme support.
416         * sysdeps/arm/configure: Regenerate.
417
418 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
419
420         * include/fcntl.h (__atfct_seterrno): Remove prototype.
421         (__atfct_seterrno_2): Likewise.
422         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
423         <kernel-features.h>.
424         (__ASSUME_ATFCTS): Do not undefine and redefine.
425         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
426         (__have_atfcts): Remove conditional definition.
427         (__fxstatat([__NR_fstatat64]: Make code unconditional.
428         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
429         unreachable if [__ASSUME_ATFCTS].
430         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
431         not undefine and redefine.
432         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
433         <kernel-features.h>.
434         (faccessat) [__NR_faccessat]: Make code unconditional.
435         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
436         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
437         <kernel-features.h>.
438         (fchmodat) [__NR_fchmodat]: Make code unconditional.
439         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
440         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
441         <kernel-features.h>.
442         (fchownat) [__NR_fchownat]: Make code unconditional.
443         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
444         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
445         <kernel-features.h>.
446         (futimesat) [__NR_futimesat]: Make code unconditional.
447         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
448         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
449         <kernel-features.h>.
450         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
451         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
452         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
453         <kernel-features.h>.
454         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
455         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
456         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
457         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
458         <kernel-features.h>.
459         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
460         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
461         * sysdeps/unix/sysv/linux/linkat.c: Do not include
462         <kernel-features.h>.
463         (linkat) [__NR_linkat]: Make code unconditional.
464         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
465         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
466         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
467         <kernel-features.h>.
468         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
469         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
470         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
471         <kernel-features.h>.
472         (mkdirat) [__NR_mkdirat]: Make code unconditional.
473         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
474         * sysdeps/unix/sysv/linux/openat.c: Do not include
475         <kernel-features.h>.
476         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
477         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
478         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
479         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
480         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
481         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
482         <kernel-features.h>.
483         (readlinkat) [__NR_readlinkat]: Make code unconditional.
484         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
485         result of INLINE_SYSCALL directly, not via int variable.
486         * sysdeps/unix/sysv/linux/renameat.c: Do not include
487         <kernel-features.h>.
488         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
489         (renameat) [__NR_renameat]: Make code unconditional.
490         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
491         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
492         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
493         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
494         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
495         (__ASSUME_ATFCTS): Do not undefine and redefine.
496         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
497         <kernel-features.h>.
498         (symlinkat) [__NR_symlinkat]: Make code unconditional.
499         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
500         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
501         <kernel-features.h>.
502         (unlinkat) [__NR_unlinkat]: Make code unconditional.
503         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
504         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
505         (__ASSUME_ATFCTS): Do not undefine and redefine.
506         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
507         <kernel-features.h>.
508         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
509         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
510         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
511         <kernel-features.h>.
512         (__xmknodat) [__NR_mknodat]: Make code unconditional.
513         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
514
515 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
516
517         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
518
519 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
520
521         [BZ #17069]
522         * posix/regcomp.c (parse_reg_exp): Deallocate partially
523         constructed tree before returning error.
524         * posix/bug-regexp36.c: Expand test case.
525
526 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
527
528         [BZ #6803]
529         * math/libm-test.inc (scalbln_test_date):
530         Add errno expectations.
531         * math/w_scalblnf.c: New File.
532         Add wrapper which checks for setting errno to ERANGE.
533         Add weak_alias for corresponding scalbln function.
534         * math/w_scalbln.c: Likewise.
535         * math/w_scalblnl.c: Likewise.
536         * math/Makefile (libm-calls): Add w_scalbln.
537         * sysdeps/ieee754/flt-32/s_scalblnf.c:
538         Remove weak_alias for corresponding scalbln function.
539         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
540         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
541         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
542         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
543         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
544         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
545         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
546         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
547         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
548         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
549         Remove long_double_symbol for scalblnl function in libm, libc.
550         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
551         Add wrapper which checks for setting errno to ERANGE.
552         Add long_double_symbol for scalblnl function in libm, libc.
553         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
554         Remove long_double_symbol for scalblnl in libm.
555         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
556         Add wrapper which checks for setting errno to ERANGE.
557         Add long_double_symbol for scalblnl function in libm.
558         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
559         Do not use wrapper because of own implementation.
560
561 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
562
563         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
564         3 bytes for __pad1 for x32.
565         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
566
567 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
568             H.J. Lu  <hongjiu.lu@intel.com>
569
570         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
571         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
572         * sysdeps/x86_64/multiarch/memset.S: Likewise.
573         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
574         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
575
576 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
577
578         [BZ #17069]
579         * posix/regcomp.c (parse_expression): Deallocate partially
580         constructed tree before returning error.
581         * posix/Makefile.c (tests): Add bug-regex36.
582         (generated): Add bug-regex36.mtrace.
583         (tests-special): Add $(objpfx)bug-regex36-mem.out
584         (bug-regex36-ENV): New variable.
585         ($(objpfx)bug-regex36-mem.out): New rule.
586         * posix/bug-regex36.c: New file.
587
588 2014-06-19  Will Newton  <will.newton@linaro.org>
589
590         * malloc/malloc.c (systrim): If extra is zero then return
591         early.
592
593 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
594
595         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
596
597 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
598
599         * sysdeps/aarch64/strchr.S: New file.
600
601 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
602
603         [BZ #17022]
604         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
605         from arguments -2 or below.
606         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
607         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
608
609 2014-06-18  Andreas Schwab  <schwab@suse.de>
610
611         [BZ #17062]
612         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
613         of a bracket expr not to run off the end of the string.
614         * posix/Makefile (tests): Add tst-fnmatch3.
615         * posix/tst-fnmatch3.c: New file.
616
617 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
618
619         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
620         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
621         [$(cross-compiling) = no]: Likewise.
622         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
623         [$(cross-compiling) = no]: Likewise.
624
625 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
626
627         [BZ #17031]
628         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
629         double, adjusted for any remainder from the high double.
630         * math/libm-test.inc (nearbyint): Add tests.
631         (rint): Likewise.
632
633 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
634
635         * nptl/sysdeps/powerpc/Makefile: Moved ...
636         * sysdeps/powerpc/nptl/Makefile: ... here.
637         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
638         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
639         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
640         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
641         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
642         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
643         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
644         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
645         * nptl/sysdeps/powerpc/tls.h: Moved ...
646         * sysdeps/powerpc/nptl/tls.h: ... here.
647
648 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
649
650         [BZ #16681]
651         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
652         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
653         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
654         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
655         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
656         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
657         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
658         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
659         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
660
661 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
662
663         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
664
665 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
666
667         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
668         defined operator.
669
670         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
671         $TIMEOUTFACTOR.
672
673 2014-06-16  Florian Weimer  <fweimer@redhat.com>
674
675         [BZ #17058]
676         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
677         non-executed part of the test.
678
679 2014-06-16  Andreas Schwab  <schwab@suse.de>
680
681         * string/bits/string2.h (strdup, strndup): Update feature guard.
682
683 2014-06-14  David S. Miller  <davem@davemloft.net>
684
685         * sysdeps/sparc/fpu/libm-test-ulps: Update.
686
687 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
688
689         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
690         that was previously under [RESET_PID].
691         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
692
693         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
694         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
695         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
696         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
697         (__libc_vfork): New strong alias.
698         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
699
700 2014-06-14 Andi Kleen  <ak@linux.intel.com>
701
702         * sysdeps/generic/elide.h: New file.
703
704 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
705
706         * Makefile (installed-headers): Adjust path of pthread.h header.
707
708 2014-06-13  Roland McGrath  <roland@hack.frob.com>
709
710         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
711         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
712         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
713         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
714
715         * nptl/sysdeps/s390/Makefile: Moved ...
716         * sysdeps/s390/nptl/Makefile: ... here.
717         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
718         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
719         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
720         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
721         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
722         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
723         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
724         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
725         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
726         * sysdeps/s390/nptl/pthreaddef.h: ... here.
727         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
728         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
729         * nptl/sysdeps/s390/tls.h: Moved ...
730         * sysdeps/s390/nptl/tls.h: ... here.
731
732         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
733         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
734
735 2014-06-13  David S. Miller  <davem@davemloft.net>
736
737         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
738         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
739         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
740         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
741         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
742         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
743         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
744         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
745         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
746         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
747         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
748         Remove RESET_PID cpp guards.
749         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
750         Remove RESET_PID cpp guards.
751         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
752
753 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
754
755         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
756         __sp to uintptr_t.
757
758 2014-06-13  Andi Kleen  <ak@linux.intel.com>
759
760         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
761         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
762         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
763         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
764         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
765         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
766         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
767         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
768         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
769         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
770         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
771         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
772         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
773         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
774         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
775         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
776         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
777         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
778         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
779         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
780
781         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
782         (pthread_rwlock_rdlock): Add elision.
783         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
784         (pthread_rwlock_wrlock): Add elision.
785         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
786         (pthread_rwlock_trywrlock): Add elision.
787         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
788         (pthread_rwlock_tryrdlock): Add elision.
789         * nptl/pthread_rwlock_unlock.c: Include elide.h.
790         (pthread_rwlock_tryrdlock): Add elision unlock.
791         * nptl/sysdeps/pthread/pthread.h:
792         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
793         (PTHREAD_RWLOCK_INITIALIZER,
794         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
795         Handle new elision field.
796         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
797         * sysdeps/arm/nptl/bits/pthreadtypes.h
798         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
799         * sysdeps/sh/nptl/bits/pthreadtypes.h
800         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
801         * sysdeps/tile/nptl/bits/pthreadtypes.h
802         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
803         * sysdeps/a/nptl/bits/pthreadtypes.h
804         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
805         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
806         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
807         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
808         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
809         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
810         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
811         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
812         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
813         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
814         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
815         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
816         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
817         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
818         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
819         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
820         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
821         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
822         (elision_init): Set try_xbegin to zero when no RTM.
823         * sysdeps/x86/nptl/bits/pthreadtypes.h
824         (pthread_rwlock_t): Change __pad1 to __rwelision.
825         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
826
827 2014-06-13  Andi Kleen  <ak@linux.intel.com>
828
829         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
830         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
831         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
832         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
833
834 2014-06-13  Meador Inge  <meadori@codesourcery.com>
835
836         [BZ #16996]
837         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
838         that the cached result has been set before returning it.
839
840 2014-06-12  Roland McGrath  <roland@hack.frob.com>
841
842         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
843         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
844         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
845         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
846         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
847         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
848
849         * nptl/sysdeps/sparc/Makefile: Moved ...
850         * sysdeps/sparc/nptl/Makefile: ... here.
851         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
852         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
853         * nptl/sysdeps/sparc/tls.h: Moved ...
854         * sysdeps/sparc/nptl/tls.h: ... here.
855         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
856         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
857         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
858         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
859         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
860         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
861         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
862         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
863         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
864         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
865         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
866         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
867         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
868         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
869         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
870         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
871         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
872         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
873         Update #include.
874         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
875         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
876         Update #include.
877         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
878         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
879         Update #include.
880         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
881         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
882         Update #include.
883
884         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
885
886         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
887         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
888
889         * sysdeps/pthread/posix-timer.h: Include <list.h>.
890         (struct list_links): Type removed.
891         (struct thread_node, struct timer_node): Replace struct list_links
892         with struct list_head.
893         (list_unlink_ip): Likewise.
894         * sysdeps/pthread/timer_routines.c
895         (timer_free_list, thread_free_list, thread_active_list): Likewise.
896         (list_append, list_insbefore): Likewise.
897         (list_init): Function removed.
898         (thread_init, init_module): Use INIT_LIST_HEAD instead.
899         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
900         * sysdeps/pthread/Makefile: ... here, new file.
901
902         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
903         * sysdeps/nptl/Implies: ... here.
904         * sysdeps/unix/sysv/linux/Implies: Add nptl.
905         * nptl/sysdeps/pthread/list.h: Moved ...
906         * include/list.h: ... here.
907         * nptl/sysdeps/pthread/createthread.c: Moved ...
908         * nptl/createthread.c: ... here.
909         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
910         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
911         * nptl/pt-longjmp.c: ... here.
912         * nptl/sysdeps/pthread/Makefile: Moved ...
913         * sysdeps/nptl/Makefile: ... here.
914         * nptl/sysdeps/pthread/Subdirs: Moved ...
915         * sysdeps/nptl/Subdirs: ... here.
916         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
917         * sysdeps/nptl/aio_misc.h: ... here.
918         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
919         * sysdeps/nptl/bits/libc-lock.h: ... here.
920         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
921         * sysdeps/nptl/bits/libc-lockP.h: ... here.
922         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
923         * sysdeps/nptl/bits/stdio-lock.h: ... here.
924         * nptl/sysdeps/pthread/configure: Moved ...
925         * sysdeps/nptl/configure: ... here.
926         * nptl/sysdeps/pthread/configure.ac: Moved ...
927         * sysdeps/nptl/configure.ac: ... here.
928         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
929         * sysdeps/nptl/gai_misc.h: ... here.
930         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
931         * sysdeps/nptl/librt-cancellation.c: ... here.
932         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
933         * sysdeps/nptl/malloc-machine.h: ... here.
934         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
935         * sysdeps/nptl/pthread-functions.h: ... here.
936         * nptl/sysdeps/pthread/pthread.h: Moved ...
937         * sysdeps/nptl/pthread.h: ... here.
938         * nptl/sysdeps/pthread/setxid.h: Moved ...
939         * sysdeps/nptl/setxid.h: ... here.
940         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
941         * sysdeps/nptl/sigfillset.c: ... here.
942         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
943         * sysdeps/nptl/tcb-offsets.h: ... here.
944         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
945         * sysdeps/nptl/tst-mqueue8x.c: ... here.
946         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
947         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
948         * nptl/sysdeps/pthread/allocalim.h: Moved ...
949         * sysdeps/pthread/allocalim.h: ... here.
950         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
951         * sysdeps/pthread/bits/sigthread.h: ... here.
952         * nptl/sysdeps/pthread/flockfile.c: Moved ...
953         * sysdeps/pthread/flockfile.c: ... here.
954         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
955         * sysdeps/pthread/ftrylockfile.c: ... here.
956         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
957         * sysdeps/pthread/funlockfile.c: ... here.
958         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
959         * sysdeps/pthread/posix-timer.h: ... here.
960         * nptl/sysdeps/pthread/timer_create.c: Moved ...
961         * sysdeps/pthread/timer_create.c: ... here.
962         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
963         * sysdeps/pthread/timer_delete.c: ... here.
964         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
965         * sysdeps/pthread/timer_getoverr.c: ... here.
966         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
967         * sysdeps/pthread/timer_gettime.c: ... here.
968         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
969         * sysdeps/pthread/timer_routines.c: ... here.
970         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
971         * sysdeps/pthread/timer_settime.c: ... here.
972         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
973         * sysdeps/pthread/tst-timer.c: ... here.
974         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
975         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
976
977         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
978         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
979
980         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
981         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
982         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
983         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
984         Update #include target.
985         * nptl/sysdeps/i386/i686/Makefile: Moved ...
986         * sysdeps/i386/i686/nptl/Makefile: ... here.
987         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
988         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
989         Update #include target.
990         * nptl/sysdeps/i386/i686/tls.h: Moved ...
991         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
992         * nptl/sysdeps/i386/Makefile: Moved ...
993         * sysdeps/i386/nptl/Makefile: ... here.
994         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
995         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
996         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
997         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
998         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
999         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1000         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1001         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1002         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1003         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1004         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1005         * nptl/sysdeps/i386/tls.h: Moved ...
1006         * sysdeps/i386/nptl/tls.h: ... here.
1007
1008         * sysdeps/sh/Makefile [$(subdir) = csu]
1009         (gen-as-const-headers): Add tcb-offsets.sym.
1010         * nptl/sysdeps/sh/Makefile: File removed.
1011         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1012         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1013         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
1014         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
1015         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
1016         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
1017         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
1018         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
1019         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
1020         * sysdeps/sh/nptl/pthreaddef.h: ... here.
1021         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
1022         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
1023         * nptl/sysdeps/sh/tls.h: Moved ...
1024         * sysdeps/sh/nptl/tls.h: ... here.
1025         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
1026         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
1027         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
1028         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
1029         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
1030         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
1031         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
1032         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
1033         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
1034         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
1035         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
1036         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
1037         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
1038         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
1039         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
1040         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
1041         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
1042         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
1043         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
1044         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
1045         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
1046         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
1047         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
1048         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
1049         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
1050         Moved ...
1051         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
1052         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
1053         Moved ...
1054         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
1055         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
1056         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
1057         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
1058         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
1059         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
1060         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
1061         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
1062         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
1063         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
1064         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
1065         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
1066         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
1067         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
1068         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
1069         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
1070         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
1071         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
1072         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
1073
1074 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
1075
1076         * posix/spawn_faction_addopen.c: Include string.h.
1077
1078 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1079
1080         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
1081         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
1082         * nptl/sysdeps/x86_64/Makefile: Moved ...
1083         * sysdeps/x86_64/nptl/Makefile: ... here.
1084         * nptl/sysdeps/x86_64/configure: Moved ...
1085         * sysdeps/x86_64/nptl/configure: ... here.
1086         * nptl/sysdeps/x86_64/configure.ac: Moved ...
1087         * sysdeps/x86_64/nptl/configure.ac: ... here.
1088         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
1089         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
1090         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
1091         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
1092         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
1093         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
1094         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
1095         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
1096         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
1097         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
1098         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
1099         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
1100         * nptl/sysdeps/x86_64/tls.h: Moved ...
1101         * sysdeps/x86_64/nptl/tls.h: ... here.
1102         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
1103         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
1104         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
1105         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
1106
1107         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
1108
1109 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1110
1111         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1112
1113 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
1114
1115         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
1116         type.
1117         [POSIX] (off_t): Likewise.
1118         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
1119         [POSIX] (S_ISBLK): Require macro.
1120         [POSIX] (S_ISCHR): Likewise.
1121         [POSIX] (S_ISDIR): Likewise.
1122         [POSIX] (S_ISFIFO): Likewise.
1123         [POSIX] (S_ISREG): Likewise.
1124         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
1125         optional-macro.
1126         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
1127         type.
1128         [POSIX] (time_t): Likewise.
1129         [POSIX] (timer_t): Likewise.
1130
1131 2014-06-11  Florian Weimer  <fweimer@redhat.com>
1132
1133         [BZ #17048]
1134         * posix/spawn_int.h (struct __spawn_action): Make the path string
1135         non-const to support deallocation.
1136         * posix/spawn_faction_addopen.c
1137         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
1138         * posix/spawn_faction_destroy.c
1139         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
1140         path in all spawn_do_open actions.
1141         * posix/tst-spawn.c (do_test): Exercise the copy operation in
1142         posix_spawn_file_actions_addopen.
1143
1144 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
1145
1146         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
1147         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
1148         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
1149         conditional code always true.
1150         (__libc_vfork): New alias.
1151
1152 2014-06-11  Roland McGrath  <roland@hack.frob.com>
1153
1154         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1155         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
1156
1157         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
1158
1159         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1160         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
1161
1162         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1163         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
1164
1165         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1166         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
1167
1168 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
1169
1170         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
1171         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
1172         multiarch strcmp for PPC64.
1173         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
1174         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
1175         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
1176         multiarch optimizations.
1177         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
1178         (__libc_ifunc_impl_list): Likewise.
1179
1180 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1181
1182         * benchtests/scripts/validate_benchout.py: New script.
1183         * benchtests/Makefile (bench-func): Call it.
1184         * benchtests/scripts/benchout.schema.json: New file.
1185
1186 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
1187
1188         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
1189         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
1190         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
1191         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
1192         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
1193         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
1194         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
1195         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
1196         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
1197         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
1198         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
1199         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
1200         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
1201         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
1202         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
1203         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
1204         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
1205         Moved ...
1206         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
1207         ... here.
1208         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
1209         Moved ...
1210         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
1211         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
1212         Moved ...
1213         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
1214         ... here.
1215         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
1216         Moved ...
1217         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
1218         ... here.
1219         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
1220         Moved ...
1221         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
1222         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
1223         Moved ...
1224         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
1225         ... here.
1226         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
1227         Moved ...
1228         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
1229         ... here.
1230         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
1231         Moved ...
1232         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
1233         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
1234         Moved ...
1235         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
1236         ... here.
1237         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
1238         Moved ...
1239         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
1240         ... here.
1241         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
1242         Moved ...
1243         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
1244         ... here.
1245         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
1246         Moved ...
1247         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
1248         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
1249         Moved ...
1250         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
1251         ... here.
1252         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
1253         Moved ...
1254         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
1255         ... here.
1256         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
1257         Moved ...
1258         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
1259         ... here.
1260         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
1261         Moved ...
1262         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
1263         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
1264         Moved ...
1265         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
1266         ... here.
1267         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
1268         Moved ...
1269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
1270         ... here.
1271         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
1272         Moved ...
1273         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
1274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
1275         Moved ...
1276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
1277         ... here.
1278         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
1279         Moved ...
1280         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
1281         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
1282         Moved ...
1283         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
1284         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
1285         Moved ...
1286         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
1287         ... here.
1288         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
1289         Moved ...
1290         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
1291         ... here.
1292         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
1293         Moved ...
1294         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
1295         ... here.
1296         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
1297         Moved ...
1298         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
1299         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
1300         Moved ...
1301         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
1302         ... here.
1303         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
1304         Moved ...
1305         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
1306         ... here.
1307         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
1308         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
1309         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
1310         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
1311         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
1312         Moved ...
1313         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
1314         ... here.
1315         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
1316         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
1317         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
1318         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
1319         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
1320         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
1321         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
1322         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
1323         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
1324         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
1325         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
1326         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
1327         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
1328         Moved ...
1329         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
1330         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
1331         Moved ...
1332         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
1333         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
1334         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
1335         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
1336         Moved ...
1337         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
1338         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
1339         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
1340         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
1341         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
1342         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
1343         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
1344
1345 2014-06-10  Wilco  <wdijkstr@arm.com>
1346
1347         * math/test-fenv-return.c: New file.
1348         * math/Makefile: Add new test test-fenv-return.
1349
1350 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
1351
1352         [BZ #17042]
1353         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
1354         when x - 1 is zero.
1355         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
1356         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1357         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
1358         0.0L for an argument of 1.0L.
1359         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
1360         Likewise.
1361         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
1362         value when x - 1 is zero.
1363         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
1364         * sysdeps/i386/fpu/libm-test-ulps: Update.
1365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1366
1367 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
1368
1369         [BZ #15119]
1370         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
1371
1372 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1373
1374         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
1375         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
1376
1377 2014-06-09  Roland McGrath  <roland@hack.frob.com>
1378
1379         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1380         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1381
1382         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1383         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1384
1385         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1386         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1387
1388         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1389         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1390
1391         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1392         if not already defined.
1393         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1394         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1395         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1396         (TLS_INIT_TP): Use it.
1397         (TLS_DEFINE_INIT_TP): New macro.
1398         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1399
1400 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1401
1402         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1403         constant.
1404         [POSIX] (IXANY): Likewise.
1405         [POSIX] (OLCUC): Likewise.
1406         [POSIX || POSIX2008] (CBAUD): Do not allow.
1407         [POSIX || POSIX2008] (DEFECHO): Likewise.
1408         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1409         [POSIX || POSIX2008] (ECHOKE): Likewise.
1410         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1411         [POSIX || POSIX2008] (EXTA): Likewise.
1412         [POSIX || POSIX2008] (EXTB): Likewise.
1413         [POSIX || POSIX2008] (FLUSHO): Likewise.
1414         [POSIX || POSIX2008] (LOBLK): Likewise.
1415         [POSIX || POSIX2008] (PENDIN): Likewise.
1416         [POSIX || POSIX2008] (SWTCH): Likewise.
1417         [POSIX || POSIX2008] (VDISCARD): Likewise.
1418         [POSIX || POSIX2008] (VDSUSP): Likewise.
1419         [POSIX || POSIX2008] (VLNEXT): Likewise.
1420         [POSIX || POSIX2008] (VREPRINT): Likewise.
1421         [POSIX || POSIX2008] (VSTATUS): Likewise.
1422         [POSIX || POSIX2008] (VWERASE): Likewise.
1423         (B*): Change to B[0123456789]*.
1424         * conform/data/time.h-data [POSIX || UNIX98]
1425         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1426         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1427         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1428         [POSIX] (tm_*): Do not allow.
1429
1430 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1431
1432         * Makefile (install): Don't set LANGUAGE.
1433         * Makefile.in (install): Likewise.
1434         * assert/Makefile (test-assert-ENV): Remove variable.
1435         (test-assert-perr-ENV): Likewise.
1436         * elf/Makefile (neededtest4-ENV): Likewise.
1437         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1438         [$(cross-compiling) = no]: Don't set LANGUAGE.
1439         * io/ftwtest-sh (LANG): Remove variable.
1440         * libio/Makefile (tst-widetext-ENV): Likewise.
1441         * manual/install.texi (Running make install): Don't refer to
1442         environment settings for make install.
1443         * INSTALL: Regenerated.
1444         * nptl/tst-tls6.sh: Don't set LANG.
1445         * posix/globtest.sh (LANG): Remove variable.
1446         * string/Makefile (tester-ENV): Likewise.
1447         (inl-tester-ENV): Likewise.
1448         (noinl-tester-ENV): Likewise.
1449         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1450         [$(cross-compiling) = no]: Don't set LANGUAGE.
1451         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1452         without explicit environment settings.
1453
1454 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1455
1456         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1457         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1458         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1459         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1460
1461 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1462
1463         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1464         other files in the crypt directory.
1465         * crypt/crypt.c: Remove duplicate includes.
1466         * crypt/crypt-entry.c: Likewise.
1467         * crypt/crypt_util.c: Likewise.
1468
1469 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1470
1471         * Makeconfig (run-program-env): New variable.
1472         (run-program-prefix-before-env): Likewise.
1473         (run-program-prefix-after-env): Likewise.
1474         (run-program-prefix): Define in terms of new variables.
1475         (built-program-cmd-before-env): New variable.
1476         (built-program-cmd-after-env): Likewise.
1477         (built-program-cmd): Define in terms of new variables.
1478         (test-program-prefix-before-env): New variable.
1479         (test-program-prefix-after-env): Likewise.
1480         (test-program-prefix): Define in terms of new variables.
1481         (test-program-cmd-before-env): New variable.
1482         (test-program-cmd-after-env): Likewise.
1483         (test-program-cmd): Define in terms of new variables.
1484         * Rules (make-test-out): Use $(run-program-env).
1485         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1486         (help): Do not mention environment variables.  Mention
1487         --timeoutfactor option.
1488         (timeoutfactor): New variable.
1489         (blacklist_exports): Remove function.
1490         (exports): Remove variable.
1491         (command): Do not include ${exports}.
1492         * manual/install.texi (Configuring and compiling): Do not mention
1493         test wrappers preserving environment variables.  Mention that last
1494         assignment to a variable must take precedence.
1495         * INSTALL: Regenerated.
1496         * benchtests/Makefile (run-bench): Use $(run-program-env).
1497         * catgets/Makefile ($(objpfx)test1.cat): Use
1498         $(built-program-cmd-before-env), $(run-program-env) and
1499         $(built-program-cmd-after-env).
1500         ($(objpfx)test2.cat): Do not specify environment variables
1501         explicitly.
1502         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1503         $(run-program-env) and $(built-program-cmd-after-env).
1504         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1505         $(run-program-env) and $(test-program-cmd-after-env).
1506         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1507         explicitly.
1508         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1509         run_program_env and test_program_cmd_after_env arguments.
1510         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1511         * elf/tst-pathopt.sh: Use run_program_env argument.
1512         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1513         $(test-wrapper-env) and $(run-program-env).
1514         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1515         run_program_env arguments.
1516         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1517         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1518         $(test-program-prefix-before-env), $(run-program-env) and
1519         $(test-program-prefix-after-env).
1520         ($(objpfx)tst-gettext2.out): Likewise.
1521         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1522         run_program_env and test_program_prefix_after_env arguments.
1523         * intl/tst-gettext2.sh: Likewise.
1524         * intl/tst-gettext4.sh: Do not set environment variables
1525         explicitly.
1526         * intl/tst-gettext6.sh: Likewise.
1527         * intl/tst-translit.sh: Likewise.
1528         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1529         $(test-program-prefix-before-env), $(run-program-env) and
1530         $(test-program-prefix-after-env).
1531         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1532         run_program_env and test_program_prefix_after_env arguments.
1533         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1534         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1535         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1536         explicitly with each use of ${test_wrapper_env}.
1537         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1538         $(test-program-prefix-before-env), $(run-program-env) and
1539         $(test-program-prefix-after-env).
1540         * posix/tst-getconf.sh: Do not set environment variables
1541         explicitly.
1542         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1543         run_program_env and test_program_prefix_after_env arguments.
1544         * stdio-common/tst-printf.sh: Do not set environment variables
1545         explicitly.
1546         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1547         $(test-program-prefix-before-env), $(run-program-env) and
1548         $(test-program-prefix-after-env).
1549         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1550         run_program_env and test_program_prefix_after_env arguments.
1551         Split $test calls into $test_pre and $test.
1552         * timezone/Makefile (build-testdata): Use
1553         $(built-program-cmd-before-env), $(run-program-env) and
1554         $(built-program-cmd-after-env).
1555
1556 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1557
1558         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1559         strlen for non SHARED builds.
1560
1561 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1562
1563         * nptl/allocatestack.c (check_list): Inlined function...
1564         (__reclaim_stacks): ... here.
1565
1566 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1567
1568         [BZ #15698]
1569         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1570         memory overrun.
1571
1572 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1573
1574         * Rules (make-test-out): Include
1575         LOCPATH=$(common-objpfx)localedata in default environment.
1576         * debug/Makefile (tst-chk1-ENV): Remove variable.
1577         (tst-chk2-ENV): Likewise.
1578         (tst-chk3-ENV): Likewise.
1579         (tst-chk4-ENV): Likewise.
1580         (tst-chk5-ENV): Likewise.
1581         (tst-chk6-ENV): Likewise.
1582         (tst-lfschk1-ENV): Likewise.
1583         (tst-lfschk2-ENV): Likewise.
1584         (tst-lfschk3-ENV): Likewise.
1585         (tst-lfschk4-ENV): Likewise.
1586         (tst-lfschk5-ENV): Likewise.
1587         (tst-lfschk6-ENV): Likewise.
1588         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1589         (tst-iconv7-ENV): Likewise.
1590         * intl/Makefile (LOCPATH-ENV): Likewise.
1591         (tst-codeset-ENV): Likewise.
1592         (tst-gettext3-ENV): Likewise.
1593         (tst-gettext5-ENV): Likewise.
1594         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1595         (tst-fopenloc-ENV): Likewise.
1596         (tst-fgetws-ENV): Remove variable.
1597         (tst-ungetwc1-ENV): Likewise.
1598         (tst-ungetwc2-ENV): Likewise.
1599         (bug-ungetwc2-ENV): Likewise.
1600         (tst-swscanf-ENV): Likewise.
1601         (bug-ftell-ENV): Likewise.
1602         (tst-fgetwc-ENV): Likewise.
1603         (tst-fseek-ENV): Likewise.
1604         (tst-ftell-partial-wide-ENV): Likewise.
1605         (tst-ftell-active-handler-ENV): Likewise.
1606         (tst-ftell-append-ENV): Likewise.
1607         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1608         (tst-regexloc-ENV): Likewise.
1609         (bug-regex1-ENV): Likewise.
1610         (tst-regex-ENV): Likewise.
1611         (tst-regex2-ENV): Likewise.
1612         (bug-regex5-ENV): Likewise.
1613         (bug-regex6-ENV): Likewise.
1614         (bug-regex17-ENV): Likewise.
1615         (bug-regex18-ENV): Likewise.
1616         (bug-regex19-ENV): Likewise.
1617         (bug-regex20-ENV): Likewise.
1618         (bug-regex22-ENV): Likewise.
1619         (bug-regex23-ENV): Likewise.
1620         (bug-regex25-ENV): Likewise.
1621         (bug-regex26-ENV): Likewise.
1622         (bug-regex30-ENV): Likewise.
1623         (bug-regex32-ENV): Likewise.
1624         (bug-regex33-ENV): Likewise.
1625         (bug-regex34-ENV): Likewise.
1626         (bug-regex35-ENV): Likewise.
1627         (tst-rxspencer-ENV): Likewise.
1628         (tst-rxspencer-no-utf8-ENV): Likewise.
1629         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1630         (tst-sscanf-ENV): Likewise.
1631         (tst-swprintf-ENV): Likewise.
1632         (tst-swscanf-ENV): Likewise.
1633         (test-vfprintf-ENV): Likewise.
1634         (scanf13-ENV): Likewise.
1635         (bug14-ENV): Likewise.
1636         (tst-grouping-ENV): Likewise.
1637         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1638         (tst-strtod3-ENV): Likewise.
1639         (tst-strtod4-ENV): Likewise.
1640         (tst-strtod5-ENV): Likewise.
1641         (testmb2-ENV): Likewise./
1642         * string/Makefile (tst-strxfrm-ENV): Likewise.
1643         (tst-strxfrm2-ENV): Likewise.
1644         (bug-strcoll1-ENV): Likewise.
1645         (test-strcasecmp-ENV): Likewise.
1646         (test-strncasecmp-ENV): Likewise.
1647         * time/Makefile (tst-strptime-ENV): Likewise.
1648         (tst-ftime_l-ENV): Likewise.
1649         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1650         (tst-mbrtowc-ENV): Likewise.
1651         (tst-wcrtomb-ENV): Likewise.
1652         (tst-mbrtowc2-ENV): Likewise.
1653         (tst-c16c32-1-ENV): Likewise.
1654         (tst-mbsnrtowcs-ENV): Likewise.
1655
1656 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1657
1658         * manual/resource.texi (How to get information about the memory
1659         subsystem?): Fix typo.
1660         Reported by Peon de la Parra Ivan <peon@keba.com>
1661
1662 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1663
1664         [BZ #16882]
1665         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1666         (pthread_spin_lock): Branch out of spin loop to proper location.
1667         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1668         (pthread_spin_lock): Likewise.
1669
1670         * nptl/tst-spin4.c: New test.
1671         * nptl/Makefile (tests): Add tst-spin4.
1672
1673 2014-06-03  Andreas Schwab  <schwab@suse.de>
1674
1675         [BZ #15946]
1676         * resolv/res_send.c (send_dg): Reload file descriptor after
1677         calling reopen.
1678
1679 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1680
1681         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1682
1683 2014-06-03  Richard Henderson  <rth@redhat.com>
1684
1685         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1686         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1687         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1688         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1689         in the SAVE_PID block.
1690         (__libc_vfork): New alias.
1691         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1692
1693         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1694         child in registers, not on the stack.  Remove RESET_PID conditionals.
1695         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1696
1697 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1698
1699         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1700
1701 2014-06-03  Wilco  <wdijkstr@arm.com>
1702
1703         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1704         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1705         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1706         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
1707         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
1708         Likewise.
1709
1710 2014-06-03  Wilco  <wdijkstr@arm.com>
1711
1712         * sysdeps/aarch64/fpu/math_private.h
1713         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
1714         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
1715         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
1716         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1717         Fix declarations.
1718
1719 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1720
1721         * crypt/crypt-private.h: Include ufc-crypt.h.
1722         (__b64_from_24bit): Declare extern.
1723         * crypt/crypt_util.c(__b64_from_24bit): New function.
1724         (b64t): New static const variable.
1725         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
1726         (b64t): Remove variable.
1727         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
1728         * crypt/sha256-crypt.c: Include crypt-private.h.
1729         (b64t): Remove variable.
1730         (__sha256_crypt_r): Remove b64_from_24bit and replace
1731         with __b64_from_24bit.
1732         * crypt/sha512-crypt.c: Likewise.
1733
1734 2014-06-02  Roland McGrath  <roland@hack.frob.com>
1735
1736         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
1737         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
1738         Label the code __libc_vfork rather than __vfork.
1739         [!NOT_IN_libc] (vfork): Define as weak alias.
1740         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
1741         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1742         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
1743
1744 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1745
1746         * malloc/malloc.c (malloc_info): Fix format specifier for
1747         n_mmaps.
1748
1749 2014-06-02  Wilco  <wdijkstr@arm.com>
1750
1751         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
1752         FPCR write.
1753
1754 2014-06-02  Wilco  <wdijkstr@arm.com>
1755
1756         [BZ #17009]
1757         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
1758         Rewrite to reduce FPCR/FPSR accesses.
1759
1760 2014-06-01  David S. Miller  <davem@davemloft.net>
1761
1762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1763
1764 2014-05-31  David S. Miller  <davem@davemloft.net>
1765
1766         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
1767         to occur in round to nearest mode when |x| >= 2.0
1768
1769 2014-05-30  Richard Henderson  <rth@twiddle.net>
1770
1771         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
1772         (PSEUDO_RET_NOERRNO): Remove.
1773         (ret): Don't redefine.
1774         (ret_NOERRNO): Define in terms of ret.
1775         (ret_ERRVAL): Likewise.
1776
1777         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
1778         use of PSEUDO_RET; perform the error check directly.
1779
1780 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
1781
1782         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
1783         with __int128_t.
1784
1785 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1786
1787         * malloc/malloc (malloc_info): Fix formatting.
1788
1789 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1790             Roland McGrath  <roland@hack.frob.com>
1791
1792         * malloc/malloc (malloc_info): Also print mmapped statistics.
1793
1794 2014-05-30  Roland McGrath  <roland@hack.frob.com>
1795
1796         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
1797         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
1798
1799 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
1800
1801         * malloc/malloc.c (malloc_info): Inline mi_arena.
1802
1803 2014-05-29  Richard Henderson  <rth@twiddle.net>
1804
1805         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
1806         Remove comma before expanding ASM_ARGS_##nr.
1807         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
1808         Make _x0 a strict output; make _x8 a strict input; adjust expansion
1809         of ASM_ARGS_##nr.
1810         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
1811         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
1812         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
1813         (ASM_ARGS_1): Add leading comma.
1814
1815         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
1816         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
1817         to __errno_location.
1818         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
1819         Remove the expected plt for __errno_location.
1820
1821         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1822         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
1823         call to __read_tp.
1824
1825         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1826         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
1827         it and break it down.
1828         (DOCARGS_0, DOCARGS_1): Do nothing.
1829         (DOCARGS_2): Update to store into the new stack frame.
1830         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
1831         (UNDOCARGS_1): Update to restore from the new stack frame.
1832         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
1833         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
1834
1835         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1836         (SINGLE_THREAD_P): New parameter for result regno.
1837         (PSEUDO): Update to match; use cbz instead of beq.
1838
1839         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1840         Use ENTRY to define the _nocancel entry point.  Share the syscall
1841         and syscall error check paths with the cancel path.
1842         (PSEUDO_END): New.
1843
1844         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
1845         whitespace; tabs before and after asm mnemonics.
1846
1847 2014-05-29  Eric Wong  <normalperson@yhbt.net>
1848
1849         [BZ #15132]
1850         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1851         Call fstat64 or stat64 internally, depending on arguments passed.
1852         Replace stat buffer argument with file descriptor argument.
1853         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
1854         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
1855         Pass fd to __internal_statvfs instead of calling fstat64.
1856         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
1857         Pass fd to __internal_statvfs64 instead of calling fstat64.
1858         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
1859         Pass -1 to __internal_statvfs instead of calling stat64.
1860         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
1861         Pass -1 to __internal_statvfs64 instead of calling stat64.
1862
1863 2014-05-28  Roland McGrath  <roland@hack.frob.com>
1864
1865         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
1866         that was previously under [RESET_PID].
1867         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
1868
1869         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
1870         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
1871
1872 2014-05-27  Roland McGrath  <roland@hack.frob.com>
1873
1874         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
1875
1876         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
1877         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
1878
1879 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
1880
1881         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
1882
1883 2014-05-27  Andreas Schwab  <schwab@suse.de>
1884
1885         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
1886         TLS_INIT_TP macro.
1887         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1888         * elf/rtld.c (init_tls, dl_main): Likewise.
1889         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
1890         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
1891         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
1892         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
1893         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
1894         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
1895         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
1896         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
1897         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
1898         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
1899         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
1900         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
1901         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
1902         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
1903         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
1904         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
1905         * sysdeps/generic/tls.h: Update description.
1906
1907 2014-05-27  Will Newton  <will.newton@linaro.org>
1908
1909         [BZ #16990]
1910         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
1911         and restore r2 rather than just restoring.
1912
1913 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1914
1915         [BZ #16724]
1916         * libio/tst-ftell-append.c: New test case.
1917         * libio/Makefile (tests): Add test case.
1918         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
1919         append mode.
1920         * libio/wfileops.c (do_ftell_wide): Likewise.
1921
1922 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1923
1924         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1925
1926         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
1927         ...
1928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
1929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
1930         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
1931         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
1932         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
1933         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
1934         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
1935         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
1936         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
1937         Moved ...
1938         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
1939         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
1940         Moved ...
1941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
1942         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
1943         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
1944         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
1945         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
1946         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
1947         ...
1948         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
1949         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
1950         Moved ...
1951         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
1952         here.
1953         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
1954         ...
1955         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
1956         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
1957         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
1958
1959         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
1960         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
1961         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
1962         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
1963
1964         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
1965         merge into ...
1966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
1967         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
1968         ...
1969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
1970         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
1971         ...
1972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
1973         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
1974         Moved ...
1975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
1976         here.
1977         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
1978         Moved ...
1979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
1980         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
1981         Moved ...
1982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
1983
1984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
1985         conditional [RESET_PID].
1986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1987         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
1988         removed.
1989         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
1990         removed.
1991
1992         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
1993         <tcb-offsets.h>.
1994         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1995         (__libc_vfork): New strong alias.
1996         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
1997         removed.
1998         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
1999         Removed.
2000
2001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2002         <tcb-offsets.h>.
2003         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2004         (__libc_vfork): New strong alias.
2005         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2006         removed.
2007         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2008         removed.
2009
2010 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2011
2012         * malloc/malloc.c (mi_arena): New function.
2013         (malloc_info): Remove nested function mi_arena. Call non-nosted
2014         function mi_arena.
2015
2016 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2017
2018         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
2019         by insrwi.
2020         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
2021         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
2022         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
2023         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
2024         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
2025         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
2026         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
2027
2028 2014-05-26  Andreas Schwab  <schwab@suse.de>
2029
2030         [BZ #16984]
2031         * locale/programs/repertoire.c (repertoire_read): Add slash
2032         between I18NPATH element and file name.
2033         * locale/programs/locfile.c (locfile_read): Likewise.
2034
2035 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2036
2037         * nptl/pthread_mutexattr_settype.c
2038         (__pthread_mutexattr_settype):
2039         Disable lock elision for PTHREAD_MUTEX_NORMAL.
2040
2041 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
2042
2043         * nptl/tst-mutex5 (do_test):
2044         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
2045
2046 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2047
2048         * benchtests/README: Document 'init' directive.
2049         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
2050         BENCH_INIT.
2051         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
2052         (parse_file): Recognize 'init' directive.
2053
2054 2014-05-26  Kyle McMartin  <kyle@redhat.com>
2055
2056         [BZ #16796]
2057         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
2058         alignment of struct pthread.
2059
2060 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2061
2062         [BZ #16878]
2063         * nscd/netgroupcache.c (addgetnetgrentX): Look for
2064         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2065         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
2066         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
2067
2068 2014-05-25  Richard Henderson  <rth@twiddle.net>
2069
2070         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2071         (SINGLE_THREAD_P_PIC): Remove.
2072         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
2073         (SINGLE_THREAD_P_PIC): Remove.
2074
2075         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
2076         branch to syscall error ...
2077         (PSEUDO): ... here.
2078         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
2079         from __local_syscall_error to .Lsyscall_error.
2080         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
2081         (SYSCALL_ERROR): Update label name.
2082
2083         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2084         Do not use DOARGS/UNDOARGS.
2085         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
2086         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
2087         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
2088         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
2089         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
2090
2091         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
2092         block comment.
2093
2094         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
2095         define if !NOT_IN_libc.
2096         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
2097         define with non-default symbol versions.
2098
2099 2014-05-23  Richard Henderson  <rth@twiddle.net>
2100
2101         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
2102         (vfork, __vfork): Define via compat_symbol.
2103
2104         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
2105         [!HAVE_IFUNC] (vfork_compat): Remove.
2106         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
2107
2108 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2109
2110         [BZ #16978]
2111         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
2112         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
2113         variable.
2114
2115 2014-05-23  Richard Henderson  <rth@twiddle.net>
2116
2117         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
2118         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
2119         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
2120         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
2121
2122         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
2123         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
2124         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
2125         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
2126         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
2127         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
2128         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
2129         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
2130         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
2131         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
2132         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
2133         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
2134         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
2135         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
2136         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
2137         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
2138         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
2139         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
2140         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
2141         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
2142         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
2143         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
2144         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
2145         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
2146         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
2147         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
2148         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
2149         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
2150         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
2151         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
2152         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
2153         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
2154         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
2155         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
2156         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
2157         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
2158         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
2159         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
2160         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
2161         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
2162         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
2163         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
2164         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
2165         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
2166         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
2167         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
2168         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
2169         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
2170         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
2171         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
2172         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
2173         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
2174         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
2175         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
2176         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
2177         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
2178
2179         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
2180         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
2181         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
2182         before exiting on error.
2183         (__libc_vfork): New strong alias.
2184         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
2185         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
2186
2187         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
2188         that was previously under [RESET_PID].
2189         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
2190
2191         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
2192
2193 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
2194
2195         [BZ #16977]
2196         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
2197         value when x - 1 is zero.
2198         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
2199         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
2200         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
2201         0.0L for an argument of 1.0L.
2202         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
2203         Likewise.
2204         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
2205         value when x - 1 is zero.
2206         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
2207         * sysdeps/i386/fpu/libm-test-ulps: Update.
2208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2209
2210 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
2211
2212         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
2213         alphasort and versionsort.
2214
2215 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2216
2217         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
2218         macro.
2219         [copysignf]: Likewise.
2220
2221 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2222
2223         * crypt/md5-crypt.c: Fix formatting.
2224
2225 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2226
2227         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
2228         (b64_from_24bit): New function.
2229
2230 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2231
2232         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
2233         libc_hidden_builtin_def to ifunc.
2234         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2235         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
2236
2237 2014-05-21  Roland McGrath  <roland@hack.frob.com>
2238
2239         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
2240         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
2241
2242 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
2243
2244         * nscd/Depend (linuxthreads): Remove.
2245         (nptl): Add.
2246         * resolv/Depend (linuxthreads): Remove.
2247         * rt/Depend (linuxthreads): Remove.
2248
2249         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
2250         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
2251         $(common-objpfx)elf/.
2252         (link-libc-before-gnulib): Likewise.
2253         (elfobjdir): Remove variable.
2254         * Makefile (install): Use $(elf-objpfx) instead of
2255         $(common-objpfx)elf/.
2256         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
2257         $(elfobjdir)/.
2258         (link-libc-deps): Likewise.
2259         ($(common-objpfx)libc.so): Likewise.
2260         ($(common-objpfx)linkobj/libc.so): Likewise.
2261         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
2262         instead of $(common-objpfx)elf/.
2263         (symbolic-link-list): Likewise.
2264         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2265         [$(cross-compiling) = no]: Likewise.
2266         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
2267         $(elfobjdir)/.
2268         (static-gnulib-arch): Likewise.
2269         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2270         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
2271         $(common-objpfx)elf/.
2272
2273 2014-05-21  Richard Henderson  <rth@redhat.com>
2274
2275         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2276         (SINGLE_THREAD_P): Use the correct width load.  Fold
2277         into the ldr offset.
2278
2279         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
2280         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
2281
2282 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
2283
2284         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
2285         (libgcc_s_resume): Use __attribute_used__.
2286         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
2287         Likewise.
2288
2289 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2290
2291         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
2292         optimization when used with float constants.
2293
2294         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2295
2296 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
2297
2298         [BZ #16915]
2299         * locale/nl_langinfo_l.c: Make direct reference to every
2300         _nl_current_CATEGORY symbol.
2301         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
2302         (tests-static): Add tst-langinfo-static.
2303         (tests-special): Add tst-langinfo-static.out.
2304         ($(objpfx)tst-langinfo.out): Redirect output.
2305         ($(objpfx)tst-langinfo-static.out): New.
2306         * localedata/tst-langinfo.sh: Send output to stdout.
2307         * localedata/tst-langinfo-static.c: New file.
2308
2309         [BZ #16965]
2310         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
2311         when the shift amount is modulo the limb size.
2312
2313 2014-05-20  Richard Henderson  <rth@redhat.com>
2314
2315         [BZ #16967]
2316         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
2317         Change type of sa_flags from unsigned int to int.
2318
2319         [BZ #16966]
2320         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
2321
2322         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
2323
2324 2014-05-20  Will Newton  <will.newton@linaro.org>
2325
2326         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2327         Test the return value of the system call in the nocancel case.
2328
2329 2014-05-20  Will Newton  <will.newton@linaro.org>
2330             Yvan Roux  <yvan.roux@linaro.org>
2331
2332         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
2333         #include of asm/ptrace.h.
2334         (PTRACE_GET_THREAD_AREA): Remove #undef.
2335         (PTRACE_GETHBPREGS): Likewise.
2336         (PTRACE_SETHBPREGS): Likewise.
2337         (struct user_regs_struct): New structure.
2338         (struct user_fpsimd_struct): New structure.
2339         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
2340         #include of asm/ptrace.h and second #include of sys/user.h.
2341         (PTRACE_GET_THREAD_AREA): Remove #undef.
2342         (PTRACE_GETHBPREGS): Likewise.
2343         (PTRACE_SETHBPREGS): Likewise.
2344         (ELF_NGREG): Use new struct user_regs_struct.
2345         (elf_fpregset_t): Use new struct user_fpsimd_struct.
2346
2347 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2348
2349         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
2350         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
2351
2352 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2353
2354         [BZ #16958]
2355         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
2356         membar to avoid block loads/stores to overlap previous stores.
2357
2358 2014-05-17  Richard Henderson  <rth@redhat.com>
2359
2360         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
2361         Create the __##syscall_name##_nocancel entry point.
2362         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
2363         Remove; let the sysdep-cancel.h code create it.
2364
2365 2014-05-17  David S. Miller  <davem@davemloft.net>
2366
2367         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
2368         Protect with __USE_GNU.
2369         (TIOCSET_TEMPT): Likewise.
2370         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
2371         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
2372         these are already provided in bits/ioctl-types.h
2373
2374 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2375
2376         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
2377         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
2378
2379         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
2380         Use wait4 regardless of [__NR_waitpid].
2381
2382 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2383
2384         PR libgcc/60166
2385         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2386         (_FP_NANSIGN_Q): Set the quiet bit.
2387
2388 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2389
2390         * benchtests/Makefile
2391         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2392         not $(common-objpfx)math/libm.so.
2393         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2394         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2395         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2396         $(common-objpfx)dlfcn/libdl.so.
2397         ($(objpfx)tst-audit8): Depend on $(libm), not
2398         $(common-objpfx)math/libm.so.
2399         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2400         not $(common-objpfx)dlfcn/libdl.so.
2401         * math/Makefile
2402         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2403         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2404         [$(build-shared) = yes].
2405         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2406         $(common-objpfx)nptl/libpthread.so.
2407         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2408         $(common-objpfx)math/libm.so$(libm.so-version) or
2409         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2410         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2411         $(common-objpfx)dlfcn/libdl.so.
2412         * setjmp/Makefile (link-libm): Remove variable.
2413         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2414         * stdio-common/Makefile (link-libm): Remove variable.
2415         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2416         * stdlib/Makefile (link-libm): Remove variable.
2417         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2418         ($(objpfx)tst-strtod-round): Likewise.
2419         ($(objpfx)tst-tininess): Likewise.
2420         ($(objpfx)tst-strtod-underflow): Likewise.
2421         ($(objpfx)tst-strtod6): Likewise.
2422         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2423         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2424         $(common-objpfx)dlfcn/libdl.so.
2425
2426 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2427
2428         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2429         BSD terminal modes definitions.
2430
2431 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2432
2433         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2434         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2435
2436         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2437         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2438         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2439         Don't do #include_next.
2440         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2441         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2442         Don't do #include_next.
2443         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2444         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2445         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2446         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2447
2448 2014-05-16  Allan McRae  <allan@archlinux.org>
2449
2450         * po/sv.po: Update Swedish translation from translation project.
2451
2452         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2453         in sed expression.
2454
2455 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2456
2457         [BZ #16917]
2458         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2459         errno if the TIOCGPTN ioctl fails with an error different than
2460         EINVAL.
2461         * login/tst-ptsname.c: New file.
2462         * login/Makefile (tests): Add tst-ptsname.
2463
2464         [BZ #16943]
2465         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2466         and prlimit64.
2467
2468 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2469
2470         [BZ #16849]
2471         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2472         herrno to return EAI_AGAIN.
2473
2474 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2475
2476         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2477         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2478         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2479         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2480         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2481         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2482         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2483         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2484         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2485         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2486         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2487         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2488         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2489         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2490         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2491         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2492         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2493         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2494         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2495         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2496         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2497         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2498         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2499         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2500         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2501         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2502         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2503         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2504         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2505         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2506         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2507         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2508         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2509         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2510         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2511         Moved ...
2512         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2513         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2514         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2515         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2516         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2517         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2518         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2520         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2521         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2522         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2523         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2524         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2525         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2526         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2527         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2528         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2529         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2530         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2532         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2534         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2535         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2536         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2537         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2538         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2539         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2540         Moved ...
2541         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2542         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2543         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2544         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2545         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2546         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2547         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2548         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2549         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2550         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2551         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2552         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2553         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2554         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2555         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2556         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2557         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2558         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2559         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2561         Moved ...
2562         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2563         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2564         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2565
2566         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2567         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2568         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2569         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2570         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2571         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2572         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2573         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2574         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2575         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2576         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2577         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2578         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2579         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2580         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2581         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2582         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2583         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2584         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2585         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2586         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2587         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2588         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2589         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2590         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2591         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2592         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2593         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2594         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2595         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2596         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2597
2598         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2599         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2600
2601         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2602         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2603         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2604         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2605         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2606         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2607         Moved ...
2608         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2609         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2610         Moved ...
2611         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2612         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2613         Moved ...
2614         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2615         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2616         Moved ...
2617         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2618         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2619         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2620         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2621         Moved ...
2622         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2623         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2624         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2625         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2626         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2627         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2628         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2629         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2630         Moved ...
2631         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2632         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2633         Moved ...
2634         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2635         ... here.
2636         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2637         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2638         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2639         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2640         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2641         Moved ...
2642         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2643         ... here.
2644         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2645         Moved ...
2646         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2647         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2648         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2649         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2650         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2651         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2652         Moved ...
2653         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2654         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2655         Moved ...
2656         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2657         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2658         Moved ...
2659         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2660         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2661         Moved ...
2662         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2663         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2664         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2665         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2666         Moved ...
2667         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2668         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2669         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2670         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2671         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2672         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2673         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2674         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2675         Moved ...
2676         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2677         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2678         Moved ...
2679         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2680         ... here.
2681         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2682         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2683         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2684         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2685         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2686         Moved ...
2687         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2688         ... here.
2689         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2690         Moved ...
2691         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2692         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2693         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2694         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2695         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2696         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2697         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2698         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2699         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2700         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2701         Moved ...
2702         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2703         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2704         Moved ...
2705         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
2706         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
2707         Moved ...
2708         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
2709         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
2710         Moved ...
2711         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
2712         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
2713         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
2714         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
2715         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
2716         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
2717         Moved ...
2718         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
2719         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
2720         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
2721         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
2722         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
2723         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
2724         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
2725         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
2726         Moved ...
2727         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
2728         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2729         Moved ...
2730         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2731         ... here.
2732         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
2733         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
2734         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
2735         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
2736         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2737         Moved ...
2738         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2739         ... here.
2740         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
2741         Moved ...
2742         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
2743         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
2744         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
2745         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
2746         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
2747         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
2748         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
2749         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
2750         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
2751         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
2752         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
2753
2754         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
2755         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
2756
2757         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
2758         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
2759
2760         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
2761         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
2762         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
2763         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
2764         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
2765         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
2766         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
2767         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
2768         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
2769         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
2770         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
2771         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
2772         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
2773         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
2774         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
2775         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
2776         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
2777         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
2778         Moved ...
2779         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
2780         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
2781         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
2782         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
2783         Moved ...
2784         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
2785         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
2786         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
2787         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
2788         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
2789         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
2790         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
2791         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2792         Moved ...
2793         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
2794         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2795         Moved ...
2796         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
2797         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
2798         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
2799         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
2800         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
2801         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
2802         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
2803         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
2804         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
2805         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
2806         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
2807         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
2808         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
2809         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
2810         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
2811         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
2812         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
2813
2814         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
2815         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
2816         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
2817         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
2818         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
2819
2820         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
2821         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
2822         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
2823         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
2824         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
2825         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
2826         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
2827         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
2828         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
2829         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
2830
2831         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
2832         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
2833
2834         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
2835         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
2836         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
2837         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
2838         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
2839         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
2840         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
2841         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
2842         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
2843         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
2844         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
2845         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
2846         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
2847         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
2848         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
2849         Update #include.
2850         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
2851         Likewise.
2852         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2853         Likewise.
2854         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2855         Likewise.
2856         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2857         Likewise.
2858         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
2859         Likewise.
2860         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
2861         Likewise.
2862         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
2863         Likewise.
2864         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
2865         Likewise.
2866         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
2867         Likewise.
2868         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
2869         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
2870         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
2871         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
2872         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
2873         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
2874         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
2875         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
2876         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
2877         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
2878         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
2879         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
2880         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
2881         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
2882         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
2883
2884         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
2885         that was previously under [RESET_PID].
2886         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2887         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
2888         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
2889
2890         * sysdeps/i386/nptl/Implies: New file.
2891         * sysdeps/x86_64/nptl/Implies: New file.
2892         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
2893         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
2894         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
2895         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
2896
2897         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
2898         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2899         (__libc_vfork): New strong alias.
2900         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
2901         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
2902
2903         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
2904         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2905         (__libc_vfork): New strong alias.
2906         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
2907         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
2908
2909         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
2910         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2911         (__libc_vfork): New strong alias.
2912         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
2913         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
2914         * nptl/pt-vfork.c: New file.
2915         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
2916         (libpthread: GLIBC_2.20): New version set (empty).
2917
2918 2014-05-14  Will Newton  <will.newton@linaro.org>
2919
2920         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
2921         rather than #if.
2922
2923 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2924
2925         [BZ #16564]
2926         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
2927         arguments with exponent 65 or above.
2928         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
2929         arguments 0x1p113L or above.
2930         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
2931         to arguments 0x1p107L or above.
2932         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
2933         positive arguments with exponent 65 or above.
2934         * math/auto-libm-test-in: Add more tests of log1p.
2935         * math/auto-libm-test-out: Regenerated.
2936
2937         [BZ #16928]
2938         * math/s_cacos.c (__cacos): Ensure zero real part of result from
2939         non-finite arguments is +0.
2940         * math/s_cacosf.c (__cacosf): Likewise.
2941         * math/s_cacosl.c (__cacosl): Likewise.
2942         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
2943         * sysdeps/i386/fpu/libm-test-ulps: Update.
2944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2945
2946         [BZ #16927]
2947         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
2948         value.
2949         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
2950         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
2951         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
2952         for explicit high bit of mantissa when testing for argument equal
2953         to 1.
2954         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
2955         * sysdeps/i386/fpu/libm-test-ulps: Update.
2956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2957
2958         [BZ #16516]
2959         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
2960         (__erf): Scale by 16 instead of 8 in potentially underflowing
2961         case.  Ensure exception if result actually underflows.
2962         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
2963         (__erff): Scale by 16 instead of 8 in potentially underflowing
2964         case.  Ensure exception if result actually underflows.
2965         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
2966         (efx8): Remove variable.
2967         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2968         case.  Ensure exception if result actually underflows.
2969         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
2970         (efx8): Remove variable.
2971         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2972         case.  Ensure exception if result actually underflows.
2973         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
2974         (efx8): Remove variable.
2975         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2976         case.  Ensure exception if result actually underflows.
2977         * math/auto-libm-test-in: Add more tests of erf.
2978         * math/auto-libm-test-out: Regenerated.
2979
2980 2014-05-14  Andreas Schwab  <schwab@suse.de>
2981
2982         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
2983         Remove code conditionalized on USE___THREAD.
2984
2985         * config.h.in (HAVE_PT_CHOWN): Define as 0.
2986         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
2987         not definedness.
2988
2989 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2990
2991         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
2992         Define unconditionally.
2993         (__ASSUME_O_CLOEXEC): Likewise.
2994         (__ASSUME_SOCK_CLOEXEC): Likewise.
2995         (__ASSUME_IN_NONBLOCK): Likewise.
2996         (__ASSUME_PIPE2): Likewise.
2997         (__ASSUME_EVENTFD2): Likewise.
2998         (__ASSUME_SIGNALFD4): Likewise.
2999         (__ASSUME_DUP3): Likewise.
3000         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3001         (__ASSUME_DUP3): Do not define.
3002         (__ASSUME_EVENTFD2): Likewise.
3003         (__ASSUME_IN_NONBLOCK): Likewise.
3004         (__ASSUME_O_CLOEXEC): Likewise.
3005         (__ASSUME_PIPE2): Likewise.
3006         (__ASSUME_SIGNALFD4): Likewise.
3007         (__ASSUME_SOCK_CLOEXEC): Likewise.
3008         (__ASSUME_UTIMES): Undefine.
3009         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3010         (__ASSUME_UTIMES): Do not define.
3011         (__ASSUME_O_CLOEXEC): Likewise.
3012         (__ASSUME_SOCK_CLOEXEC): Likewise.
3013         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
3014         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
3015         0x020621].
3016         (__ASSUME_PIPE2): Likewise.
3017         (__ASSUME_EVENTFD2): Likewise.
3018         (__ASSUME_SIGNALFD4): Likewise.
3019         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
3020         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
3021         Do not define.
3022         (__ASSUME_EVENTFD2): Likewise.
3023         (__ASSUME_SIGNALFD4): Likewise.
3024         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3025         (__ASSUME_32BITUIDS): Likewise.
3026         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3027         (__ASSUME_IPC64): Likewise.
3028         (__ASSUME_ST_INO_64_BIT): Likewise.
3029         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
3030         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
3031         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3032         (__ASSUME_UTIMES): Do not define.
3033         (__ASSUME_PSELECT): Likewise.
3034         (__ASSUME_PPOLL): Likewise.
3035         (__ASSUME_O_CLOEXEC): Likewise.
3036         (__ASSUME_SOCK_CLOEXEC): Likewise.
3037         (__ASSUME_IN_NONBLOCK): Likewise.
3038         (__ASSUME_PIPE2): Likewise.
3039         (__ASSUME_EVENTFD2): Likewise.
3040         (__ASSUME_SIGNALFD4): Likewise.
3041         (__ASSUME_DUP3): Likewise.
3042         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3043         (__ASSUME_UTIMES): Likewise.
3044         (__ASSUME_O_CLOEXEC): Likewise.
3045         (__ASSUME_SOCK_CLOEXEC): Likewise.
3046         (__ASSUME_IN_NONBLOCK): Likewise.
3047         (__ASSUME_PIPE2): Likewise.
3048         (__ASSUME_EVENTFD2): Likewise.
3049         (__ASSUME_SIGNALFD4): Likewise.
3050         (__ASSUME_DUP3): Likewise.
3051         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3052         (__ASSUME_UTIMES): Likewise.
3053         (__ASSUME_O_CLOEXEC): Likewise.
3054         (__ASSUME_SOCK_CLOEXEC): Likewise.
3055         (__ASSUME_IN_NONBLOCK): Likewise.
3056         (__ASSUME_PIPE2): Likewise.
3057         (__ASSUME_EVENTFD2): Likewise.
3058         (__ASSUME_SIGNALFD4): Likewise.
3059         (__ASSUME_DUP3): Likewise.
3060         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
3061         Likewise.
3062         (__ASSUME_UTIMES): Likewise.
3063         (__ASSUME_EVENTFD2): Likewise.
3064         (__ASSUME_SIGNALFD4): Likewise.
3065         * sysdeps/unix/sysv/linux/tile/kernel-features.h
3066         (__ASSUME_O_CLOEXEC): Likewise.
3067         (__ASSUME_SOCK_CLOEXEC): Likewise.
3068         (__ASSUME_IN_NONBLOCK): Likewise.
3069         (__ASSUME_PIPE2): Likewise.
3070         (__ASSUME_EVENTFD2): Likewise.
3071         (__ASSUME_SIGNALFD4): Likewise.
3072         (__ASSUME_DUP3): Likewise.
3073         (__ASSUME_UTIMES): Undefine.
3074
3075         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
3076         feclearexcept.  Remove symbol versioning code.
3077         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
3078         symbol versioning code.
3079         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
3080         symbol versioning code.
3081         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
3082         feupdateenv.  Remove symbol versioning code.
3083         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
3084         fegetexceptflag.  Remove symbol versioning code.
3085         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
3086         fesetexceptflag.  Remove symbol versioning code.
3087         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
3088         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
3089         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
3090         (__posix_fadvise64_l32): Remove prototype.
3091         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
3092         code.
3093
3094 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3095
3096         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
3097         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
3098         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
3099         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
3100
3101 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
3102
3103         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
3104         current working directory
3105
3106 2014-05-13  Roland McGrath  <roland@hack.frob.com>
3107
3108         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
3109         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
3110         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
3111         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
3112         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
3113         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
3114         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
3115         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
3116         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
3117         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
3118         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
3119         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
3120         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
3121         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
3122         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
3123         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
3124         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
3125         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
3126         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
3127         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
3128         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
3129         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
3130         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
3131         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
3132         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
3133         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
3134         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
3135         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
3136         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
3137         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
3138         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
3139         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
3140         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
3141         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
3142         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
3143         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
3144         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
3145         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
3146         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
3147         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
3148         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
3149         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
3150
3151         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
3152         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
3153
3154         * sysdeps/unix/sysv/linux/arm/Makefile
3155         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
3156         Add rt-aeabi_unwind_cpp_pr1.
3157         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
3158         Add nptl-aeabi_unwind_cpp_pr1.
3159         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
3160         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
3161         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
3162         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
3163         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
3164         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
3165
3166         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
3167         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
3168         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
3169         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
3170
3171         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
3172         Deconditionalize the code that was previously under [RESET_PID].
3173         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
3174
3175         * sysdeps/generic/exit-thread.h: New file.
3176         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
3177         * include/unistd.h (__exit_thread): Remove declaration.
3178         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
3179         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
3180         * csu/libc-start.c: Include <exit-thread.h>.
3181         (LIBC_START_MAIN): Pass no argument to __exit_thread.
3182         * nptl/pthread_create.c: Include <exit-thread.h>.
3183         (start_thread): Call __exit_thread in place of __exit_thread_inline.
3184         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
3185         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
3186         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
3187         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
3188         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
3189         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
3190         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
3191         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
3192         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
3193         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
3194         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
3195         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
3196         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
3197         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
3198         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
3199         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
3200
3201 2014-05-13  Andreas Schwab  <schwab@suse.de>
3202
3203         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
3204
3205 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
3206
3207         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
3208         (__ASSUME_UTIMES): Do not condition on kernel version.
3209         (__ASSUME_PSELECT): Define unconditionally.
3210         (__ASSUME_PPOLL): Likewise.
3211         (__ASSUME_ATFCTS): Likewise.
3212         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
3213         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
3214         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
3215         (__ASSUME_UTIMENSAT): Define unconditionally.
3216         (__ASSUME_PRIVATE_FUTEX): Likewise.
3217         (__ASSUME_FALLOCATE): Likewise.
3218         (__ASSUME_O_CLOEXEC): Likewise.
3219         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
3220         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
3221         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
3222         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
3223         (__ASSUME_IN_NONBLOCK): Likewise.
3224         (__ASSUME_PIPE2): Likewise.
3225         (__ASSUME_EVENTFD2): Likewise.
3226         (__ASSUME_SIGNALFD4): Likewise.
3227         (__ASSUME_DUP3): Likewise.
3228         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3229         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
3230         (__ASSUME_AT_RANDOM): Likewise.
3231         (__ASSUME_PREADV): Likewise.
3232         (__ASSUME_PWRITEV): Likewise.
3233         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
3234         (__ASSUME_F_GETOWN_EX): Define unconditionally.
3235         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
3236         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
3237         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
3238         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3239         (__ASSUME_O_CLOEXEC): Define unconditionally.
3240         (__ASSUME_PSELECT): Do not undefine conditionally.
3241         (__ASSUME_PPOLL): Likewise.
3242         (__ASSUME_ATFCTS): Likewise.
3243         (__ASSUME_SET_ROBUST_LIST): Likewise.
3244         (__ASSUME_UTIMENSAT): Likewise.
3245         (__ASSUME_FDATASYNC): Define unconditionally.
3246         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3247         (__ASSUME_SIGFRAME_V2): Likewise.
3248         )__ASSUME_EVENTFD2): Likewise.
3249         (__ASSUME_SIGNALFD4): Likewise.
3250         (__ASSUME_PSELECT): Do not undefine conditionally.
3251         (__ASSUME_PPOLL): Likewise.
3252         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
3253         (__ASSUME_PSELECT): Define unconditionally.
3254         (__ASSUME_PPOLL): Likewise.
3255         (__ASSUME_O_CLOEXEC): Likewise.
3256         (__ASSUME_SOCK_CLOEXEC): Likewise.
3257         (__ASSUME_IN_NONBLOCK): Likewise.
3258         (__ASSUME_PIPE2): Likewise.
3259         (__ASSUME_EVENTFD2): Likewise.
3260         (__ASSUME_SIGNALFD4): Likewise.
3261         (__ASSUME_DUP3): Likewise.
3262         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3263         (__ASSUME_O_CLOEXEC): Likewise.
3264         (__ASSUME_SOCK_CLOEXEC): Likewise.
3265         (__ASSUME_IN_NONBLOCK): Likewise.
3266         (__ASSUME_PIPE2): Likewise.
3267         (__ASSUME_EVENTFD2): Likewise.
3268         (__ASSUME_SIGNALFD4): Likewise.
3269         (__ASSUME_DUP3): Likewise.
3270         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3271         (__ASSUME_EVENTFD2): Likewise.
3272         (__ASSUME_SIGNALFD4): Likewise.
3273         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
3274
3275 2014-05-12  Andreas Schwab  <schwab@suse.de>
3276
3277         [BZ #16932]
3278         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
3279         (_nss_nis_gethostbyname4_r): Return error if item length is larger
3280         than maximum RPC packet size.
3281         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
3282         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
3283         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
3284         (_nss_nis_getservbyport_r): Likewise.
3285
3286 2014-05-12  Will Newton  <will.newton@linaro.org>
3287
3288         * malloc/Makefile (tests): Add tst-mallopt.
3289         * malloc/tst-mallopt.c: New file.
3290
3291 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3292
3293         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
3294         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
3295
3296 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3297
3298         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
3299         (tst-tlsmod6.so): Likewise.
3300
3301 2014-05-09  Roland McGrath  <roland@hack.frob.com>
3302
3303         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
3304
3305 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
3306
3307         [BZ #16064]
3308         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
3309         and <dl-procinfo.h>.
3310         (__fegetenv): Save SSE state in envp->__eip if supported.
3311         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
3312         envp->__eip if supported.
3313         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
3314         and <dl-procinfo.h>.
3315         (__fesetenv): Always set __eip, __cs_selector, __opcode,
3316         __data_offset and __data_selector in environment to 0.  Set SSE
3317         state if supported.
3318         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
3319         test-fenv-sse.
3320         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
3321         -mfpmath=sse.
3322         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
3323
3324 2014-05-09  Will Newton  <will.newton@linaro.org>
3325
3326         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
3327         and libc_relro_required for ARM.
3328         * sysdeps/arm/preconfigure: Regenerate.
3329
3330 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3331             Stefan Liebler  <stli@linux.vnet.ibm.com>
3332
3333         * config.make.in (enable-lock-elision): New Makefile variable.
3334         * configure.ac: Likewise.
3335         * configure: Regenerate.
3336         * sysdeps/s390/configure.ac:
3337         Add check for gcc transactions support.
3338         * sysdeps/s390/configure: Regenerate.
3339         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
3340         Build elision files if enabled.
3341         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
3342         Add lock elision support for s390.
3343         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
3344         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
3345         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
3346         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
3347         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
3348         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
3349         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
3350         Likewise.
3351         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
3352         Likewise.
3353         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
3354         Likewise.
3355         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
3356         Likewise.
3357         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
3358         (__lll_timedlock_elision, __lll_lock_elision)
3359         (__lll_unlock_elision, __lll_trylock_elision)
3360         (lll_timedlock_elision, lll_lock_elision)
3361         (lll_unlock_elision, lll_trylock_elision): Add.
3362         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3363         (pthread_mutex_t): Add lock elision support for s390.
3364
3365 2014-05-14  Wilco  <wdijkstr@arm.com>
3366
3367         * sysdeps/arm/fclrexcpt.c: Cleanup.
3368         * sysdeps/arm/fedisblxcpt.c: Cleanup.
3369         * sysdeps/arm/feenablxcpt.c: Cleanup.
3370         * sysdeps/arm/fegetenv.c: Cleanup.
3371         * sysdeps/arm/fegetexcept.c: Cleanup.
3372         * sysdeps/arm/fegetround.c: Cleanup.
3373         * sysdeps/arm/feholdexcpt.c: Cleanup.
3374         * sysdeps/arm/fesetenv.c: Cleanup.
3375         * sysdeps/arm/fesetround.c: Cleanup.
3376         * sysdeps/arm/feupdateenv.c: Cleanup.
3377         * sysdeps/arm/fgetexcptflg.c: Cleanup.
3378         * sysdeps/arm/fraiseexcpt.c: Cleanup.
3379         * sysdeps/arm/fsetexcptflg.c: Cleanup.
3380         * sysdeps/arm/ftestexcept.c: Cleanup.
3381         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3382         * sysdeps/arm/setfpucw.c: Cleanup.
3383
3384 2014-05-09  Will Newton  <will.newton@linaro.org>
3385
3386         * sysdeps/arm/armv7/strcmp.S: New file.
3387         * NEWS: Mention addition of ARMv7 optimized strcmp.
3388
3389 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3390
3391         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3392         look for %.ac rather than %.in.
3393
3394         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3395         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3396         * sysdeps/mach/hurd/configure: Regenerated.
3397         * sysdeps/unix/sysv/linux/configure: Regenerated.
3398
3399         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3400
3401 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3402
3403         [BZ# 16922]
3404         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3405         (LONG_SUB): Ditto.
3406         (PTR_SUB): Ditto.
3407
3408 2014-05-07  Andreas Schwab  <schwab@suse.de>
3409
3410         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3411         when skipping over non-matching result from nscd.
3412
3413 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3414
3415         [BZ #16876]
3416         * nptl/sockperf.c (client): Check socket return value.
3417
3418         [BZ #16877]
3419         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3420         nscd security class.
3421
3422 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3423
3424         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3425         * sysdeps/arm/unwind.h: ... here.
3426
3427 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3428
3429         [BZ# 16916]
3430         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3431         Define.
3432
3433 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3434
3435         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3436         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3437         multiarch strncpy for PPC64.
3438         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3439         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3440         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3441         multiarch optimizations.
3442         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3443         (__libc_ifunc_impl_list): Likewise.
3444         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3445         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3446         multiarch stpncpy for PPC64.
3447         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3448         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3449
3450 2014-05-06  Andreas Schwab  <schwab@suse.de>
3451
3452         [BZ #16912]
3453         * gmon/mcount.c (_MCOUNT_DECL): Use
3454         atomic_compare_and_exchange_bool_acq instead of
3455         catomic_compare_and_exchange_bool_acq.
3456
3457 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3458
3459         * elf/Makefile (others, install-bin): Remove pldd.
3460         (pldd-modules): Variable removed.
3461         ($(objpfx)pldd): Target removed.
3462         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3463         (others, install-bin): Append pldd here.
3464         ($(objpfx)pldd): New target.
3465
3466         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3467         to 0, so the first #if test emitted later doesn't see it undefined.
3468         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3469         * sysdeps/gnu/errlist.c: Regenerated.
3470
3471 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3472
3473         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3474         [libc_hidden_builtin_def]: Define to empty value.
3475         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3476         [libc_hidden_builtin_def]: Likewise.
3477         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3478         [libc_hidden_builtin_def]: Likewise.
3479         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3480         [libc_hidden_builtin_def]: Likewise.
3481         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3482         __redirect_memcpy and define ifunc as default hidden symbol.
3483         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3484         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3485
3486 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3487
3488         * locale/iso-4217.def: Reintroduce XDR currency.
3489
3490 2014-05-04  Allan McRae  <allan@archlinux.org>
3491
3492         * po/eo.po: Update Esperanto translation from translation project.
3493
3494 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3495
3496         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3497         and FEATURE_INDEX_MAX to 1.
3498         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3499
3500 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3501
3502         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3503         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3504         * iconvdata/big5.c (ONE_DIRECTION): Define.
3505         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3506         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3507         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3508         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3509         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3510         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3511         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3512         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3513         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3514         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3515         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3516         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3517         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3518         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3519         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3520         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3521         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3522         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3523         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3524         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3525         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3526         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3527         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3528         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3529         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3530         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3531         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3532         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3533         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3534         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3535         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3536         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3537         * iconvdata/johab.c (ONE_DIRECTION): Define.
3538         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3539         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3540         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3541         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3542         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3543         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3544         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3545         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3546         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3547         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3548
3549 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3550
3551         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3552         (_IO_JUMPS_OFFSET): Define to 0.
3553
3554         * nptl/sysdeps/pthread/bits/libc-lock.h
3555         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3556         (__libc_lock_define_initialized_recursive): Always define using
3557         initializer.  Modern compilers treat uninitialized (implicit zero) and
3558         explicit zero initializers the same (i.e. put the datum in bss).
3559
3560 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3561
3562         * nscd/nscd-client.h: Include <string.h>.
3563
3564 2014-05-01  David S. Miller  <davem@davemloft.net>
3565
3566         [BZ #16885]
3567         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3568         multiple zero bytes exist at the end of a string.
3569         Reported by Aurelien Jarno <aurelien@aurel32.net>
3570
3571         * string/test-strcmp.c (check): Add explicit test for situations where
3572         there are multiple zero bytes after the first.
3573
3574 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3575
3576         [BZ #16890]
3577         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3578         when compiling wprintf.
3579         * stdio-common/tstdiomisc.c (t3): New function.
3580         (main): Call it.
3581
3582 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3583
3584         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3585         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3586         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3587         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3588
3589 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3590
3591         * stdlib/longlong.h: Updated from GCC.
3592
3593 2014-05-01  Will Newton  <will.newton@linaro.org>
3594             Bernard Ogden  <bernie.ogden@linaro.org>
3595
3596         * NEWS: Update fixed bug list.
3597
3598         [BZ #15119]
3599         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3600
3601 2014-04-30  David S. Miller  <davem@davemloft.net>
3602
3603         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3604         (libc_feholdexcept_setround_sparc_ctx): New function.
3605         (libc_fesetenv_sparc_ctx): Likewise.
3606         (libc_feupdateenv_sparc_ctx): Likewise.
3607         (libc_feholdsetround_sparc_ctx): Likewise.
3608         (libc_feholdexcept_setround_ctx): Define.
3609         (libc_feholdexcept_setroundf_ctx): Likewise.
3610         (libc_feholdexcept_setroundl_ctx): Likewise.
3611         (libc_fesetenv_ctx): Likewise.
3612         (libc_fesetenvf_ctx): Likewise.
3613         (libc_fesetenvl_ctx): Likewise.
3614         (libc_feupdateenv_ctx): Likewise.
3615         (libc_feupdateenvf_ctx): Likewise.
3616         (libc_feupdateenvl_ctx): Likewise.
3617         (libc_feresetround_ctx): Likewise.
3618         (libc_feresetroundf_ctx): Likewise.
3619         (libc_feresetroundl_ctx): Likewise.
3620         (libc_feholdsetround_ctx): Likewise.
3621         (libc_feholdsetroundf_ctx): Likewise.
3622         (libc_feholdsetroundl_ctx): Likewise.
3623
3624         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3625         with __USE_GNU instead of XOPEN cpp guards.
3626
3627         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3628         0.
3629
3630         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3631         with XOPEN cpp guards.
3632
3633 2014-04-30  Julian Brown  <julian@codesourcery.com>
3634
3635         [BZ #16888]
3636         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3637         handling.
3638
3639 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3640
3641         [BZ #9894]
3642         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3643         Change to 2.6.32.
3644         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3645         * sysdeps/unix/sysv/linux/configure: Regenerated.
3646         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3647         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3648         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3649         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3650         * README: Update reference to required Linux kernel version.
3651         * manual/install.texi (Linux): Update reference to required Linux
3652         kernel headers version.
3653         * INSTALL: Regenerated.
3654
3655         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3656         header inclusion.
3657         [POSIX] (limits.h): Likewise.
3658         [POSIX] (math.h): Likewise.
3659         [POSIX] (sys/wait.h): Likewise.
3660         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3661         function.
3662         [POSIX] (stddef.h): Do not allow header inclusion.
3663
3664 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3665
3666         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3667
3668 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3669
3670         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3671         Return immediately after lll_futex_wake.
3672
3673 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3674
3675         [BZ #16791]
3676         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3677         structure.
3678         (datahead_init_pos): Call datahead_init_common early.
3679         (datahead_init_neg): Likewise.
3680
3681         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3682         datahead_init_neg): New functions.
3683         * nscd/aicache.c (addhstaiX): Use them.
3684         * nscd/grpcache.c (cache_addgr): Likewise.
3685         * nscd/hstcache.c (cache_addhst): Likewise.
3686         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3687         * nscd/netgroupcache.c (do_notfound): Likewise.
3688         (addgetnetgrentX): Likewise.
3689         (addinnetgrX): Likewise.
3690         * nscd/pwdcache.c (cache_addpw): Likewise.
3691         * nscd/servicescache.c (cache_addserv): Likewise.
3692
3693 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3694             Atsushi Onoe  <atsushi@onoe.org>
3695
3696         [BZ #14308]
3697         [BZ #12994]
3698         [BZ #13651]
3699         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3700         one response is valid.
3701         * resolv/res_send.c (send_dg): Check for validity of other
3702         response if the current response is a referral.
3703
3704 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3705
3706         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
3707
3708 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
3709
3710         [BZ #16823]
3711         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
3712         Always divide by positive zero when computing -Inf result.
3713         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
3714         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
3715
3716 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3717
3718         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
3719         FPSCR if value do not change.
3720         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3721         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
3722         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
3723         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3724         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
3725         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
3726         function.
3727
3728 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
3729
3730         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
3731         * sysdeps/unix/sysv/linux/hppa: Move directory from
3732         ports/systeps/unix/sysv/linux/hppa.
3733         * README: Update listing for hppa-*-linux-gnu.
3734
3735 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
3736
3737         [BZ #16754]
3738         * manual/stdio.texi (Hook functions): Fix types of stream hook
3739         functions.
3740         [BZ #16854]
3741         * socket/sys/socket.h: Fix typo in comment.
3742
3743 2014-04-28  Wilco  <wdijkstr@arm.com>
3744
3745         * sysdeps/arm/fenv_private.h: New file.
3746         * sysdeps/arm/math_private.h: New file.
3747         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
3748
3749 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3750
3751         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
3752         with __int128_t.
3753         (La_x86_64_retval): Likewise.
3754
3755 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
3756
3757         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
3758         fpsr if value didn't change.
3759         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
3760         to fpcr if value didn't change.
3761         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
3762         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
3763         fpsr or fpcr if value didn't change.
3764         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
3765         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
3766         fpcr if value didn't change.
3767         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
3768         to fpsr if value didn't change.
3769
3770 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3771
3772         * nptl/tst-sem3.c: Use test-skeleton.c
3773         (main): Rename to do_test.  Use return instead of
3774         exit.
3775         * nptl/tst-sem4.c: Use test-skeleton.c
3776         (main): Rename to do_test.
3777
3778 2014-04-22  David S. Miller  <davem@davemloft.net>
3779
3780         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
3781         (struct sigaction): New struct member __glibc_reserved0, change
3782         type of sa_flags to int.
3783
3784 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
3785
3786         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
3787         (COUNT_LEADING_ZEROS_0): Define for AArch64.
3788
3789 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3790
3791         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
3792         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
3793
3794 2014-04-22  Will Newton  <will.newton@linaro.org>
3795             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
3796
3797         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
3798         (__longjmp): Add longjmp and longjmp_target SystemTap
3799         probes.
3800         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
3801         (__sigsetjmp): Add setjmp SystemTap probe.
3802
3803 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
3804
3805         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
3806         match manual order.
3807
3808 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3809
3810         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
3811
3812         * sysdeps/powerpc/fpu/fenv_private.h
3813         (libc_feholdexcept_setroundl_ctx): Define to
3814         libc_feholdexcept_setround_ppc_ctx.
3815         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
3816         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
3817         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
3818         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
3819
3820 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3821
3822         * sysdeps/aarch64/math-tests.h: New file.
3823
3824 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
3825
3826         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
3827         New.
3828         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3829         Check and set bit_AVX2_Usable.
3830         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
3831         macro.
3832         (bit_AVX2): Likewise.
3833         (index_AVX2_Usable): Likewise.
3834         (CPUID_AVX2): Likewise.
3835         (HAS_AVX2): Likewise.
3836
3837 2014-04-17  Will Newton  <will.newton@linaro.org>
3838
3839         * manual/setjmp.texi (System V contexts): Add note that
3840         calling setcontext on a context created by a call to a
3841         signal handler is undefined.  Update text to note that
3842         setcontext from a signal handler is possible but not
3843         recommended.
3844
3845         [BZ #16629]
3846         * stdlib/tst-setcontext.c: Include signal.h.
3847         (main): Check that the signal stack before and
3848         after swapcontext is the same.
3849
3850         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
3851         Re-implement to restore registers in user code and avoid
3852         rt_sigreturn system call.
3853
3854 2014-04-17  Wilco  <wdijkstr@arm.com>
3855
3856         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
3857         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
3858         * math/test-fenv.c: Skip exception trap tests on targets which only
3859         support non-stop mode.
3860
3861 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3862             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3863
3864         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
3865         (libc_feholdsetround_aarch64_ctx)
3866         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
3867         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
3868         (libc_feresetround_ctx, libc_feresetroundf_ctx)
3869         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
3870         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
3871         (libc_feresetround_noexl_ctx): Define.
3872
3873 2014-04-16  Richard Henderson  <rth@redhat.com>
3874
3875         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
3876
3877         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
3878         unwind tables.
3879
3880         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
3881         const from the non-libc, non-ldso copy.
3882
3883         * sysdeps/alpha/libm-test-ulps: Regenerate.
3884
3885 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
3886             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3887
3888         * sysdeps/aarch64/fpu/math_private.h: New file.
3889
3890 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3891
3892         * sysdeps/aarch64/libm-test-ulps: Regenerate.
3893
3894 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
3895
3896         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
3897         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
3898         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
3899         Intel MPX bound registers before _dl_profile_fixup.
3900         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
3901         registers after _dl_profile_fixup.  Save and restore bound
3902         registers bnd0/bnd1 when calling _dl_call_pltexit.
3903         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
3904         (LR_BND_OFFSET): Likewise.
3905         (LRV_BND0_OFFSET): Likewise.
3906         (LRV_BND1_OFFSET): Likewise.
3907
3908 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3909
3910         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
3911         to...
3912         * sysdeps/mach/hurd/i386/tls.h: ... here.
3913         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
3914         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
3915         fields.
3916
3917 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3918
3919         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
3920
3921 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3922
3923         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
3924
3925 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3926
3927         [BZ #14770]
3928         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
3929         * sysdeps/s390/configure: Regenerate.
3930
3931         [BZ #16824]
3932         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
3933         Set round-to-nearest internally to reduce error accumulation.
3934
3935 2014-04-16  Alan Modra  <amodra@gmail.com>
3936
3937         [BZ #16740]
3938         [BZ #16619]
3939         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
3940         * math/libm-test.inc (frexp_test_data): Add tests.
3941         * NEWS: Update fixed bug list.
3942
3943 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3944
3945         * benchtests/Makefile: Depend on libraries in build directory.
3946         (bench-math): Separate out math tests.
3947         (bench-pthread): Separate out pthread tests.
3948         (bench): Include math and pthread tests.
3949
3950 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
3951
3952         [BZ #16831]
3953         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
3954         _dl_debug_initialize.
3955
3956         * configure.ac: Remove SELinux header check.
3957         * configure: Regenerate.
3958         * nscd/selinux.c (perms): Array of const char* to permission names.
3959         (nscd_request_avc_has_perm): Call security_deny_unknown to find
3960         default policy. Call string_to_security_class and string_to_av_perm to
3961         translate strings. Enforce default policy and call avs_has_perm with
3962         results of translated strings.
3963
3964 2014-04-13  David S. Miller  <davem@davemloft.net>
3965
3966         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3967
3968 2014-04-12  Allan McRae  <allan@archlinux.org>
3969
3970         [BZ #16838]
3971         * manual/string.texi (Collation Functions): Fix qsort argument
3972         order in example.
3973         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3974
3975 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
3976
3977         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
3978         Make the test a no-op if there are no exceptions defined.
3979
3980 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
3981
3982         * elf/Makefile (tests): make tst-dlopen-aout conditional on
3983         enable-hardcoded-path-in-tests
3984
3985 2014-04-11  Will Newton  <will.newton@linaro.org>
3986
3987         * benchtests/Makefile (extra-objs): Add json-lib.o.
3988         (bench-func): Tidy up JSON output.
3989         * benchtests/bench-skeleton.c: Include json-lib.h.
3990         (main): Use JSON library functions to do output of
3991         benchmark results.
3992         * benchtests/bench-timing-type.c (main): Output the
3993         timing type simply, leaving formatting to the user.
3994         * benchtests/json-lib.c: New file.
3995         * benchtests/json-lib.h: Likewise.
3996
3997 2014-04-11  Torvald Riegel  <triegel@redhat.com>
3998
3999         [BZ #15215]
4000         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4001         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4002         memory barriers.  Add comments.
4003         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4004         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4005         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4006         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4007         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4008         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4009
4010 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4011
4012         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4013         * sysdeps/s390/s390-64/configure.ac: ... this ...
4014         * sysdeps/s390/configure.ac: ... to here.
4015         * sysdeps/s390/s390-32/configure: Delete file.
4016         * sysdeps/s390/s390-64/configure: Delete file.
4017         * sysdeps/s390/configure: Regenerate.
4018
4019 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
4020
4021         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
4022
4023 2014-04-11  Will Newton  <will.newton@linaro.org>
4024
4025         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
4026         to zero if it is not defined elsewhere.  (mtrim): Test
4027         the value of MALLOC_DEBUG with #if rather than #ifdef.
4028
4029 2014-04-10 Torvald Riegel  <triegel@redhat.com>
4030
4031         * benchtests/pthread_once-inputs: New file.
4032         * benchtests/pthread_once-source.c: New file.
4033         * benchtests/README: Update documentation.
4034
4035 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
4036             H.J. Lu  <hongjiu.lu@intel.com>
4037
4038         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
4039         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
4040         * sysdeps/x86_64/configure: Regenerated.
4041         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
4042         macro.
4043         (REGISTER_SAVE_RAX): Likewise.
4044         (REGISTER_SAVE_RCX): Likewise.
4045         (REGISTER_SAVE_RDX): Likewise.
4046         (REGISTER_SAVE_RSI): Likewise.
4047         (REGISTER_SAVE_RDI): Likewise.
4048         (REGISTER_SAVE_R8): Likewise.
4049         (REGISTER_SAVE_R9): Likewise.
4050         (REGISTER_SAVE_BND0): Likewise.
4051         (REGISTER_SAVE_BND1): Likewise.
4052         (REGISTER_SAVE_BND2): Likewise.
4053         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
4054         bound registers when calling _dl_fixup.
4055
4056 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4057
4058         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
4059         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
4060         of its definition.
4061         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
4062         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
4063         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
4064         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
4065         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
4066         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
4067         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
4068
4069 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
4070
4071         [BZ #15514]
4072         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
4073         pathconf(_PC_NAME_MAX).
4074
4075 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4076
4077         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
4078         Remove macro usage.
4079         (__PTHREAD_SPINS): Move definition to ...
4080         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4081         (__PTHREAD_SPINS): ... here.
4082         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4083         (__PTHREAD_SPIN): Likewise.
4084         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
4085         (__PTHREAD_SPIN): Likewise.
4086         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
4087         (__PTHREAD_SPIN): Likewise.
4088         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
4089         (__PTHREAD_SPIN): Likewise.
4090         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
4091         (__PTHREAD_SPIN): Likewise.
4092         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
4093         (__PTHREAD_SPIN): Likewise.
4094         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
4095         (__PTHREAD_SPIN): Likewise.
4096         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
4097         (__PTHREAD_SPIN): Likewise.
4098         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
4099         (__PTHREAD_SPIN): Likewise.
4100         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
4101         (__PTHREAD_SPIN): Likewise.
4102         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
4103         (__PTHREAD_SPIN): Likewise.
4104         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
4105         (__PTHREAD_SPIN): Likewise.
4106
4107         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
4108         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
4109         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
4110         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
4111         imply folder.
4112         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
4113         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
4114         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
4115         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
4116         correct imply path.
4117         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
4118         strlen symbol for non multi-arch builds.
4119         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
4120         missing hidden_def and weak_alias.
4121
4122 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
4123
4124         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
4125
4126 2014-04-07  Will Newton  <will.newton@linaro.org>
4127
4128         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
4129         and contents.  [!_LIBC] Remove #ifndef and contents.
4130         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
4131         * string/memccpy.c (__memccpy): Use ANSI prototype.
4132         * string/memfrob.c (memfrob): Likewise.
4133         * string/strcoll.c (STRCOLL): Likewise.
4134         * string/strlen.c (strlen): Likewise.
4135         * string/strtok.c (STRTOK): Likewise.
4136         * string/strcat.c: Remove unused #include of memcopy.h.
4137         (strcat): Use ANSI prototype.
4138         * string/strchr.c: Remove unused #include of memcopy.h.
4139         (strchr): Use ANSI prototype.
4140         * string/strcmp.c: Remove unused #include of memcopy.h.
4141         (strcmp): Use ANSI prototype.
4142         * string/strcpy.c: Remove unused #include of memcopy.h.
4143         (strcpy): Use ANSI prototype.
4144
4145 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4146
4147         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
4148         * config.make.in (config-extra-cppflags): Set it from
4149         libc_extra_cppflags.
4150         * configure.ac (libc_extra_cflags): Make it accumulate over
4151         configure fragments.
4152         (libc_extra_cppflags): New flag.
4153         * configure. Regenerate.
4154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
4155         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
4156         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
4157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
4158
4159         [BZ #16815]
4160         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
4161         result for FE_DOWNWARD rounding mode.
4162         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
4163         Likewise.
4164         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4165
4166 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
4167
4168         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
4169         in function argument name.
4170
4171 2014-04-03  David Svoboda  <svoboda@cert.org>
4172
4173         [BZ #5666]
4174         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
4175         explicitly.
4176
4177 2014-04-03  Roland McGrath  <roland@hack.frob.com>
4178
4179         * elf/dl-unmap-segments.h: New file.
4180         * sysdeps/generic/ldsodefs.h
4181         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
4182         * elf/dl-close.c: Include <dl-unmap-segments.h>.
4183         * elf/dl-fptr.c: Likewise.
4184         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
4185         * sysdeps/aarch64/tlsdesc.c: Likewise.
4186         * sysdeps/arm/tlsdesc.c: Likewise.
4187         * sysdeps/i386/tlsdesc.c: Likewise.
4188         * sysdeps/tile/dl-runtime.c: Likewise.
4189         * sysdeps/x86_64/tlsdesc.c: Likewise.
4190         * elf/dl-load.h: New file.
4191         * elf/dl-load.c: Include it.
4192         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
4193         Macros moved to dl-load.h.
4194         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
4195         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
4196         Use _dl_unmap_segments in place of __munmap.
4197         Break out segment-mapping loop into ...
4198         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
4199
4200 2014-04-03  Will Newton  <will.newton@linaro.org>
4201
4202         * elf/dl-lookup.c (do_lookup_x): Remove comment
4203         referring to nested function and move variable
4204         declarations down to before first use.
4205
4206 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
4207
4208         [BZ #16799]
4209         [BZ #16800]
4210         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
4211         with 0 numerator.
4212         * math/s_catanf.c (__catanf): Likewise.
4213         * math/s_catanh.c (__catanh): Likewise.
4214         * math/s_catanhf.c (__catanhf): Likewise.
4215         * math/s_catanhl.c (__catanhl): Likewise.
4216         * math/s_catanl.c (__catanl): Likewise.
4217         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
4218         by positive zero when computing -Inf result.
4219         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
4220         (catanh_test): Likewise.
4221         * sysdeps/i386/fpu/libm-test-ulps: Update.
4222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4223
4224         [BZ #16789]
4225         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
4226         instead of using underflowing value in computing result.
4227         * math/s_clog10.c (__clog10): Likewise.
4228         * math/s_clog10f.c (__clog10f): Likewise.
4229         * math/s_clog10l.c (__clog10l): Likewise.
4230         * math/s_clogf.c (__clogf): Likewise.
4231         * math/s_clogl.c (__clogl): Likewise.
4232         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
4233         (clog10_test): Likewise.
4234         * sysdeps/i386/fpu/libm-test-ulps: Update.
4235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4236
4237 2014-04-02  Alan Modra  <amodra@gmail.com>
4238
4239         [BZ #16739]
4240         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
4241         output when value is near a power of two.  Use int64_t for lx and
4242         remove casts.  Use decimal rather than hex exponent constants.
4243         Don't use long double multiplication when double will suffice.
4244         * math/libm-test.inc (nextafter_test_data): Add tests.
4245         * NEWS: Add 16739 and 16786 to bug list.
4246
4247         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
4248
4249         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
4250
4251 2014-04-01  Will Newton  <will.newton@linaro.org>
4252
4253         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
4254         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
4255
4256 2014-04-01  Florian Weimer  <fweimer@redhat.com>
4257
4258         [BZ #13347]
4259         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
4260         * nptl/tst-setuid2.c: New file.
4261         * nptl/Makefile (xtests): Add tst-setuid2.
4262
4263 2014-04-01  Alan Modra  <amodra@gmail.com>
4264
4265         [BZ #16786]
4266         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
4267
4268 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4269
4270         [BZ #6803]
4271         [BZ #6804]
4272         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
4273         set errno as appropriate.
4274         * math/w_scalbf.c (__scalbf): Likewise.
4275         * math/w_scalbl.c (__scalbl): Likewise.
4276         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
4277         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
4278         * math/libm-test.inc (scalb_test_data): Add errno expectations.
4279         Add more NaN tests.
4280
4281         [BZ #16349]
4282         * math/w_atan2.c: Include <errno.h>.
4283         (__atan2): Set errno for result underflowing to zero.
4284         * math/w_atan2f.c: Include <errno.h>.
4285         (__atan2f): Set errno for result underflowing to zero.
4286         * math/w_atan2l.c: Include <errno.h>.
4287         (__atan2l): Set errno for result underflowing to zero.
4288         * math/auto-libm-test-in: Don't allow missing errno for some atan2
4289         tests.
4290         * math/auto-libm-test-out: Regenerated.
4291
4292 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4293
4294         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
4295         Encode instruction correctly in little endian.
4296         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
4297         Likewise.
4298         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
4299         Likewise.
4300         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
4301         Likewise.
4302         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
4303         Likewise.
4304
4305 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
4306
4307         [BZ #9894]
4308         * sysdeps/unix/sysv/linux/kernel-features.h
4309         [__sparc__ && !__arch64__ && !__sparc_v9__]
4310         (__ASSUME_SET_ROBUST_LIST): Do not define.
4311         [__sparc__ && !__arch64__ && !__sparc_v9__]
4312         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4313         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
4314         Likewise.
4315         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4316         (__ASSUME_FUTEX_LOCK_PI): Undefine.
4317         (__ASSUME_REQUEUE_PI): Likewise.
4318         (__ASSUME_SET_ROBUST_LIST): Likewise.
4319         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4320         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
4321         Undefine.
4322         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4323         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
4324         Likewise.
4325         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
4326         Likewise.
4327         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
4328         Likewise.
4329         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4330         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
4331         Undefine.
4332         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
4333         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
4334         Likewise.
4335
4336         [BZ #16648]
4337         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4338         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
4339         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
4340
4341 2014-03-31  Will Newton  <will.newton@linaro.org>
4342
4343         * benchtests/Makefile (bench): Add ffs and ffsll to list
4344         of tests.
4345         * benchtests/ffs-inputs: New file.
4346         * benchtests/ffsll-inputs: Likewise.
4347
4348 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
4349
4350         [BZ #16770]
4351         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
4352         too large before casting to int.
4353         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
4354         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
4355         * math/libm-test.inc (scalb_test_data): Add more tests.
4356
4357 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4358
4359         * benchtests/Makefile (DETAILED_OPT): New make option.
4360         (bench-func): Run benchmark program with -d if DETAILED_OPT is
4361         set.
4362         * benchtests/bench-skeleton.c: Include stdbool.h.
4363         (main): Store and print timings per input.
4364         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
4365         member to each argument value.
4366         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
4367         (_print_arg_data): Initialize per-input timing to 0.
4368
4369         * benchtests/Makefile (timing-type): New binary.
4370         (bench-clean): Also remove bench-timing-type.
4371         (bench): New target for timing-type.
4372         (bench-func): Print output in JSON format.
4373         * benchtests/bench-skeleton.c (main): Print output in JSON
4374         format.
4375         * benchtests/bench-timing-type.c: New file.
4376         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
4377         (TIMING_PRINT_STATS): Remove.
4378         * benchtests/scripts/bench.py (_print_arg_data): Store variant
4379         name separately.
4380
4381         * benchtests/bench-modf.c: Remove.
4382         * benchtests/modf-inputs: New inputs file.
4383
4384 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4385
4386         [BZ #16362]
4387         * math/s_clog10.c (M_PI_LOG10E): New macro.
4388         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4389         imaginary parts are 0.
4390         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4391         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4392         imaginary parts are 0.
4393         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4394         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4395         imaginary parts are 0.
4396         * math/libm-test.inc (clog10_test_data): Update expected results
4397         for when real and imaginary parts are 0.
4398
4399 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4400
4401         * elf/dl-load.c: Finish conversion of __builtin_expect into
4402         __glibc_{un}likely.
4403
4404 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4405
4406         [BZ #16348]
4407         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4408         1+x for argument with exponent below -67.
4409         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4410         Likewise.
4411         * math/auto-libm-test-in: Add more tests of exp.
4412         * math/auto-libm-test-out: Regenerated.
4413
4414 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4415
4416         [BZ #16759]
4417         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4418         (nscd_getnetgrent): Use it.
4419
4420         [BZ #16760]
4421         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4422         of stpcpy.
4423
4424 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4425
4426         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4427         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4428         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4429         (lll_robust_unlock): Remove out of line section. Use cfi
4430         intrinsics.
4431         (LLL_STUB_UNWIND_INFO*): Remove.
4432         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4433         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4434         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4435         (lll_robust_unlock): Remove out of line section. Use cfi
4436         intrinsics.
4437         (LLL_STUB_UNWIND_INFO*): Remove.
4438
4439 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4440
4441         [BZ #16758]
4442         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4443         blank values.
4444
4445 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4446
4447         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4448
4449 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4450
4451         [BZ #16198]
4452         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4453         fnstenv.
4454         * math/test-fenv-preserve.c: New file.
4455         * math/Makefile (tests): Add test-fenv-preserve.
4456
4457 2014-03-26  Will Newton <will.newton@linaro.org>
4458
4459         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4460
4461 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4462
4463         * scripts/versionlist.awk: Partition the version sets and emit all
4464         GLIBC_* (sorted) before all others (sorted).
4465
4466 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4467
4468         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4469         GLIBC_2.2.5 version.
4470
4471 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4472
4473         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4474         calls.
4475
4476         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4477         previous change.
4478
4479         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4480
4481 2014-03-25  Andreas Schwab  <schwab@suse.de>
4482
4483         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4484         label to be used after in6ailist is initialized.
4485
4486 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4487
4488         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4489         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4490
4491 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4492
4493         [BZ #16357]
4494         [BZ #16599]
4495         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4496         min_plus_half.
4497         (fp_formats): Update initializers.
4498         (init_fp_formats): Initialize new field.
4499         (output_for_one_input_case): Allow underflow for results up to
4500         min_plus_half.
4501         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4502         * math/auto-libm-test-in: Don't mark some underflows from asin and
4503         atanh as spurious.
4504         * math/auto-libm-test-out: Regenerated.
4505         * sysdeps/i386/fpu/libm-test-ulps: Update.
4506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4507
4508 2014-03-25  Andreas Schwab  <schwab@suse.de>
4509
4510         * libio/Makefile (tst-ftell-partial-wide-ENV)
4511         (tst-ftell-active-handler-ENV): Define.
4512
4513 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4514
4515         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4516
4517 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4518
4519         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4520
4521 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4522
4523         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4524         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4525         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4526
4527 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4528
4529         [BZ #16634]
4530         * elf/dl-load.c (open_verify): Add mode parameter.
4531         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4532         (open_path): Change from boolean 'secure' to complete flag 'mode'
4533         (_dl_map_object): Adjust.
4534         * elf/Makefile (tests): Add tst-dlopen-aout.
4535         * elf/tst-dlopen-aout.c: New test.
4536
4537 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4538
4539         [BZ #16714]
4540         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4541         (struct stat): Rename member pad0 to __glibc_reserved0.
4542
4543         [BZ #16712]
4544         * sysdeps/s390/s390-32/bits/wordsize.h
4545         (__WORDSIZE32_SIZE_ULONG): New define.
4546         * sysdeps/s390/s390-64/bits/wordsize.h
4547         (__WORDSIZE32_SIZE_ULONG): Likewise.
4548         * sysdeps/generic/stdint.h (SIZE_MAX):
4549         Define as UL if __WORDSIZE32_SIZE_ULONG.
4550
4551         [BZ #16713]
4552         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4553         (__glibc_reserved0): New variable.
4554         (sa_flags): Change type to int.
4555
4556         * posix/Makefile (before-compile): Use += before-compile instead
4557         of a :=.
4558
4559         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4560         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4561
4562 2014-03-20  Andreas Schwab  <schwab@suse.de>
4563
4564         [BZ #16743]
4565         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4566         non-matching result from nscd.
4567
4568 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4569
4570         * scripts/bench.py: Moved to ...
4571         * benchtests/scripts/bench.py: ... here.
4572         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4573
4574 2014-03-24  Andreas Schwab  <schwab@suse.de>
4575
4576         [BZ #16002]
4577         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4578         alloca_account and account alloca use for struct in6ailist.
4579
4580 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4581
4582         [BZ #16284]
4583         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4584         rounding mode to recompute results that overflow to infinity or
4585         underflow to zero.
4586         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4587         bug 16284.
4588         * math/auto-libm-test-out: Regenerated.
4589         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4590         (ccosh_test): Likewise.
4591         (csin_test_data): Use plus_oflow.
4592         (csin_test): Use ALL_RM_TEST.
4593         (csinh_test_data): Use plus_oflow.
4594         (csinh_test): Use ALL_RM_TEST.
4595         * sysdeps/i386/fpu/libm-test-ulps: Update.
4596         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4597
4598 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4599
4600         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4601         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4602         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4603
4604         [BZ #16731]
4605         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4606         when x - 1 is zero.
4607         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4608         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4609         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4610         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4611         argument is 1.
4612         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4613         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4614         zero.
4615         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4616         * sysdeps/i386/fpu/libm-test-ulps: Update.
4617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4618
4619 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4620
4621         * scripts/bench.pl: Remove file.
4622         * scripts/bench.py: New benchmark script.
4623         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4624         * benchtests/README: Mention python dependency.
4625         * scripts/pylintrc: New file.
4626         * scripts/pylint: New file.
4627
4628         * bits/mathdef.h: Use #ifdef instead of #if.
4629         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4630         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4631         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4632         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4633         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4634         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4635
4636 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4637             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4638
4639         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4640         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4641         and strpbrk-ppc64 objects.
4642         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4643         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4644         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4645         multiarch strpbrk for POWER7.
4646         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4647         multiarch strpbrk for PPC64.
4648         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4649         ifunc selector.
4650         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4651         strpbrk for POWER7.
4652
4653 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4654
4655         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4656         (atan_test): Likewise.
4657         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4658         (atanh_test): Use ALL_RM_TEST.
4659         (atan2_test_data): Likewise.
4660         (cabs_test): Likewise.
4661         (cacosh_test): Likewise.
4662         (carg_test): Likewise.
4663         (casin_test): Likewise.
4664         (casinh_test): Likewise.
4665         (cbrt_test): Likewise.
4666         (csqrt_test): Likewise.
4667         (erf_test): Likewise.
4668         (erfc_test): Likewise.
4669         (pow10_test): Likewise.
4670         (exp2_test): Likewise.
4671         (hypot_test): Likewise.
4672         (j0_test): Likewise.
4673         (j1_test): Likewise.
4674         (lgamma_test): Likewise.
4675         (gamma_test): Likewise.
4676         (sincos_test): Likewise.
4677         (tanh_test): Likewise.
4678         (y0_test): Likewise.
4679         (y1_test): Likewise.
4680         * sysdeps/i386/fpu/libm-test-ulps: Update.
4681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4682
4683 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4684
4685         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4686         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4687         and strcspn-ppc64 objects.
4688         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4689         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4690         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4691         multiarch strcspn for POWER7.
4692         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4693         multiarch strcspn for PPC64.
4694         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4695         ifunc selector.
4696         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4697         strcspn for POWER7.
4698
4699 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4700
4701         * math/gen-libm-test.pl (generate_testfile): Expect only function
4702         name as argument to AUTO_TESTS_* and pass results for all rounding
4703         modes to parse_args.
4704         (parse_auto_input): Separate inputs of automatic tests from
4705         outputs before storing in %auto_tests.
4706         * math/libm-test.inc (acos_test_data): Update call to
4707         AUTO_TESTS_f_f.
4708         (acos_test): Use ALL_RM_TEST.
4709         (acos_tonearest_test_data): Remove.
4710         (acos_test_tonearest): Likewise.
4711         (acos_towardzero_test_data): Likewise.
4712         (acos_test_towardzero): Likewise.
4713         (acos_downward_test_data): Likewise.
4714         (acos_test_downward): Likewise.
4715         (acos_upward_test_data): Likewise.
4716         (acos_test_upward): Likewise.
4717         (acosh_test_data): Update call to AUTO_TESTS_f_f.
4718         (asin_test_data): Likewise.
4719         (asin_test): Use ALL_RM_TEST.
4720         (asin_tonearest_test_data): Remove.
4721         (asin_test_tonearest): Likewise.
4722         (asin_towardzero_test_data): Likewise.
4723         (asin_test_towardzero): Likewise.
4724         (asin_downward_test_data): Likewise.
4725         (asin_test_downward): Likewise.
4726         (asin_upward_test_data): Likewise.
4727         (asin_test_upward): Likewise.
4728         (asinh_test_data): Update call to AUTO_TESTS_f_f.
4729         (atan_test_data): Likewise.
4730         (atanh_test_data): Likewise.
4731         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
4732         (cabs_test_data): Update call to AUTO_TESTS_c_f.
4733         (carg_test_data): Likewise.
4734         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
4735         (ccos_test_data): Update call to AUTO_TESTS_c_c.
4736         (ccosh_test_data): Likewise.
4737         (cexp_test_data): Likewise.
4738         (clog_test_data): Likewise.
4739         (clog10_test_data): Likewise.
4740         (cos_test_data): Update call to AUTO_TESTS_f_f.
4741         (cos_test): Use ALL_RM_TEST.
4742         (cos_tonearest_test_data): Remove.
4743         (cos_test_tonearest): Likewise.
4744         (cos_towardzero_test_data): Likewise.
4745         (cos_test_towardzero): Likewise.
4746         (cos_downward_test_data): Likewise.
4747         (cos_test_downward): Likewise.
4748         (cos_upward_test_data): Likewise.
4749         (cos_test_upward): Likewise.
4750         (cosh_test_data): Update call to AUTO_TESTS_f_f.
4751         (cosh_test): Use ALL_RM_TEST.
4752         (cosh_tonearest_test_data): Remove.
4753         (cosh_test_tonearest): Likewise.
4754         (cosh_towardzero_test_data): Likewise.
4755         (cosh_test_towardzero): Likewise.
4756         (cosh_downward_test_data): Likewise.
4757         (cosh_test_downward): Likewise.
4758         (cosh_upward_test_data): Likewise.
4759         (cosh_test_upward): Likewise.
4760         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
4761         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
4762         (ctan_test_data): Likewise.
4763         (ctan_test): Use ALL_RM_TEST.
4764         (ctan_tonearest_test_data): Remove.
4765         (ctan_test_tonearest): Likewise.
4766         (ctan_towardzero_test_data): Likewise.
4767         (ctan_test_towardzero): Likewise.
4768         (ctan_downward_test_data): Likewise.
4769         (ctan_test_downward): Likewise.
4770         (ctan_upward_test_data): Likewise.
4771         (ctan_test_upward): Likewise.
4772         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
4773         (ctanh_test): Use ALL_RM_TEST.
4774         (ctanh_tonearest_test_data): Remove.
4775         (ctanh_test_tonearest): Likewise.
4776         (ctanh_towardzero_test_data): Likewise.
4777         (ctanh_test_towardzero): Likewise.
4778         (ctanh_downward_test_data): Likewise.
4779         (ctanh_test_downward): Likewise.
4780         (ctanh_upward_test_data): Likewise.
4781         (ctanh_test_upward): Likewise.
4782         (erf_test_data): Update call to AUTO_TESTS_f_f.
4783         (erfc_test_data): Likewise.
4784         (exp_test_data): Likewise.
4785         (exp_test): Use ALL_RM_TEST.
4786         (exp_tonearest_test_data): Remove.
4787         (exp_test_tonearest): Likewise.
4788         (exp_towardzero_test_data): Likewise.
4789         (exp_test_towardzero): Likewise.
4790         (exp_downward_test_data): Likewise.
4791         (exp_test_downward): Likewise.
4792         (exp_upward_test_data): Likewise.
4793         (exp_test_upward): Likewise.
4794         (exp10_test_data): Update call to AUTO_TESTS_f_f.
4795         (exp10_test): Use ALL_RM_TEST.
4796         (exp10_tonearest_test_data): Remove.
4797         (exp10_test_tonearest): Likewise.
4798         (exp10_towardzero_test_data): Likewise.
4799         (exp10_test_towardzero): Likewise.
4800         (exp10_downward_test_data): Likewise.
4801         (exp10_test_downward): Likewise.
4802         (exp10_upward_test_data): Likewise.
4803         (exp10_test_upward): Likewise.
4804         (exp2_test_data): Update call to AUTO_TESTS_f_f.
4805         (expm1_test_data): Likewise.
4806         (expm1_test): Use ALL_RM_TEST.
4807         (expm1_tonearest_test_data): Remove.
4808         (expm1_test_tonearest): Likewise.
4809         (expm1_towardzero_test_data): Likewise.
4810         (expm1_test_towardzero): Likewise.
4811         (expm1_downward_test_data): Likewise.
4812         (expm1_test_downward): Likewise.
4813         (expm1_upward_test_data): Likewise.
4814         (expm1_test_upward): Likewise.
4815         (fma_test_data): Update call to AUTO_TESTS_fff_f.
4816         (fma_test): Use ALL_RM_TEST.
4817         (fma_towardzero_test_data): Remove.
4818         (fma_test_towardzero): Likewise.
4819         (fma_downward_test_data): Likewise.
4820         (fma_test_downward): Likewise.
4821         (fma_upward_test_data): Likewise.
4822         (fma_test_upward): Likewise.
4823         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
4824         (j0_test_data): Update call to AUTO_TESTS_f_f.
4825         (j1_test_data): Likewise.
4826         (jn_test_data): Update call to AUTO_TESTS_if_f.
4827         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
4828         (log_test_data): Update call to AUTO_TESTS_f_f.
4829         (log10_test_data): Likewise.
4830         (log1p_test_data): Likewise.
4831         (log2_test_data): Likewise.
4832         (pow_test_data): Update call to AUTO_TESTS_ff_f.
4833         (pow_tonearest_test_data): Likewise.
4834         (sin_test_data): Update call to AUTO_TESTS_f_f.
4835         (sin_test): Use ALL_RM_TEST.
4836         (sin_tonearest_test_data): Remove.
4837         (sin_test_tonearest): Likewise.
4838         (sin_towardzero_test_data): Likewise.
4839         (sin_test_towardzero): Likewise.
4840         (sin_downward_test_data): Likewise.
4841         (sin_test_downward): Likewise.
4842         (sin_upward_test_data): Likewise.
4843         (sin_test_upward): Likewise.
4844         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
4845         (sinh_test_data): Update call to AUTO_TESTS_f_f.
4846         (sinh_test): Use ALL_RM_TEST.
4847         (sinh_tonearest_test_data): Remove.
4848         (sinh_test_tonearest): Likewise.
4849         (sinh_towardzero_test_data): Likewise.
4850         (sinh_test_towardzero): Likewise.
4851         (sinh_downward_test_data): Likewise.
4852         (sinh_test_downward): Likewise.
4853         (sinh_upward_test_data): Likewise.
4854         (sinh_test_upward): Likewise.
4855         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
4856         (sqrt_test): Use ALL_RM_TEST.
4857         (sqrt_tonearest_test_data): Remove.
4858         (sqrt_test_tonearest): Likewise.
4859         (sqrt_towardzero_test_data): Likewise.
4860         (sqrt_test_towardzero): Likewise.
4861         (sqrt_downward_test_data): Likewise.
4862         (sqrt_test_downward): Likewise.
4863         (sqrt_upward_test_data): Likewise.
4864         (sqrt_test_upward): Likewise.
4865         (tan_test_data): Update call to AUTO_TESTS_f_f.
4866         (tan_test): Use ALL_RM_TEST.
4867         (tan_tonearest_test_data): Remove.
4868         (tan_test_tonearest): Likewise.
4869         (tan_towardzero_test_data): Likewise.
4870         (tan_test_towardzero): Likewise.
4871         (tan_downward_test_data): Likewise.
4872         (tan_test_downward): Likewise.
4873         (tan_upward_test_data): Likewise.
4874         (tan_test_upward): Likewise.
4875         (tanh_test_data): Update call to AUTO_TESTS_f_f.
4876         (tgamma_test_data): Likewise.
4877         (y0_test_data): Likewise.
4878         (y1_test_data): Likewise.
4879         (yn_test_data): Update call to AUTO_TESTS_if_f.
4880         (main): Do not call removed functions.
4881
4882 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4883
4884         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
4885         (ldexp_test_data): Remove.
4886         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
4887         scalbn_test_data.
4888         (scalb_test): Use ALL_RM_TEST.
4889
4890 2014-03-19  Andreas Schwab  <schwab@suse.de>
4891
4892         * nscd/nscd.service: Also invalidate netgroup cache on reload.
4893
4894 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4895
4896         [BZ #16649]
4897         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4898         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
4899         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
4900         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4901         (__ASSUME_PREADV): Undefine.
4902         (__ASSUME_PWRITEV): Likewise.
4903
4904 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4905
4906         * bits/mman-linux.h: Add comment about non-Linux use.
4907         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
4908         bits/mman-linux.h resting place.
4909
4910         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
4911         * bits/mman-linux.h: ... here.
4912
4913 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4914
4915         * conform/conformtest.pl: Add standard definition when calling C
4916         preprocessor on data files.
4917         (checknamespace): Remove unused variable.
4918
4919 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4920
4921         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
4922         minus_oflow, plus_uflow and minus_uflow in expected results.
4923         * math/libm-test.inc (scalbn_test_data): Add more tests of
4924         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
4925         minus_uflow.
4926         (scalbn_test): Use ALL_RM_TEST.
4927         (scalbln_test_data): Add more tests of negative arguments.  Use
4928         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
4929         (scalbln_test): Use ALL_RM_TEST.
4930
4931 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4932
4933         * scripts/abilist.awk: Ignore symbols marked with .hidden.
4934
4935 2014-03-18  Will Newton  <will.newton@linaro.org>
4936
4937         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
4938         inaccurate comment.
4939
4940 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4941
4942         * Makerules [!subdir] (check-abi): Exit with error status if a
4943         test failed.
4944
4945 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4946
4947         * math/libm-test.inc (nearbyint_test_data): Include all tests used
4948         for rint.  Include results for all rounding modes.
4949         (nearbyint_test): Use ALL_RM_TEST.
4950         (rint_test_data): Include all tests used for nearbyint.
4951
4952 2014-03-17  Will Newton  <will.newton@linaro.org>
4953
4954         * nptl/sysdeps/pthread/pthread.h: Revert previous
4955         change.
4956
4957         * sysdeps/generic/ldsodefs.h: Revert previous
4958         change.
4959
4960         * libio/genops.c: Revert previous change.
4961         * libio/libioP.h: Likewise.
4962         * stdio-common/vfprintf.c: Likewise.
4963
4964         * sysdeps/generic/math_private.h: Revert previous
4965         change.
4966
4967         * sysdeps/generic/math_private.h: Check whether
4968         HAVE_RM_CTX is defined with #ifdef rather
4969         than #if.
4970
4971         * argp/argp-fmtstream.h: Check whether
4972         __STRICT_ANSI__ is defined with #ifdef rather
4973         than #if.
4974         * argp/argp.h: Likewise.
4975
4976         * libio/genops.c: Check whether
4977         _IO_JUMPS_OFFSET is defined with #ifdef rather
4978         than #if.
4979         * libio/libioP.h: Likewise.
4980         * stdio-common/vfprintf.c: Likewise.
4981
4982         * sysdeps/generic/ldsodefs.h: Check whether
4983         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
4984         than #if.
4985
4986         * nptl/sysdeps/pthread/pthread.h: Check
4987         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
4988         its value.
4989
4990 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4991
4992         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
4993         setting O_APPEND.
4994         * libio/tst-ftell-active-handler.c (do_append_test): Add a
4995         test case.
4996
4997         [BZ #16680]
4998         * libio/fileops.c (_IO_file_open): Seek to end of file but
4999         don't cache the offset.
5000         (get_file_offset): Remove function.
5001         (do_ftell): Use cached offset when available.
5002         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5003         don't cache the offset.
5004         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5005         case.
5006         (do_one_test): Call it.
5007         (do_ftell_test): Fix up expected old offset for a+ mode.
5008         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5009         available.
5010
5011         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5012         up test status with function return status.
5013         (do_write_test): Likewise.
5014         (do_append_test): Likewise.
5015
5016         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
5017         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
5018         Remove.
5019
5020 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5021
5022         * math/gen-libm-test.pl (parse_args): Handle results specified for
5023         each rounding mode separately.
5024         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
5025         tests and results from lrint_tonearest_test_data,
5026         lrint_towardzero_test_data, lrint_downward_test_data and
5027         lrint_upward_test_data.
5028         (lrint_test): Use ALL_RM_TEST.
5029         (lrint_tonearest_test_data): Remove.
5030         (lrint_test_tonearest): Likewise.
5031         (lrint_towardzero_test_data): Likewise.
5032         (lrint_test_towardzero): Likewise.
5033         (lrint_downward_test_data): Likewise.
5034         (lrint_test_downward): Likewise.
5035         (lrint_upward_test_data): Likewise.
5036         (lrint_test_upward): Likewise.
5037         (llrint_test_data): Merge in per-rounding-mode tests and results
5038         from llrint_tonearest_test_data, llrint_towardzero_test_data,
5039         llrint_downward_test_data and llrint_upward_test_data.
5040         (llrint_test): Use ALL_RM_TEST.
5041         (llrint_tonearest_test_data): Remove.
5042         (llrint_test_tonearest): Likewise.
5043         (llrint_towardzero_test_data): Likewise.
5044         (llrint_test_towardzero): Likewise.
5045         (llrint_downward_test_data): Likewise.
5046         (llrint_test_downward): Likewise.
5047         (llrint_upward_test_data): Likewise.
5048         (llrint_test_upward): Likewise.
5049         (rint_test_data): Merge in per-rounding-mode tests and results
5050         from rint_tonearest_test_data, rint_towardzero_test_data,
5051         rint_downward_test_data and rint_upward_test_data.  Add
5052         per-rounding-mode results for tests not in those arrays.
5053         (rint_test): Use ALL_RM_TEST.
5054         (rint_tonearest_test_data): Remove.
5055         (rint_test_tonearest): Likewise.
5056         (rint_towardzero_test_data): Likewise.
5057         (rint_test_towardzero): Likewise.
5058         (rint_downward_test_data): Likewise.
5059         (rint_test_downward): Likewise.
5060         (rint_upward_test_data): Likewise.
5061         (rint_test_upward): Likewise.
5062         (main): Don't call removed functions.
5063
5064 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5065
5066         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
5067         "Compiled on ..." crapola.  It is anti-useful.
5068
5069 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
5070
5071         * scripts/evaluate-test.sh: Handle fourth argument to determine
5072         whether test run should stop on failure.
5073         * Makeconfig (stop-on-test-failure): New variable.
5074         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
5075         $(stop-on-test-failure).
5076         * Makefile (tests): Give a summary of results from testing and
5077         exit with failure status if they include an ERROR or FAIL.
5078         (xtests): Likewise.
5079         * manual/install.texi (Configuring and compiling): Mention
5080         stop-on-test-failure=y.
5081         * INSTALL: Regenerated.
5082
5083 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5084
5085         * scripts/versionlist.awk: New file.
5086         * Makerules [$(build-shared) = yes]
5087         (postclean-generated): Add Versions.def, not Versions.def.v and
5088         Versions.def.v.i.
5089         ($(common-objpfx)Versions.def.v.i): Target removed.
5090         ($(common-objpfx)Versions.def): New target.
5091         ($(common-objpfx)Versions.all): Depend on that rather that
5092         $(common-objpfx)Versions.def.v.
5093         * Versions.def: File removed.
5094
5095         * Makeconfig (+gccwarn): Add -Wundef.
5096         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
5097         a dl-sysdep.h breaking its contract.
5098         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
5099         * include/stackinfo.h: New file.
5100         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
5101         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
5102         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
5103         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
5104         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
5105         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
5106         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5107         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5108         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5109         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5110         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5111         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
5112         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5113         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5114         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
5115
5116 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5117
5118         [BZ #16707]
5119         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
5120         implementation.
5121         * math/libm-test.inc (round_test_data): Add more tests.
5122
5123         [BZ #16706]
5124         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
5125         implementation.
5126         * math/libm-test.inc (nearbyint_test_data): Add more tests.
5127
5128         [BZ #16701]
5129         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
5130         implementation.
5131         * math/libm-test.inc (ceil_test_data): Add more tests.
5132
5133         * math/libm-test.inc (trunc_test_data): Add more tests related to
5134         BZ#16414.
5135
5136 2014-03-14  Roland McGrath  <roland@hack.frob.com>
5137
5138         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
5139         with #if rather than #ifdef.
5140         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
5141
5142 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
5143
5144         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
5145         first.  Disable AVX-512 GCC support if assembler doesn't support
5146         it.
5147         * sysdeps/x86_64/configure: Regenerated.
5148
5149 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
5150
5151         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
5152         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
5153         (__old_pthread_attr_setstack): Likewise.
5154         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
5155         [!_STACK_GROWS_DOWN]: Likewise.
5156
5157 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
5158
5159         * config.make.in (have-bash2): Delete.
5160         * configure.ac (libc_cv_have_bash2): Delete.
5161         * configure: Regenerate.
5162         * elf/Makefile (common-ldd-rewrite): Rename to ...
5163         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
5164         (sh-ldd-rewrite): Delete.
5165         (bash-ldd-rewrite): Delete.
5166         (have-bash2): Delete checks.
5167         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
5168         ldd-rewrite.
5169
5170         * config.make.in (have-ksh): Delete.
5171         (KSH): Delete.
5172         * configure.ac (libc_cv_have_ksh): Delete.
5173         * configure: Regenerate.
5174
5175         * elf/Makefile: Delete $(have-ksh) check.
5176         ($(objpfx)sotruss): Change KSH to BASH.
5177         * elf/sotruss.ksh: Rename to ...
5178         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
5179         function style to match POSIX.  Drop ksh vim mode setting.
5180
5181         * manual/time.texi (Specifying the Time Zone with TZ): Change
5182         Tuesday to Thursday.
5183
5184         * debug/tst-longjmp_chk2.c: Update header comment.
5185         (stackoverflow_handler): Add comment.  Call assert on pass value.
5186
5187 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
5188
5189         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
5190         (HAVE_AVX512_ASM_SUPPORT): Likewise.
5191         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
5192         (La_x86_64_vector): Add zmm.
5193         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
5194         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
5195         ($(objpfx)tst-audit10): New target.
5196         ($(objpfx)tst-audit10.out): Likewise.
5197         (tst-audit10-ENV): New.
5198         (AVX512-CFLAGS): Likewise.
5199         (CFLAGS-tst-audit10.c): Likewise.
5200         (CFLAGS-tst-auditmod10a.c): Likewise.
5201         (CFLAGS-tst-auditmod10b.c): Likewise.
5202         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
5203         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
5204         * sysdeps/x86_64/configure: Regenerated.
5205         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
5206         AVX-512 zmm register support.
5207         (_dl_x86_64_save_sse): Likewise.
5208         (_dl_x86_64_restore_sse): Likewise.
5209         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
5210         size vector registers.
5211         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
5212         (ZMM_SIZE): Likewise.
5213         * sysdeps/x86_64/tst-audit10.c: New file.
5214         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
5215         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
5216
5217 2014-03-13  Roland McGrath  <roland@hack.frob.com>
5218
5219         * configure.ac (HAVE_EHDR_START): New check.
5220         * configure: Regenerated.
5221         * config.h.in (HAVE_EHDR_START): New #undef.
5222         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
5223         assuming the lowest-addressed segment maps the start of the file.
5224
5225 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
5226
5227         * INSTALL: Regenerated.
5228
5229 2014-03-13  Will Newton  <will.newton@linaro.org>
5230
5231         * manual/setjmp.texi (System V contexts): Improve
5232         clarity and grammar of documentation.
5233
5234 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
5235
5236         [BZ #16381]
5237         * elf/Makefile (tests): Add tst-pie2.
5238         (tests-pie): Add tst-pie2.
5239         * elf/tst-pie2.c: New file.
5240         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
5241         for ET_EXEC.
5242         * elf/rtld.c (map_doit): Load executable as lt_executable.
5243         (dl_main): Likewise.
5244
5245 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
5246
5247         [BZ #16642]
5248         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5249         (__ASSUME_PSELECT): Undefine.
5250
5251 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5252
5253         [BZ #16689]
5254         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
5255         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
5256         static build.
5257         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
5258         selector for static builds.
5259
5260 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5261
5262         [BZ #16695]
5263         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
5264         key in the buffer.
5265
5266 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5267
5268         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
5269         IFUNC selector for static builds.
5270
5271 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
5272
5273         * sysdeps/mips/math_private.h [__mips_hard_float]
5274         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
5275         libc_feresetround_mips_ctx.
5276         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
5277         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
5278         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
5279
5280         [BZ #16677]
5281         * math/s_nextafter.c (__nextafter): Do not return value from
5282         overflowing computation.
5283         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
5284         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
5285         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
5286         Likewise.
5287         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5288         Likewise.
5289         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
5290         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
5291
5292 2014-03-11  Roland McGrath  <roland@hack.frob.com>
5293
5294         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
5295         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
5296         Move sfi_sp use from the load-multiple (that no longer sets sp) to
5297         the new mov targetting sp.
5298
5299 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5300
5301         [BZ #16683]
5302         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
5303         Define it for static builds as well.
5304         (NO_BZERO_IMPL): Likewise.
5305
5306 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5307
5308         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
5309         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
5310         multiarch strspn for PPC64.
5311         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
5312         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
5313         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5314         (__libc_ifunc_impl_list): Likewise.
5315         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
5316         multiarch optimizations
5317         * string/strspn.c (strspn): Using macro to redefine symbol name.
5318
5319 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5320             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5321
5322         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
5323         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
5324         multiarch strncat for PPC64.
5325         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
5326         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
5327         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5328         (__libc_ifunc_impl_list): Likewise.
5329         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
5330         multiarch optimizations
5331
5332 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5333
5334         [BZ #16639]
5335         * nscd/nscd.service: Make service type forking.
5336
5337 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5338
5339         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
5340         sign in non default rounding modes.
5341         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
5342
5343 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
5344
5345         * math/libm-test.inc (ALL_RM_TEST): New macro.
5346         (ceil_test): Use ALL_RM_TEST.
5347         (cimag_test): Likewise.
5348         (conj_test): Likewise.
5349         (copysign_test): Likewise.
5350         (cproj_test): Likewise.
5351         (creal_test): Likewise.
5352         (fabs_test): Likewise.
5353         (floor_test): Likewise.
5354         (fmax_test): Likewise.
5355         (fmin_test): Likewise.
5356         (fmod_test): Likewise.
5357         (fpclassify_test): Likewise.
5358         (frexp_test): Likewise.
5359         (ilogb_test): Likewise.
5360         (isfinite_test): Likewise.
5361         (finite_test): Likewise.
5362         (isgreater_test): Likewise.
5363         (isgreaterequal_test): Likewise.
5364         (isinf_test): Likewise.
5365         (isless_test): Likewise.
5366         (islessequal_test): Likewise.
5367         (islessgreater_test): Likewise.
5368         (isnan_test): Likewise.
5369         (isnormal_test): Likewise.
5370         (issignaling_test): Likewise.
5371         (isunordered_test): Likewise.
5372         (logb_test): Likewise.
5373         (logb_downward_test_data): Remove.
5374         (logb_test_downward): Likewise.
5375         (lround_test): Use ALL_RM_TEST.
5376         (llround_test): Likewise.
5377         (modf_test): Likewise.
5378         (nexttoward_test): Likewise.
5379         (remainder_test): Likewise.
5380         (drem_test): Likewise.
5381         (remainder_tonearest_test_data): Likewise.
5382         (remainder_test_tonearest): Likewise.
5383         (drem_test_tonearest): Likewise.
5384         (remainder_towardzero_test_data): Likewise.
5385         (remainder_test_towardzero): Likewise.
5386         (drem_test_towardzero): Likewise.
5387         (remainder_downward_test_data): Likewise.
5388         (remainder_test_downward): Likewise.
5389         (drem_test_downward): Likewise.
5390         (remainder_upward_test_data): Likewise.
5391         (remainder_test_upward): Likewise.
5392         (drem_test_upward): Likewise.
5393         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5394         (round_test): Use ALL_RM_TEST.
5395         (signbit_test): Likewise.
5396         (trunc_test): Likewise.
5397         (significand_test): Likewise.
5398         (main): Don't call removed functions.
5399
5400 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5401
5402         [BZ #16674]
5403         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5404         || __USE_XOPEN2K8].
5405         (ILL_ILLOPN): Likewise.
5406         (ILL_ILLADR): Likewise.
5407         (ILL_ILLTRP): Likewise.
5408         (ILL_PRVOPC): Likewise.
5409         (ILL_PRVREG): Likewise.
5410         (ILL_COPROC): Likewise.
5411         (ILL_BADSTK): Likewise.
5412         (FPE_INTDIV): Likewise.
5413         (FPE_INTOVF): Likewise.
5414         (FPE_FLTDIV): Likewise.
5415         (FPE_FLTOVF): Likewise.
5416         (FPE_FLTUND): Likewise.
5417         (FPE_FLTRES): Likewise.
5418         (FPE_FLTINV): Likewise.
5419         (FPE_FLTSUB): Likewise.
5420         (SEGV_MAPERR): Likewise.
5421         (SEGV_ACCERR): Likewise.
5422         (BUS_ADRALN): Likewise.
5423         (BUS_ADRERR): Likewise.
5424         (BUS_OBJERR): Likewise.
5425         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5426         (TRAP_TRACE): Likewise.
5427         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5428         __USE_XOPEN2K8].
5429         (CLD_KILLED): Likewise.
5430         (CLD_DUMPED): Likewise.
5431         (CLD_TRAPPED): Likewise.
5432         (CLD_STOPPED): Likewise.
5433         (CLD_CONTINUED): Likewise.
5434         (POLL_IN): Likewise.
5435         (POLL_OUT): Likewise.
5436         (POLL_MSG): Likewise.
5437         (POLL_ERR): Likewise.
5438         (POLL_PRI): Likewise.
5439         (POLL_HUP): Likewise.
5440         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5441         Likewise.
5442         (ILL_ILLOPN): Likewise.
5443         (ILL_ILLADR): Likewise.
5444         (ILL_ILLTRP): Likewise.
5445         (ILL_PRVOPC): Likewise.
5446         (ILL_PRVREG): Likewise.
5447         (ILL_COPROC): Likewise.
5448         (ILL_BADSTK): Likewise.
5449         (FPE_INTDIV): Likewise.
5450         (FPE_INTOVF): Likewise.
5451         (FPE_FLTDIV): Likewise.
5452         (FPE_FLTOVF): Likewise.
5453         (FPE_FLTUND): Likewise.
5454         (FPE_FLTRES): Likewise.
5455         (FPE_FLTINV): Likewise.
5456         (FPE_FLTSUB): Likewise.
5457         (SEGV_MAPERR): Likewise.
5458         (SEGV_ACCERR): Likewise.
5459         (BUS_ADRALN): Likewise.
5460         (BUS_ADRERR): Likewise.
5461         (BUS_OBJERR): Likewise.
5462         (BUS_MCEERR_AR): Likewise.
5463         (BUS_MCEERR_AO): Likewise.
5464         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5465         (TRAP_TRACE): Likewise.
5466         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5467         __USE_XOPEN2K8].
5468         (CLD_KILLED): Likewise.
5469         (CLD_DUMPED): Likewise.
5470         (CLD_TRAPPED): Likewise.
5471         (CLD_STOPPED): Likewise.
5472         (CLD_CONTINUED): Likewise.
5473         (POLL_IN): Likewise.
5474         (POLL_OUT): Likewise.
5475         (POLL_MSG): Likewise.
5476         (POLL_ERR): Likewise.
5477         (POLL_PRI): Likewise.
5478         (POLL_HUP): Likewise.
5479         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5480         (ILL_ILLOPN): Likewise.
5481         (ILL_ILLADR): Likewise.
5482         (ILL_ILLTRP): Likewise.
5483         (ILL_PRVOPC): Likewise.
5484         (ILL_PRVREG): Likewise.
5485         (ILL_COPROC): Likewise.
5486         (ILL_BADSTK): Likewise.
5487         (FPE_INTDIV): Likewise.
5488         (FPE_INTOVF): Likewise.
5489         (FPE_FLTDIV): Likewise.
5490         (FPE_FLTOVF): Likewise.
5491         (FPE_FLTUND): Likewise.
5492         (FPE_FLTRES): Likewise.
5493         (FPE_FLTINV): Likewise.
5494         (FPE_FLTSUB): Likewise.
5495         (SEGV_MAPERR): Likewise.
5496         (SEGV_ACCERR): Likewise.
5497         (BUS_ADRALN): Likewise.
5498         (BUS_ADRERR): Likewise.
5499         (BUS_OBJERR): Likewise.
5500         (BUS_MCEERR_AR): Likewise.
5501         (BUS_MCEERR_AO): Likewise.
5502         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5503         (TRAP_TRACE): Likewise.
5504         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5505         __USE_XOPEN2K8].
5506         (CLD_KILLED): Likewise.
5507         (CLD_DUMPED): Likewise.
5508         (CLD_TRAPPED): Likewise.
5509         (CLD_STOPPED): Likewise.
5510         (CLD_CONTINUED): Likewise.
5511         (POLL_IN): Likewise.
5512         (POLL_OUT): Likewise.
5513         (POLL_MSG): Likewise.
5514         (POLL_ERR): Likewise.
5515         (POLL_PRI): Likewise.
5516         (POLL_HUP): Likewise.
5517         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5518         Likewise.
5519         (ILL_ILLOPN): Likewise.
5520         (ILL_ILLADR): Likewise.
5521         (ILL_ILLTRP): Likewise.
5522         (ILL_PRVOPC): Likewise.
5523         (ILL_PRVREG): Likewise.
5524         (ILL_COPROC): Likewise.
5525         (ILL_BADSTK): Likewise.
5526         (ILL_BADIADDR): Likewise.
5527         (ILL_BREAK): Likewise.
5528         (FPE_INTDIV): Likewise.
5529         (FPE_INTOVF): Likewise.
5530         (FPE_FLTDIV): Likewise.
5531         (FPE_FLTOVF): Likewise.
5532         (FPE_FLTUND): Likewise.
5533         (FPE_FLTRES): Likewise.
5534         (FPE_FLTINV): Likewise.
5535         (FPE_FLTSUB): Likewise.
5536         (FPE_DECOVF): Likewise.
5537         (FPE_DECDIV): Likewise.
5538         (FPE_DECERR): Likewise.
5539         (FPE_INVASC): Likewise.
5540         (FPE_INVDEC): Likewise.
5541         (SEGV_MAPERR): Likewise.
5542         (SEGV_ACCERR): Likewise.
5543         (SEGV_PSTKOVF): Likewise.
5544         (BUS_ADRALN): Likewise.
5545         (BUS_ADRERR): Likewise.
5546         (BUS_OBJERR): Likewise.
5547         (BUS_MCEERR_AR): Likewise.
5548         (BUS_MCEERR_AO): Likewise.
5549         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5550         (TRAP_TRACE): Likewise.
5551         (TRAP_BRANCH): Likewise.
5552         (TRAP_HWBKPT): Likewise.
5553         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5554         __USE_XOPEN2K8].
5555         (CLD_KILLED): Likewise.
5556         (CLD_DUMPED): Likewise.
5557         (CLD_TRAPPED): Likewise.
5558         (CLD_STOPPED): Likewise.
5559         (CLD_CONTINUED): Likewise.
5560         (POLL_IN): Likewise.
5561         (POLL_OUT): Likewise.
5562         (POLL_MSG): Likewise.
5563         (POLL_ERR): Likewise.
5564         (POLL_PRI): Likewise.
5565         (POLL_HUP): Likewise.
5566         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5567         (ILL_ILLOPN): Likewise.
5568         (ILL_ILLADR): Likewise.
5569         (ILL_ILLTRP): Likewise.
5570         (ILL_PRVOPC): Likewise.
5571         (ILL_PRVREG): Likewise.
5572         (ILL_COPROC): Likewise.
5573         (ILL_BADSTK): Likewise.
5574         (FPE_INTDIV): Likewise.
5575         (FPE_INTOVF): Likewise.
5576         (FPE_FLTDIV): Likewise.
5577         (FPE_FLTOVF): Likewise.
5578         (FPE_FLTUND): Likewise.
5579         (FPE_FLTRES): Likewise.
5580         (FPE_FLTINV): Likewise.
5581         (FPE_FLTSUB): Likewise.
5582         (SEGV_MAPERR): Likewise.
5583         (SEGV_ACCERR): Likewise.
5584         (BUS_ADRALN): Likewise.
5585         (BUS_ADRERR): Likewise.
5586         (BUS_OBJERR): Likewise.
5587         (BUS_MCEERR_AR): Likewise.
5588         (BUS_MCEERR_AO): Likewise.
5589         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5590         (TRAP_TRACE): Likewise.
5591         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5592         __USE_XOPEN2K8].
5593         (CLD_KILLED): Likewise.
5594         (CLD_DUMPED): Likewise.
5595         (CLD_TRAPPED): Likewise.
5596         (CLD_STOPPED): Likewise.
5597         (CLD_CONTINUED): Likewise.
5598         (POLL_IN): Likewise.
5599         (POLL_OUT): Likewise.
5600         (POLL_MSG): Likewise.
5601         (POLL_ERR): Likewise.
5602         (POLL_PRI): Likewise.
5603         (POLL_HUP): Likewise.
5604         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5605         (ILL_ILLOPN): Likewise.
5606         (ILL_ILLADR): Likewise.
5607         (ILL_ILLTRP): Likewise.
5608         (ILL_PRVOPC): Likewise.
5609         (ILL_PRVREG): Likewise.
5610         (ILL_COPROC): Likewise.
5611         (ILL_BADSTK): Likewise.
5612         (FPE_INTDIV): Likewise.
5613         (FPE_INTOVF): Likewise.
5614         (FPE_FLTDIV): Likewise.
5615         (FPE_FLTOVF): Likewise.
5616         (FPE_FLTUND): Likewise.
5617         (FPE_FLTRES): Likewise.
5618         (FPE_FLTINV): Likewise.
5619         (FPE_FLTSUB): Likewise.
5620         (SEGV_MAPERR): Likewise.
5621         (SEGV_ACCERR): Likewise.
5622         (BUS_ADRALN): Likewise.
5623         (BUS_ADRERR): Likewise.
5624         (BUS_OBJERR): Likewise.
5625         (BUS_MCEERR_AR): Likewise.
5626         (BUS_MCEERR_AO): Likewise.
5627         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5628         (TRAP_TRACE): Likewise.
5629         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5630         __USE_XOPEN2K8].
5631         (CLD_KILLED): Likewise.
5632         (CLD_DUMPED): Likewise.
5633         (CLD_TRAPPED): Likewise.
5634         (CLD_STOPPED): Likewise.
5635         (CLD_CONTINUED): Likewise.
5636         (POLL_IN): Likewise.
5637         (POLL_OUT): Likewise.
5638         (POLL_MSG): Likewise.
5639         (POLL_ERR): Likewise.
5640         (POLL_PRI): Likewise.
5641         (POLL_HUP): Likewise.
5642         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5643         (ILL_ILLOPN): Likewise.
5644         (ILL_ILLADR): Likewise.
5645         (ILL_ILLTRP): Likewise.
5646         (ILL_PRVOPC): Likewise.
5647         (ILL_PRVREG): Likewise.
5648         (ILL_COPROC): Likewise.
5649         (ILL_BADSTK): Likewise.
5650         (FPE_INTDIV): Likewise.
5651         (FPE_INTOVF): Likewise.
5652         (FPE_FLTDIV): Likewise.
5653         (FPE_FLTOVF): Likewise.
5654         (FPE_FLTUND): Likewise.
5655         (FPE_FLTRES): Likewise.
5656         (FPE_FLTINV): Likewise.
5657         (FPE_FLTSUB): Likewise.
5658         (SEGV_MAPERR): Likewise.
5659         (SEGV_ACCERR): Likewise.
5660         (BUS_ADRALN): Likewise.
5661         (BUS_ADRERR): Likewise.
5662         (BUS_OBJERR): Likewise.
5663         (BUS_MCEERR_AR): Likewise.
5664         (BUS_MCEERR_AO): Likewise.
5665         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5666         (TRAP_TRACE): Likewise.
5667         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5668         __USE_XOPEN2K8].
5669         (CLD_KILLED): Likewise.
5670         (CLD_DUMPED): Likewise.
5671         (CLD_TRAPPED): Likewise.
5672         (CLD_STOPPED): Likewise.
5673         (CLD_CONTINUED): Likewise.
5674         (POLL_IN): Likewise.
5675         (POLL_OUT): Likewise.
5676         (POLL_MSG): Likewise.
5677         (POLL_ERR): Likewise.
5678         (POLL_PRI): Likewise.
5679         (POLL_HUP): Likewise.
5680         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5681         (ILL_ILLOPN): Likewise.
5682         (ILL_ILLADR): Likewise.
5683         (ILL_ILLTRP): Likewise.
5684         (ILL_PRVOPC): Likewise.
5685         (ILL_PRVREG): Likewise.
5686         (ILL_COPROC): Likewise.
5687         (ILL_BADSTK): Likewise.
5688         (ILL_DBLFLT): Likewise.
5689         (ILL_HARDWALL): Likewise.
5690         (FPE_INTDIV): Likewise.
5691         (FPE_INTOVF): Likewise.
5692         (FPE_FLTDIV): Likewise.
5693         (FPE_FLTOVF): Likewise.
5694         (FPE_FLTUND): Likewise.
5695         (FPE_FLTRES): Likewise.
5696         (FPE_FLTINV): Likewise.
5697         (FPE_FLTSUB): Likewise.
5698         (SEGV_MAPERR): Likewise.
5699         (SEGV_ACCERR): Likewise.
5700         (BUS_ADRALN): Likewise.
5701         (BUS_ADRERR): Likewise.
5702         (BUS_OBJERR): Likewise.
5703         (BUS_MCEERR_AR): Likewise.
5704         (BUS_MCEERR_AO): Likewise.
5705         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5706         (TRAP_TRACE): Likewise.
5707         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5708         __USE_XOPEN2K8].
5709         (CLD_KILLED): Likewise.
5710         (CLD_DUMPED): Likewise.
5711         (CLD_TRAPPED): Likewise.
5712         (CLD_STOPPED): Likewise.
5713         (CLD_CONTINUED): Likewise.
5714         (POLL_IN): Likewise.
5715         (POLL_OUT): Likewise.
5716         (POLL_MSG): Likewise.
5717         (POLL_ERR): Likewise.
5718         (POLL_PRI): Likewise.
5719         (POLL_HUP): Likewise.
5720         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
5721         (ILL_ILLOPN): Likewise.
5722         (ILL_ILLADR): Likewise.
5723         (ILL_ILLTRP): Likewise.
5724         (ILL_PRVOPC): Likewise.
5725         (ILL_PRVREG): Likewise.
5726         (ILL_COPROC): Likewise.
5727         (ILL_BADSTK): Likewise.
5728         (FPE_INTDIV): Likewise.
5729         (FPE_INTOVF): Likewise.
5730         (FPE_FLTDIV): Likewise.
5731         (FPE_FLTOVF): Likewise.
5732         (FPE_FLTUND): Likewise.
5733         (FPE_FLTRES): Likewise.
5734         (FPE_FLTINV): Likewise.
5735         (FPE_FLTSUB): Likewise.
5736         (SEGV_MAPERR): Likewise.
5737         (SEGV_ACCERR): Likewise.
5738         (BUS_ADRALN): Likewise.
5739         (BUS_ADRERR): Likewise.
5740         (BUS_OBJERR): Likewise.
5741         (BUS_MCEERR_AR): Likewise.
5742         (BUS_MCEERR_AO): Likewise.
5743         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5744         (TRAP_TRACE): Likewise.
5745         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5746         __USE_XOPEN2K8].
5747         (CLD_KILLED): Likewise.
5748         (CLD_DUMPED): Likewise.
5749         (CLD_TRAPPED): Likewise.
5750         (CLD_STOPPED): Likewise.
5751         (CLD_CONTINUED): Likewise.
5752         (POLL_IN): Likewise.
5753         (POLL_OUT): Likewise.
5754         (POLL_MSG): Likewise.
5755         (POLL_ERR): Likewise.
5756         (POLL_PRI): Likewise.
5757         (POLL_HUP): Likewise.
5758         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
5759         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5760
5761         [BZ #16670]
5762         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
5763         before #include of <time.h>.
5764         [!__USE_XOPEN2K] (__need_timespec): Likewise.
5765         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
5766         (test-xfail-UNIX98/sched.h/conform): Likewise.
5767
5768 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5769
5770         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
5771         error absence of trapping exception support.
5772         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
5773
5774 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5775
5776         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
5777         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
5778         * timezone/Makefile (testdata): Move definition above include of
5779         Rules.
5780         (test-zones): New variable.
5781         (tests-special): Add zone files.
5782         (build-testdata): Use $(evaluate-test).
5783
5784         * elf/Makefile (tests-special): Rename tests to end with .out.
5785         ($(objpfx)noload-mem): Likewise.
5786         ($(objpfx)tst-leaks1-mem): Likewise.
5787         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
5788         * iconv/Makefile (xtests-special): Change test-iconvconfig to
5789         $(objpfx)test-iconvconfig.out.
5790         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
5791         set -e inside subshell and redirect output to file.
5792         * iconvdata/Makefile (generated): Rename tests to end with .out.
5793         Correct type.
5794         (tests-special): Rename tests to end with .out.
5795         ($(objpfx)mtrace-tst-loading): Likewise.
5796         * intl/Makefile (generated): Likewise.
5797         (tests-special): Likewise.
5798         ($(objpfx)mtrace-tst-gettext): Likewise.
5799         * misc/Makefile (generated): Likewise.
5800         (tests-special): Likewise.
5801         ($(objpfx)tst-error1-mem): Likewise.
5802         * nptl/Makefile (tests-special): Likewise.
5803         ($(objpfx)tst-stack3-mem): Likewise.
5804         (generated): Likewise.
5805         * posix/Makefile (generated): Likewise.
5806         (tests-special): Likewise.
5807         (xtests-special): Likewise.
5808         ($(objpfx)tst-fnmatch-mem): Likewise.
5809         ($(objpfx)bug-regex2-mem): Likewise.
5810         ($(objpfx)bug-regex14-mem): Likewise.
5811         ($(objpfx)bug-regex21-mem): Likewise.
5812         ($(objpfx)bug-regex31-mem): Likewise.
5813         ($(objpfx)tst-vfork3-mem): Likewise.
5814         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
5815         ($(objpfx)tst-pcre-mem): Likewise.
5816         ($(objpfx)tst-boost-mem): Likewise.
5817         ($(objpfx)bug-ga2-mem): Likewise.
5818         ($(objpfx)bug-glob2-mem): Likewise.
5819         * resolv/Makefile (generate): Likewise.
5820         (tests-special): Likewise.
5821         (xtests-special): Likewise.
5822         (generated): Likewise.
5823         ($(objpfx)mtrace-tst-leaks): Likewise.
5824         ($(objpfx)mtrace-tst-leaks2): Likewise.
5825
5826         * scripts/merge-test-results.sh: New file.
5827         * Makefile (tests-special-notdir): New variable.
5828         (tests): Run merge-test-results.sh.
5829         (xtests): Likewise.
5830         * Rules (tests-special-notdir): New variable.
5831         (xtests-special-notdir): Likewise.
5832         (tests): Run merge-test-results.sh
5833         (xtests): Likewise.
5834
5835         * Makeconfig (test-xfail-name): New variable.
5836         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
5837         compute variable name for expected failures.
5838         * conform/Makefile (conformtest-headers-data): New variable.
5839         (conformtest-standards): Likewise.
5840         (conformtest-headers-ISO): Likewise.
5841         (conformtest-headers-ISO99): Likewise.
5842         (conformtest-headers-ISO11): Likewise.
5843         (conformtest-headers-POSIX): Likewise.
5844         (conformtest-headers-XPG3): Likewise.
5845         (conformtest-headers-XPG4): Likewise.
5846         (conformtest-headers-UNIX98): Likewise.
5847         (conformtest-headers-XOPEN2K): Likewise.
5848         (conformtest-headers-POSIX2008): Likewise.
5849         (conformtest-headers-XOPEN2K8): Likewise.
5850         (conformtest-header-list-base): Likewise.
5851         (conformtest-header-list-tests): Likewise.
5852         (conformtest-header-base): Likewise.
5853         (conformtest-header-tests): Likewise.
5854         (tests-special): Add $(conformtest-header-list-tests).  If
5855         [$(fast-check) && !$(cross-compiling)], add
5856         $(conformtest-header-tests) instead of
5857         $(objpfx)run-conformtest.out.
5858         (generated): Add $(conformtest-header-list-base).  If
5859         [$(fast-check) && !$(cross-compiling)], add
5860         $(conformtest-header-base).  Remove previous setting.
5861         ($(conformtest-header-list-tests)): New target.
5862         (test-xfail-run-conformtest): Remove variable.
5863         ($(objpfx)run-conformtest.out): Remove target.
5864         (test-xfail-ISO11/complex.h/conform): New variable.
5865         (test-xfail-ISO11/stdalign.h/conform): Likewise.
5866         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
5867         (test-xfail-XPG3/varargs.h/conform): Likewise.
5868         (test-xfail-XPG4/varargs.h/conform): Likewise.
5869         (test-xfail-UNIX98/varargs.h/conform): Likewise.
5870         (test-xfail-XPG4/ndbm.h/conform): Likewise.
5871         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
5872         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
5873         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
5874         (test-xfail-XPG3/fcntl.h/conform): Likewise.
5875         (test-xfail-XPG3/ftw.h/conform): Likewise.
5876         (test-xfail-XPG3/grp.h/conform): Likewise.
5877         (test-xfail-XPG3/langinfo.h/conform): Likewise.
5878         (test-xfail-XPG3/limits.h/conform): Likewise.
5879         (test-xfail-XPG3/pwd.h/conform): Likewise.
5880         (test-xfail-XPG3/search.h/conform): Likewise.
5881         (test-xfail-XPG3/signal.h/conform): Likewise.
5882         (test-xfail-XPG3/stdio.h/conform): Likewise.
5883         (test-xfail-XPG3/stdlib.h/conform): Likewise.
5884         (test-xfail-XPG3/string.h/conform): Likewise.
5885         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
5886         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
5887         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
5888         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
5889         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
5890         (test-xfail-XPG3/sys/types.h/conform): Likewise.
5891         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
5892         (test-xfail-XPG3/termios.h/conform): Likewise.
5893         (test-xfail-XPG3/time.h/conform): Likewise.
5894         (test-xfail-XPG3/unistd.h/conform): Likewise.
5895         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
5896         (test-xfail-XPG4/fcntl.h/conform): Likewise.
5897         (test-xfail-XPG4/langinfo.h/conform): Likewise.
5898         (test-xfail-XPG4/netdb.h/conform): Likewise.
5899         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
5900         (test-xfail-XPG4/signal.h/conform): Likewise.
5901         (test-xfail-XPG4/stdio.h/conform): Likewise.
5902         (test-xfail-XPG4/stdlib.h/conform): Likewise.
5903         (test-xfail-XPG4/stropts.h/conform): Likewise.
5904         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
5905         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
5906         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
5907         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
5908         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
5909         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
5910         (test-xfail-XPG4/sys/time.h/conform): Likewise.
5911         (test-xfail-XPG4/sys/types.h/conform): Likewise.
5912         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
5913         (test-xfail-XPG4/termios.h/conform): Likewise.
5914         (test-xfail-XPG4/ucontext.h/conform): Likewise.
5915         (test-xfail-XPG4/unistd.h/conform): Likewise.
5916         (test-xfail-XPG4/utmpx.h/conform): Likewise.
5917         (test-xfail-POSIX/sched.h/conform): Likewise.
5918         (test-xfail-POSIX/signal.h/conform): Likewise.
5919         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5920         (test-xfail-POSIX/tar.h/conform): Likewise.
5921         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
5922         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
5923         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
5924         (test-xfail-UNIX98/netdb.h/conform): Likewise.
5925         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
5926         (test-xfail-UNIX98/sched.h/conform): Likewise.
5927         (test-xfail-UNIX98/signal.h/conform): Likewise.
5928         (test-xfail-UNIX98/stdio.h/conform): Likewise.
5929         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
5930         (test-xfail-UNIX98/stropts.h/conform): Likewise.
5931         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
5932         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
5933         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
5934         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
5935         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
5936         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
5937         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5938         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5939         (test-xfail-UNIX98/unistd.h/conform): Likewise.
5940         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
5941         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
5942         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
5943         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
5944         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
5945         (test-xfail-XOPEN2K/math.h/conform): Likewise.
5946         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
5947         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
5948         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
5949         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
5950         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5951         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
5952         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
5953         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
5954         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
5955         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
5956         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
5957         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
5958         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
5959         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5960         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
5961         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
5962         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5963         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
5964         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
5965         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
5966         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
5967         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
5968         (test-xfail-POSIX2008/signal.h/conform): Likewise.
5969         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
5970         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
5971         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5972         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
5973         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
5974         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
5975         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
5976         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
5977         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
5978         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5979         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
5980         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
5981         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
5982         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
5983         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
5984         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
5985         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
5986         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
5987         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
5988         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5989         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
5990         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
5991         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
5992         (conformtest-cc-flags): Likewise.
5993         ($(conformtest-header-tests): New target.
5994         * conform/check-header-lists.sh: New file.
5995         * conform/run-conformtest.sh: Remove.
5996
5997         * conform/conformtest.pl: Allow ' and \ in values given for
5998         constants.
5999         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6000         inclusion.
6001         [POSIX] (sys/types.h): Likewise.
6002         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6003         inclusion.
6004         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6005         inclusion.
6006         * conform/data/signal.h-data (SIGIO): Remove expectation.
6007         [XPG3] (SIGBUS): Do not expect.
6008         [POSIX || XPG3] (SIGPOLL): Likewise.
6009         [POSIX || XPG3] (SIGPROF): Likewise.
6010         [POSIX || XPG3] (SIGSYS): Likewise.
6011         [XPG3] (SIGTRAP): Likewise.
6012         [POSIX || XPG3] (SIGURG): Likewise.
6013         [POSIX || XPG3] (SIGVTALRM): Likewise.
6014         [POSIX || XPG3] (SIGXCPU): Likewise.
6015         [POSIX || XPG3] (SIGXFSZ): Likewise.
6016         [POSIX] (SA_SIGINFO): Expect.
6017         [XPG3] (siginfo_t): Do not expect type or contents.
6018         [POSIX] (si_pid): Do not expect element.
6019         [POSIX] (si_uid): Likewise.
6020         [POSIX] (si_addr): Likewise.
6021         [POSIX] (si_status): Likewise.
6022         [POSIX] (si_band): Likewise.
6023         [XPG4] (si_value): Likewise.
6024         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
6025         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
6026         [POSIX || XPG3] (ILL_ILLADR): Likewise.
6027         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
6028         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
6029         [POSIX || XPG3] (ILL_PRVREG): Likewise.
6030         [POSIX || XPG3] (ILL_COPROC): Likewise.
6031         [POSIX || XPG3] (ILL_BADSTK): Likewise.
6032         [POSIX || XPG3] (FPE_INTDIV): Likewise.
6033         [POSIX || XPG3] (FPE_INTOVF): Likewise.
6034         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
6035         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
6036         [POSIX || XPG3] (FPE_FLTUND): Likewise.
6037         [POSIX || XPG3] (FPE_FLTRES): Likewise.
6038         [POSIX || XPG3] (FPE_FLTINV): Likewise.
6039         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
6040         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
6041         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
6042         [POSIX || XPG3] (BUS_ADRALN): Likewise.
6043         [POSIX || XPG3] (BUS_ADRERR): Likewise.
6044         [POSIX || XPG3] (BUS_OBJERR): Likewise.
6045         [POSIX || XPG3] (CLD_EXITED): Likewise.
6046         [POSIX || XPG3] (CLD_KILLED): Likewise.
6047         [POSIX || XPG3] (CLD_DUMPED): Likewise.
6048         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
6049         [POSIX || XPG3] (CLD_STOPPED): Likewise.
6050         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
6051         [POSIX || XPG3] (POLL_IN): Likewise.
6052         [POSIX || XPG3] (POLL_OUT): Likewise.
6053         [POSIX || XPG3] (POLL_MSG): Likewise.
6054         [POSIX || XPG3] (POLL_ERR): Likewise.
6055         [POSIX || XPG3] (POLL_PRI): Likewise.
6056         [POSIX || XPG3] (POLL_HUP): Likewise.
6057         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
6058         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
6059         (SIG*): Do not allow.
6060         [XPG3] (si_*): Likewise.
6061         [XPG3] (SI_*): Likewise.
6062         [XPG3 || XPG4] (sigev_*): Likewise.
6063         [XPG3 || XPG4] (SIGEV_*): Likewise.
6064         [XPG3 || XPG4] (sival_*): Likewise.
6065         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
6066         [POSIX || XPG3] (BUS_*): Likewise.
6067         [POSIX || XPG3] (CLD_*): Likewise.
6068         [POSIX || XPG3] (FPE_*): Likewise.
6069         [POSIX || XPG3] (ILL_*): Likewise.
6070         [POSIX || XPG3] (POLL_*): Likewise.
6071         [POSIX || XPG3] (SEGV_*): Likewise.
6072         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
6073         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
6074         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
6075         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
6076         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
6077         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
6078         Specify type and value.
6079         (TVERSLEN): Likewise.
6080         (REGTYPE): Likewise.
6081         (AREGTYPE): Likewise.
6082         (LNKTYPE): Likewise.
6083         (SYMTYPE): Likewise.
6084         (CHRTYPE): Likewise.
6085         (BLKTYPE): Likewise.
6086         (DIRTYPE): Likewise.
6087         (FIFOTYPE): Likewise.
6088         (CONTTYPE): Likewise.
6089         (TSUID): Likewise.
6090         (TSGID): Likewise.
6091         (TSVTX): Likewise.
6092         (TUREAD): Likewise.
6093         (TUWRITE): Likewise.
6094         (TUEXEC): Likewise.
6095         (TGREAD): Likewise.
6096         (TGWRITE): Likewise.
6097         (TGEXEC): Likewise.
6098         (TOREAD): Likewise.
6099         (TOWRITE): Likewise.
6100         (TOEXEC): Likewise.
6101         [POSIX] (TSVTX): Expect constant.
6102
6103 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
6104
6105         * Makefile (tests): Change dependencies to ....
6106         (tests-special): ... additions to this variable.
6107         (tests): Depend on $(tests-special).
6108         * Makerules (check-abi-list): New variable.
6109         (check-abi): Depend on $(check-abi-list).
6110         [$(subdir) = elf] (tests-special): Add
6111         $(objpfx)check-abi-libc.out.
6112         [$(build-shared) = yes && subdir] (tests-special): Add
6113         $(check-abi-list).
6114         [$(build-shared) = yes && subdir] (tests): Do not depend on
6115         check-abi.
6116         * Rules (tests): Depend on $(tests-special).
6117         (xtests): Depend on $(xtests-special).
6118         * catgets/Makefile (tests): Change dependencies to ....
6119         (tests-special): ... additions to this variable.
6120         * conform/Makefile (tests): Change dependencies to ....
6121         (tests-special): ... additions to this variable.
6122         * elf/Makefile (tests): Change dependencies to ....
6123         (tests-special): ... additions to this variable.
6124         * grp/Makefile (tests): Change dependencies to ....
6125         (tests-special): ... additions to this variable.
6126         * iconv/Makefile (xtests): Change dependencies to ....
6127         (xtests-special): ... additions to this variable.
6128         * iconvdata/Makefile (tests): Change dependencies to ....
6129         (tests-special): ... additions to this variable.
6130         * intl/Makefile (tests): Change dependencies to ....
6131         (tests-special): ... additions to this variable.  Also add
6132         $(objpfx)tst-gettext.out.
6133         * io/Makefile (tests): Change dependencies to ....
6134         (tests-special): ... additions to this variable.
6135         * libio/Makefile (tests): Change dependencies to ....
6136         (tests-special): ... additions to this variable.
6137         * malloc/Makefile (tests): Change dependencies to ....
6138         (tests-special): ... additions to this variable.
6139         * misc/Makefile (tests): Change dependencies to ....
6140         (tests-special): ... additions to this variable.
6141         * nptl/Makefile (tests): Change dependencies to ....
6142         (tests-special): ... additions to this variable.
6143         * nptl_db/Makefile (tests): Change dependencies to ....
6144         (tests-special): ... additions to this variable.
6145         * posix/Makefile (tests): Change dependencies to ....
6146         (tests-special): ... additions to this variable.
6147         (xtests): Change dependencies to ....
6148         (xtests-special): ... additions to this variable.
6149         * resolv/Makefile (tests): Change dependencies to ....
6150         (tests-special): ... additions to this variable.
6151         (xtests): Change dependencies to ....
6152         (xtests-special): ... additions to this variable.
6153         * stdio-common/Makefile (tests): Change dependencies to ....
6154         (tests-special): ... additions to this variable.
6155         (do-tst-unbputc): Remove target.
6156         (do-tst-printf): Likewise.
6157         * stdlib/Makefile (tests): Change dependencies to ....
6158         (tests-special): ... additions to this variable.
6159         * string/Makefile (tests): Change dependencies to ....
6160         (tests-special): ... additions to this variable.
6161         * sysdeps/x86/Makefile (tests): Change dependencies to ....
6162         (tests-special): ... additions to this variable.
6163
6164         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
6165         whole file.
6166         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
6167         whole file.
6168         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
6169         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
6170
6171         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
6172         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
6173         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
6174         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
6175         * conform/data/libgen.h-data [XPG3]: Likewise.
6176         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
6177         * conform/data/ndbm.h-data [XPG3]: Likewise.
6178         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6179         * conform/data/netdb.h-data [XPG3]: Likewise.
6180         * conform/data/netinet/in.h-data [XPG3]: Likewise.
6181         * conform/data/poll.h-data [XPG3]: Likewise.
6182         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
6183         * conform/data/strings.h-data [XPG3]: Likewise.
6184         * conform/data/stropts.h-data [XPG3]: Likewise.
6185         * conform/data/sys/mman.h-data [XPG3]: Likewise.
6186         * conform/data/sys/resource.h-data [XPG3]: Likewise.
6187         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
6188         Likewise.
6189         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
6190         * conform/data/sys/time.h-data [XPG3]: Likewise.
6191         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
6192         * conform/data/sys/uio.h-data [XPG3]: Likewise.
6193         * conform/data/sys/un.h-data [XPG3]: Likewise.
6194         * conform/data/syslog.h-data [XPG3]: Likewise.
6195         * conform/data/ucontext.h-data [XPG3]: Likewise.
6196         * conform/data/utmpx.h-data [XPG3]: Likewise.
6197         * conform/data/varargs.h-data [UNIX98]: Enable file.
6198
6199         * manual/Makefile (INSTALL_INFO): Remove variable setting.
6200
6201         * math/libm-test.inc (struct test_f_f_data): Move expected results
6202         into structure for each rounding mode.
6203         (struct test_ff_f_data): Likewise.
6204         (struct test_ff_f_data_nexttoward): Likewise.
6205         (struct test_fi_f_data): Likewise.
6206         (struct test_fl_f_data): Likewise.
6207         (struct test_if_f_data): Likewise.
6208         (struct test_fff_f_data): Likewise.
6209         (struct test_c_f_data): Likewise.
6210         (struct test_f_f1_data): Likewise.
6211         (struct test_fF_f1_data): Likewise.
6212         (struct test_ffI_f1_data): Likewise.
6213         (struct test_c_c_data): Likewise.
6214         (struct test_cc_c_data): Likewise.
6215         (struct test_f_i_data): Likewise.
6216         (struct test_ff_i_data): Likewise.
6217         (struct test_f_l_data): Likewise.
6218         (struct test_f_L_data): Likewise.
6219         (struct test_fFF_11_data): Likewise.
6220         (RM_): New macro.
6221         (RM_FE_DOWNWARD): Likewise.
6222         (RM_FE_TONEAREST): Likewise.
6223         (RM_FE_TOWARDZERO): Likewise.
6224         (RM_FE_UPWARD): Likewise.
6225         (RUN_TEST_LOOP_f_f): Update references to expected results.
6226         (RUN_TEST_LOOP_2_f): Likewise.
6227         (RUN_TEST_LOOP_fff_f): Likewise.
6228         (RUN_TEST_LOOP_c_f): Likewise.
6229         (RUN_TEST_LOOP_f_f1): Likewise.
6230         (RUN_TEST_LOOP_fF_f1): Likewise.
6231         (RUN_TEST_LOOP_fI_f1): Likewise.
6232         (RUN_TEST_LOOP_ffI_f1): Likewise.
6233         (RUN_TEST_LOOP_c_c): Likewise.
6234         (RUN_TEST_LOOP_cc_c): Likewise.
6235         (RUN_TEST_LOOP_f_i): Likewise.
6236         (RUN_TEST_LOOP_f_i_tg): Likewise.
6237         (RUN_TEST_LOOP_ff_i_tg): Likewise.
6238         (RUN_TEST_LOOP_f_b): Likewise.
6239         (RUN_TEST_LOOP_f_b_tg): Likewise.
6240         (RUN_TEST_LOOP_f_l): Likewise.
6241         (RUN_TEST_LOOP_f_L): Likewise.
6242         (RUN_TEST_LOOP_fFF_11): Likewise.
6243         * math/gen-libm-test.pl (parse_args): Output four copies of
6244         expected results for each test.
6245
6246         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6247         (__ASSUME_UTIMES): Remove.
6248         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6249         (__ASSUME_UTIMES): Likewise.
6250
6251         * math/gen-auto-libm-tests.c: Update comment on output format.
6252         (output_for_one_input_case): Generate before-rounding and
6253         after-rounding information as conditions on output flags not
6254         floating-point format.
6255         * math/auto-libm-test-out: Regenerated.
6256         * math/gen-libm-test.pl (cond_value): New function.
6257         (or_cond_value): Use cond_value.
6258         (generate_testfile): Handle conditional exceptions.
6259
6260 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
6261
6262         * math/libm-test.inc (max_valid_error): New variable.
6263         (init_max_error): Take new argument specifying whether function
6264         results are exactly determined.  Set max_valid_error and bound
6265         other variables for errors based on this argument.
6266         (set_max_error): Do not record results above max_valid_error.
6267         (check_float_internal): Only accept errors of up to 0.5ulps if
6268         also at most max_valid_error.
6269         (START): Take new argument EXACT and pass it to init_max_error.
6270         (acos_test): Update call to START.
6271         (acos_test_tonearest): Likewise.
6272         (acos_test_towardzero): Likewise.
6273         (acos_test_downward): Likewise.
6274         (acos_test_upward): Likewise.
6275         (acosh_test): Likewise.
6276         (asin_test): Likewise.
6277         (asin_test_tonearest): Likewise.
6278         (asin_test_towardzero): Likewise.
6279         (asin_test_downward): Likewise.
6280         (asin_test_upward): Likewise.
6281         (asinh_test): Likewise.
6282         (atan_test): Likewise.
6283         (atanh_test): Likewise.
6284         (atan2_test): Likewise.
6285         (cabs_test): Likewise.
6286         (cacos_test): Likewise.
6287         (cacosh_test): Likewise.
6288         (carg_test): Likewise.
6289         (casin_test): Likewise.
6290         (casinh_test): Likewise.
6291         (catan_test): Likewise.
6292         (catanh_test): Likewise.
6293         (cbrt_test): Likewise.
6294         (ccos_test): Likewise.
6295         (ccosh_test): Likewise.
6296         (ceil_test): Likewise.
6297         (cexp_test): Likewise.
6298         (cimag_test): Likewise.
6299         (clog_test): Likewise.
6300         (clog10_test): Likewise.
6301         (conj_test): Likewise.
6302         (copysign_test): Likewise.
6303         (cos_test): Likewise.
6304         (cos_test_tonearest): Likewise.
6305         (cos_test_towardzero): Likewise.
6306         (cos_test_downward): Likewise.
6307         (cos_test_upward): Likewise.
6308         (cosh_test): Likewise.
6309         (cosh_test_tonearest): Likewise.
6310         (cosh_test_towardzero): Likewise.
6311         (cosh_test_downward): Likewise.
6312         (cosh_test_upward): Likewise.
6313         (cpow_test): Likewise.
6314         (cproj_test): Likewise.
6315         (creal_test): Likewise.
6316         (csin_test): Likewise.
6317         (csinh_test): Likewise.
6318         (csqrt_test): Likewise.
6319         (ctan_test): Likewise.
6320         (ctan_test_tonearest): Likewise.
6321         (ctan_test_towardzero): Likewise.
6322         (ctan_test_downward): Likewise.
6323         (ctan_test_upward): Likewise.
6324         (ctanh_test): Likewise.
6325         (ctanh_test_tonearest): Likewise.
6326         (ctanh_test_towardzero): Likewise.
6327         (ctanh_test_downward): Likewise.
6328         (ctanh_test_upward): Likewise.
6329         (erf_test): Likewise.
6330         (erfc_test): Likewise.
6331         (exp_test): Likewise.
6332         (exp_test_tonearest): Likewise.
6333         (exp_test_towardzero): Likewise.
6334         (exp_test_downward): Likewise.
6335         (exp_test_upward): Likewise.
6336         (exp10_test): Likewise.
6337         (exp10_test_tonearest): Likewise.
6338         (exp10_test_towardzero): Likewise.
6339         (exp10_test_downward): Likewise.
6340         (exp10_test_upward): Likewise.
6341         (pow10_test): Likewise.
6342         (exp2_test): Likewise.
6343         (expm1_test): Likewise.
6344         (expm1_test_tonearest): Likewise.
6345         (expm1_test_towardzero): Likewise.
6346         (expm1_test_downward): Likewise.
6347         (expm1_test_upward): Likewise.
6348         (fabs_test): Likewise.
6349         (fdim_test): Likewise.
6350         (floor_test): Likewise.
6351         (fma_test): Likewise.
6352         (fma_test_towardzero): Likewise.
6353         (fma_test_downward): Likewise.
6354         (fma_test_upward): Likewise.
6355         (fmax_test): Likewise.
6356         (fmin_test): Likewise.
6357         (fmod_test): Likewise.
6358         (fpclassify_test): Likewise.
6359         (frexp_test): Likewise.
6360         (hypot_test): Likewise.
6361         (ilogb_test): Likewise.
6362         (isfinite_test): Likewise.
6363         (finite_test): Likewise.
6364         (isgreater_test): Likewise.
6365         (isgreaterequal_test): Likewise.
6366         (isinf_test): Likewise.
6367         (isless_test): Likewise.
6368         (islessequal_test): Likewise.
6369         (islessgreater_test): Likewise.
6370         (isnan_test): Likewise.
6371         (isnormal_test): Likewise.
6372         (issignaling_test): Likewise.
6373         (isunordered_test): Likewise.
6374         (j0_test): Likewise.
6375         (j1_test): Likewise.
6376         (jn_test): Likewise.
6377         (ldexp_test): Likewise.
6378         (lgamma_test): Likewise.
6379         (gamma_test): Likewise.
6380         (lrint_test): Likewise.
6381         (lrint_test_tonearest): Likewise.
6382         (lrint_test_towardzero): Likewise.
6383         (lrint_test_downward): Likewise.
6384         (lrint_test_upward): Likewise.
6385         (llrint_test): Likewise.
6386         (llrint_test_tonearest): Likewise.
6387         (llrint_test_towardzero): Likewise.
6388         (llrint_test_downward): Likewise.
6389         (llrint_test_upward): Likewise.
6390         (log_test): Likewise.
6391         (log10_test): Likewise.
6392         (log1p_test): Likewise.
6393         (log2_test): Likewise.
6394         (logb_test): Likewise.
6395         (logb_test_downward): Likewise.
6396         (lround_test): Likewise.
6397         (llround_test): Likewise.
6398         (modf_test): Likewise.
6399         (nearbyint_test): Likewise.
6400         (nextafter_test): Likewise.
6401         (nexttoward_test): Likewise.
6402         (pow_test): Likewise.
6403         (pow_test_tonearest): Likewise.
6404         (pow_test_towardzero): Likewise.
6405         (pow_test_downward): Likewise.
6406         (pow_test_upward): Likewise.
6407         (remainder_test): Likewise.
6408         (drem_test): Likewise.
6409         (remainder_test_tonearest): Likewise.
6410         (drem_test_tonearest): Likewise.
6411         (remainder_test_towardzero): Likewise.
6412         (drem_test_towardzero): Likewise.
6413         (remainder_test_downward): Likewise.
6414         (drem_test_downward): Likewise.
6415         (remainder_test_upward): Likewise.
6416         (drem_test_upward): Likewise.
6417         (remquo_test): Likewise.
6418         (rint_test): Likewise.
6419         (rint_test_tonearest): Likewise.
6420         (rint_test_towardzero): Likewise.
6421         (rint_test_downward): Likewise.
6422         (rint_test_upward): Likewise.
6423         (round_test): Likewise.
6424         (scalb_test): Likewise.
6425         (scalbn_test): Likewise.
6426         (scalbln_test): Likewise.
6427         (signbit_test): Likewise.
6428         (sin_test): Likewise.
6429         (sin_test_tonearest): Likewise.
6430         (sin_test_towardzero): Likewise.
6431         (sin_test_downward): Likewise.
6432         (sin_test_upward): Likewise.
6433         (sincos_test): Likewise.
6434         (sinh_test): Likewise.
6435         (sinh_test_tonearest): Likewise.
6436         (sinh_test_towardzero): Likewise.
6437         (sinh_test_downward): Likewise.
6438         (sinh_test_upward): Likewise.
6439         (sqrt_test): Likewise.
6440         (sqrt_test_tonearest): Likewise.
6441         (sqrt_test_towardzero): Likewise.
6442         (sqrt_test_downward): Likewise.
6443         (sqrt_test_upward): Likewise.
6444         (tan_test): Likewise.
6445         (tan_test_tonearest): Likewise.
6446         (tan_test_towardzero): Likewise.
6447         (tan_test_downward): Likewise.
6448         (tan_test_upward): Likewise.
6449         (tanh_test): Likewise.
6450         (tgamma_test): Likewise.
6451         (trunc_test): Likewise.
6452         (y0_test): Likewise.
6453         (y1_test): Likewise.
6454         (yn_test): Likewise.
6455         (significand_test): Likewise.
6456
6457         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6458         individual tests in comment.
6459         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6460         (prev_max_error): New variable.
6461         (prev_real_max_error): Likewise.
6462         (prev_imag_max_error): Likewise.
6463         (compare_ulp_data): Don't refer to test names in comment.
6464         (find_test_ulps): Remove function.
6465         (find_function_ulps): Likewise.
6466         (find_complex_function_ulps): Likewise.
6467         (init_max_error): Take function name as argument.  Look up ulps
6468         for that function.
6469         (print_ulps): Remove function.
6470         (print_max_error): Use prev_max_error instead of calling
6471         find_function_ulps.
6472         (print_complex_max_error): Use prev_real_max_error and
6473         prev_imag_max_error instead of calling find_complex_function_ulps.
6474         (check_float_internal): Take max_ulp parameter instead of calling
6475         find_test_ulps.  Don't call print_ulps.
6476         (check_float): Update call to check_float_internal.
6477         (check_complex): Update calls to check_float_internal.
6478         (START): Pass argument to init_max_error.
6479         * math/gen-libm-test.pl (%results): Don't include "kind"
6480         information.
6481         (parse_ulps): Don't handle ulps of individual tests.
6482         (print_ulps_file): Likewise.
6483         (output_ulps): Likewise.
6484         * math/README.libm-test: Update.
6485         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6486         individual tests.
6487         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6488         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6489         * sysdeps/arm/libm-test-ulps: Likewise.
6490         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6491         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6492         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6493         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6494         * sysdeps/microblaze/libm-test-ulps: Likewise.
6495         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6496         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6497         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6498         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6499         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6500         * sysdeps/sh/libm-test-ulps: Likewise.
6501         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6502         * sysdeps/tile/libm-test-ulps: Likewise.
6503         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6504
6505 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6506
6507         * math/libm-test.inc (print_complex_max_error): Check separately
6508         whether real and imaginary errors are within allowed range and
6509         pass 0 to print_complex_function_ulps instead of value within
6510         allowed range.
6511
6512 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6513
6514         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6515         formatting.
6516         (get_handles_fopen): Likewise.
6517         (do_write_test): Likewise.
6518
6519         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6520
6521         * libio/fileops.c (do_ftell): Use cached offset when
6522         available.
6523         * libio/iofwide.c (do_ftell_wide): Likewise.
6524         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6525         _IO_file_attach.
6526         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6527
6528         [BZ #16532]
6529         * libio/libioP.h (get_file_offset): New function.
6530         * libio/fileops.c (get_file_offset): Likewise.
6531         (do_ftell): Likewise.
6532         (_IO_new_file_seekoff): Split out ftell logic.
6533         * libio/wfileops.c (do_ftell_wide): Likewise.
6534         (_IO_wfile_seekoff): Split out ftell logic.
6535         * libio/tst-ftell-active-handler.c: New test case.
6536         * libio/Makefile (tests): Add it.
6537
6538 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6539
6540         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6541         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6542
6543 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6544
6545         [BZ #16639]
6546         * nscd/connections.c (nscd_init): Call do_exit.
6547         (start_threads): Call do_exit and notify_parent.
6548         (begin_drop_privileges): Call do_exit.
6549         (finish_drop_privileges): Likewise.
6550         * nscd/selinux.c (preserve_capabilities): Likewise.
6551         (install_real_capabilities): Likewise.
6552         (nscd_selinux_enabled): Likewise.
6553         (avc_create_thread): Likewise.
6554         (avc_alloc_lock): Likewise.
6555         (nscd_avc_init): Likewise.
6556         * nscd/nscd.c (parent_fd): New static variable.
6557         (main): Create a pipe between parent and child processes.
6558         Skip closing parent_fd.
6559         (monitor_child): New function.
6560         (do_exit): Likewise.
6561         (notify_parent): Likewise.
6562         * nscd/nscd.h (notify_parent): Likewise.
6563         (do_exit): Likewise.
6564
6565 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6566
6567         * malloc/malloc.c (__libc_calloc): Revert last change.
6568
6569 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6570
6571         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6572
6573 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6574
6575         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6576         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6577         implementation.
6578         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6579         (__libc_ifunc_impl_list): Likewise.
6580         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6581         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6582         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6583         * string/strrchr.c: Define STRRCHR.
6584
6585 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6586
6587         * benchtest/bench-strtok.c (simple_strtok): Delete.
6588         (strtok_string): Use as benchmark.
6589         * string/strtok (STRTOK): New macro.
6590
6591 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6592
6593         * manual/threads.texi: Add header and standard comments to all
6594         functions.
6595
6596         * elf/dl-lookup.c (check_match): New function.
6597         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6598         (do_lookup_x): Remove nested function check_match. Use non-nested
6599         function check_match.
6600
6601 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6602
6603         * csu/Makefile (generated, before-compile): Use += rather than =.
6604         * catgets/Makefile (generated, generated-dirs): Likewise.
6605         * debug/Makefile (generated): Likewise.
6606         * dlfcn/Makefile (generated): Likewise.
6607         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6608         * iconvdata/Makefile (before-compile, generated): Likewise.
6609         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6610         * libio/Makefile (generated): Likewise.
6611         * malloc/Makefile (generated): Likewise.
6612         * manual/Makefile (generated, generated-dirs): Likewise.
6613         * misc/Makefile (generated): Likewise.
6614         * posix/Makefile (generated): Likewise.
6615         * resolv/Makefile (generated): Likewise.
6616         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6617         * timezone/Makefile (generated, generated-dirs): Likewise.
6618
6619         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6620
6621 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6622
6623         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6624         power8 implementation.
6625         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6626         file: POWER8 llround ifunc implementation.
6627         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6628         (__lllround): Add POWER8 implementation.
6629         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6630         POWER8 llround implementation.
6631
6632         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6633         power8 implementation.
6634         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6635         file: POWER8 llrint ifunc implementation.
6636         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6637         Add POWER8 implementation.
6638         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6639         POWER8 llrint implementation.
6640
6641         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6642         power8 implementation.
6643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6644         file: POWER8 finite ifunc implementation.
6645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6646         Add POWER8 implementation.
6647         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6648         Likewise.
6649         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6650         POWER8 finite implementation.
6651         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6652
6653         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6654         power8 implementation.
6655         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6656         file: POWER8 isinf ifunc implementation.
6657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6658         POWER8 implementation.
6659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6660         Likewise.
6661         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6662         isinf implementation.
6663         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6664
6665         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6666         (INIT_ARCH): Add hwcap2 initialization.
6667         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6668         power8 implementation.
6669         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6670         file: POWER8 isnan ifunc implementation.
6671         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6672         POWER8 implementation.
6673         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6674         Likewise.
6675         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6676         isnan implementation.
6677         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6678
6679 2014-02-27  Joey Ye  <joey.ye@arm.com>
6680
6681         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6682         (_FP_NANFRAC_Q): Set to zero.
6683
6684 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6685
6686         [BZ #16623]
6687         * math/auto-libm-test-in: New test inputs.
6688         * math/auto-libm-test-out: Regenerate.
6689         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6690         and DA.
6691         (__cos): Likewise.
6692         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6693
6694 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6695
6696         * scripts/evaluate-test.sh: Take new argument indicating whether
6697         failure is expected.
6698         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6699         indicating whether failure is expected.
6700         * conform/Makefile (test-xfail-run-conformtest): New variable.
6701         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6702         level.
6703         * posix/Makefile (test-xfail-annexc): New variable.
6704         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6705
6706 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
6707
6708         * argp/Makefile: Include Makeconfig immediately after defining
6709         subdir.
6710         * assert/Makefile: Likewise.
6711         * benchtests/Makefile: Likewise.
6712         * catgets/Makefile: Likewise.
6713         * conform/Makefile: Likewise.
6714         * crypt/Makefile: Likewise.
6715         * csu/Makefile: Likewise.
6716         (all): Remove target.
6717         * ctype/Makefile: Include Makeconfig immediately after defining
6718         subdir.
6719         * debug/Makefile: Likewise.
6720         * dirent/Makefile: Likewise.
6721         * dlfcn/Makefile: Likewise.
6722         * gmon/Makefile: Likewise.
6723         * gnulib/Makefile: Likewise.
6724         * grp/Makefile: Likewise.
6725         * gshadow/Makefile: Likewise.
6726         * hesiod/Makefile: Likewise.
6727         * hurd/Makefile: Likewise.
6728         (all): Remove target.
6729         * iconvdata/Makefile: Include Makeconfig immediately after
6730         defining subdir.
6731         * inet/Makefile: Likewise.
6732         * intl/Makefile: Likewise.
6733         * io/Makefile: Likewise.
6734         * libio/Makefile: Likewise.
6735         (all): Remove target.
6736         * locale/Makefile: Include Makeconfig immediately after defining
6737         subdir.
6738         * login/Makefile: Likewise.
6739         * mach/Makefile: Likewise.
6740         (all): Remove target.
6741         * malloc/Makefile: Include Makeconfig immediately after defining
6742         subdir.
6743         (all): Remove target.
6744         * manual/Makefile: Include Makeconfig immediately after defining
6745         subdir.
6746         * math/Makefile: Likewise.
6747         * misc/Makefile: Likewise.
6748         * nis/Makefile: Likewise.
6749         * nss/Makefile: Likewise.
6750         * po/Makefile: Likewise.
6751         (all): Remove target.
6752         * posix/Makefile: Include Makeconfig immediately after defining
6753         subdir.
6754         * pwd/Makefile: Likewise.
6755         * resolv/Makefile: Likewise.
6756         * resource/Makefile: Likewise.
6757         * rt/Makefile: Likewise.
6758         * setjmp/Makefile: Likewise.
6759         * shadow/Makefile: Likewise.
6760         * signal/Makefile: Likewise.
6761         * socket/Makefile: Likewise.
6762         * soft-fp/Makefile: Likewise.
6763         * stdio-common/Makefile: Likewise.
6764         * stdlib/Makefile: Likewise.
6765         * streams/Makefile: Likewise.
6766         * string/Makefile: Likewise.
6767         * sunrpc/Makefile: Likewise.
6768         (all): Remove target.
6769         * sysvipc/Makefile: Include Makeconfig immediately after defining
6770         subdir.
6771         * termios/Makefile: Likewise.
6772         * time/Makefile: Likewise.
6773         * timezone/Makefile: Likewise.
6774         (all): Remove target.
6775         * wcsmbs/Makefile: Include Makeconfig immediately after defining
6776         subdir.
6777         * wctype/Makefile: Likewise.
6778
6779 2014-02-26  Steve Ellcey  <sellcey@mips.com>
6780
6781         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
6782         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
6783         (libc_feholdexcept_setround_mips): Ditto.
6784         (libc_feholdsetround): New.
6785         (libc_feholdsetroundf): New.
6786         (libc_feholdsetroundl): New.
6787         (libc_feupdateenv_test_mips): New.
6788         (libc_feupdateenv_test): New.
6789         (libc_feupdateenv_testf): New.
6790         (libc_feupdateenv_testl): New.
6791         (libc_feresetround): New.
6792         (libc_feresetroundf): New.
6793         (libc_feresetroundl): New.
6794         (libc_fetestexcept_mips): New.
6795         (libc_fetestexcept): New.
6796         (libc_fetestexceptf): New.
6797         (libc_fetestexceptl): New.
6798         (HAVE_RM_CTX): New.
6799         (libc_feholdexcept_setround_mips_ctx): New.
6800         (libc_feholdexcept_setround_ctx): New.
6801         (libc_feholdexcept_setroundf_ctx): New.
6802         (libc_feholdexcept_setroundl_ctx): New.
6803         (libc_fesetenv_mips_ctx): New.
6804         (libc_fesetenv_ctx): New.
6805         (libc_fesetenv_ctxf): New.
6806         (libc_fesetenv_ctxl): New.
6807         (libc_feupdateenv_mips_ctx): New.
6808         (libc_feupdateenv_ctx): New.
6809         (libc_feupdateenvf_ctx): New.
6810         (libc_feupdateenvl_ctx): New.
6811         (libc_feholdsetround_mips_ctx): New.
6812         (libc_feholdsetround_ctx): New.
6813         (libc_feholdsetroundf_ctx): New.
6814         (libc_feholdsetroundl_ctx): New.
6815         (libc_feresetround_mips_ctx): New.
6816         (libc_feresetround_ctx): New.
6817         (libc_feresetroundf_ctx): New.
6818         (libc_feresetroundl_ctx): New.
6819
6820 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
6821
6822         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
6823
6824         * manual/ipc.texi: New file.
6825         * manual/Makefile (chapters): Add ipc.
6826         * manual/job.texi: Add "Inter-Process Communication" to next.
6827         * manual/process.texi: Add "Inter-Process Communication" to prev.
6828
6829 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6830
6831         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6832
6833 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
6834
6835         * malloc/malloc.c (__libc_calloc): Simplify implementation.
6836
6837         * manual/arith.texi: Fix spaces after sentences.
6838         * manual/charset.texi: Likewise.
6839         * manual/errno.texi: Likewise.
6840         * manual/install.texi: Likewise.
6841         * manual/llio.texi: Likewise.
6842         * manual/locale.texi: Likewise.
6843         * manual/maint.texi: Likewise.
6844         * manual/math.texi: Likewise.
6845         * manual/memory.texi: Likewise.
6846         * manual/message.texi: Likewise.
6847         * manual/probes.texi: Likewise.
6848         * manual/resource.texi: Likewise.
6849         * manual/signal.texi: Likewise.
6850         * manual/socket.texi: Likewise.
6851         * manual/stdio.texi: Likewise.
6852         * manual/string.texi: Likewise.
6853         * manual/time.texi: Likewise.
6854         * manual/users.texi: Likewise.
6855
6856 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
6857
6858         [BZ #16632]
6859         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
6860         _DEFAULT_SOURCE is defined.
6861
6862 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
6863             Carlos O'Donell  <carlos@redhat.com>
6864
6865         [BZ #16613]
6866         * elf/dl-tls.c (_dl_count_modids): New function.
6867         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
6868         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
6869         audit library and increment generation counter.
6870         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
6871         * elf/tst-audit9.c: New file.
6872         * elf/tst-auditmod9a.c: New file.
6873         * elf/tst-auditmod9b.c: New file.
6874         * elf/Makefile: Add rules to build and run tst-audit9.
6875
6876 2014-02-25  Florian Weimer  <fweimer@redhat.com>
6877
6878         [BZ #15347]
6879         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
6880
6881 2014-02-25  Will Newton  <will.newton@linaro.org>
6882
6883         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
6884         (__longjmp): Restore sp and lr before restoring callee
6885         saved registers.  Add longjmp and longjmp_target
6886         SystemTap probe point.
6887         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
6888         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
6889         Define to zero to match jmpbuf layout.
6890         * sysdeps/arm/setjmp.S: Include stap-probe.h.
6891         (__sigsetjmp): Save sp and lr before saving callee
6892         saved registers.  Add setjmp SystemTap probe point.
6893
6894 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
6895
6896         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
6897
6898 2014-02-24  Andreas Schwab  <schwab@suse.de>
6899
6900         [BZ #15804]
6901         * elf/pldd.c (wait_for_ptrace_stop): New function.
6902         (main): Call it after attaching.
6903
6904 2014-02-22  Roland McGrath  <roland@hack.frob.com>
6905
6906         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
6907         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
6908         Versions files is now verboten.
6909         * hurd/Versions (libc: GLIBC_2.0):
6910         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
6911         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
6912         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
6913         * mach/Versions: Likewise.
6914
6915         * csu/Versions: Remove unused %include.
6916         * resolv/Versions: Likewise.
6917
6918 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
6919
6920         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
6921         ($(objpfx)check-local-headers.out): Likewise.
6922         ($(objpfx)begin-end-check.out): Likewise.
6923         * Makerules (check-abi-%.out): Likewise.
6924         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
6925         ($(objpfx)test2.cat): Likewise.
6926         ($(objpfx)de/libc.cat): Likewise.
6927         ($(objpfx)test-gencat.out): Likewise.
6928         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
6929         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
6930         ($(objpfx)noload-mem): Likewise.
6931         ($(objpfx)tst-pathopt.out): Likewise.
6932         ($(objpfx)tst-rtld-load-self.out): Likewise.
6933         ($(objpfx)tst-array1-cmp.out): Likewise.
6934         ($(objpfx)tst-array1-static-cmp.out): Likewise.
6935         ($(objpfx)tst-array2-cmp.out): Likewise.
6936         ($(objpfx)tst-array3-cmp.out): Likewise.
6937         ($(objpfx)tst-array4-cmp.out): Likewise.
6938         ($(objpfx)tst-array5-cmp.out): Likewise.
6939         ($(objpfx)tst-array5-static-cmp.out): Likewise.
6940         ($(objpfx)check-textrel.out): Likewise.
6941         ($(objpfx)check-execstack.out): Likewise.
6942         ($(objpfx)check-localplt.out): Likewise.
6943         ($(objpfx)order2-cmp.out): Likewise.
6944         ($(objpfx)tst-leaks1-mem): Likewise.
6945         ($(objpfx)tst-leaks1-static-mem): Likewise.
6946         ($(objpfx)tst-initorder-cmp.out): Likewise.
6947         ($(objpfx)tst-initorder2-cmp.out): Likewise.
6948         ($(objpfx)tst-unused-dep.out): Likewise.
6949         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
6950         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
6951         * iconv/Makefile (test-iconvconfig): Likewise.
6952         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
6953         ($(objpfx)iconv-test.out): Likewise.
6954         ($(objpfx)tst-tables.out): Likewise.
6955         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
6956         ($(objpfx)tst-gettext.out): Likewise.
6957         ($(objpfx)tst-translit.out): Likewise.
6958         ($(objpfx)tst-gettext2.out): Likewise.
6959         ($(objpfx)tst-gettext4.out): Likewise.
6960         ($(objpfx)tst-gettext6.out): Likewise.
6961         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
6962         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
6963         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
6964         ($(objpfx)tst-fopenloc-mem.out): Likewise.
6965         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
6966         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
6967         * posix/Makefile ($(objpfx)globtest.out): Likewise.
6968         ($(objpfx)wordexp-tst.out): Likewise.
6969         ($(objpfx)annexc.out): Likewise.
6970         ($(objpfx)tst-fnmatch-mem): Likewise.
6971         ($(objpfx)bug-regex2-mem): Likewise.
6972         ($(objpfx)bug-regex14-mem): Likewise.
6973         ($(objpfx)bug-regex21-mem): Likewise.
6974         ($(objpfx)bug-regex31-mem): Likewise.
6975         ($(objpfx)tst-vfork3-mem): Likewise.
6976         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6977         ($(objpfx)tst-pcre-mem): Likewise.
6978         ($(objpfx)tst-boost-mem): Likewise.
6979         ($(objpfx)tst-getconf.out): Likewise.
6980         ($(objpfx)bug-ga2-mem): Likewise.
6981         ($(objpfx)bug-glob2-mem): Likewise.
6982         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
6983         ($(objpfx)mtrace-tst-leaks2): Likewise.
6984         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
6985         ($(objpfx)tst-printf.out): Likewise.
6986         ($(objpfx)tst-setvbuf1.out): Likewise.
6987         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
6988         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
6989         ($(objpfx)tst-fmtmsg.out): Likewise.
6990         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
6991         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
6992
6993         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
6994         * bits/sigaction.h [__USE_MISC]: Likewise.
6995         * bits/waitstatus.h: Update #endif comments.
6996         * ctype/ctype.h: Likewise.
6997         * dirent/dirent.h: Likewise.
6998         [__USE_MISC]: Remove redundant conditionals.
6999         * grp/grp.h: Update #endif comments.
7000         [__USE_GNU]: Remove redundant conditionals.
7001         [__USE_MISC]: Likewise.
7002         * inet/netinet/in.h [__USE_GNU]: Likewise.
7003         * io/sys/stat.h [__USE_MISC]: Likewise.
7004         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7005         * libio/bits/stdio.h: Update #endif comments.
7006         [__USE_MISC]: Remove redundant conditionals.
7007         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7008         * libio/stdio.h: Update #endif comments.
7009         [__USE_MISC]: Remove redundant conditionals.
7010         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7011         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7012         * math/math.h: Update #else and #endif comments.
7013         [__USE_MISC]: Remove redundant conditionals.
7014         * misc/sys/uio.h: Update #endif comments.
7015         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
7016         * posix/glob.h [__USE_MISC]: Likewise.
7017         * posix/sys/types.h: Update #endif comments.
7018         [__USE_MISC]: Remove redundant conditionals.
7019         * posix/sys/wait.h: Update #endif comments.
7020         [__USE_MISC]: Remove redundant conditionals.
7021         * posix/unistd.h: Update #endif comments.
7022         [__USE_MISC]: Remove redundant conditionals.
7023         * pwd/pwd.h [__USE_GNU]: Likewise.
7024         [__USE_MISC]: Likewise.
7025         * resolv/netdb.h [__USE_GNU]: Likewise.
7026         * signal/signal.h: Update #endif comments.
7027         [__USE_MISC]: Remove redundant conditionals.
7028         * stdlib/stdlib.h: Update #else and #endif comments.
7029         [__USE_MISC]: Remove redundant conditionals.
7030         [__USE_GNU]: Likewise.
7031         * string/bits/string2.h [__USE_MISC]: Likewise.
7032         * string/string.h: Update #endif comments.
7033         [__USE_MISC]: Remove redundant conditionals.
7034         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
7035         Likewise.
7036         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
7037         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
7038         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
7039         Likewise.
7040         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
7041         Likewise.
7042         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
7043         comments.
7044         [__USE_MISC]: Remove redundant conditionals.
7045         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
7046         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
7047         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
7048         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
7049         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
7050         Likewise.
7051         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
7052         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
7053         Likewise.
7054         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
7055         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
7056         Likewise.
7057         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
7058         Likewise.
7059         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
7060         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
7061         Likewise.
7062         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
7063         Likewise.
7064         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
7065         * sysdeps/x86/bits/string.h: Update #endif comments.
7066         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
7067         conditionals.
7068         * time/sys/time.h: Update #endif comments.
7069         * time/time.h: Likewise.
7070         [__USE_MISC]: Remove redundant conditionals.
7071
7072 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
7073
7074         [BZ #16600]
7075         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
7076
7077 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
7078
7079         * Versions.def (librt): Add GLIBC_2.17.
7080
7081 2014-02-21  Adam Conrad  <adconrad@0c3.net>
7082
7083         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
7084         synonym for _SYS_AUXV_H to allow direct inclusion.
7085         * sysdeps/sparc/bits/hwcap.h: Likewise.
7086         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
7087         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
7088         * sysdeps/sparc/sysdep.h: Likewise.
7089
7090 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7091
7092         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
7093
7094 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
7095
7096         * benchtests/bench-strrchr.c: Print length instead of position.
7097
7098 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
7099
7100         [BZ #16611]
7101         * sysdeps/unix/sysv/linux/kernel-features.h
7102         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
7103         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
7104         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
7105         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
7106         Likewise.
7107         [__i386__ || __powerpc__ || __sh__ || __sparc__]
7108         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7109         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
7110         (__ASSUME_SENDMMSG): Define instead of using previous
7111         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
7112         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7113         (__ASSUME_SENDMMSG_SYSCALL): Define.
7114         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7115         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
7116         Likewise.
7117         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7118         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7119         Likewise.
7120         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7121         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7122         Likewise.
7123         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
7124         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7125         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7126         [__ASSUME_SENDMMSG]: Change conditionals to
7127         [__ASSUME_SENDMMSG_SOCKETCALL].
7128         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7129         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
7130         Define.
7131         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7132         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
7133         Likewise.
7134         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
7135         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
7136         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
7137         [!__ASSUME_SENDMMSG]: Change conditional to
7138         [!__ASSUME_SENDMMSG_SOCKETCALL].
7139         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7140         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
7141         Define.
7142
7143         [BZ #16610]
7144         * sysdeps/unix/sysv/linux/kernel-features.h
7145         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
7146         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
7147         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
7148         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
7149         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
7150         [__i386__ || __sparc__]
7151         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7152         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
7153         (__ASSUME_RECVMMSG): Define instead of using previous
7154         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
7155         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7156         (__ASSUME_RECVMMSG_SYSCALL): Define.
7157         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7158         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7159         Likewise.
7160         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7161         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7162         Likewise.
7163         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7164         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7165         Likewise.
7166         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
7167         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7168         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7169         [__ASSUME_RECVMMSG]: Change condition to
7170         [__ASSUME_RECVMMSG_SOCKETCALL].
7171         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7172         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7173         Define.
7174         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
7175         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7176         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
7177         Likewise.
7178         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
7179         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
7180         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
7181         [!__ASSUME_RECVMMSG]: Change condition to
7182         [!__ASSUME_RECVMMSG_SOCKETCALL].
7183         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7184         (__ASSUME_RECVMMSG_SYSCALL): Define.
7185
7186         [BZ #16609]
7187         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
7188         __powerpc__ || __s390__ || __sh__ || __sparc__]
7189         (__ASSUME_SOCKETCALL): Define.
7190         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
7191         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
7192         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
7193         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
7194         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
7195         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
7196         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
7197         (__ASSUME_ACCEPT4): Define instead of using previous
7198         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
7199         __powerpc__ || __sparc__ || __s390__)] condition.
7200         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7201         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7202         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
7203         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7204         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7205         [!__ASSUME_ACCEPT4]: Change condition to
7206         [!__ASSUME_ACCEPT4_SOCKETCALL].
7207         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
7208         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
7209         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
7210         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7211         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
7212         __ASSUME_ACCEPT4_SYSCALL.
7213         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
7214         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
7215         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
7216         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
7217         __ASSUME_ACCEPT4_SYSCALL.
7218         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
7219         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
7220         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
7221         [__ASSUME_ACCEPT4]: Change condition to
7222         [__ASSUME_ACCEPT4_SOCKETCALL].
7223         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7224         (__ASSUME_SOCKETCALL): Define.
7225         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
7226         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7227         (__ASSUME_SOCKETCALL): Define.
7228         (__ASSUME_ACCEPT4): Remove.
7229         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
7230         Define.
7231         * sysdeps/unix/sysv/linux/mips/kernel-features.h
7232         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
7233         Likewise.
7234         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7235         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
7236
7237         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
7238         macro.
7239         (HWCAP_ARM_LPAE): Likewise.
7240         (HWCAP_ARM_EVTSTRM): Likewise.
7241         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
7242         Add vpfd32, lpae and evtstrm.
7243         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
7244         Increase to 22.
7245
7246 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
7247
7248         * math/auto-libm-test-in: Add tests of clog10.
7249         * math/auto-libm-test-out: Regenerated.
7250         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
7251         * sysdeps/i386/fpu/libm-test-ulps: Update.
7252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7253
7254 2014-02-18  Andreas Schwab  <schwab@suse.de>
7255
7256         [BZ #16574]
7257         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
7258         Store non-zero if the second buffer was newly allocated.
7259         (send_dg): Likewise.
7260         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
7261         to send_vc and send_dg.
7262         (res_nsend): Pass NULL for ansp2_malloced.
7263         * resolv/res_query.c (__libc_res_nquery): Add parameter
7264         answerp2_malloced and pass it down to __libc_res_nsend.
7265         (res_nquery): Pass additional NULL to __libc_res_nquery.
7266         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
7267         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
7268         second answer buffer if answerp2_malloced was set.
7269         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
7270         (__libc_res_nquerydomain): Add parameter
7271         answerp2_malloced and pass it down to __libc_res_nquery.
7272         (res_nquerydomain): Pass additional NULL to
7273         __libc_res_nquerydomain.
7274         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
7275         additional NULL to __libc_res_nsend and __libc_res_nquery.
7276         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
7277         additional NULL to __libc_res_nsearch.
7278         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
7279         parameter of __libc_res_nsearch to check for separately allocated
7280         second buffer.
7281         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
7282         __libc_res_nquery.
7283         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
7284         additional NULL to __libc_res_nquery.
7285         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
7286         __libc_res_nsearch.
7287         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
7288         * include/resolv.h: Update prototypes of __libc_res_nquery,
7289         __libc_res_nsearch, __libc_res_nsend.
7290
7291 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
7292
7293         * math/auto-libm-test-in: Add tests of fma.
7294         * math/auto-libm-test-out: Regenerated.
7295         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
7296         (fma_towardzero_test_data): Likewise.
7297         (fma_downward_test_data): Likewise.
7298         (fma_upward_test_data): Likewise.
7299         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
7300         mpc_mode.
7301         (rounding_modes): Add values for new field.
7302         (func_calc_method): Add value mpfr_fff_f.
7303         (func_calc_desc): Add mpfr_fff_f union field.
7304         (test_function): Add field exact_args.
7305         (FUNC): Add macro argument EXACT_ARGS.
7306         (FUNC_mpfr_f_f): Update call to FUNC.
7307         (FUNC_mpfr_f_f): Likewise.
7308         (FUNC_mpfr_ff_f): Likewise.
7309         (FUNC_mpfr_if_f): Likewise.
7310         (FUNC_mpc_c_f): Likewise.
7311         (FUNC_mpc_c_c): Likewise.
7312         (test_functions): Add fma.  Update calls to FUNC.
7313         (handle_input_arg): Add argument exact_args.
7314         (add_test): Update call to handle_input_arg.
7315         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
7316         (output_for_one_input_case): Update call to calc_generic_results.
7317         Recalculate exact zero results in each rounding mode.
7318
7319         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
7320         non-negative before setting low bit.
7321         * math/auto-libm-test-in: Mark one asin test possibly having
7322         spurious underflow.
7323         * math/auto-libm-test-out: Regenerated.
7324         * sysdeps/i386/fpu/libm-test-ulps: Update.
7325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7326
7327 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
7328
7329         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
7330         * sysdeps/unix/sysv/linux/microblaze: Move directory from
7331         ports/sysdeps/unix/sysv/linux/microblaze.
7332         * README: Add missing listing for microblaze*-*-linux-gnu.
7333
7334 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
7335
7336         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
7337         * sysdeps/unix/sysv/linux/ia64: Move directory from
7338         ports/sysdeps/unix/sysv/linux/ia64.
7339         * README: Update listing for ia64-*-linux-gnu.
7340
7341 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
7342             Joseph Myers  <joseph@codesourcery.com>
7343
7344         * Makeconfig (test-name): New variable.
7345         (evaluate-test): Likewise.
7346         * Makerules (do-test-clean): Remove .test-result files.
7347         (common-mostlyclean): Likewise.
7348         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
7349         * scripts/evaluate-test.sh: New file.
7350
7351 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
7352
7353         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
7354         separate $(objpfx)tst-fopenloc-cmp.out and
7355         $(objpfx)tst-fopenloc-mem.out targets.
7356         (tests): Update dependencies.
7357         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
7358         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
7359         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
7360         (tst-rxspencer-no-utf8-ARGS): New variable.
7361         (tst-rxspencer-no-utf8-ENV): Likewise.
7362         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
7363         instead of $(objpfx)tst-rxspencer-mem.
7364         ($(objpfx)tst-rxspencer-mem): Change target to
7365         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
7366         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
7367         * posix/tst-rxspencer-no-utf8.c: New file.
7368
7369         * elf/Makefile ($(objpfx)order.out): Remove rule.
7370         [$(run-built-tests) = yes] (tests): Depend on
7371         $(objpfx)order-cmp.out.
7372         ($(objpfx)order-cmp.out): New rule.
7373         [$(run-built-tests) = yes] (tests): Depend on
7374         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
7375         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
7376         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
7377         $(objpfx)tst-array5-static-cmp.out.
7378         ($(objpfx)tst-array1.out): Remove rule.
7379         ($(objpfx)tst-array1-cmp.out): New rule.
7380         ($(objpfx)tst-array1-static.out): Remove rule.
7381         ($(objpfx)tst-array1-static-cmp.out): New rule.
7382         ($(objpfx)tst-array2.out): Remove rule.
7383         ($(objpfx)tst-array2-cmp.out): New rule.
7384         ($(objpfx)tst-array3.out): Remove rule.
7385         ($(objpfx)tst-array3-cmp.out): New rule.
7386         ($(objpfx)tst-array4.out): Remove rule.
7387         ($(objpfx)tst-array4-cmp.out): New rule.
7388         ($(objpfx)tst-array5.out): Remove rule.
7389         ($(objpfx)tst-array5-cmp.out): New rule.
7390         ($(objpfx)tst-array5-static.out): Remove rule.
7391         ($(objpfx)tst-array5-static-cmp.out): New rule.
7392         [$(run-built-tests) = yes] (tests): Depend on
7393         $(objpfx)order2-cmp.out.
7394         ($(objpfx)order2.out): Remove rule.
7395         ($(objpfx)order2-cmp.out): New rule.
7396         ($(objpfx)tst-initorder.out): Remove rule.
7397         [$(run-built-tests) = yes] (tests): Depend on
7398         $(objpfx)tst-initorder-cmp.out.
7399         ($(objpfx)tst-initorder-cmp.out): New rule.
7400         ($(objpfx)tst-initorder2.out): Remove rule.
7401         [$(run-built-tests) = yes] (tests): Depend on
7402         $(objpfx)tst-initorder2-cmp.out.
7403         ($(objpfx)tst-initorder2-cmp.out): New rule.
7404         [$(run-built-tests) = yes] (tests): Depend on
7405         $(objpfx)tst-unused-dep-cmp.out.
7406         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7407         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7408         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7409         on $(objpfx)tst-setvbuf1-cmp.out.
7410         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7411         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7412         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7413         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7414         ($(objpfx)tst-svc.out): Remove rule.
7415         ($(objpfx)tst-svc-cmp.out): New rule.
7416
7417 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7418
7419         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7420         * ctype/ctype.h [__USE_MISC]: Likewise.
7421         * dirent/dirent.h [__USE_MISC]: Likewise.
7422         * grp/grp.h [__USE_MISC]: Likewise.
7423         * io/fcntl.h [__USE_MISC]: Likewise.
7424         * io/sys/stat.h [__USE_MISC]: Likewise.
7425         * libio/stdio.h [__USE_MISC]: Likewise.
7426         * posix/unistd.h [__USE_MISC]: Likewise.
7427         * pwd/pwd.h [__USE_MISC]: Likewise.
7428         * stdlib.h [__USE_MISC]: Likewise.
7429         * string/bits/string2.h [__USE_MISC]: Likewise.
7430         * string/string.h [__USE_MISC]: Likewise.
7431         * time/time.h [__USE_MISC]: Likewise.
7432
7433 2014-02-13  Andreas Schwab  <schwab@suse.de>
7434
7435         [BZ #16574]
7436         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7437         second answer buffer if it was separately allocated.
7438
7439 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7440
7441         * sysdeps/mips/math-tests.h: Include <features.h>.
7442         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7443         (ROUNDING_TESTS_long_double): Do not define.
7444         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7445         (EXCEPTION_TESTS_long_double): Likewise.
7446         * sysdeps/mips/mips64/libm-test-ulps: Update.
7447
7448         * include/features.h (__USE_BSD): Remove macro definitions.
7449         (__USE_SVID): Likewise.
7450         (_BSD_SOURCE): Likewise.
7451         (_SVID_SOURCE): Likewise.
7452         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7453         from definition of _DEFAULT_SOURCE.
7454         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7455         [_DEFAULT_SOURCE].
7456         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7457         * bits/mman.h [__USE_BSD]: Likewise.
7458         * bits/termios.h [__USE_BSD]: Likewise.
7459         * bits/waitstatus.h [__USE_BSD]: Likewise.
7460         * ctype/ctype.h [__USE_SVID]: Likewise.
7461         * dirent/dirent.h [__USE_BSD]: Likewise.
7462         * grp/grp.h [__USE_SVID]: Likewise.
7463         [__USE_BSD]: Likewise.
7464         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7465         * io/fcntl.h [__USE_BSD]: Likewise.
7466         * io/ftw.h [__USE_BSD]: Likewise.
7467         * io/sys/stat.h [__USE_BSD]: Likewise.
7468         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7469         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7470         * libio/stdio.h [__USE_SVID]: Likewise.
7471         [__USE_BSD]: Likewise.
7472         * math/math.h [__USE_SVID]: Likewise.
7473         [__USE_BSD]: Likewise.
7474         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7475         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7476         * misc/search.h [__USE_SVID]: Likewise.
7477         * misc/sys/mman.h [__USE_BSD]: Likewise.
7478         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7479         * misc/sys/uio.h [__USE_BSD]: Likewise.
7480         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7481         * posix/glob.h [__USE_BSD]: Likewise.
7482         * posix/regex.h [__USE_BSD]: Likewise.
7483         * posix/sys/types.h [__USE_BSD]: Likewise.
7484         [__USE_SVID]: Likewise.
7485         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7486         * posix/sys/wait.h [__USE_BSD]: Likewise.
7487         [__USE_SVID]: Likewise.
7488         * posix/unistd.h [__USE_BSD]: Likewise.
7489         [__USE_SVID]: Likewise.
7490         * pwd/pwd.h [__USE_SVID]: Likewise.
7491         * resolv/netdb.h [__USE_BSD]: Likewise.
7492         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7493         * signal/signal.h [__USE_BSD]: Likewise.
7494         [__USE_SVID]: Likewise.
7495         * socket/sys/socket.h [__USE_BSD]: Likewise.
7496         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7497         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7498         [__USE_SVID]: Likewise.
7499         * string/bits/string2.h [__USE_BSD]: Likewise.
7500         [__USE_SVID]: Likewise.
7501         * string/bits/string3.h [__USE_BSD]: Likewise.
7502         * string/endian.h [__USE_BSD]: Likewise.
7503         * string/string.h [__USE_SVID]: Likewise.
7504         [__USE_BSD]: Likewise.
7505         * string/strings.h [__USE_BSD]: Likewise.
7506         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7507         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7508         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7509         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7510         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7511         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7512         Likewise.
7513         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7514         Likewise.
7515         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7516         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7517         Likewise.
7518         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7519         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7520         Likewise.
7521         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7522         Likewise.
7523         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7524         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7525         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7526         Likewise.
7527         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7528         Likewise.
7529         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7530         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7531         * termios/termios.h [__USE_BSD]: Likewise.
7532         * time/sys/time.h [__USE_BSD]: Likewise.
7533         * time/time.h [__USE_BSD]: Likewise.
7534         [__USE_SVID]: Likewise.
7535
7536         * Makefile (subdir_targets): Remove subdir_lint.out.
7537
7538         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7539         (do-tst-printf): Likewise.
7540         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7541         $(objpfx)tst-printf.out.
7542
7543         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7544
7545         * Makerules (check-abi-%): Change target to
7546         $(objpfx)check-abi-%.out.
7547         (check-abi target): Update dependencies.
7548         (check-abi-pattern variable): Redirect output of diff to $@.
7549         (check-abi variable): Likewise.
7550         * elf/Makefile (check-abi): Update dependencies.
7551
7552         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7553         unused.
7554         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7555         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7556         subnormal range.
7557         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7558         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7559         value has largest subnormal exponent.
7560         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7561         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7562         * sysdeps/aarch64/soft-fp/sfp-machine.h
7563         (_FP_TININESS_AFTER_ROUNDING): New macro.
7564         * sysdeps/alpha/soft-fp/sfp-machine.h
7565         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7566         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7567         Likewise.
7568         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7569         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7570         * sysdeps/mips/soft-fp/sfp-machine.h
7571         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7572         * sysdeps/powerpc/soft-fp/sfp-machine.h
7573         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7574         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7575         Likewise.
7576         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7577         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7578         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7579         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7580         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7581         Likewise.
7582
7583 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7584
7585         [BZ #16545]
7586         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7587         model 1.
7588
7589 2014-02-12  Richard Henderson  <rth@redhat.com>
7590
7591         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7592         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7593         * sysdeps/unix/sysv/linux/alpha: Move directory from
7594         ports/sysdeps/unix/sysv/linux/alpha.
7595         * README: Update listing for alpha-*-linux-gnu.
7596
7597 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7598
7599         * include/features.h: Update comment documenting feature test
7600         macros.
7601         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7602         _DEFAULT_SOURCE.
7603         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7604         (_SVID_SOURCE): Likewise.
7605         (_DEFAULT_SOURCE): Update description of default features.
7606         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7607         with _GNU_SOURCE.
7608         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7609         (S_ISVTX): Likewise.
7610         * manual/math.texi (Mathematical Constants): Likewise.
7611         * manual/signal.texi (Interrupted Primitives): Likewise.
7612         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7613         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7614         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7615         Don't refer to _SVID_SOURCE in warning text.
7616
7617         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7618
7619         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7620         already defined.
7621         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7622         * sysdeps/mips/dl-lookup.c: Remove.
7623         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7624
7625 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7626
7627         [BZ #16447]
7628         * math/auto-libm-test-in: Add testcase for expl.
7629         * math/auto-libm-test-out: Regenerate.
7630         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7631         calculation of unsafe.
7632         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7633
7634 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7635
7636         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7637         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7638         ports/sysdeps/unix/sysv/linux/aarch64.
7639         * README: Update listing for aarch64*-*-linux-gnu.
7640
7641 2014-02-11  Will Newton  <will.newton@linaro.org>
7642
7643         * manual/probes.texi (Mathematical Function Probes): Use
7644         "triggered" instead of "hit".
7645
7646         * manual/probes.texi (Internal Probes): Add documentation
7647         of setjmp, longjmp and longjmp_target probes.
7648
7649         * include/stap-probe.h: Add comment about probe argument
7650         format.
7651
7652         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7653         definition.  (tr_where, tr_freehook, tr_mallochook,
7654         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7655
7656 2014-02-11  David S. Miller  <davem@davemloft.net>
7657
7658         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7659         processing int_tests.
7660
7661 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7662
7663         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7664         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7665         * sysdeps/unix/sysv/linux/mips: Move directory from
7666         ports/sysdeps/unix/sysv/linux/mips.
7667         * README: Update listing for mips-*-linux-gnu and
7668         mips64-*-linux-gnu.
7669
7670 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7671
7672         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7673         * sysdeps/unix/sysv/linux/m68k: Move directory from
7674         ports/sysdeps/unix/sysv/linux/m68k.
7675         * README: Update listing for m68k-*-linux-gnu.
7676
7677 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7678
7679         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7680         * sysdeps/unix/sysv/linux/generic: Move directory from
7681         ports/sysdeps/unix/sysv/linux/generic.
7682         * sysdeps/unix/sysv/linux/tile: Move directory from
7683         ports/sysdeps/unix/sysv/linux/tile.
7684         * README: Update listing for tile*-*-linux-gnu.
7685
7686 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7687
7688         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7689         __builtin_expect.
7690         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7691         * catgets/open_catalog.c (__open_catalog): Likewise.
7692         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7693         * debug/confstr_chk.c: Likewise.
7694         * debug/fread_chk.c (__fread_chk): Likewise.
7695         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7696         * debug/getgroups_chk.c: Likewise.
7697         * debug/mbsnrtowcs_chk.c: Likewise.
7698         * debug/mbsrtowcs_chk.c: Likewise.
7699         * debug/mbstowcs_chk.c: Likewise.
7700         * debug/memcpy_chk.c: Likewise.
7701         * debug/memmove_chk.c: Likewise.
7702         * debug/mempcpy_chk.c: Likewise.
7703         * debug/memset_chk.c: Likewise.
7704         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7705         * debug/strcat_chk.c (__strcat_chk): Likewise.
7706         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
7707         * debug/strncat_chk.c (__strncat_chk): Likewise.
7708         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
7709         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
7710         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
7711         * debug/wcpncpy_chk.c: Likewise.
7712         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7713         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
7714         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
7715         * debug/wcsncpy_chk.c: Likewise.
7716         * debug/wcsnrtombs_chk.c: Likewise.
7717         * debug/wcsrtombs_chk.c: Likewise.
7718         * debug/wcstombs_chk.c: Likewise.
7719         * debug/wmemcpy_chk.c: Likewise.
7720         * debug/wmemmove_chk.c: Likewise.
7721         * debug/wmempcpy_chk.c: Likewise.
7722         * debug/wmemset_chk.c: Likewise.
7723         * dirent/scandirat.c (SCANDIRAT): Likewise.
7724         * dlfcn/dladdr1.c (dladdr1): Likewise.
7725         * dlfcn/dladdr.c (dladdr): Likewise.
7726         * dlfcn/dlclose.c (dlclose_doit): Likewise.
7727         * dlfcn/dlerror.c (__dlerror): Likewise.
7728         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7729         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7730         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7731         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7732         * dlfcn/dlsym.c (dlsym_doit): Likewise.
7733         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
7734         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
7735         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
7736         Likewise.
7737         * elf/dl-conflict.c: Likewise.
7738         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7739         * elf/dl-dst.h: Likewise.
7740         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
7741         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
7742         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7743         * elf/dl-init.c (call_init, _dl_init): Likewise.
7744         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
7745         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
7746         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
7747         Likewise.
7748         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
7749         Likewise.
7750         * elf/dl-minimal.c (__libc_memalign): Likewise.
7751         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
7752         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7753         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7754         * elf/dl-sym.c (do_sym): Likewise.
7755         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
7756         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
7757         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
7758         * elf/dl-writev.h (_dl_writev): Likewise.
7759         * elf/ldconfig.c (search_dir): Likewise.
7760         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
7761         (dl_main): Likewise.
7762         * elf/setup-vdso.h (setup_vdso): Likewise.
7763         * grp/compat-initgroups.c (compat_call): Likewise.
7764         * grp/fgetgrent.c (fgetgrent): Likewise.
7765         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
7766         * grp/putgrent.c (putgrent): Likewise.
7767         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7768         Likewise.
7769         * hurd/hurdinit.c: Likewise.
7770         * iconvdata/8bit-gap.c (struct): Likewise.
7771         * iconvdata/ansi_x3.110.c : Likewise.
7772         * iconvdata/big5.c : Likewise.
7773         * iconvdata/big5hkscs.c : Likewise.
7774         * iconvdata/cp1255.c: Likewise.
7775         * iconvdata/cp1258.c : Likewise.
7776         * iconvdata/cp932.c : Likewise.
7777         * iconvdata/euc-cn.c: Likewise.
7778         * iconvdata/euc-jisx0213.c : Likewise.
7779         * iconvdata/euc-jp.c: Likewise.
7780         * iconvdata/euc-jp-ms.c : Likewise.
7781         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
7782         * iconvdata/gb18030.c : Likewise.
7783         * iconvdata/gbbig5.c (const): Likewise.
7784         * iconvdata/gbgbk.c: Likewise.
7785         * iconvdata/gbk.c : Likewise.
7786         * iconvdata/ibm1364.c : Likewise.
7787         * iconvdata/ibm930.c : Likewise.
7788         * iconvdata/ibm932.c: Likewise.
7789         * iconvdata/ibm933.c : Likewise.
7790         * iconvdata/ibm935.c : Likewise.
7791         * iconvdata/ibm937.c : Likewise.
7792         * iconvdata/ibm939.c : Likewise.
7793         * iconvdata/ibm943.c: Likewise.
7794         * iconvdata/iso_11548-1.c: Likewise.
7795         * iconvdata/iso-2022-cn.c : Likewise.
7796         * iconvdata/iso-2022-cn-ext.c : Likewise.
7797         * iconvdata/iso-2022-jp-3.c: Likewise.
7798         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
7799         * iconvdata/iso-2022-kr.c : Likewise.
7800         * iconvdata/iso646.c (gconv_end): Likewise.
7801         * iconvdata/iso_6937-2.c : Likewise.
7802         * iconvdata/iso_6937.c : Likewise.
7803         * iconvdata/iso8859-1.c: Likewise.
7804         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
7805         * iconvdata/shift_jisx0213.c : Likewise.
7806         * iconvdata/sjis.c : Likewise.
7807         * iconvdata/t.61.c : Likewise.
7808         * iconvdata/tcvn5712-1.c : Likewise.
7809         * iconvdata/tscii.c: Likewise.
7810         * iconvdata/uhc.c : Likewise.
7811         * iconvdata/unicode.c (gconv_end): Likewise.
7812         * iconvdata/utf-16.c (gconv_end): Likewise.
7813         * iconvdata/utf-32.c (gconv_end): Likewise.
7814         * iconvdata/utf-7.c (base64): Likewise.
7815         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7816         * iconv/gconv_close.c (__gconv_close): Likewise.
7817         * iconv/gconv_open.c (__gconv_open): Likewise.
7818         * iconv/gconv_simple.c (internal_ucs4_loop_single)
7819         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
7820         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
7821         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
7822         (ucs4le_internal_loop_single): Likewise.
7823         * iconv/iconv.c (iconv): Likewise.
7824         * iconv/iconv_close.c: Likewise.
7825         * iconv/loop.c (SINGLE): Likewise.
7826         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
7827         * include/atomic.h: Likewise.
7828         * inet/inet6_option.c (option_alloc): Likewise.
7829         * intl/bindtextdom.c (set_binding_values): Likewise.
7830         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
7831         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7832         * intl/localealias.c (read_alias_file): Likewise.
7833         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
7834         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
7835         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
7836         * libio/fmemopen.c (fmemopen): Likewise.
7837         * libio/iofgets.c (_IO_fgets): Likewise.
7838         * libio/iofgets_u.c (fgets_unlocked): Likewise.
7839         * libio/iofgetws.c (fgetws): Likewise.
7840         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
7841         * libio/iogetdelim.c (_IO_getdelim): Likewise.
7842         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
7843         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
7844         * locale/findlocale.c (_nl_find_locale): Likewise.
7845         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7846         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
7847         Likewise.
7848         * locale/setlocale.c (setlocale): Likewise.
7849         * login/programs/pt_chown.c (main): Likewise.
7850         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
7851         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
7852         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
7853         (mmap, mmap64, mremap, munmap): Likewise.
7854         * math/e_exp2l.c: Likewise.
7855         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
7856         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
7857         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
7858         * math/s_catan.c (__catan): Likewise.
7859         * math/s_catanf.c (__catanf): Likewise.
7860         * math/s_catanh.c (__catanh): Likewise.
7861         * math/s_catanhf.c (__catanhf): Likewise.
7862         * math/s_catanhl.c (__catanhl): Likewise.
7863         * math/s_catanl.c (__catanl): Likewise.
7864         * math/s_ccosh.c (__ccosh): Likewise.
7865         * math/s_ccoshf.c (__ccoshf): Likewise.
7866         * math/s_ccoshl.c (__ccoshl): Likewise.
7867         * math/s_cexp.c (__cexp): Likewise.
7868         * math/s_cexpf.c (__cexpf): Likewise.
7869         * math/s_cexpl.c (__cexpl): Likewise.
7870         * math/s_clog10.c (__clog10): Likewise.
7871         * math/s_clog10f.c (__clog10f): Likewise.
7872         * math/s_clog10l.c (__clog10l): Likewise.
7873         * math/s_clog.c (__clog): Likewise.
7874         * math/s_clogf.c (__clogf): Likewise.
7875         * math/s_clogl.c (__clogl): Likewise.
7876         * math/s_csin.c (__csin): Likewise.
7877         * math/s_csinf.c (__csinf): Likewise.
7878         * math/s_csinh.c (__csinh): Likewise.
7879         * math/s_csinhf.c (__csinhf): Likewise.
7880         * math/s_csinhl.c (__csinhl): Likewise.
7881         * math/s_csinl.c (__csinl): Likewise.
7882         * math/s_csqrt.c (__csqrt): Likewise.
7883         * math/s_csqrtf.c (__csqrtf): Likewise.
7884         * math/s_csqrtl.c (__csqrtl): Likewise.
7885         * math/s_ctan.c (__ctan): Likewise.
7886         * math/s_ctanf.c (__ctanf): Likewise.
7887         * math/s_ctanh.c (__ctanh): Likewise.
7888         * math/s_ctanhf.c (__ctanhf): Likewise.
7889         * math/s_ctanhl.c (__ctanhl): Likewise.
7890         * math/s_ctanl.c (__ctanl): Likewise.
7891         * math/w_pow.c: Likewise.
7892         * math/w_powf.c: Likewise.
7893         * math/w_powl.c: Likewise.
7894         * math/w_scalb.c (sysv_scalb): Likewise.
7895         * math/w_scalbf.c (sysv_scalbf): Likewise.
7896         * math/w_scalbl.c (sysv_scalbl): Likewise.
7897         * misc/error.c (error_tail): Likewise.
7898         * misc/pselect.c (__pselect): Likewise.
7899         * nis/nis_callback.c (__nis_create_callback): Likewise.
7900         * nis/nis_call.c (__nisfind_server): Likewise.
7901         * nis/nis_creategroup.c (nis_creategroup): Likewise.
7902         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
7903         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
7904         * nis/nis_getservlist.c (nis_getservlist): Likewise.
7905         * nis/nis_lookup.c (nis_lookup): Likewise.
7906         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
7907         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
7908         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
7909         * nis/nis_xdr.c (xdr_endpoint): Likewise.
7910         * nis/nss_compat/compat-grp.c (getgrent_next_file)
7911         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
7912         * nis/nss_compat/compat-initgroups.c (add_group)
7913         (internal_getgrent_r): Likewise.
7914         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
7915         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
7916         * nis/nss_compat/compat-spwd.c (getspent_next_file)
7917         (internal_getspnam_r): Likewise.
7918         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
7919         (_nss_nis_getaliasbyname_r): Likewise.
7920         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
7921         (_nss_nis_getntohost_r): Likewise.
7922         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
7923         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
7924         (_nss_nis_getgrgid_r): Likewise.
7925         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
7926         (internal_nis_gethostent_r, internal_gethostbyname2_r)
7927         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
7928         (_nss_nis_gethostbyname4_r): Likewise.
7929         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
7930         (initgroups_netid): Likewise.
7931         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
7932         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
7933         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
7934         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
7935         (_nss_nis_getprotobynumber_r): Likewise.
7936         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
7937         (_nss_nis_getsecretkey): Likewise.
7938         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
7939         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
7940         (_nss_nis_getpwuid_r): Likewise.
7941         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
7942         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
7943         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
7944         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
7945         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
7946         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
7947         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
7948         Likewise.
7949         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
7950         (_nss_nisplus_getntohost_r): Likewise.
7951         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
7952         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7953         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
7954         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
7955         Likewise.
7956         * nis/nss_nisplus/nisplus-initgroups.c
7957         (_nss_nisplus_initgroups_dyn): Likewise.
7958         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
7959         (_nss_nisplus_getnetbyaddr_r): Likewise.
7960         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
7961         (_nss_nisplus_getprotobynumber_r): Likewise.
7962         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
7963         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
7964         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
7965         Likewise.
7966         * nis/nss_nisplus/nisplus-service.c
7967         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
7968         (_nss_nisplus_getservbyport_r): Likewise.
7969         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
7970         (_nss_nisplus_getspnam_r): Likewise.
7971         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
7972         Likewise.
7973         * nscd/aicache.c (addhstaiX): Likewise.
7974         * nscd/cache.c (cache_search, prune_cache): Likewise.
7975         * nscd/connections.c (register_traced_file, send_ro_fd)
7976         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
7977         (main_loop_epoll): Likewise.
7978         * nscd/grpcache.c (addgrbyX): Likewise.
7979         * nscd/hstcache.c (addhstbyX): Likewise.
7980         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7981         * nscd/mem.c (gc, mempool_alloc): Likewise.
7982         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
7983         (addinnetgrX): Likewise.
7984         * nscd/nscd-client.h (__nscd_acquire_maplock)
7985         (__nscd_drop_map_ref): Likewise.
7986         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7987         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7988         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
7989         Likewise.
7990         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7991         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7992         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
7993         (__nscd_get_map_ref): Likewise.
7994         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7995         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
7996         Likewise.
7997         * nscd/pwdcache.c (addpwbyX): Likewise.
7998         * nscd/selinux.c (preserve_capabilities): Likewise.
7999         * nscd/servicescache.c (addservbyX): Likewise.
8000         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8001         * posix/fnmatch.c (fnmatch): Likewise.
8002         * posix/getopt.c (_getopt_internal_r): Likewise.
8003         * posix/glob.c (glob, glob_in_dir): Likewise.
8004         * posix/wordexp.c (exec_comm_child): Likewise.
8005         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8006         (getanswer_r, gaih_getanswer_slice): Likewise.
8007         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8008         * resolv/res_init.c: Likewise.
8009         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8010         * resolv/res_query.c (__libc_res_nquery): Likewise.
8011         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8012         Likewise.
8013         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
8014         * stdio-common/perror.c (perror): Likewise.
8015         * stdio-common/printf_fp.c (___printf_fp): Likewise.
8016         * stdio-common/tmpnam.c (tmpnam): Likewise.
8017         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
8018         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
8019         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
8020         Likewise.
8021         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8022         * stdlib/putenv.c (putenv): Likewise.
8023         * stdlib/setenv.c (__add_to_environ): Likewise.
8024         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8025         * stdlib/strtol_l.c (INTERNAL): Likewise.
8026         * string/memmem.c (memmem): Likewise.
8027         * string/strerror.c (strerror): Likewise.
8028         * string/strnlen.c (__strnlen): Likewise.
8029         * string/test-memmem.c (simple_memmem): Likewise.
8030         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
8031         * sunrpc/pm_getport.c (__get_socket): Likewise.
8032         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
8033         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
8034         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
8035         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
8036         Likewise.
8037         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8038         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
8039         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8040         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
8041         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8042         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
8043         Likewise.
8044         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
8045         Likewise.
8046         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8047         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8048         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8049         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8050         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8051         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
8052         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
8053         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
8054         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8055         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8056         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8057         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
8058         Likewise.
8059         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
8060         Likewise.
8061         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
8062         Likewise.
8063         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
8064         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8065         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
8066         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
8067         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8068         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
8069         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
8070         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
8071         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
8072         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
8073         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
8074         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8075         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
8076         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
8077         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
8078         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8079         Likewise.
8080         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
8081         Likewise.
8082         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
8083         Likewise.
8084         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
8085         Likewise.
8086         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
8087         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
8088         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
8089         Likewise.
8090         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
8091         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
8092         * sysdeps/posix/opendir.c (__opendirat): Likewise.
8093         * sysdeps/posix/sleep.c: Likewise.
8094         * sysdeps/posix/tempname.c: Likewise.
8095         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
8096         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
8097         Likewise.
8098         * sysdeps/powerpc/powerpc32/dl-machine.h
8099         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
8100         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
8101         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
8102         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
8103         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
8104         Likewise.
8105         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
8106         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
8107         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8108         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
8109         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
8110         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
8111         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
8112         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
8113         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
8114         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
8115         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
8116         (elf_machine_lazy_rel): Likewise.
8117         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
8118         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
8119         (elf_machine_lazy_rel): Likewise.
8120         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
8121         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
8122         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
8123         * sysdeps/unix/grantpt.c (grantpt): Likewise.
8124         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
8125         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
8126         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
8127         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
8128         Likewise.
8129         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8130         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8131         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
8132         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
8133         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8134         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
8135         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
8136         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
8137         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
8138         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8139         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
8140         Likewise.
8141         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
8142         (__posix_fallocate64_l64): Likewise.
8143         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
8144         (posix_fallocate): Likewise.
8145         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8146         Likewise.
8147         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
8148         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
8149         (getifaddrs_internal): Likewise.
8150         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
8151         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
8152         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
8153         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
8154         * sysdeps/unix/sysv/linux/posix_fallocate64.c
8155         (__posix_fallocate64_l64): Likewise.
8156         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
8157         Likewise.
8158         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
8159         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
8160         (__get_clockfreq): Likewise.
8161         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
8162         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
8163         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
8164         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
8165         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
8166         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
8167         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
8168         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
8169         Likewise.
8170         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
8171         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
8172         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
8173         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
8174         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8175         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
8176         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
8177         Likewise.
8178         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
8179         (posix_fallocate): Likewise.
8180         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
8181         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
8182         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
8183         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
8184         (elf_machine_rela, elf_machine_rela_relative)
8185         (elf_machine_lazy_rel): Likewise.
8186         * time/asctime.c (asctime_internal): Likewise.
8187         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
8188         * time/tzset.c (__tzset_parse_tz): Likewise.
8189         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
8190         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
8191         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
8192         * wcsmbs/wcsmbsload.h: Likewise.
8193
8194         [BZ #15894]
8195         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
8196
8197         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
8198         (arena_get2): Remove THREAD_STATS conditionals.
8199         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
8200         (__malloc_stats, int): Likewise.
8201
8202 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
8203
8204         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
8205         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
8206
8207         * manual/setjmp.texi: Fix typos/grammar errors.
8208
8209         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
8210         Only return early when n is <= 0.  Delete unused return statement.
8211
8212         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
8213         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
8214         * debug/tst-longjmp_chk3.c: New file.
8215
8216         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
8217         (test_main): Replace code with set_fortify_handler call.
8218         * debug/test-strcpy_chk.c: Likewise.
8219         * debug/tst-chk1.c: Likewise.
8220         * debug/tst-longjmp_chk.c: Likewise.
8221         * test-skeleton.c: Include fcntl.h & paths.h
8222         (set_fortify_handler): Define.
8223
8224         * debug/tst-longjmp_chk.c: Add header comment and include
8225         ../test-skeleton.c.
8226         (do_test): Mark static.
8227         (TEST_FUNCTION): Define.
8228
8229         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
8230         (IP_PMTUDISC_INTERFACE): Likewise.
8231         (IP_MULTICAST_IF): Likewise.
8232         (IP_MULTICAST_TTL): Likewise.
8233         (IP_MULTICAST_LOOP): Likewise.
8234         (IP_ADD_MEMBERSHIP): Likewise.
8235         (IP_DROP_MEMBERSHIP): Likewise.
8236         (IP_UNBLOCK_SOURCE): Likewise.
8237         (IP_BLOCK_SOURCE): Likewise.
8238         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
8239         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
8240         (IP_MSFILTER): Likewise.
8241         (MCAST_JOIN_GROUP): Likewise.
8242         (MCAST_BLOCK_SOURCE): Likewise.
8243         (MCAST_UNBLOCK_SOURCE): Likewise.
8244         (MCAST_LEAVE_GROUP): Likewise.
8245         (MCAST_JOIN_SOURCE_GROUP): Likewise.
8246         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
8247         (MCAST_MSFILTER): Likewise.
8248         (IP_MULTICAST_ALL): Likewise.
8249         (IP_UNICAST_IF): Likewise.
8250
8251         * timezone/Makefile: Delete $(have-ksh) check.
8252         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
8253         * timezone/tzselect.ksh: Add +x mode bits.
8254
8255         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
8256         (ANON_INODE_FS_MAGIC): Likewise.
8257         (BDEVFS_MAGIC): Likewise.
8258         (BINFMTFS_MAGIC): Likewise.
8259         (BTRFS_TEST_MAGIC): Likewise.
8260         (CRAMFS_MAGIC_WEND): Likewise.
8261         (DEBUGFS_MAGIC): Likewise.
8262         (ECRYPTFS_SUPER_MAGIC): Likewise.
8263         (EXT3_SUPER_MAGIC): Likewise.
8264         (EXT4_SUPER_MAGIC): Likewise.
8265         (FUTEXFS_SUPER_MAGIC): Likewise.
8266         (HOSTFS_SUPER_MAGIC): Likewise.
8267         (HUGETLBFS_MAGIC): Likewise.
8268         (MINIX3_SUPER_MAGIC): Likewise.
8269         (MTD_INODE_FS_MAGIC): Likewise.
8270         (NILFS_SUPER_MAGIC): Likewise.
8271         (OPENPROM_SUPER_MAGIC): Likewise.
8272         (PIPEFS_MAGIC): Likewise.
8273         (PSTOREFS_MAGIC): Likewise.
8274         (QNX6_SUPER_MAGIC): Likewise.
8275         (RAMFS_MAGIC): Likewise.
8276         (REISERFS_SUPER_MAGIC_STRING): Likewise.
8277         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
8278         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
8279         (SECURITYFS_MAGIC): Likewise.
8280         (SELINUX_MAGIC): Likewise.
8281         (SMACK_MAGIC): Likewise.
8282         (SOCKFS_MAGIC): Likewise.
8283         (SQUASHFS_MAGIC): Likewise.
8284         (STACK_END_MAGIC): Likewise.
8285         (TMPFS_MAGIC): Likewise.
8286         (USBDEVICE_SUPER_MAGIC): Likewise.
8287         (V9FS_MAGIC): Likewise.
8288         (XENFS_SUPER_MAGIC): Likewise.
8289         (CRAMFS_MAGIC): Fix typo in comment.
8290         (EXT2_SUPER_MAGIC): Update comment.
8291         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
8292
8293 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
8294
8295         * sysdeps/arm: Move directory from ports/sysdeps/arm.
8296         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
8297         * sysdeps/unix/sysv/linux/arm: Move directory from
8298         ports/sysdeps/unix/sysv/linux/arm.
8299         * README: Update listing for arm-*-linux-gnueabi.
8300
8301         * README: Remove mention of am33.
8302
8303 2014-02-07  Roland McGrath  <roland@hack.frob.com>
8304
8305         * bits/sigset.h (__sigemptyset): Use a statement expression rather
8306         than the comma operator, to avoid "rhs of comma has no effect"
8307         compiler warnings.
8308         (__sigfillset, __sigandset, __sigorset): Likewise.
8309         * include/signal.h (__sigemptyset): Likewise.
8310         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
8311
8312 2014-02-07  Allan McRae  <allan@archlinux.org>
8313
8314         * version.h (RELEASE): Set to "development".
8315         (VERSION): Set to "2.19.90"
8316         * NEWS: Add 2.20 section.
8317
8318 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
8319
8320         [BZ #16529]
8321         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
8322
8323 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8324
8325         * manual/contrib.texi: Update entry for Carlos O'Donell,
8326         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
8327
8328 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
8329
8330         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
8331
8332         * sysdeps/unix/sysv/linux/kernel-features.h
8333         [__LINUX_KERNEL_VERSION >= 0x020621]
8334         (__ASSUME_PROC_PID_TASK_COMM): Define.
8335
8336 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8337
8338         [BZ #16398]
8339         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
8340         conversion when destination buffer does not have enough space.
8341         * libio/tst-ftell-partial-wide.c: New test case.
8342         * libio/Makefile (tests): Add tst-ftell-partial-wide.
8343
8344         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
8345         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
8346         Leonard and Allan McRae.
8347
8348 2014-02-04  David S. Miller  <davem@davemloft.net>
8349
8350         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
8351         32-bit.
8352
8353 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8354
8355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
8356         New file
8357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
8358         New file
8359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
8360         New file.
8361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
8362         New file.
8363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
8364         New file.
8365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
8366         New file.
8367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
8368         New file.
8369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
8370         New file.
8371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
8372         New file.
8373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
8374         New file.
8375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
8376         New file.
8377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
8378         New file.
8379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
8380         New file.
8381
8382 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8383
8384         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8385         * shlib-versions: Likewise.
8386
8387 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8388             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8389
8390         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8391         (abilist-pattern): New variable, set to %-le.abilist.
8392
8393         * Makerules (abilist-pattern): New variable.
8394         (vpath): Use $(abilist-pattern) in place of %.abilist.
8395         (check-abi-% pattern rule): Likewise.
8396         (check-abi, update-abi): Likewise.
8397
8398 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8399
8400         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8401
8402 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8403
8404         * manual/startup.texi: Add next, previous, and top entries for
8405         the `Program Arguments' and `Environment Variables' nodes.
8406
8407 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8408
8409         * manual/macros.texi: Add comments before MTASC-safety macros.
8410
8411         * manual/users.texi: Document MTASC-safety properties.
8412
8413         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8414         (pthread_getspecific, pthread_setspecific): Format with
8415         @deftypefun, and add @safety note.
8416         * manual/signal.texi: Move comments that analyze the above
8417         functions to their home place.
8418
8419 2014-02-03  Allan McRae  <allan@archlinux.org>
8420
8421         * po/sl.po: Update Slovenian translation from translation project.
8422
8423 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8424
8425         * manual/time.texi (timegm): Add missing blank after @c.
8426         Reported by Joseph Myers <joseph@codesourcery.com>.
8427
8428 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8429
8430         * manual/check-safety.sh: New.
8431         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8432
8433         * manual/terminal.texi: Document MTASC-safety properties.
8434
8435         * manual/filesys.texi: Document MTASC-safety properties.
8436
8437         * manual/errno.texi: Document MTASC-safety properties.
8438
8439         * manual/intro.texi: Document safety identifiers and
8440         conditionals.
8441
8442         * manual/string.texi (wcstok): Fix prototype.
8443         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8444
8445         * manual/time.texi: Document MTASC-safety properties.
8446
8447         * manual/string.texi: Document MTASC-safety properties.
8448
8449         * manual/threads.texi: Document MTASC-safety properties.
8450
8451         * manual/stdio.texi: Document MTASC-safety properties.
8452
8453         * manual/syslog.texi: Document MTASC-safety properties.
8454
8455         * manual/sysinfo.texi: Document MTASC-safety properties.
8456
8457         * manual/startup.texi: Document MTASC-safety properties.
8458
8459         * manual/socket.texi: Document MTASC-safety properties.
8460
8461         * manual/signal.texi: Document MTASC-safety properties.
8462
8463 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8464
8465         * manual/setjmp.texi: Document MTASC-safety properties.
8466
8467         * manual/search.texi: Document MTASC-safety properties.
8468
8469         * manual/resource.texi: Document MTASC-safety properties.
8470
8471         * manual/process.texi: Document MTASC-safety properties.
8472
8473         * manual/platform.texi: Document MTASC-safety properties.
8474
8475         * manual/pipe.texi: Document MTASC-safety properties.
8476
8477         * manual/pattern.texi: Document MTASC-safety properties.
8478
8479         * manual/message.texi: Document MTASC-safety properties.
8480
8481         [BZ #12751]
8482         * manual/memory.texi: Document MTASC-safety properties.
8483
8484         * manual/math.texi: Document MTASC-safety properties.
8485
8486         * manual/locale.texi: Document MTASC-safety properties.
8487
8488         * manual/llio.texi: Document MTASC-safety properties.
8489
8490         * manual/libdl.texi: New.
8491
8492         * manual/lang.texi: Document MTASC-safety properties.
8493
8494         * manual/job.texi: Document MTASC-safety properties.
8495
8496         * manual/getopt.texi: Document MTASC-safety properties.
8497
8498         * manual/ctype.texi: Document MTASC-safety properties.
8499
8500 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8501
8502         [BZ #16046]
8503         * csu/libc-tls.c (static_map): Remove variable.
8504         (__libc_setup_tls): Use main executable's link map for TLS data.
8505         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8506         casing for LM_ID_BASE and GL(dl_nns).
8507         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8508         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8509         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8510         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8511         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8512         member.
8513         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8514         l_phnum members.
8515
8516 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8517
8518         * manual/debug.texi: Document MTASC-safety properties.
8519
8520 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8521
8522         [BZ #16510]
8523         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8524         of __x86_64__ when disabling x87 inline functions.
8525
8526 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8527
8528         * manual/charset.texi: Document MTASC-safety properties.
8529
8530         * manual/crypt.texi: Document MTASC-safety properties.
8531
8532         * manual/conf.texi: Document MTASC-safety properties.
8533
8534         * manual/arith.texi: Document MTASC-safety properties.
8535
8536         * manual/argp.texi: Document MTASC-safety properties.
8537
8538         * manual/macros.texi: Introduce macros to document multi
8539         thread, asynchronous signal and asynchronous cancellation
8540         safety properties.
8541         * manual/intro.texi: Introduce the properties themselves.
8542
8543 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8544
8545         * sysdeps/sh/sh4/Makefile: New file.
8546
8547 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8548
8549         * math/gen-libm-test.pl ($srcdir): New variable.
8550         ($auto_input): Use it.
8551
8552 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8553
8554         [BZ #16506]
8555         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8556         access beyond array bounds when parsing netgroups file.
8557
8558         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8559         the old buffer before realloc.
8560
8561 2014-01-27  Allan McRae  <allan@archlinux.org>
8562
8563         * po/fr.po: Update French translation from translation project.
8564
8565 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8566
8567         * sysdeps/sh/libm-test-ulps: Regenerate.
8568
8569 2014-01-24  David S. Miller  <davem@davemloft.net>
8570
8571         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8572
8573 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8574
8575         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8576         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8577
8578 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8579
8580         [BZ #16474]
8581         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8582         string pointers after reallocation.
8583
8584 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8585
8586         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8587         __SH4A__ instead of __SH_FPU_ANY__.
8588
8589 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8590
8591         * sysdeps/sh/fpu_control.h: New file.
8592         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8593         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8594         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8595         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8596         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8597         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8598         * sysdeps/sh/sys/ucontext.h: Remove.
8599         * sysdeps/sh/sys: Remove directory.
8600
8601 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8602
8603         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8604         s390/sys/ucontext.h.
8605         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8606         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8607
8608 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8609
8610         [BZ #15605]
8611         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8612
8613 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8614
8615         [BZ#16431]
8616         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8617         Adjust the vDSO correctly for internal calls.
8618         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8619
8620 2014-01-20  Allan McRae  <allan@archlinux.org>
8621
8622         * po/ca.po: Update Catalan translation from translation project.
8623
8624 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8625
8626         * sysdeps/s390/sotruss-lib.c: New file.
8627
8628 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8629
8630         [BZ#16430]
8631         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8632         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8633         local calls issues by not having a PLT stub required for IFUNC calls.
8634         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8635
8636 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8637
8638         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8639         * math/test-fpucw-static.c: Likewise.
8640
8641 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8642
8643         [BZ #16453]
8644         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8645
8646 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8647
8648         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8649         implementation for powerpc.
8650
8651 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8652
8653         [BZ #14782]
8654         * sysdeps/posix/system.c (__libc_system): Do not enable
8655         asynchronous cancellation.
8656
8657 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8658
8659         [BZ #16427]
8660         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8661         handling only for numbers special also in the IEEE case.
8662
8663 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8664
8665         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8666
8667 2014-01-11  Allan McRae  <allan@archlinux.org>
8668
8669         * po/bg.po: Update Bulgarian translation from translation project.
8670
8671         * po/de.po: Update German translation from translation project.
8672
8673 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8674
8675         * sysdeps/generic/gcc-compat.h: New file.
8676
8677 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8678
8679         * benchtests/asin-inputs: Correct slow inputs.
8680         * benchtests/acos-inputs: Likewise.
8681
8682 2014-01-10  Allan McRae  <allan@archlinux.org>
8683
8684         * po:sv.po: Update Swedish translation from translation project.
8685
8686         * po/vi.po: Update Vietnamese translation from translation project.
8687
8688         * po/eo.po: Update Esperanto translation from translation project.
8689
8690         * po/cs.po: Update Czech translation from translation project.
8691
8692         * po/nl.po: Update Dutch translation from translation project.
8693
8694         * po/pl.po: Update Polish translation from translation project.
8695
8696         * po/ru.po: Update Russian translation from translation project.
8697
8698         * po/uk.po: Update Ukrainian translation from translation project.
8699
8700 2014-01-08  Brooks Moses  <bmoses@google.com>
8701
8702         * elf/dl-load.c: Fix comment typo.
8703
8704 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8705
8706         * po/header.pot: Rename to...
8707         * po/pot.header: ... this.
8708         * po/Makefile: Use pot.header.
8709
8710 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
8711             Maxim Kuvyrkov  <maxim@kugelworks.com>
8712
8713         [BZ #16394]
8714         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
8715         SRC and DEST against LEN.
8716
8717 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8718
8719         [BZ #16414]
8720         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
8721         implementation.
8722         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
8723
8724 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8725
8726         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8727
8728 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
8729
8730         [BZ #16408]
8731         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
8732         for large positive arguments.
8733
8734 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
8735
8736         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8737
8738         * math/auto-libm-test-in: Mark various tests with
8739         xfail-rounding:ldbl-128ibm.
8740         * math/auto-libm-test-out: Regenerated.
8741
8742         [BZ #16407]
8743         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
8744         Increase overflow threshold.
8745
8746 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
8747
8748         [BZ #14286]
8749         * stdio-common/vfprintf.c: Check for integer overflow.
8750
8751 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8752
8753         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
8754         the first argument and return value of __tls_get_addr_internal.
8755
8756 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8757
8758         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
8759         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
8760
8761 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8762
8763         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
8764         * sysdeps/s390/rtld-global-offsets.sym: New file.
8765         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
8766         GLIBC_2.19 symbol.
8767         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
8768         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
8769         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
8770         ... this.
8771         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
8772         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
8773         ... this.
8774         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8775         Regenerate.
8776         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8777         Regenerate.
8778         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
8779         halfs of GPRs for high_gprs contexts.
8780         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
8781         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
8782         field.
8783         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
8784         uc_flags field.
8785         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
8786         64 bit versions:
8787         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
8788         for high GPRs (uc_high_gprs) and for future extensions
8789         (__reserved).
8790         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
8791         for future extensions (__reserved).
8792         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
8793         64 bit versions:
8794         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
8795         SC_HIGHGPRS offset definition.
8796         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
8797         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
8798
8799         * Versions.def: Add GLIBC_2.19 for libpthread.
8800         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
8801         siglongjmp for libpthread with GLIBC_2.19 symver.
8802         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
8803         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
8804         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
8805         * sysdeps/s390/__longjmp.c: New file.
8806         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
8807         * sysdeps/s390/longjmp.c: New file.
8808         * sysdeps/s390/setjmp.S: New file.
8809         * sysdeps/s390/sigjmp.S: New file.
8810         * sysdeps/s390/v1-longjmp.c: New file.
8811         * sysdeps/s390/v1-setjmp.h: New file.
8812         * sysdeps/s390/v1-sigjmp.c: New file.
8813         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
8814         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
8815         GLIBC_2.19 version.
8816         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
8817         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
8818         versioned symbols for ____longjmp_chk.
8819         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
8820         Likewise.
8821         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8822         Regenerate.
8823         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8824         Regenerate.
8825         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8826         Regenerate.
8827         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8828         Regenerate.
8829         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
8830         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
8831         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
8832         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
8833         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
8834         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
8835         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
8836         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
8837         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
8838         * sysdeps/s390/rtld-__longjmp.c: New file.
8839         * sysdeps/s390/rtld-setjmp.S: New file.
8840
8841 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
8842
8843         [BZ #16400]
8844         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8845         Return -__logl (x) for small positive arguments without evaluating
8846         a polynomial.
8847
8848 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
8849
8850         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
8851         Rename to ...
8852         (__ptrace_peeksiginfo_args): ... this.
8853         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8854         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8855         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8856
8857 2014-01-06  Allan McRae  <allan@archlinux.org>
8858
8859         * inet/netinet/in.h: Fix typo in comment.
8860
8861 2014-01-05  Andreas Jaeger  <aj@suse.de>
8862
8863         * sysdeps/i386/fpu/libm-test-ulps: Update.
8864
8865 2014-01-05  Allan McRae  <allan@archlinux.org>
8866
8867         * po/libc.pot: Regenerated.
8868
8869         * malloc/memusagestat.c: Fix gettext call formatting.
8870
8871 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
8872
8873         * nscd/nscd.c: Improve usage() output.
8874
8875 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
8876
8877         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
8878         * sysdeps/unix/sysv/linux/configure: Regenerated.
8879         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
8880         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
8881
8882 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8883
8884         [BZ #16390]
8885         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
8886         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
8887
8888 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8889
8890         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
8891         extra tokens at end of #undef directive.
8892         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
8893         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
8894         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
8895
8896 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8897
8898         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8899
8900         * math/auto-libm-test-in: Mark various tests with
8901         xfail-rounding:ldbl-128ibm.
8902         * math/auto-libm-test-out: Regenerated.
8903
8904 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
8905
8906         [BZ #16386]
8907         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
8908         numbers with subnormal high part when calculating exponent.
8909
8910         [BZ #16385]
8911         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
8912         fabs.
8913
8914         [BZ #16384]
8915         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
8916         M_LN2l.
8917         (__ieee754_acoshl): Use __log1pl not __log1p.
8918
8919 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
8920
8921         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
8922         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
8923         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
8924         (grow_heap, heap_trim, _int_new_arena, get_free_list)
8925         (reused_arena, arena_get2): Convert to GNU style.
8926         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
8927         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
8928         (memalign_check, __malloc_set_state): Likewise.
8929         * malloc/mallocbug.c (main): Likewise.
8930         * malloc/malloc.c (__malloc_assert, malloc_init_state)
8931         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
8932         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
8933         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
8934         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
8935         (__posix_memalign, malloc_info): Likewise.
8936         * malloc/malloc.h: Likewise.
8937         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
8938         (mallochook, memalignhook, reallochook, mabort): Likewise.
8939         * malloc/mcheck.h: Likewise.
8940         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
8941         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
8942         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
8943         * malloc/morecore.c (__default_morecore): Likewise.
8944         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
8945         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
8946         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
8947         (print_and_abort): Likewise.
8948         * malloc/obstack.h: Likewise.
8949         * malloc/set-freeres.c (__libc_freeres): Likewise.
8950         * malloc/tst-mallocstate.c (main): Likewise.
8951         * malloc/tst-mtrace.c (main): Likewise.
8952         * malloc/tst-realloc.c (do_test): Likewise.
8953
8954 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8955
8956         [BZ #16366]
8957         * nscd/netgroupcache.c (do_notfound): New function.
8958         (addgetnetgrentX): Use it.
8959
8960         [BZ # 16365]
8961         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
8962         NSS_STATUS_NOTFOUND.
8963
8964 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
8965
8966         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
8967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8968
8969 2014-01-01  Allan McRae  <allan@archlinux.org>
8970
8971         * scripts/update-copyrights: Update configure input file suffix.
8972
8973         * NEWS: Update copyright year.
8974         * catgets/gencat.c: Likewise.
8975         * csu/version.c: Likewise.
8976         * debug/catchsegv.sh: Likewise.
8977         * debug/pcprofiledump.c: Likewise.
8978         * debug/xtrace.sh: Likewise.
8979         * elf/ldconfig.c: Likewise.
8980         * elf/ldd.bash.in: Likewise.
8981         * elf/pldd.c: Likewise.
8982         * elf/sotruss.ksh: Likewise.
8983         * elf/sprof.c: Likewise.
8984         * iconv/iconv_prog.c: Likewise.
8985         * iconv/iconvconfig.c: Likewise.
8986         * locale/programs/locale.c: Likewise.
8987         * locale/programs/localedef.c: Likewise.
8988         * login/programs/pt_chown.c: Likewise.
8989         * malloc/memusage.sh: Likewise.
8990         * malloc/memusagestat.c: Likewise.
8991         * malloc/mtrace.pl: Likewise.
8992         * manual/libc.texinfo: Likewise.
8993         * nscd/nscd.c: Likewise.
8994         * nss/getent.c: Likewise.
8995         * nss/makedb.c: Likewise.
8996         * posix/getconf.c: Likewise.
8997         * scripts/test-installation.pl: Likewise.
8998
8999         * All files with FSF copyright notices: Update copyright dates
9000         using scripts/update-copyrights.
9001         * intl/plural.c: Regenerated.
9002         * locale/programs/charmap-kw.h: Likewise.
9003         * locale/programs/locfile-kw.h: Likewise.
9004
9005 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9006
9007         * sysdeps/unix/sysv/linux/configure: Regenerated.
9008         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9009         the linux/fanotify.h header.
9010         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9011         HAVE_LINUX_FANOTIFY_H is defined.
9012
9013 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9014
9015         * benchtests/cos-inputs: New inputs.
9016         * benchtests/sin-inputs: Likewise.
9017
9018         * benchtests/atan-inputs: New inputs. Fix name of multiple
9019         precision fallback inputs.
9020
9021         * benchtests/atanh-inputs: New inputs.
9022         * benchtests/tanh-inputs: Likewise.
9023
9024         * benchtests/acosh-inputs: New inputs.
9025         * benchtests/asinh-inputs: Likewise.
9026
9027         * benchtests/cosh-inputs: New inputs.
9028         * benchtests/sinh-inputs: Likewise.
9029
9030         * benchtests/acos-inputs: Add more inputs.
9031         * benchtests/asin-inputs: Likewise.
9032
9033 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
9034
9035         [BZ #16375]
9036         * manual/arith.texi: Fix spelling.
9037         * manual/charset.texi: Likewise.
9038         * manual/errno.texi: Likewise.
9039         * manual/filesys.texi: Likewise.
9040         * manual/lang.texi: Likewise.
9041         * manual/llio.texi: Likewise.
9042         * manual/locale.texi: Likewise.
9043         * manual/message.texi: Likewise.
9044         * manual/resource.texi: Likewise.
9045         * manual/search.texi: Likewise.
9046         * manual/setjmp.texi: Likewise.
9047         * manual/stdio.texi: Likewise.
9048         * manual/string.texi: Likewise.
9049         * manual/sysinfo.texi: Likewise.
9050         * manual/time.texi: Likewise.
9051
9052 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
9053
9054         * po/sl.po: New file.
9055
9056 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
9057
9058         * .gitignore: Add core/.gdbinit/.gdb_history.
9059
9060 2013-12-27  Allan McRae  <allan@archlinux.org>
9061
9062         [BZ #16369]
9063         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
9064         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
9065
9066 2013-12-24  Brooks Moses  <bmoses@google.com>
9067
9068         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
9069         all compilers that claim C++98 compliance, not just GCC.
9070         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
9071         Likewise.
9072
9073 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9074
9075         * NEWS: Restore accidentally deleted bug-fix entries.
9076
9077 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
9078             Ondřej Bílka  <neleai@seznam.cz>
9079
9080         [BZ #15073]
9081         * malloc/malloc.c (_int_free): Perform sanity check only if we
9082         have_lock.
9083
9084 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
9085
9086         [BZ #12986]
9087         * manual/stdio.texi (String Input Conversions): Clarify that character
9088         classes are not supported.
9089
9090 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9091
9092         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9093
9094 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
9095
9096         [BZ #16337]
9097         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9098         Calculate results for small negative arguments directly rather
9099         than using reflection formula with special underflow handling.
9100
9101         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
9102         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
9103         sysdeps/unix/bsd/bsd4.4/syscalls.list.
9104         (fchflags): Likewise.
9105         (revoke): Likewise.
9106         (setlogin): Likewise.
9107         (sigaltstack): Likewise.
9108         (wait4): Likewise.
9109         (sigblock): Remove.
9110         (sigsetmask): Likewise.
9111         (wait3): Likewise.
9112         (waitpid): Likewise.
9113         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
9114         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
9115         file.
9116         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
9117         * sysdeps/unix/bsd/Makefile: ... here.
9118         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
9119         * sysdeps/unix/bsd/Versions: ... here.
9120         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
9121         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
9122         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
9123         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
9124         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
9125         * sysdeps/unix/bsd/sigblock.c: ... here.
9126         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
9127         * sysdeps/unix/bsd/sigsetmask.c: ... here.
9128         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
9129         * sysdeps/unix/bsd/sigvec.c: ... here.
9130         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
9131         * sysdeps/unix/bsd/tcdrain.c: ... here.
9132         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
9133         * sysdeps/unix/bsd/tcgetattr.c: ... here.
9134         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
9135         * sysdeps/unix/bsd/tcsetattr.c: ... here.
9136         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
9137         * sysdeps/unix/bsd/wait.c: ... here.
9138         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
9139         * sysdeps/unix/bsd/wait3.c: ... here.
9140         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
9141         * sysdeps/unix/bsd/waitpid.c: ... here.
9142
9143 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
9144
9145         [BZ #16356]
9146         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
9147         round-to-nearest for [!USE_AS_EXPM1L].
9148         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
9149         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
9150         more tests of exp and exp10.  Expect some exp10 tests to miss
9151         exceptions or fail in directed rounding modes.
9152         * math/auto-libm-test-out: Regenerated.
9153         * math/libm-test.inc (exp10_tonearest_test_data): New array.
9154         (exp10_test_tonearest): New function.
9155         (exp10_towardzero_test_data): New array.
9156         (exp10_test_towardzero): New function.
9157         (exp10_downward_test_data): New array.
9158         (exp10_test_downward): New function.
9159         (exp10_upward_test_data): New array.
9160         (exp10_test_upward): New function.
9161         (main): Call the new functions.
9162         * sysdeps/i386/fpu/libm-test-ulps: Update.
9163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9164
9165 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
9166
9167         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
9168         asinh, atan, atan2, atanh, cbrt, cos and cosh.
9169         * math/auto-libm-test-out: Regenerated.
9170         * math/libm-test.inc (acosh_test_data): Add more tests.
9171         (atanh_test_data): Likewise.
9172         (ceil_test_data): Likewise.
9173         (copysign_test_data): Likewise.
9174         * sysdeps/i386/fpu/libm-test-ulps: Update.
9175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9176
9177         * timezone/checktab.awk: Update from tzcode 2013i.
9178         * timezone/private.h: Likewise.
9179         * timezone/scheck.c: Likewise.
9180         * timezone/tzfile.h: Likewise.
9181         * timezone/tzselect.ksh: Likewise.
9182         * timezone/zdump.c: Likewise.
9183         * timezone/zic.c: Likewise.
9184
9185         * math/auto-libm-test-in: Add tests of cpow.
9186         * math/auto-libm-test-out: Regenerated.
9187         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
9188         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9189         mpc_cc_c.
9190         (func_calc_desc): Add mpc_cc_c union field.
9191         (test_functions): Add cpow.
9192         (special_fill_2pi): New function.
9193         (special_real_inputs): Add 2pi.
9194         (calc_generic_results): Handle mpc_cc_c.
9195         * sysdeps/i386/fpu/libm-test-ulps: Update.
9196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9197
9198         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
9199         csqrt, ctan and ctanh.
9200         * math/auto-libm-test-out: Regenerated.
9201         * math/libm-test.inc (TEST_COND_x86_64): New macro.
9202         (TEST_COND_x86): Likewise.
9203         (ccos_test_data): Use AUTO_TESTS_c_c.
9204         (ccosh_test_data): Likewise.
9205         (cexp_test_data): Likewise.
9206         (clog_test_data): Likewise.
9207         (csqrt_test_data): Likewise.
9208         (ctan_test_data): Likewise.
9209         (ctan_tonearest_test_data): Likewise.
9210         (ctan_towardzero_test_data): Likewise.
9211         (ctan_downward_test_data): Likewise.
9212         (ctan_upward_test_data): Likewise.
9213         (ctanh_test_data): Likewise.
9214         (ctanh_tonearest_test_data): Likewise.
9215         (ctanh_towardzero_test_data): Likewise.
9216         (ctanh_downward_test_data): Likewise.
9217         (ctanh_upward_test_data): Likewise.
9218         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9219         mpc_c_c.
9220         (func_calc_desc): Add mpc_c_c union field.
9221         (FUNC_mpc_c_c): New macro.
9222         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
9223         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
9224         ctanh.
9225         (special_fill_min_subnorm_p120): New function.
9226         (special_real_inputs): Add min_subnorm_p120.
9227         (calc_generic_results): Handle mpc_c_c.
9228         * sysdeps/i386/fpu/libm-test-ulps: Update.
9229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9230
9231 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9232
9233         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
9234         (do_sin_slow): New functions.
9235         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
9236         (cslow2, csloww1, csloww2): Use the new functions.
9237
9238         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
9239         Use M to change sign of result instead of X.  Assume X is
9240         positive.
9241         (csloww1): Likewise.
9242         (__sin): Adjust.
9243         (__cos): Adjust.
9244
9245         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
9246         arguments A and DA.
9247         (__sin): Adjust.
9248         (__cos): Likewise.
9249
9250         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
9251         (__cos): Likewise.
9252         (sloww1): Don't adjust sign of DX.
9253         (csloww1): Likewise.
9254         (sloww2): Use X directly and don't adjust sign of DX.
9255         (csloww2): Likewise.
9256
9257 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9258
9259         * math/auto-libm-test-in: Add tests of cabs and carg.
9260         * math/auto-libm-test-out: Regenerated.
9261         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
9262         (carg_test_data): Likewise.
9263         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9264         mpc_c_f.
9265         (func_calc_desc): Add mpc_c_f union field.
9266         (test_functions): Add cabs and carg.
9267         (calc_generic_results): Handle mpc_c_f.
9268
9269         * sysdeps/powerpc/powerpc32/libgcc-compat.S
9270         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
9271         as a macro and a compat symbol.
9272         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
9273         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
9274         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
9275         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
9276         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
9277         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
9278         not use .hidden.
9279         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
9280         Likewise.
9281         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
9282         Likewise.
9283         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
9284         Likewise.
9285         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
9286         Likewise.
9287         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
9288         Likewise.
9289         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
9290         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
9291         from GLIBC_2.3.2.
9292
9293 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9294
9295         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9296
9297 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9298
9299         * manual/texinfo.tex: Update to version 2013-11-26.10 with
9300         trailing whitespace removed.
9301         * scripts/config.guess: Update to version 2013-11-29.
9302         * scripts/config.sub: Update to version 2013-10-01.
9303
9304         * math/auto-libm-test-in: Add tests of sincos.
9305         * math/auto-libm-test-out: Regenerated.
9306         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
9307         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9308         mpfr_f_11.
9309         (func_calc_desc): Add mpfr_f_11 union field.
9310         (test_functions): Add sincos.
9311         (calc_generic_results): Handle mpfr_f_11.
9312         * sysdeps/i386/fpu/libm-test-ulps: Update.
9313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9314
9315 2013-12-19  Andreas Schwab  <schwab@suse.de>
9316
9317         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
9318         CALL_MCOUNT.
9319         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9320         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
9321         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
9322
9323 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
9324
9325         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
9326         * sysdeps/i386/fpu/libm-test-ulps: Update.
9327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9328
9329         [BZ #16293]
9330         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
9331         round-to-nearest mode when using frndint.
9332         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
9333         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9334         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
9335         Likewise.
9336         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
9337         sinh test to fail.
9338         * math/auto-libm-test-out: Regenerated.
9339         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
9340         (TEST_COND_x86): Likewise.
9341         (expm1_tonearest_test_data): New array.
9342         (expm1_test_tonearest): New function.
9343         (expm1_towardzero_test_data): New array.
9344         (expm1_test_towardzero): New function.
9345         (expm1_downward_test_data): New array.
9346         (expm1_test_downward): New function.
9347         (expm1_upward_test_data): New array.
9348         (expm1_test_upward): New function.
9349         (main): Run the new test functions.
9350         * sysdeps/i386/fpu/libm-test-ulps: Update.
9351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9352
9353         * include/features.h: Update comment documenting feature test
9354         macros.  Mention _DEFAULT_SOURCE in comment.
9355         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
9356         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
9357         _BSD_SOURCE and _SVID_SOURCE.
9358         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
9359         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
9360         !_SVID_SOURCE]: Likewise.
9361         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9362         (__USE_POSIX_IMPLICITLY): Define.
9363         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9364         (_POSIX_SOURCE): Undefine and redefine.
9365         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
9366         (_POSIX_C_SOURCE): Likewise.
9367         * manual/creature.texi (_DEFAULT_SOURCE): Document.
9368         (Feature Test Macros): Update documentation of default features.
9369
9370 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9371
9372         * benchtests/Makefile: Add bench-strtok.
9373         * benchtests/bench-strtok.c: New file: strtok benchtest.
9374
9375 2013-12-19  Allan McRae  <allan@archlinux.org>
9376
9377         * manual/install.texi: Suppress menu for plain text output.
9378         * INSTALL: Regenerated.
9379
9380 2013-12-18  Brooks Moses  <bmoses@google.com>
9381
9382         [BZ #15846]
9383         * misc/getauxval.c: Include errno.h.
9384         (__getauxval): Set errno to ENOENT if the requested type is not
9385         found.
9386         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9387         don't declare with __attribute_const__.
9388         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9389         * manual/startup.texi: Document that getauxval sets errno.
9390
9391 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9392
9393         * math/auto-libm-test-in: Add tests of jn and yn.
9394         * math/auto-libm-test-out: Regenerated.
9395         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9396         (yn_test_data): Likewise.
9397         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9398         mpfr_if_f.
9399         (func_calc_desc): Add mpfr_if_f union field.
9400         (FUNC_mpfr_if_f): New macro.
9401         (test_functions): Add jn and yn.
9402         (calc_generic_results): Assert type of second input for
9403         mpfr_ff_f.  Handle mpfr_if_f.
9404         (output_for_one_input_case): Disable all checking for arguments
9405         fitting floating-point types in case of an integer argument.
9406         * sysdeps/i386/fpu/libm-test-ulps: Update.
9407         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9408
9409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9410         Don't expect fegetround reference in libm.so.
9411
9412 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9413
9414         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9415         $(config-cflags-nofma).
9416
9417 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9418
9419         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9420         * math/auto-libm-test-out: Regenerated.
9421
9422         [BZ #16338]
9423         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9424         to determine exponent and adjust argument to have exponent of -1.
9425         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9426         log2.
9427         * math/auto-libm-test-out: Regenerated.
9428         * sysdeps/i386/fpu/libm-test-ulps: Update.
9429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9430
9431 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9432
9433         * manual/probes.texi: Remove cases when per-thread arenas are
9434         disabled.
9435
9436 2013-12-18  Andreas Schwab  <schwab@suse.de>
9437
9438         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9439         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9440         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9441         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9442         * sysdeps/i386/i686/multiarch/Makefile: Update.
9443         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9444
9445 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9446
9447         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9448         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9449
9450 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9451
9452         [BZ #15968]
9453         Support TZ transition times < 00:00:00.
9454         This is needed for version-3 tz-format files; it supports time
9455         stamps past 2037 for America/Godthab (the only entry in the tz
9456         database for which this change is relevant).
9457         * manual/time.texi (TZ Variable): Document transition times
9458         from -167:59:59 through -00:00:01.
9459         * time/tzset.c (tz_rule): Time of day is now signed.
9460         (__tzset_parse_tz): Parse negative time of day.
9461
9462         Document TZ transition times >= 25:00:00.
9463         * manual/time.texi (TZ Variable): Document transition times from
9464         25:00:00 through 167:59:59.  These are already supported, and this
9465         support will help with version-3 tz-format files.
9466
9467         * manual/time.texi (TZ Variable): Modernize North America example
9468         to reflect current (i.e., 2007-and-later) daylight saving rules.
9469
9470         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9471
9472 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9473
9474         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9475         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9476         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9477         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9478         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9479         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9480         * sysdeps/unix/bsd/clock.c: Likewise.
9481         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9482         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9483         * sysdeps/unix/bsd/init-posix.c: Likewise.
9484         * sysdeps/unix/bsd/poll.c: Likewise.
9485         * sysdeps/unix/bsd/ptsname.c: Likewise.
9486         * sysdeps/unix/bsd/seekdir.c: Likewise.
9487         * sysdeps/unix/bsd/setegid.c: Likewise.
9488         * sysdeps/unix/bsd/seteuid.c: Likewise.
9489         * sysdeps/unix/bsd/setgid.c: Likewise.
9490         * sysdeps/unix/bsd/setrgid.c: Likewise.
9491         * sysdeps/unix/bsd/setruid.c: Likewise.
9492         * sysdeps/unix/bsd/setsid.c: Likewise.
9493         * sysdeps/unix/bsd/setuid.c: Likewise.
9494         * sysdeps/unix/bsd/sigaction.c: Likewise.
9495         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9496         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9497         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9498         * sysdeps/unix/bsd/telldir.c: Likewise.
9499         * sysdeps/unix/bsd/times.c: Likewise.
9500         * sysdeps/unix/bsd/usleep.c: Likewise.
9501
9502         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9503         ($(objpfx)libbsd-compat.a): Remove rule.
9504
9505         * include/features.h (__FAVOR_BSD): Do not define.
9506         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9507         features conflicting with POSIX.
9508         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9509         (_BSD_SOURCE): Remove description of not being a subset of other
9510         feature test macros.
9511         * manual/job.texi (getpgrp): Do not document BSD version.
9512         (getpgid): Do not document by reference to BSD getpgrp.
9513         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9514         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9515         * signal/signal.h [__FAVOR_BSD]: Likewise.
9516         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9517         instead of making contents conditional on [__FAVOR_BSD].
9518         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9519
9520 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9521
9522         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9523
9524 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9525
9526         [BZ #16314]
9527         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9528         values below 2**-450, not 2**-500.
9529         * math/auto-libm-test-in: Don't allow spurious underflow from
9530         hypot.
9531         * math/auto-libm-test-out: Regenerated.
9532
9533         [BZ #16316]
9534         [BZ #16330]
9535         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9536         values of ha and hb and sort them after adjusting subnormal
9537         arguments.
9538         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9539         Likewise.
9540         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9541         values of ea and eb and sort them after adjusting subnormal
9542         arguments.
9543         * math/auto-libm-test-in: Do not expect some hypot tests of
9544         subnormals to fail.  Add more hypot tests.
9545         * math/auto-libm-test-out: Regenerated.
9546
9547 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9548
9549         [BZ #13304]
9550         * sysdeps/sh/s_fma.c: New file.
9551         * sysdeps/sh/s_fmaf.c: New file.
9552         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9553         version.
9554         * sysdeps/sh/Implies: Add sh/soft-fp.
9555
9556 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9557
9558         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9559         level of indirection to members `objname', `errstring', `malloced'.
9560         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9561         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9562         it as the __longjmp argument (just pass 1 instead).
9563         (_dl_catch_error): Initialize C with argument pointers and address of
9564         volatile local ERRCODE rather than copying values out of C at return.
9565
9566 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9567
9568         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9569         * math/auto-libm-test-out: Regenerated.
9570         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9571         (hypot_test_data): Likewise.
9572         (pow_test_data): Likewise.
9573         (pow_tonearest_test_data): Likewise.
9574         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9575         mpfr_ff_f.
9576         (func_calc_desc): Add mpfr_ff_f union field.
9577         (FUNC_mpfr_ff_f): New macro.
9578         (test_functions): Add atan2, hypot and pow.
9579         (special_fill_min): New function.
9580         (special_fill_minus_min): Likewise.
9581         (special_fill_min_subnorm): Likewise.
9582         (special_fill_minus_min_subnorm): Likewise.
9583         (special_real_inputs): Add min, -min, min_subnorm and
9584         -min_subnorm.
9585         (calc_generic_results): Handle mpfr_ff_f.
9586         * sysdeps/i386/fpu/libm-test-ulps: Update.
9587         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9588
9589 2013-12-16  Will Newton  <will.newton@linaro.org>
9590
9591         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9592         (Aligned Memory Blocks): Add documentation for aligned_alloc
9593         and suggest it as an alternative to posix_memalign.
9594         (Hooks for Malloc): Document __memalign_hook is also called
9595         for aligned_alloc.  (Summary of Malloc): Add summary for
9596         aligned alloc.  Document __memalign_hook is also called
9597         for aligned_alloc.
9598
9599 2013-12-16  Will Newton  <will.newton@linaro.org>
9600
9601         * manual/memory.texi (Malloc Examples): Clarify default
9602         alignment documentation.  Suggest posix_memalign rather
9603         than memalign or valloc.
9604         (Aligned Memory Blocks): Remove suggestion to use memalign
9605         or valloc.  Remove obsolete comment about BSD.
9606         Document memalign errno values and mark the function obsolete.
9607         Document posix_memalign returned error codes.  Mark valloc
9608         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9609         called for posix_memalign and valloc.
9610         (Summary of Malloc): Add posix_memalign to function summary.
9611         __memalign_hook is also called for posix_memalign and valloc.
9612
9613 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9614
9615         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9616         TAYLOR_SIN.
9617         (__sin): Adjust.
9618         (__cos): Likewise.
9619         (sloww): Use mynumber union.  Expand ternary operator into
9620         if-else statements.
9621         (cslow): use mynumber union.
9622
9623 2013-12-16  Allan McRae  <allan@archlinux.org>
9624
9625         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9626         * configure: Regenerated.
9627
9628         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9629
9630         [BZ #14120]
9631         * configure.ac: Added --enable-maintainer-mode. Check for
9632         autoconf when enabled.
9633         * configure: Regenerated.
9634
9635         * nscd/nscd.service: New file.
9636         * nscd/nscd.tmpfiles: New file.
9637
9638 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9639
9640         [BZ #12100]
9641         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9642         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9643         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9644         (strstr): Add __strstr_sse2_unaligned ifunc.
9645         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9646         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9647         (strcasestr): Remove __strcasestr_sse42 ifunc.
9648         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9649         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9650         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9651
9652 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9653
9654         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9655         * sysdeps/sh/bits/fenv.h: ... here.
9656         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9657
9658 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9659
9660         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9661
9662         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9663         hypotf multiarch implementations.
9664         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9665         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9666         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9667         multiarch hypot for PPC64.
9668         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9669         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9670         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9671         multiarch hypotf for PPC64.
9672
9673         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9674         modff multiarch implementations.
9675         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9676         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9677         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9678         multiarch modf for PPC64.
9679         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9681         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9682         multiarch modff for PPC64.
9683
9684         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9685         and logl multiarch implementations.
9686         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9688         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9689         multiarch logb for PPC64.
9690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9691         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9692         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9693         multiarch logb for PPC64.
9694         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9695         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9696         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9697         multiarch logb for PPC64.
9698
9699         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9700         isinff multiarch implementation.
9701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9702         file.
9703         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9705         multiarch isinf for PPC64.
9706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
9707         file.
9708         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
9709         multiarch isinff for PPC64.
9710
9711         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
9712         finitef multiarch implementation.
9713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
9714         file.
9715         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
9716         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
9717         multiarch finite for PPC64.
9718         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
9719         file.
9720         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
9721         multiarch finitef for PPC64.
9722
9723         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
9724         lrint multiarch implementation.
9725         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
9726         file.
9727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
9728         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
9729         multiarch llrint for PPC64.
9730         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
9731         multiarch lrint for PPC64.
9732
9733         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
9734         copysignf multiarch implementation.
9735         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
9736         file.
9737         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
9738         file.
9739         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
9740         multiarch copysign for PPC64.
9741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
9742         multiarch copysignf for PPC64.
9743
9744         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
9745         multiarch implementation.
9746         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
9747         file.
9748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
9749         file.
9750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
9751         file.
9752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
9753         file.
9754         multiarch llround for PPC64.
9755         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
9756         multiarch trunc for PPC64.
9757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
9758         multiarch truncf for PPC64.
9759
9760         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
9761         multiarch implementation.
9762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
9763         file.
9764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
9765         file.
9766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
9767         file.
9768         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
9769         file.
9770         multiarch llround for PPC64.
9771         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
9772         multiarch round for PPC64.
9773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
9774         multiarch roundf for PPC64.
9775
9776         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
9777         multiarch implementation.
9778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
9779         file.
9780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
9781         file.
9782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
9783         file.
9784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
9785         file.
9786         multiarch llround for PPC64.
9787         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
9788         multiarch floor for PPC64.
9789         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
9790         multiarch floorf for PPC64.
9791
9792         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
9793         multiarch implementation.
9794         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
9795         file.
9796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
9797         file.
9798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
9799         file.
9800         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
9801         file.
9802         multiarch llround for PPC64.
9803         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
9804         multiarch ceil for PPC64.
9805         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
9806         multiarch ceilf for PPC64.
9807
9808         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
9809         multiarch implementation.
9810         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
9811         file.
9812         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
9813         file.
9814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
9815         file.
9816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
9817         multiarch llround for PPC64.
9818         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
9819         multiarch lround for PPC64.
9820
9821         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
9822         multiarch implementation.
9823         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
9824         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
9825         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
9826         file.
9827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
9828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
9829         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
9830         multiarch isnan for PPC64.
9831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
9832         multiarch isnanf for PPC64.
9833
9834         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
9835         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
9836         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
9837         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
9838         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
9839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
9840
9841         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
9842         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9843         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9844         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9845
9846         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
9847         multiarch implementations.
9848         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9849         (__libc_ifunc_impl_list): Likewise.
9850         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
9851         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
9852         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
9853         multiarch stpcpy for PPC64.
9854
9855         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
9856         multiarch implementations.
9857         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9858         (__libc_ifunc_impl_list): Likewise.
9859         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
9860         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
9861         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
9862         multiarch strcpy for PPC64.
9863
9864         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
9865         redefine function name.
9866         (_wordcopy_fwd_dest_aligned): Likewise.
9867         (_wordcopy_bwd_aligned): Likewise.
9868         (_wordcopy_bwd_dest_aligned): Likewise.
9869         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
9870         multiarch implementations.
9871         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9872         (__libc_ifunc_impl_list): Likewise.
9873         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
9874         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
9875         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
9876         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
9877         multiarch wcscpy for PPC64.
9878
9879         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
9880         multiarch implementations.
9881         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9882         (__libc_ifunc_impl_list): Likewise.
9883         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
9884         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
9885         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
9886         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
9887         multiarch wcscpy for PPC64.
9888
9889         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
9890         multiarch implementations.
9891         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9892         (__libc_ifunc_impl_list): Likewise.
9893         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
9894         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
9895         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
9896         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
9897         multiarch wcsrchr for PPC64.
9898
9899         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
9900         multiarch implementations.
9901         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9902         (__libc_ifunc_impl_list): Likewise.
9903         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
9904         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
9905         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
9906         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
9907         multiarch wcschr for PPC64.
9908
9909         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
9910         multiarch implementations.
9911         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9912         (__libc_ifunc_impl_list): Likewise.
9913         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
9914         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
9915         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
9916         multiarch strchrnul for PPC64.
9917
9918         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
9919         implementations.
9920         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9921         (__libc_ifunc_impl_list): Likewise.
9922         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
9923         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
9924         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
9925         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
9926         strchr for PPC64.
9927
9928         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
9929         implementations.
9930         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9931         (__libc_ifunc_impl_list): Likewise.
9932         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
9933         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
9934         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
9935         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
9936         strncmp for PPC64.
9937
9938         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
9939         multiarch implementations.
9940         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9941         (__libc_ifunc_impl_list): Likewise.
9942         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
9943         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
9944         strncasecmp for PPC64.
9945         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
9946         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
9947         multiarch strncasecmp_l for PPC64.
9948
9949         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
9950         multiarch implementations.
9951         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9952         (__libc_ifunc_impl_list): Likewise.
9953         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
9954         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
9955         multiarch strcasecmp for PPC64.
9956         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
9957         file.
9958         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
9959         multiarch strcasecmp_l for PPC64.
9960
9961         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
9962         implementations.
9963         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9964         (__libc_ifunc_impl_list): Likewise.
9965         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
9966         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
9967         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
9968         strnlen for PPC64.
9969
9970         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
9971         implementations.
9972         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9973         (__libc_ifunc_impl_list): Likewise.
9974         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
9975         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
9976         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
9977         strlen for PPC64.
9978
9979         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
9980         implementations.
9981         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9982         (__libc_ifunc_impl_list): Likewise.
9983         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
9984         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
9985         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
9986         rawmemrchr for PPC64.
9987
9988         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
9989         implementation.
9990         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9991         (__libc_ifunc_impl_list): Likewise.
9992         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
9993         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
9994         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
9995         memrchr for PPC64.
9996
9997         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
9998         implementation.
9999         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10000         (__libc_ifunc_impl_list): Likewise.
10001         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10002         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10003         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10004         memchr for PPC64.
10005
10006         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10007         implementation.
10008         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10009         (__libc_ifunc_impl_list): Likewise.
10010         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10011         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10012         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10013         mempcpy for PPC64.
10014
10015         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
10016         avoid cretion of __bzero symbol.
10017         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
10018         Likewise.
10019         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
10020         Likewise.
10021         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
10022         Likewise.
10023         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
10024         multiarch implementations.
10025         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10026         (__libc_ifunc_impl_list): Likewise.
10027         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
10028         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
10029         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
10030         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
10031         bzero for PPC32.
10032         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
10033         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
10034         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
10035         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
10036         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
10037         memset for PPC64.
10038         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
10039
10040         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
10041         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
10042         implementations.
10043         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10044         (__libc_ifunc_impl_list): Likewise.
10045         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
10046         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
10047         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
10048         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
10049         memcmp for PPC64.
10050
10051         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
10052         multiarch for POWER/PPC64.
10053         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
10054         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
10055         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
10056         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
10057         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
10058         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
10059         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
10060         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
10061         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
10062         memcpy for PPC64.
10063
10064         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
10065         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
10066         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
10067         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
10068         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
10069         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
10070         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
10071         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
10072         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
10073         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
10074         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
10075         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
10076         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
10077         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
10078         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
10079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
10080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
10081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
10082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
10083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
10084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
10085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
10086
10087 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10088
10089         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
10090
10091 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
10092
10093         * benchtests/Makefile (bench): Add exp2 and log2.
10094         (LDLIBS-bench-exp2): Add -lm.
10095         (LDLIBS-bench-log2): Likewise.
10096         * benchtests/exp2-inputs: New inputs file.
10097         * benchtests/log2-inputs: New inputs file.
10098         * benchtests/log-inputs: Add new inputs.
10099         * benchtests/tan-inputs: Likewise.
10100
10101 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
10102
10103         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
10104         definition...
10105         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
10106         (csloww2): ... from here.
10107
10108         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
10109         instead of structures.
10110         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
10111         (POLYNOMIAL): Likewise.
10112         (TAYLOR_SLOW): Likewise.
10113         (__sin): Likewise.
10114         (__cos): Likewise.
10115         (slow1): Likewise.
10116         (slow2): Likewise.
10117         (sloww): Likewise.
10118         (sloww1); Likewise.
10119         (sloww2): Likewise.
10120         (bsloww1): Likewise.
10121         (bsloww2): Likewise.
10122         (cslow2): Likewise.
10123         (csloww): Likewise.
10124         (csloww1): Likewise.
10125         (csloww2): Likewise.
10126
10127 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
10128
10129         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
10130         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
10131         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
10132         * malloc/hooks.c (realloc_check): Likewise.
10133
10134         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
10135         * malloc/arena.c: Remove PER_THREAD conditional.
10136         [!PER_THREAD]: Remove code.
10137         (ptmalloc_unlock_all2): Likewise.
10138         (ptmalloc_init): Likewise.
10139         (_int_new_arena): Likewise.
10140         (arena_get2): Likewise.
10141         * malloc/hooks.c (__malloc_get_state): Likewise.
10142         (__malloc_set_state): Likewise.
10143         * malloc/malloc.c: Likewise.
10144         (struct malloc_state): Likewise.
10145         (struct malloc_par): Likewise.
10146         (__libc_realloc): Likewise.
10147         (__libc_mallopt): Likewise.
10148
10149 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10150
10151         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
10152
10153 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
10154
10155         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
10156         macro to a function.  Check for zero perturb_byte.
10157         (_int_malloc, _int_free): Remove zero perturb_byte checks.
10158
10159         * malloc/malloc.c: (force_reg): Remove.
10160         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
10161         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
10162         force_reg by atomic_forced_read.
10163         * malloc/arena.c (ptmalloc_init): Likewise.
10164         * malloc/hooks.c (top_check): Likewise.
10165
10166 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10167
10168         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10169
10170 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
10171
10172         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10173
10174 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
10175
10176         * math/auto-libm-test-in: Add tests of lgamma.
10177         * math/auto-libm-test-out: Regenerated.
10178         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
10179         (M_LOG_2_SQRT_PIl): Likewise.
10180         (lgamma_test_data): Use AUTO_TESTS_f_f1.
10181         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10182         mpfr_f_f1.
10183         (func_calc_desc): Add mpfr_f_f1 union field.
10184         (ARGS1): New macro.
10185         (ARGS2): Likewise.
10186         (ARGS3): Likewise.
10187         (ARGS4): Likewise.
10188         (RET1): Likewise.
10189         (RET2): Likewise.
10190         (CALC): Likewise.
10191         (FUNC): Likewise.
10192         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
10193         (test_functions): Add lgamma.
10194         (calc_generic_results): Handle mpfr_f_f1.
10195         * sysdeps/i386/fpu/libm-test-ulps: Update.
10196         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10197
10198 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10199
10200         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
10201         __mpn_add_n for PowerPC64/POWER7.
10202         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
10203         __mpn_sub_n for PowerPC64/POWER7.
10204
10205         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
10206         __mpn_addmul_1 for PowerPC64.
10207         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
10208         __mpn_submul_1 for PowerPC64.
10209         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
10210         for PowerPC64.
10211         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
10212         for PowerPC64.
10213
10214 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
10215
10216         [BZ #15089]
10217         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
10218
10219 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10220
10221         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
10222
10223         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
10224         add multiarch folders.
10225         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
10226         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
10227         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
10228         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
10229         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
10230         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
10231         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
10232         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
10233         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
10234         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
10235         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
10236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
10237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
10238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
10239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
10240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
10241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
10242
10243         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10244         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
10245         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
10246         New file.
10247         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
10248         New file.
10249         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
10250         multiarch __ieee754_hypot for PowerPC32.
10251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
10252         New file.
10253         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
10254         New file.
10255         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
10256         multiarch __ieee754_hypotf for PowerPC32.
10257
10258         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
10259         long_double_symbol only if __logbl is defined.
10260         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
10261         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
10262         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
10263         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
10264         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
10265         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
10266         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
10267         path for implementation.
10268         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
10269         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
10270         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
10271         logb, and logbl multiarch implementations for PowerPC32.
10272         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
10273         file.
10274         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
10275         file.
10276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
10277         multiarch logb for PowerPC32.
10278         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
10279         file.
10280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
10281         file.
10282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
10283         multiarch logbf for PowerPC32.
10284         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
10285         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
10286         file.
10287         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
10288         multiarch logbl implementation for PowerPC32.
10289
10290         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
10291         and modff multiarch implementations.
10292         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
10293         New file.
10294         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
10295         New file.
10296         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
10297         multiarch modf for PowerPC32.
10298         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
10299         New file.
10300         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
10301         New file.
10302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
10303         multiarch modff for PowerPC32.
10304
10305         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
10306         and lrintf multiarch implementations.
10307         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
10308         New file.
10309         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
10310         New file.
10311         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
10312         multiarch lrint for PowerPC32.
10313         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
10314         file: multiarch lrintf for PowerPC32.
10315
10316         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
10317         and lroundf multiarch implementations.
10318         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
10319         New file.
10320         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
10321         New file.
10322         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
10323         New file.
10324         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
10325         multiarch lround for PowerPC32.
10326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
10327         file: multiarch lroundf for PowerPC32.
10328
10329         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
10330         copysign and copysignf multiarch implementations.
10331         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
10332         New file.
10333         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
10334         New file.
10335         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
10336         file: multiarch copysign for PowerPC32.
10337         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
10338         file: multiarch copysignf for PowerPC32.
10339
10340         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
10341         and truncf multiarch implementations.
10342         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
10343         New file.
10344         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
10345         file.
10346         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
10347         multiarch trunc for PowerPC32.
10348         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
10349         New file.
10350         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
10351         New file.
10352         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
10353         multiarch truncf for PowerPC32.
10354
10355         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
10356         and roundf multiarch implementations.
10357         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
10358         New file.
10359         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
10360         file.
10361         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
10362         multiarch round for PowerPC32.
10363         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
10364         New file.
10365         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
10366         New file.
10367         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
10368         multiarch roundf for PowerPC32.
10369
10370         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
10371         and floorf multiarch implementations.
10372         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
10373         New file.
10374         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
10375         file.
10376         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
10377         multiarch floor for PowerPC32.
10378         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
10379         New file.
10380         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10381         New file.
10382         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10383         multiarch floorf for PowerPC32.
10384
10385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10386         and ceilf multiarch implementations.
10387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10388         New file.
10389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10390         file.
10391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10392         multiarch ceil for PowerPC32.
10393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10394         New file.
10395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10396         file.
10397         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10398         multiarch ceilf for PowerPC32.
10399
10400         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10401         is defined.
10402         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10403         FINITEF is defined.
10404         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10405         and finitef multiarch implementations.
10406         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10407         New file.
10408         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10409         file.
10410         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10411         multiarch finite for PowerPC32.
10412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10413         New file.
10414         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10415         file: multiarch finitef for PowerPC32.
10416
10417         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10418         and isinff multiarch implementations.
10419         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10420         file.
10421         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10422         file.
10423         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10424         multiarch isinf for PowerPC32.
10425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10426         New file.
10427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10428         multiarch isinff for PowerPC32.
10429
10430         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10431         alias when __isnan is defined.
10432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10433         and isnanf multiarch implementations.
10434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10435         file.
10436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10437         file.
10438         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10439         file.
10440         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10441         file.
10442         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10443         multiarch isnan for PowerPC32.
10444         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10445         New file.
10446         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10447         New file.
10448         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10449         multiarch isnanf for PowerPC32.
10450
10451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10452         and sqrtf multiarch implementations.
10453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10454         file.
10455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10456         file.
10457         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10458         multiarch sqrt for PowerPC32.
10459         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10460         file.
10461         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10462         file.
10463         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10464         multiarch sqrtf for PowerPC32.
10465
10466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10467         and llroundf multiarch implementations.
10468         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10469         New file.
10470         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10471         New file.
10472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10473         New file.
10474         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10475         file: multiarch llround for PowerPC32.
10476         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10477         file: multiarch llroundf for PowerPC32.
10478
10479         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10480         multiarch PowerPC32 fpu implementations.
10481         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10482         New file.
10483         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10484         New file.
10485         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10486         multiarch llrint for PowerPC32.
10487         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10488         New file.
10489         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10490         New file.
10491         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10492         file.
10493
10494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10495
10496         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10497         file.
10498         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10499         file.
10500         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10501         file.
10502         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10503         multiarch wordcopy for PPC32.
10504         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10505         wordcopy objects.
10506         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10507         (__libc_ifunc_impl_list): Likewise.
10508         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10509         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10510         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10511         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10512         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10513         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10514
10515         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10516         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10517         file.
10518         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10519         file.
10520         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10521         file.
10522         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10523         multiarch wcscpy for PPC32.
10524         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10525         multiarch objects.
10526         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10527         (__libc_ifunc_impl_list): Likewise.
10528         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10529         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10530         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10531         sysdeps/powerpc/power6/wcscpy.c.
10532
10533         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10534         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10535         file.
10536         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10537         file.
10538         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10539         file.
10540         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10541         multiarch wcsrchr for PPC32.
10542         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10543         multiarch objects.
10544         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10545         (__libc_ifunc_impl_list): Likewise.
10546         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10547         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10548         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10549         sysdeps/powerpc/power6/wcsrchr.c.
10550
10551         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10552         file.
10553         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10554         file.
10555         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10556         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10557         multiarch wcschr for PPc32.
10558         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10559         multiarch objects.
10560         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10561         (__libc_ifunc_impl_list): Likewise.
10562         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10563         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10564         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10565         sysdeps/powerpc/power6/wcschr.c.
10566
10567         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10568         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10569         file.
10570         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10571         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10572         file: multiarch strchr for PPC32.
10573         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10574         multiarch objects.
10575         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10576         (__libc_ifunc_impl_list): Likewise.
10577
10578         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10579         name.
10580         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10581         file.
10582         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10583         file.
10584         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10585         multiarch strchrnul for PPC32.
10586         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10587         multiarch objects.
10588         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10589         (__libc_ifunc_impl_list): Likewise.
10590
10591         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10592         file.
10593         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10594         multiarch strncasecmp for PPC32.
10595         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10596         file.
10597         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10598         multiarch strncasecmp_l for PPC32.
10599         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10600         strncasecmp multiarch objects.
10601         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10602         (__libc_ifunc_impl_list): Likewise.
10603
10604         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10605         file.
10606         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10607         multiarch strncasecmp for PPC32.
10608         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10609         New file.
10610         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10611         multiarch strcasecmp_l for PPC32.
10612         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10613         multiarch objects.
10614         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10615         (__libc_ifunc_impl_list): Likewise.
10616
10617         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10618         file.
10619         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10620         file.
10621         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10622         multiarch strncmp for PPC32.
10623         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10624         multiarch objects.
10625         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10626         (__libc_ifunc_impl_list): Likewise.
10627
10628         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10629         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10630         file.
10631         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10632         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10633         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10634         multiarch objects.
10635         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10636         (__libc_ifunc_impl_list): Likewise.
10637
10638         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10639         file.
10640         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10641         file.
10642         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10643         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10644         multiarch objects.
10645         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10646         (__libc_ifunc_impl_list): Likewise.
10647
10648         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10649         file.
10650         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10651         file.
10652         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10653         multiarch rawmemchr for PPC32.
10654         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10655         multiarch objects.
10656         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10657         (__libc_ifunc_impl_list): Likewise.
10658
10659         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10660         file.
10661         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10662         file.
10663         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10664         file: memrchr multiarch for PPC32.
10665         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10666         multiarch objects.
10667         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10668         (__libc_ifunc_impl_list): Likewise.
10669
10670         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10671         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10672         file.
10673         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10674         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10675         multiarch memchr for PPC32.
10676         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10677         multiarch objects.
10678         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10679         (__libc_ifunc_impl_list): Likewise.
10680
10681         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10682         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10683         file.
10684         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10685         file.
10686         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10687         file: multiarch mempcpy for PPC32.
10688         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10689         multiarch objects.
10690         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10691         (__libc_ifunc_impl_list): Likewise.
10692
10693         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10694         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10695         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10696         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10697         multiarch bzero for PPC32.
10698         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10699         file.
10700         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10701         file.
10702         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10703         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10704         file: multiarch memset for PPC32.
10705         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
10706         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
10707         memset multiarch objects.
10708         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10709         (__libc_ifunc_impl_list): Likewise.
10710
10711         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
10712         file.
10713         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
10714         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
10715         memcmp for PPC32.
10716         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
10717         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
10718         multiarch objects.
10719         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10720         (__libc_ifunc_impl_list): Likewise.
10721
10722         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
10723         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
10724         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
10725         file.
10726         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
10727         file.
10728         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
10729         file.
10730         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
10731         multiarch memcpy for PPC32.
10732         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
10733         multiarch objects.
10734         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10735         (__libc_ifunc_impl_list): Likewise.
10736
10737         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
10738         support multiarch for POWER/PPC32.
10739         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
10740         Likewise.
10741         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
10742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
10743         Implies file to make multiarch folder appers before the fpu and
10744         default folder for power4 configuration.
10745
10746 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10747
10748         * scripts/bench.pl: Append volatile keyword to type.
10749
10750 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10751
10752         * sysdeps/sh/sotruss-lib.c: New file.
10753         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
10754
10755 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10756
10757         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10758
10759 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
10760
10761         [BZ #6810]
10762         * math/w_tgamma.c: Include <errno.h>.
10763         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
10764         * math/w_tgammaf.c: Include <errno.h>.
10765         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
10766         * math/w_tgammal.c: Include <errno.h>.
10767         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
10768         * math/auto-libm-test-in: Do not allow missing errno on tgamma
10769         underflow.  Add more tgamma tests.
10770         * math/auto-libm-test-out: Regenerated.
10771         * sysdeps/i386/fpu/libm-test-ulps: Update.
10772         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10773
10774         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
10775         sin, sinh, tan, tanh, tgamma, y0 and y1.
10776         * math/auto-libm-test-out: Regenerated.
10777         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10778         (TEST_COND_x86): Likewise.
10779         (M_E2l): Remove macro.
10780         (M_E3l): Likewise.
10781         (M_2_SQRT_PIl): Likewise.
10782         (M_SQRT_PIl): Likewise.
10783         (M_1_DIV_El): Likewise.
10784         (log_test_data): Use AUTO_TESTS_f_f.
10785         (log10_test_data): Likewise.
10786         (log1p_test_data): Likewise.
10787         (log2_test_data): Likewise.
10788         (sin_test_data): Likewise.
10789         (sin_tonearest_test_data): Likewise.
10790         (sin_towardzero_test_data): Likewise.
10791         (sin_downward_test_data): Likewise.
10792         (sin_upward_test_data): Likewise.
10793         (sinh_test_data): Likewise.
10794         (sinh_tonearest_test_data): Likewise.
10795         (sinh_towardzero_test_data): Likewise.
10796         (sinh_downward_test_data): Likewise.
10797         (sinh_upward_test_data): Likewise.
10798         (tan_test_data): Likewise.
10799         (tan_tonearest_test_data): Likewise.
10800         (tan_towardzero_test_data): Likewise.
10801         (tan_downward_test_data): Likewise.
10802         (tan_upward_test_data): Likewise.
10803         (tanh_test_data): Likewise.
10804         (tgamma_test_data): Likewise.
10805         (y0_test_data): Likewise.
10806         (y1_test_data): Likewise.
10807         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
10808         (special_real_inputs): Add pi/4.
10809         * sysdeps/i386/fpu/libm-test-ulps: Update.
10810         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10811
10812 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10813
10814         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
10815         "longjmp_target" static probes.
10816         (__longjmp): Rename to __longjmp_symbol.
10817         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10818         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
10819         on which longjmp to generate.
10820         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10821         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
10822         probe.
10823         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10824         (__sigjmp_save): Rename to __sigjmp_save_symbol.
10825         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
10826         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
10827         and __sigjmp_save_symbol based on which sigsetjmp to generated.
10828         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
10829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
10830         __longjmp_symbol based on which __longjmp to generate.
10831         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
10832         probe.
10833         (setjmp): Rename to setjmp_symbol.
10834         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10835         (_setjmp): Rename to _setjmp_symbol.
10836         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10837         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
10838         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
10839         which setjmp to generate.
10840         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
10841         "longjmp_target" static probes.
10842
10843 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10844
10845         * benchtests/README: Add note about output arguments.
10846         * benchtests/bench-sincos.c: Remove file.
10847         * benchtests/sincos-inputs: New file.
10848         * scripts/bench.pl: Identify output arguments and define
10849         static variables for them.
10850
10851         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
10852
10853         [BZ #15941]
10854         * Makefile (INSTALL): Add install-plain.texi as the primary
10855         dependency.
10856         * manual/install-plain.texi: New file.
10857         * manual/install.texi: Include node directive only for
10858         non-plaintext output.
10859
10860 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
10861
10862         * stdlib/longlong.h: Update from GCC.
10863
10864         [BZ #6807]
10865         [BZ #15901]
10866         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
10867         * math/w_j0f.c (y0f): Likewise.
10868         * math/w_j0l.c (__y0l): Likewise.
10869         * math/w_j1.c (y1): Likewise.
10870         * math/w_j1f.c (y1f): Likewise.
10871         * math/w_j1l.c (__y1l): Likewise
10872         * math/w_jn.c (yn): Likewise.
10873         * math/w_jnf.c (ynf): Likewise.
10874         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
10875         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
10876         value for Bessel function domain errors outside _SVID_ mode.
10877         Adjust sign of return value for yn (negative integer, 0).
10878         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
10879         by zero in return for negative x and set sign appropriately for
10880         negative n.
10881         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
10882         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
10883         * math/libm-test.inc (y0_test_data): Add more tests and adjust
10884         expectations in error cases.
10885         (y1_test_data): Likewise.
10886         (yn_test_data): Likewise.
10887         * sysdeps/i386/fpu/libm-test-ulps: Update.
10888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10889
10890 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10891
10892         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
10893         "64" to "64-v1".  Add "64-v2".
10894         (abi-64-options): Rename to ...
10895         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
10896         (abi-64-condition): Rename to ...
10897         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
10898         (abi-64-ld-soname): Rename to ...
10899         (abi-64-v1-ld-soname): ... this.
10900         (abi-64-v2-options): Define.
10901         (abi-64-v2-condition): Likewise.
10902         (abi-64-v2-ld-soname): Likewise.
10903         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
10904         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
10905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
10906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
10907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
10908
10909 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10910             Alan Modra  <amodra@gmail.com>
10911
10912         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
10913         New versions for use with the ELFv2 ABI.
10914         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
10915         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
10916         declaration.
10917         (struct La_ppc64v2_retval): Likewise.
10918         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
10919         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
10920         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
10921         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
10922         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
10923         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
10924         Do not save or restore CR.
10925         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
10926         (_dl_profile_resolve): Do no save or restore CR.  Support extended
10927         return values for ELFv2 ABI.  Fix location of FPR return registers.
10928         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
10929         updated values for _CALL_ELF == 2.
10930         (La_regs, La_retval, int_retval): Likewise.
10931
10932 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10933
10934         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
10935         (FRAME_MIN_SIZE_PARM): Likewise.
10936         (FRAME_BACKCHAIN): Likewise.
10937         (FRAME_CR_SAVE): Likewise.
10938         (FRAME_LR_SAVE): Likewise.
10939         (FRAME_TOC_SAVE): Likewise.
10940         (FRAME_PARM_SAVE): Likewise.
10941         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
10942         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
10943         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10944         (call_mcount_parm_offset): New macro.
10945         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
10946         (PROF): Use symbolic stack frame offsets.
10947         (TAIL_CALL_SYSCALL_ERROR): Likewise.
10948         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
10949         Redefine in terms of FRAME_MIN_SIZE.
10950         (_dl_runtime_resolve): Use symbolic stack frame offsets.
10951         (_dl_profile_resolve): Likewise.  Update comment.
10952         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
10953         symbols stack frame offsets.
10954         (__sigsetjmp): Likewise.
10955         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10956         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
10957         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
10958         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
10959
10960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
10961         (FRAME_BACKCHAIN): Remove.
10962         (FRAME_CR_SAVE): Likewise.
10963         (FRAME_LR_SAVE): Likewise.
10964         (FRAME_COMPILER_DW): Likewise.
10965         (FRAME_LINKER_DW): Likewise.
10966         (FRAME_TOC_SAVE): Likewise.
10967         (FRAME_PARM_SAVE): Likewise.
10968         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
10969         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
10970         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10971         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
10972         (CHECK_SP): Use symbolic stack frame offsets.
10973         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
10974         zone" instead of caller's parameter save area for temp storage.
10975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10976         Likewise.  Also, use symbolic stack frame offsets.
10977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
10978         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
10979         our own stack frame instead of the caller's.
10980         (__socket): Use symbolic stack frame offsets.
10981
10982 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10983             Alan Modra  <amodra@gmail.com>
10984
10985         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
10986         Define.
10987         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
10988         (PPC64_LOCAL_ENTRY_OFFSET): Define.
10989         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
10990         New function.
10991         (elf_machine_fixup_plt): Call it.
10992         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
10993         reloc arguments.
10994         (elf_machine_rela): Update call to elf_machine_plt_conflict.
10995         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10996         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
10997         r2 before calling target.
10998
10999 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11000             Alan Modra  <amodra@gmail.com>
11001
11002         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11003         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11004         versions of macros to support ELFv2 ABI.
11005         (LOCALENTRY): New macro.
11006         (ENTRY, EALIGN): Use it.
11007         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11008         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11009         fall through into ENTRY entry point.
11010         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11011         Only define if _CALL_ELF != 2.
11012
11013         (elf_machine_matches_host): Verify ABI version matches.
11014         (RTLD_START): Use LOCALENTRY.
11015         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
11016         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
11017         (PLT_ENTRY_WORDS): New macro.
11018         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
11019         (elf_machine_runtime_setup): Support ELFv2 ABI.
11020         (elf_machine_fixup_plt): Likewise.
11021         (elf_machine_plt_conflict): Likewise.
11022         (resolve_ifunc): Likewise.
11023         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
11024         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11025         Likewise.
11026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
11027         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
11028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11029         (makecontext): Support ELFv2 ABI.
11030         * elf/elf.h (EF_PPC64_ABI): Define.
11031
11032 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11033
11034         * sysdeps/powerpc/powerpc64/sysdep.h
11035         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
11036         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
11037         (ENTRY) [ASSEMBLER]: ... but instead here ...
11038         (EALIGN) [ASSEMBLER]: ... and here.
11039         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
11040         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
11041         (ENTRY_2) [!ASSEMBLER]: Use it.
11042         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
11043         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
11044         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11045         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
11046         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
11047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
11048         Use PPC64_LOAD_FUNCPTR.
11049
11050         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
11051
11052 2013-12-04  Alan Modra  <amodra@gmail.com>
11053
11054         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
11055         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
11056         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
11057         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
11058
11059         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
11060         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
11061         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
11062         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
11063         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
11064         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
11065
11066 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11067
11068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11069         (__makecontext): Fix incorrect CFI when backtracing out of
11070         context created via makecontext.
11071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
11072         (__setcontext): Fix incorrect CFI during switch to new context.
11073         (__novec_setcontext): Likewise.
11074
11075 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11076
11077         [BZ #4772]
11078         * time/strptime_l.c (__strptime_internal): Allow modifiers
11079         in strptime.
11080         * time/tst-strptime.c (day_tests): Add testcase.
11081
11082 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11083
11084         * scripts/bench.pl: Skip over blank lines.
11085
11086 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
11087
11088         [BZ #926]
11089         * manual/time.texi (Calendar Time): Clarify what timezone functions
11090         use.
11091
11092 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11093
11094         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11095
11096 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
11097
11098         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
11099         implementation.
11100         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
11101         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
11102         * debug/memset_chk.c (__memset_chk): Likewise.
11103         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
11104         * debug/strncpy_chk.c: Likewise.
11105
11106 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11107
11108         [BZ #15268]
11109         [BZ #15425]
11110         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
11111         (__ieee754_exp): For possibly underflowing results, check size of
11112         result and force underflow exception if required.
11113         * math/auto-libm-test-in: Add more tests of exp.
11114         * math/auto-libm-test-out: Regenerated.
11115         * sysdeps/i386/fpu/libm-test-ulps: Update.
11116         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11117
11118         [BZ #16283]
11119         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
11120         * math/w_exp2f.c (__exp2f): Likewise.
11121         * math/w_exp2l.c (__exp2l): Likewise.
11122         * math/auto-libm-test-in: Do not allow missing errno on exp2
11123         underflow.
11124         * math/auto-libm-test-out: Regenerated.
11125
11126 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
11127
11128         [BZ #16274]
11129         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
11130         handle filename validation.
11131         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
11132         (do_open): Delete.
11133
11134 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
11135
11136         [BZ #6786]
11137         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
11138         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
11139         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
11140         <float.h>.
11141         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
11142         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
11143         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11144         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
11145         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11146         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
11147         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
11148         * math/auto-libm-test-in: Don't allow missing errno from erfc.
11149         Add more erfc tests.
11150         * math/auto-libm-test-out: Regenerated.
11151         * sysdeps/i386/fpu/libm-test-ulps: Update.
11152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11153
11154         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
11155         exp2, expm1, j0 and j1.
11156         * math/auto-libm-test-out: Regenerated.
11157         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
11158         (erfc_test_data): Likewise.
11159         (exp_test_data): Likewise.
11160         (exp_tonearest_test_data): Likewise.
11161         (exp_towardzero_test_data): Likewise.
11162         (exp_downward_test_data): Likewise.
11163         (exp_upward_test_data): Likewise.
11164         (exp10_test_data): Likewise.
11165         (exp2_test_data): Likewise.
11166         (expm1_test_data): Likewise.
11167         (j0_test_data): Likewise.
11168         (j1_test_data): Likewise.
11169         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
11170         (input_flag_type): Add flag_xfail_rounding.
11171         (input_flags): Add xfail-rounding.
11172         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
11173         (output_for_one_input_case): Handle flag_xfail_rounding.
11174         * sysdeps/i386/fpu/libm-test-ulps: Update.
11175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11176
11177 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
11178
11179         [BZ #16289]
11180         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
11181         division by 0.
11182
11183 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
11184
11185         [BZ #16195]
11186         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
11187         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
11188         (STAP_PROBE0): New macro.
11189         (STAP_PROBE1): Likewise.
11190         (STAP_PROBE2): Likewise.
11191         (STAP_PROBE3): Likewise.
11192         (STAP_PROBE4): Likewise.
11193
11194 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
11195
11196         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
11197
11198 2013-12-02  Steve Ellcey  <sellcey@mips.com>
11199
11200         * benchtests/Makefile (bench): Add sqrt.
11201         (LDLIBS-bench-sqrt): New.
11202         * benchtests/sqrt-input: New.
11203
11204 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
11205
11206         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
11207         (GAIH_EAI): Likewise.
11208         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
11209         (gaih_inet): Likewise.
11210         (getaddrinfo): Don't use GAIH_EAI.
11211
11212         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
11213         (struct gaih): Remove definition.
11214
11215 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11216
11217         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
11218         Use HERRNOP directly.
11219
11220 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11221
11222         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11223
11224 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
11225
11226         * math/gen-auto-libm-tests.c (test_functions): Add more
11227         single-argument functions.
11228         (special_fill_pi_2): New function.
11229         (special_fill_minus_pi_2): Likewise.
11230         (special_fill_pi_6): Likewise.
11231         (special_fill_minus_pi_6): Likewise.
11232         (special_fill_pi_3): Likewise.
11233         (special_fill_2pi_3): Likewise.
11234         (special_fill_e): Likewise.
11235         (special_fill_1_e): Likewise.
11236         (special_fill_e_minus_1): Likewise.
11237         (special_real_inputs): Add more special inputs.
11238         (output_for_one_input_case): Do not require ERANGE on underflow to
11239         zero if round-to-nearest result does not underflow to zero, unless
11240         exact results required.
11241         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
11242         atan, atanh, cbrt, cos and cosh.
11243         * math/auto-libm-test-out: Regenerated.
11244         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
11245         (acos_tonearest_test_data): Likewise.
11246         (acos_towardzero_test_data): Likewise.
11247         (acos_downward_test_data): Likewise.
11248         (acos_upward_test_data): Likewise.
11249         (acosh_test_data): Likewise.
11250         (asin_test_data): Likewise.
11251         (asin_tonearest_test_data): Likewise.
11252         (asin_towardzero_test_data): Likewise.
11253         (asin_upward_test_data): Likewise.
11254         (asinh_test_data): Likewise.
11255         (atan_test_data): Likewise.
11256         (atanh_test_data): Likewise.
11257         (cbrt_test_data): Likewise.
11258         (cos_test_data): Likewise.
11259         (cos_tonearest_test_data): Likewise.
11260         (cos_towardzero_test_data): Likewise.
11261         (cos_downward_test_data): Likewise.
11262         (cos_upward_test_data): Likewise.
11263         (cosh_test_data): Likewise.
11264         (cosh_tonearest_test_data): Likewise.
11265         (cosh_towardzero_test_data): Likewise.
11266         (cosh_downward_test_data): Likewise.
11267         (cosh_upward_test_data): Likewise.
11268         * sysdeps/i386/fpu/libm-test-ulps: Update.
11269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11270
11271 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
11272
11273         [BZ #6787]
11274         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
11275         * math/w_exp10f.c (__exp10f): Likewise.
11276         * math/w_exp10l.c (__exp10l): Likewise.
11277         * math/libm-test.inc (exp10_test_data): Add more tests and expect
11278         errno settings in existing tests.
11279
11280         [BZ #14032]
11281         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
11282         precision control set to double precision.
11283         * sysdeps/i386/fpu/w_sqrt.c: New file.
11284         * math/auto-libm-test-in: Add more tests.
11285         * math/auto-libm-test-out: Update.
11286
11287         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
11288         (sqrt_test_tonearest): New function.
11289         (sqrt_towardzero_test_data): New variable.
11290         (sqrt_test_towardzero): New function.
11291         (sqrt_downward_test_data): New variable.
11292         (sqrt_test_downward): New function.
11293         (sqrt_upward_test_data): New variable.
11294         (sqrt_test_upward): New function.
11295         (main): Call the new functions.
11296
11297         * math/gen-auto-libm-tests.c: New file.
11298         * math/auto-libm-test-in: Likewise.
11299         * math/auto-libm-test-out: New generated file.
11300         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
11301         variables.
11302         (%beautify): Add generated representations of zero.
11303         (top level): Set $auto_input and call parse_auto_input.
11304         (beautify): Remove trailing "f" from hex float constants.
11305         (parse_args): Handle XFAIL_TEST.
11306         (convert_condition): New function.
11307         (or_value): Likewise.
11308         (or_cond_value): Likewise.
11309         (generate_testfile): Handle AUTO_TESTS_* lines.
11310         (parse_auto_input): New function.
11311         * math/libm-test.inc (XFAIL_TEST): New macro.
11312         (ERRNO_UNCHANGED): Update value.
11313         (ERRNO_EDOM): Likewise.
11314         (ERRNO_ERANGE): Likewise.
11315         (IGNORE_RESULT): Likewise.
11316         (TEST_COND_flt_32): New macro.
11317         (TEST_COND_dbl_64): Likewise.
11318         (TEST_COND_ldbl_96_intel): Likewise.
11319         (TEST_COND_ldbl_96_m68k): Likewise.
11320         (TEST_COND_ldbl_128): Likewise.
11321         (TEST_COND_ldbl_128ibm): Likewise.
11322         (TEST_COND_long32): Likewise.
11323         (TEST_COND_long64): Likewise.
11324         (TEST_COND_before_rounding): Likewise.
11325         (TEST_COND_after_rounding): Likewise.
11326         (enable_test): Handle XFAIL_TEST flag.
11327         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
11328         with finite results.
11329         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
11330         auto-libm-test-out.
11331
11332 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11333             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11334
11335         [BZ #16214]
11336         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
11337         __tls_get_addr_internal instead of __tls_get_offset in order to
11338         avoid GOT pointer dependency.  Make rtld export
11339         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
11340         __tls_get_addr since we are a __tls_get_offset platform.
11341         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
11342         GOT pointer being set up before.
11343         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
11344
11345 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
11346
11347         * manual/math.texi (Errors in Math Functions): Document accuracy
11348         goals.
11349
11350         [BZ #15004]
11351         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
11352         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
11353         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11354         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11355         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11356         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11357         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11358         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11359         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11360         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11361         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11362         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11363         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11364         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11365         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11366         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11367
11368         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
11369         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
11370         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
11371         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
11372         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
11373         Likewise.
11374         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
11375         Likewise.
11376         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
11377         Likewise.
11378         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
11379         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11380         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11381         atomic-feupdateenv and flt-rounds.
11382         * sysdeps/powerpc/nofpu/Versions (libc): Add
11383         __atomic_feholdexcept, __atomic_feclearexcept,
11384         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11385         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11386         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11387         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11388         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11389         here.
11390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11391         Update.
11392
11393         * manual/arith.texi (FP Exceptions): Document that exceptions may
11394         not be raised when matherr is used.
11395         (Math Error Reporting): Document overflow in directed rounding
11396         modes.  Document that errno may not be set when finite values are
11397         returned on overflow.  Document intent to set errno on underflow
11398         only for underflow to zero.
11399
11400         [BZ #16271]
11401         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11402         round-to-nearest then adjust result for other rounding modes.
11403         * include/fenv.h (fegetround): Use libm_hidden_proto.
11404         * math/fegetround.c (fegetround): Use libm_hidden_def.
11405         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11406         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11407         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11408         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11409         Likewise.
11410         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11411         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11412         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11413         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11414
11415 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11416
11417         [BZ #16077]
11418         * nss/Versions (libnss_files): Add
11419         _nss_files_gethostbyname3_r.
11420         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11421         New function.
11422         (HOST_DB_LOOKUP): Remove macro.
11423         (_nss_files_gethostbyname_r): Implement function without the
11424         HOST_DB_LOOKUP macro.
11425         (_nss_files_gethostbyname2_r): Likewise.
11426
11427 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11428
11429         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11430
11431 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11432
11433         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11434         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11435         warning.
11436
11437 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11438
11439         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11440         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11441         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11442         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11443         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11444         __fe_nomask_env_priv and attribute_hidden.
11445         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11446         (libc_feupdateenv_test_ppc): Likewise.
11447         (libc_feresetround_ppc): Likewise.
11448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11449         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11450         compat_symbol macro.
11451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11452         (__fe_nomask_env): Likewise.
11453         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11454
11455 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11456
11457         * string/Makefile: Remove ifunc tests.
11458         * string/test-string.h: Define TEST_IFUNC.
11459         * string/test-bcopy-ifunc.c: Remove.
11460         * string/test-bzero-ifunc.c: Likewise.
11461         * string/test-memccpy-ifunc.c: Likewise.
11462         * string/test-memchr-ifunc.c: Likewise.
11463         * string/test-memcmp-ifunc.c: Likewise.
11464         * string/test-memcpy-ifunc.c: Likewise.
11465         * string/test-memmem-ifunc.c: Likewise.
11466         * string/test-memmove-ifunc.c: Likewise.
11467         * string/test-mempcpy-ifunc.c: Likewise.
11468         * string/test-memrchr-ifunc.c: Likewise.
11469         * string/test-memset-ifunc.c: Likewise.
11470         * string/test-rawmemchr-ifunc.c: Likewise.
11471         * string/test-stpcpy-ifunc.c: Likewise.
11472         * string/test-stpncpy-ifunc.c: Likewise.
11473         * string/test-strcasecmp-ifunc.c: Likewise.
11474         * string/test-strcasestr-ifunc.c: Likewise.
11475         * string/test-strcat-ifunc.c: Likewise.
11476         * string/test-strchr-ifunc.c: Likewise.
11477         * string/test-strchrnul-ifunc.c: Likewise.
11478         * string/test-strcmp-ifunc.c: Likewise.
11479         * string/test-strcpy-ifunc.c: Likewise.
11480         * string/test-strcspn-ifunc.c: Likewise.
11481         * string/test-strlen-ifunc.c: Likewise.
11482         * string/test-strncasecmp-ifunc.c: Likewise.
11483         * string/test-strncat-ifunc.c: Likewise.
11484         * string/test-strncmp-ifunc.c: Likewise.
11485         * string/test-strncpy-ifunc.c: Likewise.
11486         * string/test-strnlen-ifunc.c: Likewise.
11487         * string/test-strpbrk-ifunc.c: Likewise.
11488         * string/test-strrchr-ifunc.c: Likewise.
11489         * string/test-strspn-ifunc.c: Likewise.
11490         * string/test-strstr-ifunc.c: Likewise.
11491
11492 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11493
11494         * benchtests/Makefile: Remove ifunc tests.
11495         * benchtests/bench-string.h: Define TEST_IFUNC.
11496         * benchtests/bench-bcopy-ifunc.c: Remove.
11497         * benchtests/bench-bzero-ifunc.c: Likewise.
11498         * benchtests/bench-memccpy-ifunc.c: Likewise.
11499         * benchtests/bench-memchr-ifunc.c: Likewise.
11500         * benchtests/bench-memcmp-ifunc.c: Likewise.
11501         * benchtests/bench-memcpy-ifunc.c: Likewise.
11502         * benchtests/bench-memmem-ifunc.c: Likewise.
11503         * benchtests/bench-memmove-ifunc.c: Likewise.
11504         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11505         * benchtests/bench-memrchr-ifunc.c: Likewise.
11506         * benchtests/bench-memset-ifunc.c: Likewise.
11507         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11508         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11509         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11510         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11511         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11512         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11513         * benchtests/bench-strcat-ifunc.c: Likewise.
11514         * benchtests/bench-strchr-ifunc.c: Likewise.
11515         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11516         * benchtests/bench-strcmp-ifunc.c: Likewise.
11517         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11518         * benchtests/bench-strcpy-ifunc.c: Likewise.
11519         * benchtests/bench-strcspn-ifunc.c: Likewise.
11520         * benchtests/bench-strlen-ifunc.c: Likewise.
11521         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11522         * benchtests/bench-strncat-ifunc.c: Likewise.
11523         * benchtests/bench-strncmp-ifunc.c: Likewise.
11524         * benchtests/bench-strncpy-ifunc.c: Likewise.
11525         * benchtests/bench-strnlen-ifunc.c: Likewise.
11526         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11527         * benchtests/bench-strrchr-ifunc.c: Likewise.
11528         * benchtests/bench-strsep-ifunc.c: Likewise.
11529         * benchtests/bench-strspn-ifunc.c: Likewise.
11530         * benchtests/bench-strstr-ifunc.c: Likewise.
11531
11532 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11533
11534         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11535
11536 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11537
11538         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11539         * rt/aio.h: Likewise.
11540         * sysdeps/gnu/bits/utmp.h: Likewise.
11541         * sysdeps/gnu/bits/utmpx.h: Likewise.
11542         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11543         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11544         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11545         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11546         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11547         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11548         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11549         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11550         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11551         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11552         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11553         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11554         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11556         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11557         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11558         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11559         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11560         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11561         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11562         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11563         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11564         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11565         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11566         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11567         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11568         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11569         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11570         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11571         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11572         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11573         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11574         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11575         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11576         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11577         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11578         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11579         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11580         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11581         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11582         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11583         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11584
11585 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11586
11587         [BZ #16245]
11588         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11589         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11590
11591 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11592
11593         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11594         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11595         Likewise.
11596
11597 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11598
11599         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11600         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11601         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11602         (__fesetround): Remove define.
11603         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11604         rounding and exceptions handling.
11605         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11606         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11607         (__fe_nomask_env): Likewise.
11608         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11609         __fegetround instead of fegetround.
11610         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11611         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11612
11613 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11614
11615         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11616         it's there.
11617
11618         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11619
11620 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11621
11622         [BZ #11157]
11623         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11624         (encrypt_r): Likewise.
11625         * malloc/obstack.h (obstack_free): Likewise.
11626         * posix/unistd.h (encrypt): Likewise.
11627
11628 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11629
11630         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11631         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11632         DL_CALL_DT_FINI() that call the functions directly.
11633         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11634         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11635         * elf/dl-fini.c: Likewise.
11636
11637 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11638
11639         * malloc/hooks.c (memalign_check): Add alignment rounding.
11640         * malloc/malloc.c (_mid_memalign): New function.
11641         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11642         Implement by calling _mid_memalign.
11643         * manual/probes.texi (Memory Allocation Probes): Remove
11644         memory_valloc_retry and memory_pvalloc_retry.
11645
11646 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11647
11648         * locale/programs/locarchive.c (open_archive): Add const
11649         qualifier to ARCHIVEFNAME and copy default fname to
11650         DEFAULT_FNAME.
11651
11652         [BZ #15601]
11653         * libio/tst-widetext.input: Rename Oriya to Odia.
11654         * locale/iso-639.def: Likewise.
11655
11656         * manual/probes.texi (Mathematical Function Probes): Add
11657         documentation for sin, cos, asin and acos probes.
11658         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11659         (__sin32): Add slowasin probe.
11660         (__cos32): Add slowacos probe.
11661         (__mpsin): Add slowsin probe.
11662         (__mpcos): Add slowcos probe.
11663
11664 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11665
11666         [BZ #15483]
11667         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11668         thread-local __sim_exceptions_thread and global
11669         __sim_exceptions_global.
11670         (__sim_disabled_exceptions): Change to thread-local
11671         __sim_disabled_exceptions_thread and global
11672         __sim_disabled_exceptions_global.
11673         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11674         and global __sim_round_mode_global.
11675         (__simulate_exceptions): Use thread-local floating-point state and
11676         set global state from it as needed.
11677         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11678         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11679         __sim_round_mode_thread.
11680         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11681         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11682         and global __sim_exceptions_global.
11683         (__sim_disabled_exceptions): Change to thread-local
11684         __sim_disabled_exceptions_thread and global
11685         __sim_disabled_exceptions_global.
11686         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11687         and global __sim_round_mode_global.
11688         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11689         (SIM_SET_GLOBAL): Likewise.
11690         * sysdeps/powerpc/soft-fp/sfp-machine.h
11691         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11692         __sim_round_mode_thread.
11693         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11694         __sim_disabled_exceptions_thread.
11695         (__sim_exceptions): Change to __sim_exceptions_thread.
11696         (__sim_disabled_exceptions): Change to
11697         __sim_disabled_exceptions_thread.
11698         (__sim_round_mode): Change to __sim_round_mode_thread.
11699         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11700         thread-local floating-point state and set global state from it as
11701         needed.
11702         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11703         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11704         (__sim_disabled_exceptions): Remove extern declaration.
11705         (feenableexcept): Use thread-local floating-point state and set
11706         global state from it as needed.
11707         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
11708         extern declaration.
11709         (__sim_disabled_exceptions): Likewise.
11710         (__sim_round_mode): Likewise.
11711         (__fegetenv): Use thread-local floating-point state.
11712         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
11713         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11714         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
11715         floating-point state and set global state from it as needed.
11716         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
11717         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
11718         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
11719         Likewise.
11720         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
11721         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
11722         Likewise.
11723         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
11724         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
11725         Use __sim_round_mode_thread.
11726         * math/test-fenv-tls.c: New file.
11727         * math/Makefile (tests): Add test-fenv-tls.
11728         ($(objpfx)test-fenv-tls): Depend on
11729         $(common-objpfx)nptl/libpthread.so.
11730
11731 2013-11-19  Andreas Schwab  <schwab@suse.de>
11732
11733         * locale/programs/locale.c (show_info): Decode wordarray elements.
11734         * locale/categories.def (LC_MONETARY): Add element for
11735         _NL_MONETARY_CRNCYSTR.
11736         * locale/C-monetary.c (conversion_rate): New variable.
11737         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
11738         element.
11739
11740 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
11741
11742         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
11743         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
11744
11745 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11746
11747         * elf/Makefile (tst-auxv): New test.
11748         * elf/tst-auxv.c: New
11749         * elf/rtld.c (dl_main): Adjust AT_EXECFN
11750
11751 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
11752
11753         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
11754         (hidden_proto): Caller changed.
11755         (hidden_tls_proto): New macro.
11756         (libc_hidden_tls_proto): Likewise.
11757         (rtld_hidden_tls_proto): Likewise.
11758         (libm_hidden_tls_proto): Likewise.
11759         (libresolv_hidden_tls_proto): Likewise.
11760         (librt_hidden_tls_proto): Likewise.
11761         (libdl_hidden_tls_proto): Likewise.
11762         (libnss_files_hidden_tls_proto): Likewise.
11763         (libnsl_hidden_tls_proto): Likewise.
11764         (libnss_nisplus_hidden_tls_proto): Likewise.
11765         (libutil_hidden_tls_proto): Likewise.
11766
11767 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
11768
11769         [BZ #10253]
11770         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
11771         (decompose_rpath): Defer expansion to fillin_rpath.
11772         (_dl_init_paths): Pass linkmap to fillin_rpath.
11773
11774 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11775
11776         * benchtests/Makefile: Add strsep.
11777         * benchtests/bench-strsep.c: New file: strsep benchtest.
11778         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
11779
11780 2013-11-18  Andreas Schwab  <schwab@suse.de>
11781
11782         * locale/programs/locale.c (show_info) [case byte]: Check for
11783         '\377' instead of '\177'.
11784         * locale/C-monetary.c (not_available): Always use "\377".
11785         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
11786         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
11787         detect unavailable sign_posn locale elements.
11788         * locale/localeconv.c (__localeconv): For grouping and
11789         mon_grouping handle "\177" and "\377" like no grouping.
11790         (INT_ELEM): New macro.  Use it to set all numeric members.
11791         * locale/programs/ld-monetary.c (monetary_read)
11792         <tok_mon_grouping>: Normalize single -1 to the empty string.
11793         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
11794         Likewise.
11795
11796 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11797
11798         [BZ #16055]
11799         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
11800         when we match (nil).
11801         * stdio-common/tst-sscanf.c (struct test): Add testcase.
11802
11803 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
11804
11805         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
11806         (NO_TEST_INLINE): Update value.
11807         (ERRNO_UNCHANGED): Likewise.
11808         (ERRNO_EDOM): Likewise.
11809         (ERRNO_ERANGE): Likewise.
11810         (IGNORE_RESULT): Likewise.
11811         (check_float_internal): Check signs of NaN results if
11812         TEST_NAN_SIGN used.
11813         (check_complex): Pass TEST_NAN_SIGN flag through to second
11814         check_float_internal call.
11815         (copysign_test_data): Add tests with quiet NaNs as second
11816         argument.  Use TEST_NAN_SIGN.
11817         (fabs_test_data): Add test of negative quiet NaN argument.  Use
11818         TEST_NAN_SIGN.
11819         (signbit_test_data): Add tests of quiet NaN argument.
11820         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
11821
11822         * math/gen-libm-test.pl (show_exceptions): Take extra argument
11823         $ignore_result.
11824         (parse_args): Handle function results specified as IGNORE.
11825         * math/libm-test.inc (IGNORE_RESULT): New macro.
11826         (check_float_internal): Do not check numerical result if flag
11827         IGNORE_RESULT set.
11828         (check_complex): Pass through IGNORE_RESULT to second
11829         check_float_internal call.
11830         (check_int): Do not check numerical result if flag IGNORE_RESULT
11831         set.
11832         (check_long): Likewise.
11833         (check_bool): Likewise.
11834         (check_longlong): Likewise.
11835         (lrint_test_data): Add tests of infinite and NaN arguments.
11836         (lrint_tonearest_test_data): Likewise.
11837         (lrint_towardzero_test_data): Likewise.
11838         (lrint_downward_test_data): Likewise.
11839         (lrint_upward_test_data): Likewise.
11840         (llrint_test_data): Likewise.
11841         (llrint_tonearest_test_data): Likewise.
11842         (llrint_towardzero_test_data): Likewise.
11843         (llrint_downward_test_data): Likewise.
11844         (llrint_upward_test_data): Likewise.
11845         (lround_test_data): Likewise.
11846         (llround_test_data): Likewise.
11847
11848         * math/libm-test.inc (NO_TEST_INLINE): New macro.
11849         (ERRNO_UNCHANGED): Update value.
11850         (ERRNO_EDOM): Likewise.
11851         (ERRNO_ERANGE): Likewise.
11852         (NO_TEST_INLINE_FLOAT): New macro.
11853         (NO_TEST_INLINE_DOUBLE): Likewise.
11854         (enable_test): New function.
11855         (RUN_TEST_f_f): Check enable_test before running test.
11856         (RUN_TEST_2_f): Likewise.
11857         (RUN_TEST_fff_f): Likewise.
11858         (RUN_TEST_c_f): Likewise.
11859         (RUN_TEST_f_f1): Likewise.
11860         (RUN_TEST_fF_f1): Likewise.
11861         (RUN_TEST_fI_f1): Likewise.
11862         (RUN_TEST_ffI_f1): Likewise.
11863         (RUN_TEST_c_c): Likewise.
11864         (RUN_TEST_cc_c): Likewise.
11865         (RUN_TEST_f_i): Likewise.
11866         (RUN_TEST_f_i_tg): Likewise.
11867         (RUN_TEST_ff_i_tg): Likewise.
11868         (RUN_TEST_f_b): Likewise.
11869         (RUN_TEST_f_b_tg): Likewise.
11870         (RUN_TEST_f_l): Likewise.
11871         (RUN_TEST_f_L): Likewise.
11872         (RUN_TEST_fFF_11): Likewise.
11873         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
11874         conditionals.
11875         (cosh_test_data): Likewise.
11876         (exp_test_data): Likewise.
11877         (expm1_test_data): Likewise.
11878         (hypot_test_data): Likewise.
11879         (pow_test_data): Likewise.
11880         (sinh_test_data): Likewise.
11881         (tanh_test_data): Likewise.
11882         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
11883         flags argument.
11884
11885         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
11886         tests with quiet NaN input and output.
11887         (acosh_test_data): Likewise.
11888         (asin_test_data): Likewise.
11889         (asinh_test_data): Likewise.
11890         (atan_test_data): Likewise.
11891         (atanh_test_data): Likewise.
11892         (atan2_test_data): Likewise.
11893         (cbrt_test_data): Likewise.
11894         (cos_test_data): Likewise.
11895         (cosh_test_data): Likewise.
11896         (erf_test_data): Likewise.
11897         (erfc_test_data): Likewise.
11898         (exp_test_data): Likewise.
11899         (exp10_test_data): Likewise.
11900         (exp2_test_data): Likewise.
11901         (expm1_test_data): Likewise.
11902         (hypot_test_data): Likewise.
11903         (j0_test_data): Likewise.
11904         (j1_test_data): Likewise.
11905         (jn_test_data): Likewise.
11906         (lgamma_test_data): Likewise.
11907         (log_test_data): Likewise.
11908         (log10_test_data): Likewise.
11909         (log1p_test_data): Likewise.
11910         (log2_test_data): Likewise.
11911         (pow_test_data): Likewise.
11912         (scalb_test_data): Likewise.
11913         (sin_test_data): Likewise.
11914         (sincos_test_data): Likewise.
11915         (sinh_test_data): Likewise.
11916         (tan_test_data): Likewise.
11917         (tanh_test_data): Likewise.
11918         (tgamma_test_data): Likewise.
11919         (y0_test_data): Likewise.
11920         (y1_test_data): Likewise.
11921         (yn_test_data): Likewise.
11922
11923         [BZ #16167]
11924         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
11925         argument being NaN and avoid computations with second argument in
11926         that case.
11927         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11928         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11929         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11930
11931 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
11932
11933         * locale/iso-639.def: Add Chitwani Tharu (the).
11934
11935 2013-11-14  Andreas Schwab  <schwab@suse.de>
11936
11937         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
11938         word instead of empty string.
11939
11940 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11941
11942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11943         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
11944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11945         (__fe_nomask_env): Likewise.
11946
11947 2013-11-13  Steve Ellcey  <sellcey@mips.com>
11948
11949         * benchtests/bench-timing.h: Include time.h.
11950
11951 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
11952
11953         [BZ #15997]
11954         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
11955         to 3.4.0 for x32.
11956         * sysdeps/unix/sysv/linux/configure: Regenerated.
11957
11958 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11959
11960         [BZ #16151]
11961         * stdlib/strtod_l.c (round_and_return): Do not consider
11962         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
11963         exponent one less than half the least subnormal exponent.
11964         * stdlib/test-strtod-round-data: Add more tests.
11965         * stdlib/tst-strtod-round.c (tests): Regenerated.
11966
11967 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11968
11969         [BZ #14143]
11970         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
11971         (__fe_mask_env): Likewise.
11972         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
11973         libm_hidden_proto and add function prototype.
11974         (__fe_mask_env): Add function prototype.
11975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11976         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
11977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11978         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
11979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11980         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
11981
11982 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11983
11984         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
11985         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
11986
11987 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11988
11989         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
11990         of htab_find_slot().
11991
11992 2013-11-11  David S. Miller  <davem@davemloft.net>
11993
11994         [BZ #16150]
11995         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
11996         symbol in the non-vis3 case in static builds.
11997         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
11998         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
11999         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12000         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12001
12002 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12003
12004         [BZ #387]
12005         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12006         it is empty.
12007
12008 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12009
12010         * benchtests/Makefile: Add bench-strtod.
12011         * benchtests/bench-strtod.c: New file: strtod benchtest
12012
12013 2013-11-11  Andreas Schwab  <schwab@suse.de>
12014
12015         [BZ #16153]
12016         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
12017         terminating NUL in key length.
12018
12019 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12020
12021         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12022         Add artificial ODP entry for vDSO symbol for PPC64.
12023         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
12024         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
12025
12026 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12027
12028         [BZ #15374]
12029         * nss/getent.c (services_keys): Recognize services starting with digit.
12030
12031 2013-11-06  David S. Miller  <davem@davemloft.net>
12032
12033         [BZ #15985]
12034         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
12035         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
12036
12037 2013-11-06  Will Newton  <will.newton@linaro.org>
12038
12039         * manual/memory.texi (Malloc Examples): Remove register
12040         keyword from examples.
12041
12042 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
12043
12044         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
12045
12046 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
12047
12048         [BZ #6981]
12049         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
12050         depending on [__GCC_IEC_559 > 0].
12051         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
12052         depending on [__GCC_IEC_559_COMPLEX > 0].
12053
12054 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
12055
12056         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
12057         to iso-639.def.
12058
12059 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
12060
12061         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
12062
12063 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
12064
12065         [BZ #16112]
12066         * malloc/malloc (malloc_info): Do not handle first bin as
12067         special case.
12068
12069 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
12070
12071         * locale/iso-639.def: Add Central Nahuatl (nhn).
12072
12073 2013-11-01  Bruno Haible  <bruno@clisp.org>
12074
12075         [BZ #7003]
12076         * manual/math.texi (BSD Random): Specify range upper bound as
12077         in POSIX.
12078
12079 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
12080
12081         * locale/iso-639.def: Add Meadow Mari (mhr).
12082
12083 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
12084
12085         [BZ #14752], [BZ #15763]
12086         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
12087         Validate name.
12088         * rt/tst_shm.c: Add test for escaping directory.
12089
12090 2013-10-31  Andreas Schwab  <schwab@suse.de>
12091
12092         [BZ #15917]
12093         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
12094         followed by 'x' as part of digit sequence.
12095         * stdio-common/tst-sscanf.c (double_tests2): New tests.
12096
12097 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
12098
12099         [BZ #16037]
12100         * configure.ac: allow GNU Make 4.0 and greater.
12101         * configure: Regenerated.
12102
12103 2013-10-30  Will Newton  <will.newton@linaro.org>
12104
12105         [BZ #16038]
12106         * malloc/hooks.c (memalign_check): Limit alignment to the
12107         maximum representable power of two.
12108         * malloc/malloc.c (__libc_memalign): Likewise.
12109         * malloc/tst-memalign.c (do_test): Add test for very
12110         large alignment values.
12111         * malloc/tst-posix_memalign.c (do_test): Likewise.
12112
12113 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12114
12115         [BZ #11087]
12116         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
12117         (munmap_chunk): Likewise.
12118         (mremap_chunk): Likewise.
12119
12120 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
12121
12122         [BZ #15799]
12123         * stdlib/div.c (div): Remove obsolete code.
12124         * stdlib/ldiv.c (ldiv): Likewise.
12125         * stdlib/lldiv.c (lldiv): Likewise.
12126
12127 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12128
12129         [BZ #16071]
12130         * nss/nss_files/files-XXX.c (get_contents_ret): New
12131         enumerator.
12132         (get_contents): New function.
12133         (internal_getent): Use it.  Expand size of LINEBUFLEN.
12134
12135 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
12136
12137         * configure.in: Moved to ...
12138         * configure.ac: ... here. Change reference to configure.in
12139         to configure.ac.
12140         * sysdeps/arm/preconfigure.ac: ... here.
12141         configure.in to configure.ac.
12142         * sysdeps/gnu/configure.in: Moved to ...
12143         * sysdeps/gnu/configure.ac: ... here.
12144         * sysdeps/i386/configure.in: Moved to ...
12145         * sysdeps/i386/configure.ac: ... here.
12146         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
12147         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
12148         * sysdeps/mach/configure.in: Moved to ...
12149         * sysdeps/mach/configure.ac: ... here.
12150         * sysdeps/mach/hurd/configure.in: Moved to ...
12151         * sysdeps/mach/hurd/configure.ac: ... here.
12152         * sysdeps/powerpc/configure.in: Moved to ...
12153         * sysdeps/powerpc/configure.ac: ... here.
12154         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
12155         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
12156         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
12157         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
12158         * sysdeps/s390/s390-32/configure.in: Moved to ...
12159         * sysdeps/s390/s390-32/configure.ac: ... here.
12160         * sysdeps/s390/s390-64/configure.in: Moved to ...
12161         * sysdeps/s390/s390-64/configure.ac: ... here.
12162         * sysdeps/sh/configure.in: Moved to ...
12163         * sysdeps/sh/configure.ac: ... here.
12164         * sysdeps/sparc/configure.in: Moved to ...
12165         * sysdeps/sparc/configure.ac: ... here.
12166         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
12167         * sysdeps/unix/sysv/linux/configure.ac: ... here.
12168         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
12169         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
12170         * sysdeps/x86_64/configure.in: Moved to ...
12171         * sysdeps/x86_64/configure.ac: ... here.
12172         * sysdeps/x86_64/preconfigure.in: Moved to ...
12173         * sysdeps/x86_64/preconfigure.ac: ... here.
12174         * aclocal.m4: Change reference to configure.in to configure.ac.
12175         * config.h.in: Likewise.
12176         * manual/install.texi: Likewise.
12177         * manual/maint.texi: Likewise.
12178         * Makefile: Likewise.
12179         * malloc/Makefile: Likewise.
12180         * nscd/Makefile: Likewise.
12181         * Makeconfig: Change reference to configure.in and
12182         preconfigure.in to configure.ac and preconfigure.ac
12183         respectively.
12184         * INSTALL: Regenerated.
12185         * configure: Likewise.
12186         * sysdeps/gnu/configure: Likewise.
12187         * sysdeps/i386/configure: Likewise.
12188         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
12189         * sysdeps/mach/configure: Likewise.
12190         * sysdeps/mach/hurd/configure: Likewise.
12191         * sysdeps/powerpc/configure: Likewise.
12192         * sysdeps/powerpc/powerpc32/configure: Likewise.
12193         * sysdeps/powerpc/powerpc64/configure: Likewise.
12194         * sysdeps/s390/s390-32/configure: Likewise.
12195         * sysdeps/s390/s390-64/configure: Likewise.
12196         * sysdeps/sh/configure: Likewise.
12197         * sysdeps/sparc/configure: Likewise.
12198         * sysdeps/unix/sysv/linux/configure: Likewise.
12199         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
12200         * sysdeps/x86_64/configure: Likewise.
12201         * sysdeps/x86_64/preconfigure: Likewise.
12202
12203 2013-10-29  Andreas Schwab  <schwab@suse.de>
12204
12205         * stdio-common/Makefile (tst-swscanf-ENV): Define.
12206
12207 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12208
12209         * benchtests/pow-inputs: Add new inputs.
12210
12211         * benchtests/exp-inputs: Add new inputs.
12212
12213         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12214         conditional check for return value.
12215         (__cos32): Likewise.
12216
12217 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12218
12219         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
12220         to provide a boost for large inputs with word alignment.
12221         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
12222         implementation based on optimized PPC64 strcpy.
12223         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
12224         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
12225         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
12226         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
12227
12228 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12229
12230         [BZ #2801]
12231         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
12232
12233 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12234
12235         [BZ #14876]
12236         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
12237         * time/tst-strptime.c (day_tests): Add testcase.
12238
12239 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
12240
12241         [BZ #14029]
12242         * manual/pattern.texi: Acknowledge that fnmatch can fail.
12243
12244 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
12245
12246         [BZ #16074]
12247         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
12248         MAP_FAILED on error.
12249
12250 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12251
12252         [BZ #16072]
12253         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
12254         heap for large requests.
12255
12256 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
12257
12258         [BZ #9954]
12259         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
12260         result if the result has no associated interface.
12261         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
12262         interface for all 127.X.Y.Z addresses.
12263
12264 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
12265
12266         * locale/iso-639.def: Add Ligurian (lij)
12267
12268 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
12269
12270         [BZ #15825]
12271         * sunrpc/rpc_main.c: Document rpcgen -5.
12272
12273 2013-10-19  Michael Stahl  <mstahl@redhat.com>
12274
12275         * elf/rtld.c (do_preload): Print the reason why preloading failed.
12276
12277 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12278
12279         [BZ #10278]
12280         * posix/glob.c: Match only directories when trailing slash is present.
12281         * posix/tst-gnuglob.c (my_opendir): Do not open files.
12282         (main): Add testcase.
12283
12284 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
12285
12286         [BZ #15670]
12287         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
12288
12289 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
12290
12291         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
12292         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
12293         AUTH_DES and cindex for FIPS 140-2.
12294         (DES Encryption): Add cindex FIPS 46-3.
12295
12296         * locale/locarchive.h (struct locarhandle): Add fname.
12297         * locale/programs/localedef.c (main): Pass ARGV[remaining]
12298         if an optional argument was specified to --list-archive,
12299         otherwise NULL.
12300         * locale/programs/locarchive.c (show_archive_content): Take new
12301         argument fname and pass it via ah.fname to open_archive.
12302         * locale/programs/localedef.h: Update decl.
12303         (open_archive): If AH->fname is non-null, open that file
12304         rather than the default file name, and don't ignore ENOENT.
12305         (create_archive): Set AH.fname to NULL.
12306         (delete_locales_from_archive): Likewise.
12307         (add_locales_to_archive): Likewise.
12308         * locale/programs/locfile.c (write_all_categories): Likewise.
12309
12310 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
12311             Aldy Hernandez  <aldyh@redhat.com>
12312
12313         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
12314         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
12315         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
12316         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
12317         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
12318         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
12319         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
12320         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
12321         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
12322         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
12323         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
12324         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
12325         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
12326         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
12327         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
12328         Likewise.
12329         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
12330         Likewise.
12331         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
12332         Likewise.
12333         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
12334         Likewise.
12335         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
12336         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
12337         Likewise.
12338         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
12339         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
12340         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
12341         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
12342         Likewise.
12343         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
12344         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
12345         * sysdeps/powerpc/preconfigure: Likewise.
12346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
12347         Likewise.
12348         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
12349         Replace contents of file by #include of <fenv_libc.h>.
12350         * sysdeps/powerpc/soft-fp/sfp-machine.h
12351         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
12352         and <sys/prctl.h>.
12353         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
12354         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
12355         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
12356         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
12357         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
12358         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
12359         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
12360         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
12361         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
12362         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
12363         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
12364         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
12365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
12366         Allow copysignl PLT reference to be missing.
12367
12368 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
12369             Joseph Myers  <joseph@codesourcery.com
12370
12371         [BZ #15948]
12372         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
12373         single character.
12374         (add_to_tablewc): Assert sequence of wide characters is nonempty.
12375
12376 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12377
12378         * elf/tst-tls-dlinfo.c: Don't include tls.h.
12379         * elf/tst-tls1.c: Likewise.
12380         * elf/tst-tls10.h: Likewise.
12381         * elf/tst-tls14.c: Likewise.
12382         * elf/tst-tls2.c: Likewise.
12383         * elf/tst-tls3.c: Likewise.
12384         * elf/tst-tls4.c: Likewise.
12385         * elf/tst-tls5.c: Likewise.
12386         * elf/tst-tls6.c: Likewise.
12387         * elf/tst-tls7.c: Likewise.
12388         * elf/tst-tls8.c: Likewise.
12389         * elf/tst-tls9.c: Likewise.
12390         * elf/tst-tlsmod1.c: Likewise.
12391         * elf/tst-tlsmod13.c: Likewise.
12392         * elf/tst-tlsmod13a.c: Likewise.
12393         * elf/tst-tlsmod14a.c: Likewise.
12394         * elf/tst-tlsmod16a.c: Likewise.
12395         * elf/tst-tlsmod16b.c: Likewise.
12396         * elf/tst-tlsmod2.c: Likewise.
12397         * elf/tst-tlsmod3.c: Likewise.
12398         * elf/tst-tlsmod4.c: Likewise.
12399         * elf/tst-tlsmod5.c: Likewise.
12400         * elf/tst-tlsmod6.c: Likewise.
12401
12402 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12403
12404         [BZ #12486]
12405         * malloc/malloc.c: remove checks for statistics.
12406
12407 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12408
12409         [BZ #15277]
12410         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12411         * inet/tst-network.c: Add testcase.
12412
12413 2013-10-17  Andreas Schwab  <schwab@suse.de>
12414
12415         [BZ #15218]
12416         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12417         to determine canonical name.
12418
12419 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12420
12421         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12422         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12423         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12424         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12425         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12426         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12427         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12428         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12429         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12430         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12431         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12432         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12433         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12434         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12435         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12436         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12437         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12438         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12439         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12440         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12441         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12442         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12443         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12444         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12445         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12446         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12447         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12448         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12449         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12450         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12451         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12452         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12453         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12454         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12455         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12456         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12457         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12458         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12459         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12460         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12461         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12462         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12463         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12464         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12465         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12466         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12467         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12468         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12469         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12470         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12471         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12472         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12473         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12474         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12475         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12476         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12477         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12478         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12479
12480 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12481
12482         [BZ #16041]
12483         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12484         make result into a quiet NaN.
12485
12486 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12487
12488         * soft-fp/adddf3.c: Fix horizontal whitespace.
12489         * soft-fp/addsf3.c: Likewise.
12490         * soft-fp/addtf3.c: Likewise.
12491         * soft-fp/divdf3.c: Likewise.
12492         * soft-fp/divsf3.c: Likewise.
12493         * soft-fp/divtf3.c: Likewise.
12494         * soft-fp/double.h: Likewise.
12495         * soft-fp/eqdf2.c: Likewise.
12496         * soft-fp/eqsf2.c: Likewise.
12497         * soft-fp/eqtf2.c: Likewise.
12498         * soft-fp/extenddftf2.c: Likewise.
12499         * soft-fp/extended.h: Likewise.
12500         * soft-fp/extendsfdf2.c: Likewise.
12501         * soft-fp/extendsftf2.c: Likewise.
12502         * soft-fp/extendxftf2.c: Likewise.
12503         * soft-fp/fixdfdi.c: Likewise.
12504         * soft-fp/fixdfsi.c: Likewise.
12505         * soft-fp/fixdfti.c: Likewise.
12506         * soft-fp/fixsfdi.c: Likewise.
12507         * soft-fp/fixsfsi.c: Likewise.
12508         * soft-fp/fixsfti.c: Likewise.
12509         * soft-fp/fixtfdi.c: Likewise.
12510         * soft-fp/fixtfsi.c: Likewise.
12511         * soft-fp/fixtfti.c: Likewise.
12512         * soft-fp/fixunsdfdi.c: Likewise.
12513         * soft-fp/fixunsdfsi.c: Likewise.
12514         * soft-fp/fixunsdfti.c: Likewise.
12515         * soft-fp/fixunssfdi.c: Likewise.
12516         * soft-fp/fixunssfsi.c: Likewise.
12517         * soft-fp/fixunssfti.c: Likewise.
12518         * soft-fp/fixunstfdi.c: Likewise.
12519         * soft-fp/fixunstfsi.c: Likewise.
12520         * soft-fp/fixunstfti.c: Likewise.
12521         * soft-fp/floatdidf.c: Likewise.
12522         * soft-fp/floatdisf.c: Likewise.
12523         * soft-fp/floatditf.c: Likewise.
12524         * soft-fp/floatsidf.c: Likewise.
12525         * soft-fp/floatsisf.c: Likewise.
12526         * soft-fp/floatsitf.c: Likewise.
12527         * soft-fp/floattidf.c: Likewise.
12528         * soft-fp/floattisf.c: Likewise.
12529         * soft-fp/floattitf.c: Likewise.
12530         * soft-fp/floatundidf.c: Likewise.
12531         * soft-fp/floatundisf.c: Likewise.
12532         * soft-fp/floatunditf.c: Likewise.
12533         * soft-fp/floatunsidf.c: Likewise.
12534         * soft-fp/floatunsisf.c: Likewise.
12535         * soft-fp/floatunsitf.c: Likewise.
12536         * soft-fp/floatuntidf.c: Likewise.
12537         * soft-fp/floatuntisf.c: Likewise.
12538         * soft-fp/floatuntitf.c: Likewise.
12539         * soft-fp/fmadf4.c: Likewise.
12540         * soft-fp/fmasf4.c: Likewise.
12541         * soft-fp/fmatf4.c: Likewise.
12542         * soft-fp/gedf2.c: Likewise.
12543         * soft-fp/gesf2.c: Likewise.
12544         * soft-fp/getf2.c: Likewise.
12545         * soft-fp/ledf2.c: Likewise.
12546         * soft-fp/lesf2.c: Likewise.
12547         * soft-fp/letf2.c: Likewise.
12548         * soft-fp/muldf3.c: Likewise.
12549         * soft-fp/mulsf3.c: Likewise.
12550         * soft-fp/multf3.c: Likewise.
12551         * soft-fp/negdf2.c: Likewise.
12552         * soft-fp/negsf2.c: Likewise.
12553         * soft-fp/negtf2.c: Likewise.
12554         * soft-fp/op-1.h: Likewise.
12555         * soft-fp/op-2.h: Likewise.
12556         * soft-fp/op-4.h: Likewise.
12557         * soft-fp/op-8.h: Likewise.
12558         * soft-fp/op-common.h: Likewise.
12559         * soft-fp/quad.h: Likewise.
12560         * soft-fp/single.h: Likewise.
12561         * soft-fp/soft-fp.h: Likewise.
12562         * soft-fp/sqrtdf2.c: Likewise.
12563         * soft-fp/sqrtsf2.c: Likewise.
12564         * soft-fp/sqrttf2.c: Likewise.
12565         * soft-fp/subdf3.c: Likewise.
12566         * soft-fp/subsf3.c: Likewise.
12567         * soft-fp/subtf3.c: Likewise.
12568         * soft-fp/truncdfsf2.c: Likewise.
12569         * soft-fp/trunctfdf2.c: Likewise.
12570         * soft-fp/trunctfsf2.c: Likewise.
12571         * soft-fp/trunctfxf2.c: Likewise.
12572         * soft-fp/unorddf2.c: Likewise.
12573         * soft-fp/unordsf2.c: Likewise.
12574         * soft-fp/unordtf2.c: Likewise.
12575
12576 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12577
12578         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12579         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12580
12581 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12582
12583         * elf/dl-libc.c: Clear initfini list after freeing.
12584
12585 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12586
12587         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12588         * soft-fp/addsf3.c: Likewise.
12589         * soft-fp/addtf3.c: Likewise.
12590         * soft-fp/divdf3.c: Likewise.
12591         * soft-fp/divsf3.c: Likewise.
12592         * soft-fp/divtf3.c: Likewise.
12593         * soft-fp/double.h: Likewise.
12594         * soft-fp/eqdf2.c: Likewise.
12595         * soft-fp/eqsf2.c: Likewise.
12596         * soft-fp/eqtf2.c: Likewise.
12597         * soft-fp/extenddftf2.c: Likewise.
12598         * soft-fp/extended.h: Likewise.
12599         * soft-fp/extendsfdf2.c: Likewise.
12600         * soft-fp/extendsftf2.c: Likewise.
12601         * soft-fp/extendxftf2.c: Likewise.
12602         * soft-fp/fixdfdi.c: Likewise.
12603         * soft-fp/fixdfsi.c: Likewise.
12604         * soft-fp/fixdfti.c: Likewise.
12605         * soft-fp/fixsfdi.c: Likewise.
12606         * soft-fp/fixsfsi.c: Likewise.
12607         * soft-fp/fixsfti.c: Likewise.
12608         * soft-fp/fixtfdi.c: Likewise.
12609         * soft-fp/fixtfsi.c: Likewise.
12610         * soft-fp/fixtfti.c: Likewise.
12611         * soft-fp/fixunsdfdi.c: Likewise.
12612         * soft-fp/fixunsdfsi.c: Likewise.
12613         * soft-fp/fixunsdfti.c: Likewise.
12614         * soft-fp/fixunssfdi.c: Likewise.
12615         * soft-fp/fixunssfsi.c: Likewise.
12616         * soft-fp/fixunssfti.c: Likewise.
12617         * soft-fp/fixunstfdi.c: Likewise.
12618         * soft-fp/fixunstfsi.c: Likewise.
12619         * soft-fp/fixunstfti.c: Likewise.
12620         * soft-fp/floatdidf.c: Likewise.
12621         * soft-fp/floatdisf.c: Likewise.
12622         * soft-fp/floatditf.c: Likewise.
12623         * soft-fp/floatsidf.c: Likewise.
12624         * soft-fp/floatsisf.c: Likewise.
12625         * soft-fp/floatsitf.c: Likewise.
12626         * soft-fp/floattidf.c: Likewise.
12627         * soft-fp/floattisf.c: Likewise.
12628         * soft-fp/floattitf.c: Likewise.
12629         * soft-fp/floatundidf.c: Likewise.
12630         * soft-fp/floatundisf.c: Likewise.
12631         * soft-fp/floatunsidf.c: Likewise.
12632         * soft-fp/floatunsisf.c: Likewise.
12633         * soft-fp/floatuntidf.c: Likewise.
12634         * soft-fp/floatuntisf.c: Likewise.
12635         * soft-fp/floatuntitf.c: Likewise.
12636         * soft-fp/fmadf4.c: Likewise.
12637         * soft-fp/fmasf4.c: Likewise.
12638         * soft-fp/fmatf4.c: Likewise.
12639         * soft-fp/gedf2.c: Likewise.
12640         * soft-fp/gesf2.c: Likewise.
12641         * soft-fp/getf2.c: Likewise.
12642         * soft-fp/ledf2.c: Likewise.
12643         * soft-fp/lesf2.c: Likewise.
12644         * soft-fp/letf2.c: Likewise.
12645         * soft-fp/muldf3.c: Likewise.
12646         * soft-fp/mulsf3.c: Likewise.
12647         * soft-fp/multf3.c: Likewise.
12648         * soft-fp/negdf2.c: Likewise.
12649         * soft-fp/negsf2.c: Likewise.
12650         * soft-fp/negtf2.c: Likewise.
12651         * soft-fp/op-1.h: Likewise.
12652         * soft-fp/op-2.h: Likewise.
12653         * soft-fp/op-4.h: Likewise.
12654         * soft-fp/op-8.h: Likewise.
12655         * soft-fp/op-common.h: Likewise.
12656         * soft-fp/quad.h: Likewise.
12657         * soft-fp/single.h: Likewise.
12658         * soft-fp/soft-fp.h: Likewise.
12659         * soft-fp/sqrtdf2.c: Likewise.
12660         * soft-fp/sqrtsf2.c: Likewise.
12661         * soft-fp/sqrttf2.c: Likewise.
12662         * soft-fp/subdf3.c: Likewise.
12663         * soft-fp/subsf3.c: Likewise.
12664         * soft-fp/subtf3.c: Likewise.
12665         * soft-fp/truncdfsf2.c: Likewise.
12666         * soft-fp/trunctfdf2.c: Likewise.
12667         * soft-fp/trunctfsf2.c: Likewise.
12668         * soft-fp/trunctfxf2.c: Likewise.
12669         * soft-fp/unorddf2.c: Likewise.
12670         * soft-fp/unordsf2.c: Likewise.
12671         * soft-fp/unordtf2.c: Likewise.
12672
12673 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12674
12675         [BZ #15672]
12676         * misc/error.c (error_tail): Fix possible buffer overflow.
12677
12678 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12679
12680         [BZ #13028]
12681         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12682         address.
12683
12684 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12685
12686         [BZ #832]
12687         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12688         testing pipefail option.
12689
12690 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12691
12692         * soft-fp/double.h: Indent preprocessor directives inside #if.
12693         * soft-fp/extended.h: Likewise.
12694         * soft-fp/op-2.h: Likewise.
12695         * soft-fp/op-4.h: Likewise.
12696         * soft-fp/op-common.h: Likewise.
12697         * soft-fp/quad.h: Likewise.
12698         * soft-fp/single.h: Likewise.
12699         * soft-fp/soft-fp.h: Likewise.
12700
12701 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12702
12703         * iconv/iconv_prog.c: Fix typos.
12704         * stdio-common/psiginfo-data.h: Likewise.
12705
12706 2013-10-12   Reuben Thomas <rrt@sc3d.org>
12707
12708         [BZ #15764]
12709         * locale/setlocale.c: Fix typo.
12710
12711 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12712
12713         [BZ #16036]
12714         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
12715         signaling NaN arguments.
12716         * soft-fp/unordsf2.c (__unordsf2): Likewise.
12717         * soft-fp/unordtf2.c (__unordtf2): Likewise.
12718
12719         [BZ #14910]
12720         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
12721         unordered operands.
12722         * soft-fp/gesf2.c (__gesf2): Likewise.
12723         * soft-fp/getf2.c (__getf2): Likewise.
12724         * soft-fp/ledf2.c (__ledf2): Likewise.
12725         * soft-fp/lesf2.c (__lesf2): Likewise.
12726         * soft-fp/letf2.c (__letf2): Likewise.
12727
12728         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
12729         * soft-fp/eqsf2.c (__eqsf2): Likewise.
12730         * soft-fp/eqtf2.c (__eqtf2): Likewise.
12731         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
12732         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
12733         * soft-fp/fixdfti.c (__fixdfti): Likewise.
12734         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
12735         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
12736         * soft-fp/fixsfti.c (__fixsfti): Likewise.
12737         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
12738         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
12739         * soft-fp/fixtfti.c (__fixtfti): Likewise.
12740         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
12741         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
12742         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
12743         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
12744         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
12745         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
12746         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
12747         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
12748         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
12749         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
12750         * soft-fp/floatdisf.c (__floatdisf): Likewise.
12751         * soft-fp/floatsisf.c (__floatsisf): Likewise.
12752         * soft-fp/floattidf.c (__floattidf): Likewise.
12753         * soft-fp/floattisf.c (__floattisf): Likewise.
12754         * soft-fp/floattitf.c (__floattitf): Likewise.
12755         * soft-fp/floatundidf.c (__floatundidf): Likewise.
12756         * soft-fp/floatundisf.c (__floatundisf): Likewise.
12757         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
12758         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
12759         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
12760         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
12761         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
12762         * soft-fp/gesf2.c (__gesf2): Likewise.
12763         * soft-fp/getf2.c (__getf2): Likewise.
12764         * soft-fp/ledf2.c (__ledf2): Likewise.
12765         * soft-fp/lesf2.c (__lesf2): Likewise.
12766         * soft-fp/letf2.c (__letf2): Likewise.
12767
12768         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
12769         Undefine and redefine.
12770         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
12771         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
12772         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
12773         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
12774         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12775         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
12776         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12777         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
12778         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12779         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
12780         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12781         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
12782         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12783         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
12784         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12785
12786         [BZ #16032]
12787         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
12788         without decrementing exponent if mantissa >= that for the
12789         denominator, not >.
12790         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
12791         denominator, not >.  Decrement exponent in < case instead of
12792         incrementing in >= case.
12793         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
12794         without decrementing exponent if mantissa >= that for the
12795         denominator, not >.
12796
12797         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
12798         computing saturated result for unsigned overflow.
12799
12800 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
12801             Jeff Law  <law@redhat.com>
12802
12803         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
12804         (atan2Mp): Add systemtap probe marker.
12805         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
12806         (__ieee754_log): Add systemtap probe marker.
12807         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
12808         (atanMp): Add systemtap probe marker.
12809         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
12810         (tanMp): Add systemtap probe marker.
12811         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
12812         (__slowexp): Add systemtap probe marker.
12813         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
12814         (__slowpow): Add systemtap probe marker.
12815         * manual/probes.texi: Document probes.
12816
12817 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
12818
12819         [BZ #15362]
12820         * libio/fileops.c (_IO_new_file_write): Return count of bytes
12821         written.
12822         (_IO_new_file_xsputn): Don't return EOF if nothing has been
12823         written.
12824         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
12825         written to buffer but not flushed.
12826         * libio/iofwrite_u.c:  Likewise.
12827         * libio/iopadn.c:  Return bytes returned even if EOF was
12828         encountered.
12829         * libio/iowpadn.c:  Likewise.
12830         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
12831         if _IO_padn does not write the whole buffer.
12832         [!COMPILE_WPRINTF] (PAD): Likewise.
12833
12834 2013-10-10  David S. Miller  <davem@davemloft.net>
12835
12836         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
12837         directory block.
12838
12839 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12840
12841         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
12842         instead of FSF address.
12843         * soft-fp/fixdfti.c: Likewise.
12844         * soft-fp/fixsfti.c: Likewise.
12845         * soft-fp/fixtfti.c: Likewise.
12846         * soft-fp/fixunsdfti.c: Likewise.
12847         * soft-fp/fixunssfti.c: Likewise.
12848         * soft-fp/fixunstfti.c: Likewise.
12849         * soft-fp/floattidf.c: Likewise.
12850         * soft-fp/floattisf.c: Likewise.
12851         * soft-fp/floattitf.c: Likewise.
12852         * soft-fp/floatuntidf.c: Likewise.
12853         * soft-fp/floatuntisf.c: Likewise.
12854         * soft-fp/floatuntitf.c: Likewise.
12855         * soft-fp/trunctfxf2.c: Likewise.
12856
12857         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
12858         * soft-fp/fixdfti.c: Likewise.
12859         * soft-fp/fixsfti.c: Likewise.
12860         * soft-fp/fixtfti.c: Likewise.
12861         * soft-fp/fixunsdfti.c: Likewise.
12862         * soft-fp/fixunssfti.c: Likewise.
12863         * soft-fp/fixunstfti.c: Likewise.
12864         * soft-fp/floattidf.c: Likewise.
12865         * soft-fp/floattisf.c: Likewise.
12866         * soft-fp/floattitf.c: Likewise.
12867         * soft-fp/floatuntidf.c: Likewise.
12868         * soft-fp/floatuntisf.c: Likewise.
12869         * soft-fp/floatuntitf.c: Likewise.
12870         * soft-fp/trunctfxf2.c: Likewise.
12871
12872 2013-10-10  David S. Miller  <davem@davemloft.net>
12873
12874         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12875
12876 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
12877
12878         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
12879         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
12880         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
12881         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
12882         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
12883         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
12884         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
12885
12886         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
12887         for NaNs before doing comparisons on argument.
12888         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
12889         Likewise.
12890
12891 2013-10-10  Will Newton  <will.newton@linaro.org>
12892
12893         * malloc/hooks.c (memalign_check): Ensure the value of bytes
12894         passed to _int_memalign does not overflow.
12895
12896 2013-10-10  Torvald Riegel  <triegel@redhat.com>
12897
12898         * scripts/bench.pl: Add include-sources directive.
12899         * benchtests/README: Update documentation.
12900
12901 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12902
12903         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
12904         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
12905         instead of FP_INIT_ROUNDMODE.
12906         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
12907         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
12908
12909         [BZ #16034]
12910         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
12911         copy class of input value.
12912         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
12913         not handle exceptions.
12914         * soft-fp/negsf2.c (__negsf2): Likewise.
12915         * soft-fp/negtf2.c (__negtf2): Likewise.
12916         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
12917
12918 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
12919
12920         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
12921         semicolon.  From Linux kernel.
12922
12923 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
12924
12925         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
12926
12927 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
12928
12929         [BZ #156]
12930         * manual/socket.texi: Added statement about buffer
12931         for gethostbyname2_r.
12932
12933 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
12934
12935         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
12936         Use .p2align directive instead, throughout.
12937         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
12938         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
12939         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
12940         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12941         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12942         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
12943         * sysdeps/x86_64/strchr.S: Likewise.
12944         * sysdeps/x86_64/strrchr.S: Likewise.
12945
12946 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12947
12948         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
12949
12950         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
12951
12952         * sysdeps/generic/math_private.h (__mpsin1): Remove
12953         declaration.
12954         (__mpcos1): Likewise.
12955         (__mpsin): New argument __range_reduce.
12956         (__mpcos): Likewise.
12957         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12958         (slow): Use __mpsin and __mpcos.
12959         (slow1): Likewise.
12960         (slow2): Likewise.
12961         (sloww): Likewise.
12962         (sloww1): Likewise.
12963         (sloww2): Likewise.
12964         (bsloww): Likewise.
12965         (bsloww1): Likewise.
12966         (bsloww2): Likewise.
12967         (cslow2): Likewise.
12968         (csloww): Likewise.
12969         (csloww1): Likewise.
12970         (csloww2): Likewise.
12971         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
12972         range_reduce.  Merge in __mpsin1.
12973         (__mpcos): Likewise.
12974         (__mpsin1): Remove.
12975         (__mpcos1): Likewise.
12976
12977 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
12978
12979         * locale/loadlocale.c (_nl_intern_locale_data): Use
12980         LOCFILE_ALIGNED_P.
12981         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
12982         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
12983         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
12984         obstack data is appropriately aligned.
12985         (obstack_int32_grow_fast): Likewise.
12986         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
12987         * locale/programs/locfile.c (add_locale_uint32): Likewise.
12988         (add_locale_uint32_array): Likewise.
12989
12990 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12991
12992         * benchtests/Makefile: Remove ARGLIST and RET variables.
12993         ($(objpfx)bench-%.c): Pass only function name to the script.
12994         * benchtests/README: Update documentation.
12995         * benchtests/acos-inputs: Add new directives.
12996         * benchtests/acosh-inputs: Likewise.
12997         * benchtests/asin-inputs: Likewise.
12998         * benchtests/asinh-inputs: Likewise.
12999         * benchtests/atan-inputs: Likewise.
13000         * benchtests/atanh-inputs: Likewise.
13001         * benchtests/cos-inputs: Likewise.
13002         * benchtests/cosh-inputs: Likewise.
13003         * benchtests/exp-inputs: Likewise.
13004         * benchtests/log-inputs: Likewise.
13005         * benchtests/pow-inputs: Likewise.
13006         * benchtests/rint-inputs: Likewise.
13007         * benchtests/sin-inputs: Likewise.
13008         * benchtests/sinh-inputs: Likewise.
13009         * benchtests/tan-inputs: Likewise.
13010         * benchtests/tanh-inputs: Likewise.
13011         * scripts/bench.pl: Add support for new directives.
13012
13013 2013-10-07  Alan Modra  <amodra@gmail.com>
13014
13015         * README: Fix careless merge.
13016
13017 2013-10-05  Alan Modra  <amodra@gmail.com>
13018
13019         * NEWS: Mention powerpc64le support and bugs fixed.
13020         * README: Both big-endian and little-endian powerpc64 supported.
13021
13022 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13023
13024         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
13025         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
13026         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
13027         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
13028
13029 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
13030
13031         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
13032         match prototype.
13033
13034 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
13035
13036         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
13037         Move -mhard-float appending from
13038         ports/sysdeps/powerpc/powerpc32/Makefile.
13039         [$(with-fp) = yes] (ASFLAGS): Likewise.
13040         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
13041         * sysdeps/powerpc/nofpu: Move directory from
13042         ports/sysdeps/powerpc/nofpu.
13043         * sysdeps/powerpc/soft-fp: Move directory from
13044         ports/sysdeps/powerpc/soft-fp.
13045         * sysdeps/powerpc/powerpc32/405: Move directory from
13046         ports/sysdeps/powerpc/powerpc32/405.
13047         * sysdeps/powerpc/powerpc32/440: Move directory from
13048         ports/sysdeps/powerpc/powerpc32/440.
13049         * sysdeps/powerpc/powerpc32/464: Move directory from
13050         ports/sysdeps/powerpc/powerpc32/464.
13051         * sysdeps/powerpc/powerpc32/476: Move directory from
13052         ports/sysdeps/powerpc/powerpc32/476.
13053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
13054         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
13055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
13056         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
13057         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
13058         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
13059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
13060         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
13061         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
13062         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
13063         * README: Update for powerpc-*-linux-gnu software floating point
13064         support in libc.
13065
13066         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
13067         case to powerpc/powerpc32*.
13068         * sysdeps/unix/sysv/linux/configure: Regenerated.
13069
13070         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
13071         (_FPU_MASK_OM): Define as 0x04.
13072         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
13073         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
13074         0x00c10080.
13075         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
13076         0x0000003c.
13077         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
13078
13079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
13080         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13081         getcontext_e500.
13082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
13083         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
13084         setcontext_e500.
13085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
13086         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
13087         and setcontext_e500.
13088
13089 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
13090
13091         * locale/iso-3166.def: Update iso-1366.def and related occurrences
13092
13093 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13094
13095         * manual/threads.texi (Default Thread Attributes): Fix typo.
13096
13097 2013-10-04  Will Newton  <will.newton@linaro.org>
13098
13099         * malloc/Makefile: Add tst-memalign.
13100         * malloc/tst-memalign.c: New file.
13101
13102         * malloc/tst-posix_memalign.c: Add comments.
13103         (do_test): Add comments and call free on all potentially
13104         allocated pointers. Add space after cast.
13105
13106         * malloc/tst-pvalloc.c: Add comments.
13107         (do_test): Add comments and call free on all potentially
13108         allocated pointers. Remove duplicate check for NULL pointer.
13109         Add space after cast.
13110
13111         * malloc/tst-valloc.c: Add comments.
13112         (do_test): Add comments and call free on all potentially
13113         allocated pointers. Remove duplicate check for NULL pointer.
13114         Add space after cast.
13115
13116 2013-10-04  Alan Modra  <amodra@gmail.com>
13117
13118         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13119         Use stdint types in rather than __attribute__((mode())).
13120         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13121
13122 2013-10-04  Alan Modra  <amodra@gmail.com>
13123
13124         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
13125         Correct handling of unaligned relocs for little-endian.
13126         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
13127
13128 2013-10-04  Alan Modra  <amodra@gmail.com>
13129
13130         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
13131         * configure: Regenerate.
13132         * nptl/shlib-versions: Powerpc*le starts at 2.18.
13133         * shlib-versions: Likewise.
13134
13135 2013-10-04  Alan Modra  <amodra@gmail.com>
13136
13137         * string/tester.c (test_memrchr): Increment reported test cycle.
13138
13139 2013-10-04  Alan Modra  <amodra@gmail.com>
13140
13141         * string/test-memcpy.c (do_one_test): When reporting errors, print
13142         string address and don't overrun end of string.
13143
13144 2013-10-04  Alan Modra  <amodra@gmail.com>
13145
13146         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
13147         insrdi.  Make better use of reg selection to speed exit slightly.
13148         Schedule entry path a little better.  Remove useless "are we done"
13149         checks on entry to main loop.  Handle wrapping around zero address.
13150         Correct main loop count.  Handle single left-over word from main
13151         loop inline rather than by using loop_small.  Remove extra word
13152         case in loop_small caused by wrong loop count.  Add little-endian
13153         support.
13154         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
13155         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
13156         cache hint.
13157         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
13158         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
13159         support.  Avoid rlwimi.
13160         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
13161
13162 2013-10-04  Alan Modra  <amodra@gmail.com>
13163
13164         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
13165         insrdi.  Formatting.
13166         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
13167         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13168         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
13169         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
13170         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13171         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
13172
13173 2013-10-04  Alan Modra  <amodra@gmail.com>
13174
13175         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
13176         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13177         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
13178         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
13179         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
13180         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
13181         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13182         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
13183         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
13184         use of regs.  Use power7 mtocrf.  Tidy function tails.
13185
13186 2013-10-04  Alan Modra  <amodra@gmail.com>
13187
13188         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
13189         Formatting.  Consistently use rXXX register defines or rN defines.
13190         Use early exit labels that avoid restoring unused non-volatile regs.
13191         Make cr field use more consistent with rWORDn compares.  Rename
13192         regs used as shift registers for unaligned loop, using rN defines
13193         for short lifetime/multiple use regs.
13194         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
13195         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
13196         addi 1,1,64 to pop stack frame.  Simplify return value code.
13197         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
13198
13199 2013-10-04  Alan Modra  <amodra@gmail.com>
13200
13201         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
13202         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
13203         rather than rlwimi.
13204         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
13205         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
13206         little-endian support.  Correct typos.
13207         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
13208         rather than rlwimi.
13209         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
13210         in loop and entry code to keep "and." results.
13211         (strchr): Add little-endian support.  Comment.  Move cntlzd
13212         earlier in tail.
13213         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
13214
13215 2013-10-04  Alan Modra  <amodra@gmail.com>
13216
13217         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
13218         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
13219         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
13220         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
13221
13222 2013-10-04  Alan Modra  <amodra@gmail.com>
13223
13224         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
13225         (rTMP): Define as r11.
13226         (strcmp): Add little-endian support.  Optimise tail.
13227         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
13228         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
13229         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
13230         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13231         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
13232         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13233         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13234
13235 2013-10-04  Alan Modra  <amodra@gmail.com>
13236
13237         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
13238         little-endian support.  Remove unnecessary "are we done" tests.
13239         Handle "s" wrapping around zero and extremely large "size".
13240         Correct main loop count.  Handle single left-over word from main
13241         loop inline rather than by using small_loop.  Correct comments.
13242         Delete "zero" tail, use "end_max" instead.
13243         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
13244
13245 2013-10-04  Alan Modra  <amodra@gmail.com>
13246
13247         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
13248         support.  Don't branch over align.
13249         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
13250         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
13251         support.  Rearrange tmp reg use to suit.  Comment.
13252         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
13253
13254 2013-10-04  Alan Modra  <amodra@gmail.com>
13255
13256         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
13257
13258 2013-10-04  Alan Modra  <amodra@gmail.com>
13259
13260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
13261         conditional form of branch and link when obtaining pc.
13262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
13263
13264 2013-10-04  Alan Modra  <amodra@gmail.com>
13265
13266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
13267         HIWORD/LOWORD.
13268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
13269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
13270
13271 2013-10-04  Alan Modra  <amodra@gmail.com>
13272
13273         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
13274         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
13275         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
13276         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
13277         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
13278         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
13279         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
13280         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
13281         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
13282         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
13283
13284 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13285             Alistair Popple <alistair@ozlabs.au.ibm.com>
13286             Alan Modra <amodra@gmail.com>
13287
13288         [BZ #15723]
13289         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
13290         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
13291         _dl_hwcap access for little-endian.
13292         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
13293         destroy vmx regs when saving unaligned.
13294         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
13295         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
13296         destroy vmx regs when saving unaligned.
13297
13298 2013-10-04  Alan Modra  <amodra@gmail.com>
13299
13300         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
13301         Don't use a union to pack hi/low value.
13302
13303 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13304
13305         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
13306         for little-endian.
13307         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
13308         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
13309         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
13310         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
13311         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
13312
13313 2013-10-04  Alan Modra  <amodra@gmail.com>
13314
13315         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
13316         constants to usual value for .cst8 section, and remove redundant
13317         high address load.
13318         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
13319         constant for 0x1p52.  Load little-endian words of double from
13320         correct stack offsets.
13321
13322 2013-10-04  Alan Modra  <amodra@gmail.com>
13323
13324         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
13325         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
13326         words of double from correct stack offsets.
13327         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
13328         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
13329         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
13330         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
13331         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
13332         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
13333         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
13334         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
13335         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
13336         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
13337         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
13338         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
13339         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13340         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13341         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
13342         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
13343         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
13344
13345 2013-10-04  Alan Modra  <amodra@gmail.com>
13346
13347         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
13348         64-bit int/double union.
13349         (_FPU_SETCW): Likewise.
13350         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
13351         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
13352
13353 2013-10-04  Alan Modra  <amodra@gmail.com>
13354
13355         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
13356         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
13357
13358 2013-10-04  Alan Modra  <amodra@gmail.com>
13359
13360         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
13361         use vector int constants.
13362         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
13363
13364 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13365
13366         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
13367         array with long long.
13368         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
13369         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
13370         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
13371         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
13372         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
13373         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
13374         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
13375         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
13376         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
13377         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
13378         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
13379         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
13380         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13381
13382 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13383
13384         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13385         (__signbit): Likewise.  Correct for little-endian.
13386         (__signbitl): Call __signbit.
13387         (lrint): Correct for little-endian.
13388         (lrintf): Call lrint.
13389
13390 2013-10-04  Alan Modra  <amodra@gmail.com>
13391
13392         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13393         union 32-bit int array member with 64-bit int array.
13394         (t515, tm256): Double rather than long double.
13395         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13396
13397 2013-10-04  Alan Modra  <amodra@gmail.com>
13398
13399         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13400         Delete.
13401         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13402         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13403         version of math_ldbl.h.
13404
13405 2013-10-04  Alan Modra  <amodra@gmail.com>
13406
13407         [BZ #15734], [BZ #15735]
13408         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13409         all uses of ieee875 long double macros and unions.  Simplify test
13410         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13411         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13412         normalize after ldbl_extract_mantissa, and don't add hidden bit
13413         already handled.  Don't treat low word of ieee854 mantissa like
13414         low word of IBM long double and mask off bit when testing for
13415         zero.
13416         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13417         all uses of ieee875 long double macros and unions.  Simplify tests
13418         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13419         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13420         two1022, instead use their values.  Recognise that tests for large
13421         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13422         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13423         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13424         test for 0.0L and nan.  Correct negation.
13425         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13426         ieee875 long double macros and unions.  Correct output for large
13427         magnitude x.  Correct absolute value calculation.
13428         (__erfcl): Likewise.
13429         * math/libm-test.inc: Add tests for errors discovered in IBM long
13430         double versions of fmodl, remainderl, erfl and erfcl.
13431
13432 2013-10-04  Alan Modra  <amodra@gmail.com>
13433
13434         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13435         all uses of ieee854 long double macros and unions.  Simplify tests
13436         for long doubles that are fully specified by the high double.
13437         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13438         Likewise.
13439         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13440         Remove dead code too.
13441         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13442         (__ieee754_ynl): Likewise.
13443         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13444         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13445         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13446         Remove dead code too.
13447         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13448         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13449         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13450         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13451         Simplify.
13452         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13453         Simplify.
13454         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13455         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13456         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13457         Comment on variable precision.
13458         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13459         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13460         Likewise.
13461         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13462         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13463         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13464         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13465         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13466
13467 2013-10-04  Alan Modra  <amodra@gmail.com>
13468
13469         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13470         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13471         all uses of ieee854 long double macros and unions.
13472         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13473         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13474         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13475         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13476         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13477         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13478         Likewise.
13479         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13480         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13481         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13482         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13483         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13484         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13485         Simplify sign and nan test too.
13486         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13487         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13488         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13489         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13490         Likewise.
13491         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13492         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13493         Likewise.
13494         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13495         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13496         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13497         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13498         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13499         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13500
13501 2013-10-04  Alan Modra  <amodra@gmail.com>
13502
13503         * stdio-common/printf_size.c (__printf_size): Don't use
13504         union ieee854_long_double in fpnum union.
13505         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13506         signbit macro to retrieve sign from long double.
13507         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13508         retrieve sign from long double.
13509         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13510         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13511         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13512         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13513         * math/test-misc.c (main): Don't use union ieee854_long_double.
13514
13515 2013-10-04  Alan Modra  <amodra@gmail.com>
13516
13517         [BZ #15680]
13518         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13519         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13520         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13521         calculation.  Remove unnecessary test for denormal exponent.
13522         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13523         Correct handling of denormals.  Avoid undefined shift behaviour.
13524         Correct normalisation of low mantissa when low double is denormal.
13525         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13526         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13527         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13528         Correct normalisation of low mantissa.  Test for overflow of high
13529         mantissa and normalise.
13530         (ldbl_nearbyint): Use more readable constant for two52.
13531         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13532         (__mpn_construct_long_double): Fix test for overflow of high
13533         mantissa and correct normalisation.  Avoid undefined shift.
13534
13535 2013-10-04  Alan Modra  <amodra@gmail.com>
13536
13537         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13538         (union ibm_extended_long_double): Define as an array of ieee754_double.
13539         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13540         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13541         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13542         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13543         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13544         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13545         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13546         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13547         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13548         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13549         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13550
13551 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13552
13553         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13554         page size instead of calling getpagesize.
13555
13556         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13557         (LOCFILE_ALIGN_MASK): Likewise.
13558         (LOCFILE_ALIGN_UP): Likewise.
13559         (LOCFILE_ALIGNED_P): Likewise.
13560         * locale/programs/ld-collate.c (collate_output): Use the new
13561         macros instead of __alignof__ (int32_t).
13562         * locale/weight.h (findidx): Likewise.
13563
13564 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13565
13566         [BZ #431]
13567         * manual/string.texi: Fix strncat and wcsncat.
13568
13569 2013-10-03  Brooks Moses  <bmoses@google.com>
13570
13571         [BZ #15915]
13572         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13573         * Makerules: ...here, and adjust associated comments.
13574
13575 2013-10-02  Will Newton  <will.newton@linaro.org>
13576
13577         * malloc/Makefile: Add tst-pvalloc.
13578         * malloc/tst-pvalloc.c: New file.
13579
13580 2013-10-02  Will Newton  <will.newton@linaro.org>
13581
13582         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13583         improve test coverage.
13584
13585 2013-10-02  Will Newton  <will.newton@linaro.org>
13586
13587         * malloc/Makefile: Add tst-posix_memalign.
13588         * malloc/tst-posix_memalign.c: New file.
13589
13590 2013-10-01  Eric Blake  <eblake@redhat.com>
13591
13592         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13593         Use __THROWNL rather than __THROW on static functions.
13594
13595 2013-09-30  Petr Machata  <pmachata@redhat.com>
13596
13597         * elf/elf.h (R_AARCH64_ABS16): New macro.
13598         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13599         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13600         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13601         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13602         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13603         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13604         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13605         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13606         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13607         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13608         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13609         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13610         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13611         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13612         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13613         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13614         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13615         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13616         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13617         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13618         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13619         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13620         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13621         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13622         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13623         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13624         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13625         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13626         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13627         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13628         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13629         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13630         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13631         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13632         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13633         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13634         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13635         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13636         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13637         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13638         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13639         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13640         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13641         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13642         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13643         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13644         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13645         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13646         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13647         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13648         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13649         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13650         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13651         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13652         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13653         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13654         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13655         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13656         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13657         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13658         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13659         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13660         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13661         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13662         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13663         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13664         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13665         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13666         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13667         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13668         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13669         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13670         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13671         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13672         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13673         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13674         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13675         (R_AARCH64_TLSDESC_LDR): Likewise.
13676         (R_AARCH64_TLSDESC_ADD): Likewise.
13677         (R_AARCH64_TLSDESC_CALL): Likewise.
13678
13679 2013-09-30  Andreas Schwab  <schwab@suse.de>
13680
13681         [BZ #15048]
13682         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13683         the nss database lookup.
13684         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13685         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13686
13687 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13688
13689         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13690
13691 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13692
13693         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13694         ${Bash-specific parameter/pattern/string} parameter expansion.
13695         * sysdeps/unix/make-syscalls.sh: Likewise.
13696
13697 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13698
13699         * sysdeps/sh/stackguard-macros.h: New file.
13700
13701 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13702
13703         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13704         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13705         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
13706         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
13707         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13708         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
13709
13710 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13711
13712         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
13713         Fix thread ID register.
13714
13715 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
13716
13717         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
13718         [POSIX || UNIX98]: Require rather than permitting all symbols from
13719         <time.h>.
13720         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
13721         element of struct sched_param.
13722         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
13723         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
13724         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
13725         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
13726         constant.
13727
13728 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
13729
13730         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
13731         argument calculation.
13732
13733 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13734
13735         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
13736         Expect macro.
13737         [POSIX] (pthread_attr_t): Do not require type.
13738         [POSIX] (pthread_cond_t): Likewise.
13739         [POSIX] (pthread_condattr_t): Likewise.
13740         [POSIX] (pthread_key_t): Likewise.
13741         [POSIX] (pthread_mutex_t): Likewise.
13742         [POSIX] (pthread_mutexattr_t): Likewise.
13743         [POSIX] (pthread_once_t): Likewise.
13744         [POSIX] (pthread_t): Likewise.
13745         [POSIX-based standards] (pthread_atfork): Expect function.
13746
13747 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13748             Richard Sandiford  <richard@codesourcery.com>
13749
13750         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
13751         (swap_endianness_p): New extern variable.
13752         (set_big_endian): New inline function.
13753         (maybe_swap_uint32): Likewise.
13754         (maybe_swap_uint32_array): Likewise.
13755         (maybe_swap_uint32_obstack): Likewise.
13756         * locale/programs/locfile.c: Include <stdbool.h>.
13757         (swap_endianness_p): New variable.
13758         (add_locale_uint32): Call maybe_swap_uint32.
13759         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
13760         (write_locale_data): Call maybe_swap_uint32_array.
13761         * locale/programs/ld-collate.c (obstack_int32_grow): Call
13762         maybe_swap_uint32.
13763         (obstack_int32_grow_fast): Likewise.
13764         (output_weightwc): Call maybe_swap_uint32_obstack.
13765         (collate_output): Likewise.
13766         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
13767         (OPT_LITTLE_ENDIAN): Likewise.
13768         (options): Add --little-endian and --big-endian options.
13769         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
13770         * locale/programs/locarchive.c: Include "locfile.h".
13771         (GET): New macro.
13772         (SET): Likewise.
13773         (INC): Likewise.
13774         (create_archive): Use the new macros to access fields of
13775         structures directly mapped from or written to locale archives.
13776         (oldlocrecentcmp): Likewise.
13777         (enlarge_archive): Likewise.
13778         (insert_name): Likewise.
13779         (add_alias): Likewise.
13780         (add_locale): Likewise.
13781         (delete_locales_from_archive): Likewise.
13782         (show_archive_content): Likewise.
13783         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
13784         locale data.
13785
13786 2013-09-24  Roland McGrath  <roland@hack.frob.com>
13787
13788         * manual/freemanuals.texi: Updated from (newly) canonical copy at
13789         http://www.gnu.org/doc/freemanuals.texi.
13790         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
13791
13792 2013-09-24  Will Newton  <will.newton@linaro.org>
13793
13794         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
13795         macro.
13796
13797 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
13798
13799         * locale/hashval.h (compute_hashval): Interpret bytes of key as
13800         unsigned char.
13801
13802 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
13803
13804         * manual/threads.texi (POSIX Threads): Fix a typo.
13805
13806 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
13807
13808         [BZ #14547]
13809         * string/tst-strcoll-overflow.c: New test case.
13810         * string/Makefile (xtests): Add tst-strcoll-overflow.
13811         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
13812         cache if string sizes may cause integer overflow.
13813
13814         [BZ #14547]
13815         * string/strcoll_l.c (coll_seq): New members rule, idx,
13816         save_idx and back_us.
13817         (get_next_seq_nocache): New function.
13818         (do_compare_nocache): New function.
13819         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
13820         when malloc fails.
13821
13822 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
13823
13824         [BZ #15754]
13825         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
13826         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
13827         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
13828
13829         [BZ #15754]
13830         * elf/Makefile (tests): Add tst-ptrguard1.
13831         (tests-static): Add tst-ptrguard1-static.
13832         (tst-ptrguard1-ARGS): Define.
13833         (tst-ptrguard1-static-ARGS): Define.
13834         * elf/tst-ptrguard1.c: New file.
13835         * elf/tst-ptrguard1-static.c: New file.
13836         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
13837         * sysdeps/i386/stackguard-macros.h: Likewise.
13838         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13839         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13840         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13841         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13842         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13843         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13844
13845 2013-09-23  Hector Marco  <hecmargi@upv.es>
13846             Ismael Ripoll  <iripoll@disca.upv.es>
13847             Carlos O'Donell  <carlos@redhat.com>
13848
13849         [BZ #15754]
13850         * sysdeps/generic/stackguard-macros.h: Define
13851         __pointer_chk_guard_local and POINTER_CHK_GUARD.
13852         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
13853         Define __pointer_chk_guard_local.
13854         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
13855         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
13856
13857 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
13858
13859         [BZ #15859]
13860         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
13861
13862 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
13863
13864         * include/string.h (__ffs): Declare as hidden.
13865         * string/ffs.c (__ffs): Define as hidden.
13866         * sysdeps/i386/ffs.c (__ffs): Likewise.
13867         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
13868         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
13869         * sysdeps/s390/ffs.c (__ffs): Likewise.
13870         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
13871
13872 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
13873
13874         * NEWS: Mention malloc probes.
13875
13876         * malloc/arena.c (new_heap): New memory_heap_new probe.
13877         (grow_heap): New memory_heap_more probe.
13878         (shrink_heap): New memory_heap_less probe.
13879         (heap_trim): New memory_heap_free probe.
13880         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
13881         (systrim): New memory_sbrk_less probe.
13882         * manual/probes.texi: Document them.
13883
13884         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
13885         * manual/probes.texi: Document it.
13886
13887         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
13888         (__libc_realloc): Add memory_realloc_retry probe.
13889         (__libc_memalign): Add memory_memalign_retry probe.
13890         (__libc_valloc): Add memory_valloc_retry probe.
13891         (__libc_pvalloc): Add memory_pvalloc_retry probe.
13892         (__libc_calloc): Add memory_calloc_retry probe.
13893         * manual/probes.texi: Document them.
13894
13895         * malloc/arena.c (get_free_list): Add probe
13896         memory_arena_reuse_free_list.
13897         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
13898         and memory_arena_reuse.
13899         (arena_get2) [!PER_THREAD]: Likewise.
13900         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
13901         memory_arena_reuse_realloc.
13902         * manual/probes.texi: Document them.
13903
13904         * malloc/malloc.c (__libc_free): Add
13905         memory_mallopt_free_dyn_thresholds probe.
13906         (__libc_mallopt): Add multiple memory_mallopt probes.
13907         * manual/probes.texi: Document them.
13908
13909         * malloc/malloc.c: Include stap-probe.h.
13910         (__libc_mallopt): Add memory_mallopt probe.
13911         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
13912         * manual/probes.texi: New.
13913         * manual/Makefile (chapters): Add probes.
13914         * manual/threads.texi: Set next node.
13915
13916 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
13917
13918         [BZ #15963, #13985]
13919         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
13920         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
13921         Add `Chinese' to `nan' entry name.
13922
13923 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13924
13925         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
13926         (POLYNOMIAL): Likewise.
13927         (TAYLOR_SINCOS): Likewise.
13928         (TAYLOR_SLOW): Likewise.
13929         (__sin): Use TAYLOR_SINCOS.
13930         (__cos): Likewise.
13931         (slow): Use TAYLOR_SLOW.
13932         (sloww): Likewise.
13933         (bsloww): Likewise.
13934         (csloww): Likewise.
13935
13936 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13937
13938         * stdlib/strtod_l.c: Fix buffer overrun.
13939
13940 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13941
13942         * benchtests/Makefile (bench): Add sincos.
13943         * benchtests/bench-sincos.c: New file.
13944
13945         * math/libm-test.inc (cos_test_data): New test inputs.
13946         (sin_test_data): Likewise.
13947
13948         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
13949         macro.
13950         (__sin): Use it.
13951         (__cos): Likewise.
13952         (slow1): Likewise.
13953         (slow2): Likewise.
13954         (sloww1): Likewise.
13955         (sloww2): Likewise.
13956         (bsloww1): Likewise.
13957         (bsloww2): Likewise.
13958         (cslow2): Likewise.
13959         (csloww1): Likewise.
13960         (csloww2): Likewise.
13961
13962         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
13963         function.
13964         (__sin): Use it.
13965         (__cos): Likewise.
13966
13967         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
13968         gotos.
13969         (__cos): Likewise.
13970
13971 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
13972
13973         * config.h.in (HAVE_MIPS_NAN2008): New macro.
13974         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
13975         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
13976         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
13977         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
13978         * elf/cache.c (print_entry): Handle the new cache flags.
13979
13980 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13981             Aldy Hernandez  <aldyh@redhat.com>
13982
13983         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
13984         Change condition to [_SOFT_FLOAT].
13985         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
13986         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
13987         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
13988         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
13989         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
13990         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
13991         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
13992         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
13993         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
13994         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
13995         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
13996         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
13997         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
13998         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
13999         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14000         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14001         declaration.
14002
14003 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14004
14005         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14006         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14007         (__longjmp): Use LOAD_GP to load saved GPRs.
14008         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14009         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14010         (__sigsetjmp): Use SAVE_GP to save GPRs.
14011
14012         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14013         Do not append -msoft-float.
14014         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
14015
14016 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14017
14018         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
14019
14020 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
14021
14022         [BZ #15966]
14023         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
14024         (_FPU_GETCW): Use initial "__" on variable and field names but not
14025         on macro parameter name.
14026         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
14027         parentheses around reference to macro parameter.
14028
14029 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
14030
14031         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
14032         prototype.
14033         (ctype_startup): Use uint32_t in cast and sizeof for
14034         ctype->charnames.
14035
14036 2013-09-11  Jia Liu  <proljc@gmail.com>
14037
14038         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
14039         __daddr_t_defined.
14040         [__FreeBSD__]: Likewise.
14041
14042 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
14043
14044         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
14045         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
14046         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
14047         (strchr): Remove __strchr_sse42 ifunc selection.
14048         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
14049         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
14050
14051 2013-09-11  Will Newton  <will.newton@linaro.org>
14052
14053         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
14054         parameter to RES. Remove hardcoded 1000 value.
14055         * benchtests/bench-skeleton.c (main): Pass RES parameter
14056         to TIMING_INIT and multiply result by 1000.
14057
14058 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14059
14060         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14061
14062 2013-09-11  Andreas Schwab  <schwab@suse.de>
14063
14064         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
14065         if not defined.
14066         (O_TMPFILE) [__USE_GNU]: Define.
14067         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
14068         Define.
14069
14070 2013-09-11  Will Newton  <will.newton@linaro.org>
14071
14072         [BZ #15857]
14073         * malloc/malloc.c (__libc_memalign): Check the value of bytes
14074         does not overflow.
14075
14076 2013-09-11  Will Newton  <will.newton@linaro.org>
14077
14078         [BZ #15856]
14079         * malloc/malloc.c (__libc_valloc): Check the value of bytes
14080         does not overflow.
14081
14082 2013-09-11  Will Newton  <will.newton@linaro.org>
14083
14084         [BZ #15855]
14085         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
14086         does not overflow.
14087
14088 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
14089
14090         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
14091         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14092         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14093         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14094         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14095
14096 2013-09-10  Allan McRae  <allan@archlinux.org>
14097
14098         [BZ #15748]
14099         * manual/arith.texi (Parsing of Floats): Clarify
14100         cross-reference.
14101
14102         [BZ #15849]
14103         * manual/install.texi (Running make install): Mention
14104         --enable-pt-chown.
14105         * INSTALL: Regenerated.
14106
14107 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
14108
14109         * csu/init-first.c (_init): Remove the !SHARED condition around
14110         FPU control word initialization.
14111         * elf/dl-support.c (_dl_fpu_control): New variable.
14112         (_dl_aux_init) <AT_FPUCW>: Initialize it.
14113         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
14114         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
14115         * math/test-fpucw-static.c: New file.
14116         * math/test-fpucw-ieee.c: New file.
14117         * math/test-fpucw-ieee-static.c: New file.
14118         * math/Makefile (tests): Add `test-fpucw-ieee' and
14119         `$(tests-static)'.
14120         (tests-static): New variable.
14121         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
14122         dependency to...
14123         [($(build-shared),yes)]
14124         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
14125         ... this.
14126         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
14127         New dependency.
14128
14129 2013-09-09  Allan McRae  <allan@archlinux.org>
14130
14131         [BZ #15939]
14132         * manual/string.texi (Collation Functions): Fix typo in
14133         strcoll example.
14134         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
14135
14136         [BZ #15893]
14137         * stdlib/isomac.c (get_null_defines): Fix memory leak.
14138
14139         [BZ #15892]
14140         * libio/memstream.c (open_memstream): Fix memory leak.
14141         * libio/wmemstream.c (open_wmemstream): Likewise.
14142
14143         [BZ #15895]
14144         * nscd/netgroupcache.c: Fix nesting of ifdefs.
14145
14146 2013-09-09  Will Newton  <will.newton@linaro.org>
14147
14148         * malloc/Makefile: Add tst-realloc to tests.
14149         * malloc/tst-realloc.c: New file.
14150
14151 2013-09-09  Allan McRae  <allan@archlinux.org>
14152
14153         [BZ #15844]
14154         * COPYING: Update from GNU website to fix FSF address.
14155         * COPYING.LIB: Likewise.
14156
14157 2013-09-06  David S. Miller  <davem@davemloft.net>
14158
14159         * po/zh_TW.po: Update Chinese (traditional) translation from
14160         translation project.
14161
14162 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
14163             Joseph Myers  <joseph@codesourcery.com>
14164
14165         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
14166         "localeinfo.h".
14167         (obstack_chunk_alloc): New macro.
14168         (obstack_chunk_free): Likewise.
14169         (record_offset): New function.
14170         (init_locale_data): Likewise.
14171         (align_locale_data): Likewise.
14172         (add_locale_empty): Likewise.
14173         (add_locale_raw_data): Likewise.
14174         (add_locale_raw_obstack): Likewise.
14175         (add_locale_string): Likewise.
14176         (add_locale_wstring): Likewise.
14177         (add_locale_uint32): Likewise.
14178         (add_locale_uint32_array): Likewise.
14179         (add_locale_char): Likewise.
14180         (start_locale_structure): Likewise.
14181         (end_locale_structure): Likewise.
14182         (start_locale_prelude): Likewise.
14183         (end_locale_prelude): Likewise.
14184         (write_locale_data): Take locale_file structure rather than an
14185         iovec.
14186         * locale/programs/locfile.h: Include "obstack.h".
14187         (struct locale_file): Change to store locale file contents instead
14188         of header.
14189         (init_locale_data): New prototype.
14190         (align_locale_data): Likewise.
14191         (add_locale_empty): Likewise.
14192         (add_locale_raw_data): Likewise.
14193         (add_locale_raw_obstack): Likewise.
14194         (add_locale_string): Likewise.
14195         (add_locale_wstring): Likewise.
14196         (add_locale_uint32): Likewise.
14197         (add_locale_uint32_array): Likewise.
14198         (add_locale_char): Likewise.
14199         (start_locale_structure): Likewise.
14200         (end_locale_structure): Likewise.
14201         (start_locale_prelude): Likewise.
14202         (end_locale_prelude): Likewise.
14203         (write_locale_data): Update prototype.
14204         * locale/programs/3level.h (struct TABLE): Remove result field.
14205         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
14206         Use new locale_file interface.
14207         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
14208         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
14209         * locale/programs/ld-address.c (address_output): Use new
14210         locale_file interface.
14211         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
14212         NO_ADD_LOCALE.
14213         (collate_finish): Don't call collseq_table_finalize.
14214         (collate_output): Use new locale_file interface.
14215         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
14216         in file.
14217         (NO_FINALIZE): Change to NO_ADD_LOCALE.
14218         (TABLE): Move defines earlier in file.
14219         (ELEMENT): Likewise.
14220         (DEFAULT): Likewise.
14221         (wctrans_table_add): Move macro and inline function earlier in
14222         file.
14223         (struct wctype_table): Move type earlier in file.
14224         (add_locale_wctype_table): New static prototype.
14225         (struct locale_ctype_t): Use logical types instead of struct iovec
14226         pointers for members.
14227         (ctype_output): Use new locale_file interface.
14228         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
14229         new locale_file interface.
14230         (allocate_arrays): Update for use of new locale_file interface.
14231         * locale/programs/ld-identification.c (identification_output): Use
14232         new locale_file interface.
14233         * locale/programs/ld-measurement.c (measurement_output): Likewise.
14234         * locale/programs/ld-messages.c (messages_output): Likewise.
14235         * locale/programs/ld-monetary.c (monetary_output): Likewise.
14236         * locale/programs/ld-name.c (name_output): Likewise.
14237         * locale/programs/ld-numeric.c (numeric_output): Likewise.
14238         * locale/programs/ld-paper.c (paper_output): Likewise.
14239         * locale/programs/ld-telephone.c (telephone_output): Likewise.
14240         * locale/programs/ld-time.c (time_output): Likewise.
14241
14242 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14243
14244         * benchtests/Makefile: Add memrchr benchmark.
14245         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
14246         benchmark as memrchr.
14247         * benchtests/bench-memrchr-ifunc.c: New file.
14248         * benchtests/bench-memrchr.c: New file.
14249
14250 2013-09-06   Will Newton  <will.newton@linaro.org>
14251
14252         * benchtests/Makefile (string-bench): Add memcpy.
14253
14254 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
14255             Cong Wang  <amwang@redhat.com>
14256
14257         [BZ #15850]
14258         * sysdeps/unix/sysv/linux/bits/in.h
14259         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
14260         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
14261         before __USE_KERNEL_IPV6_DEFS uses.
14262         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
14263         IPPROTO_BEETPH.
14264         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
14265         sockaddr_in6, or ipv6_mreq.
14266
14267 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14268
14269         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
14270         memory access for final bytes in some large inputs.
14271         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
14272
14273 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14274
14275         * string/test-memrchr.c: New file.
14276         * string/test-memrchr-ifunc.c: New file.
14277         * string/Makefile: Add new memrchr testcase.
14278
14279 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
14280
14281         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
14282         fanotify_init returns EPERM.
14283
14284 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14285
14286         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
14287         errors.
14288         (top level): Treat second token from macro or constant entries for
14289         allowed headers as allowed.
14290         * include/complex.h: Condition internal declarations on
14291         [!_ISOMAC].
14292         * include/fenv.h: Condition include of <stdbool.h> and internal
14293         declarations on [!_ISOMAC].
14294
14295 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
14296
14297         [BZ #15923]
14298         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
14299
14300 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
14301
14302         * configure.in (--enable-versioning): Remove configure option.
14303         (libc_cv_asm_symver_directive): Remove configure test.
14304         (libc_cv_ld_version_script_option): Likewise.
14305         (VERSIONING): Remove variable and AC_SUBST.
14306         (DO_VERSIONING): Remove AC_DEFINE.
14307         * configure: Regenerated.
14308         * config.h.in (DO_VERSIONING): Remove macro.
14309         * Makerules [$(versioning) = yes]: Change conditionals to
14310         [$(build-shared) = yes].
14311         * config.make.in (versioning): Remove variable.
14312         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
14313         [$(build-shared) = yes].
14314         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
14315         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
14316         * elf/Makefile [$(versioning) = yes]: Change conditionals to
14317         [$(build-shared) = yes].
14318         * extra-lib.mk [$(versioning) = yes]: Likewise.
14319         * hurd/Makefile [$(versioning) = yes]: Likewise.
14320         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
14321         [SHARED].
14322         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
14323         [SHARED].
14324         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14325         [SHARED && !NO_HIDDEN].
14326         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
14327         [SHARED].
14328         [SHARED && DO_VERSIONING]: Likewise..
14329         * libio/Makefile [$(versioning) = yes]: Change conditionals to
14330         [$(build-shared) = yes].
14331         * manual/install.texi (--disable-versioning): Remove
14332         documentation.
14333         * INSTALL: Regenerated.
14334         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
14335         to [SHARED].
14336         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
14337         [$(build-shared) = yes].
14338         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
14339         * sysdeps/i386/i686/multiarch/strstr-c.c
14340         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
14341         [SHARED && !NO_HIDDEN].
14342         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
14343         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
14344         * sysdeps/powerpc/powerpc32/dl-machine.c
14345         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
14346         * sysdeps/powerpc/powerpc32/sysdep.h
14347         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
14348         to [SHARED && PIC && !NO_HIDDEN].
14349         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
14350         conditional to [SHARED].
14351
14352 2013-09-04   Will Newton  <will.newton@linaro.org>
14353
14354         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
14355         * benchtests/bench-string.h: Include bench-timing.h instead
14356         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
14357         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
14358         call to HP_TIMING_DIFF_INIT.
14359         * benchtests/bench-memccpy.c: Use bench-timing.h macros
14360         instead of hp-timing.h macros.
14361         * benchtests/bench-memchr.c: Likewise.
14362         * benchtests/bench-memcmp.c: Likewise.
14363         * benchtests/bench-memcpy.c: Likewise.
14364         * benchtests/bench-memmem.c: Likewise.
14365         * benchtests/bench-memmove.c: Likewise.
14366         * benchtests/bench-memset.c: Likewise.
14367         * benchtests/bench-rawmemchr.c: Likewise.
14368         * benchtests/bench-strcasecmp.c: Likewise.
14369         * benchtests/bench-strcasestr.c: Likewise.
14370         * benchtests/bench-strcat.c: Likewise.
14371         * benchtests/bench-strchr.c: Likewise.
14372         * benchtests/bench-strcmp.c: Likewise.
14373         * benchtests/bench-strcpy.c: Likewise.
14374         * benchtests/bench-strcpy_chk.c: Likewise.
14375         * benchtests/bench-strlen.c: Likewise.
14376         * benchtests/bench-strncasecmp.c: Likewise.
14377         * benchtests/bench-strncat.c: Likewise.
14378         * benchtests/bench-strncmp.c: Likewise.
14379         * benchtests/bench-strncpy.c: Likewise.
14380         * benchtests/bench-strnlen.c: Likewise.
14381         * benchtests/bench-strpbrk.c: Likewise.
14382         * benchtests/bench-strrchr.c: Likewise.
14383         * benchtests/bench-strspn.c: Likewise.
14384         * benchtests/bench-strstr.c: Likewise.
14385
14386 2013-09-04  Will Newton  <will.newton@linaro.org>
14387
14388         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14389
14390 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14391
14392         [BZ #15427]
14393         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14394         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14395         * math/libm-test.inc (lgamma_test_data): Add more tests.
14396         * sysdeps/i386/fpu/libm-test-ulps: Update.
14397         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14398
14399 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14400
14401         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14402         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14403         Add ifunc.
14404         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14405         Add strcmp-sse2-unaligned
14406         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14407
14408 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14409
14410         * Versions.def (libc): Add GLIBC_2.19.
14411
14412 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14413
14414         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14415         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14416
14417 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14418
14419         [BZ #14155]
14420         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14421         intermediate calculations in recurrence.
14422         (__ieee754_ynf): Likewise.
14423         * math/libm-test.inc (jn_test_data): Do not allow spurious
14424         underflow exception.  Add more tests.
14425         (yn_test_data): Add more tests.
14426         * sysdeps/i386/fpu/libm-test-ulps: Update.
14427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14428
14429 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14430
14431         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14432
14433 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14434
14435         * csu/init-first.c: Fix then/than typos.
14436         * locale/programs/ld-collate.c: Likewise.
14437         * locale/programs/linereader.h: Likewise.
14438         * manual/charset.texi: Likewise.
14439         * manual/filesys.texi: Likewise.
14440         * manual/stdio.texi: Likewise.
14441         * manual/string.texi: Likewise.
14442         * stdlib/fmtmsg.c: Likewise.
14443         * sysdeps/i386/stpncpy.S: Likewise.
14444         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14445         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14446         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14447         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14448
14449 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14450
14451         * elf/dl-open.c: Fix typos.
14452         * iconvdata/gbbig5.c: Likewise.
14453         * iconvdata/iso-2022-jp.c: Likewise.
14454         * iconv/gconv_int.h: Likewise.
14455         * iconv/loop.c: Likewise.
14456         * nis/rpcsvc/nis.h: Likewise.
14457         * resolv/ns_name.c: Likewise.
14458         * stdio-common/vfscanf.c: Likewise.
14459         * streams/stropts.h: Likewise.
14460         * sunrpc/rpc_thread.c: Likewise.
14461         * sysdeps/i386/strpbrk.S: Likewise.
14462         * sysdeps/ieee754/k_standard.c: Likewise.
14463         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14464         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14465         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14466         * sysdeps/mach/hurd/profil.c: Likewise.
14467         * sysdeps/s390/dl-procinfo.h: Likewise.
14468         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14469         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14470         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14471         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14472         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14473
14474 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14475
14476         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14477         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14478
14479 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14480
14481         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14482         aix specific files.
14483         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14484         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14485         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14486         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14487         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14488         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14489         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14490         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14491
14492 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14493             Roland McGrath  <roland@hack.frob.com>
14494
14495         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14496         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14497
14498 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14499
14500         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14501         __executable_start symbol instead of _start.
14502
14503 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14504
14505         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14506         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14507         Move macros to...
14508         * sysdeps/gnu/ldsodefs.h: ... this new file.
14509
14510         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14511         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14512         instead of ELFOSABI_LINUX.
14513
14514         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14515         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14516         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14517         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14518         Likewise.
14519         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14520         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14521         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14522         Likewise.
14523         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14524         (ibm_extended_long_double): Add ieee_nan member.
14525         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14526         (do_test): New function.
14527
14528         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14529         TEST_TRUNC.
14530         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14531         functions, renamed from truncdfsf_test, trunctfsf_test,
14532         trunctfdf_test.
14533         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14534         functions.
14535         (do_test): Run all these.
14536
14537 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14538
14539         * argp/argp-help.c: Fix typos.
14540         * argp/argp-parse.c: Likewise.
14541         * debug/backtracesyms.c: Likewise.
14542         * elf/elf.h: Likewise.
14543         * malloc/malloc.c: Likewise.
14544         * nis/nis_print.c: Likewise.
14545         * resolv/res_comp.c: Likewise.
14546         * stdlib/stdlib.h: Likewise.
14547         * sunrpc/clnt_tcp.c: Likewise.
14548         * sunrpc/clnt_udp.c: Likewise.
14549         * sunrpc/clnt_unix.c: Likewise.
14550         * sysdeps/unix/bsd/ptsname.c: Likewise.
14551         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14552         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14554         Likewise.
14555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14556         Likewise.
14557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14558         Likewise.
14559         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14560
14561 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14562
14563         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14564         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14565
14566 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14567
14568         [BZ #15897]
14569         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14570         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14571         ($(objpfx)bug-dl-leaf): New rule.
14572         ($(objpfx)bug-dl-leaf.so): Likewise.
14573         ($(objpfx)bug-dl-leaf.out): Likewise.
14574         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14575         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14576         * dlfcn/bug-dl-leaf.c: New test.
14577         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14578         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14579         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14580         (dlclose): Likewise.
14581         (dlmopen): Likewise.
14582
14583 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14584
14585         * include/netdb.h [!_ISOMAC]:
14586         Don't include <tls.h>.
14587         (h_errno, __libc_h_errno): Move declaration and macros out of
14588         [_LIBC_REENTRANT].
14589
14590         * include/resolv.h [_RESOLV_H_]:
14591         Don't include <tls.h>.
14592         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14593         * resolv/res_libc.c: Don't include <tls.h>.
14594         (_res): Use __attribute__ ((nocommon)) in place of
14595         __attribute__ ((section (".bss"))).
14596
14597         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14598         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14599
14600         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14601
14602         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14603         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14604
14605         * resolv/res_mkquery.c: Include <sys/time.h>.
14606
14607         * inet/ifreq.c: Moved to ...
14608         * sysdeps/unix/ifreq.c: ... here.
14609         * inet/ifreq.c: New file, true stub version.
14610
14611         * socket/sa_len.c: New file.
14612         * socket/Makefile (aux): Add it.
14613         * sysdeps/unix/sysv/linux/Makefile
14614         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14615         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14616         and #include <socket/sa_len.c>.
14617         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14618         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14619
14620         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14621         * bits/socket.h: ... here.
14622
14623         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14624         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14625         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14626
14627 2013-08-27  Andreas Schwab  <schwab@suse.de>
14628
14629         [BZ #15736]
14630         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14631         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14632         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14633         * string/test-strcasecmp.c (test_main): Run tests in several
14634         locales.
14635         * string/test-strncasecmp.c (test_main): Likewise.
14636
14637         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14638         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14639         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14640         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14641         (__strncasecmp_ssse3) [PIC]: Likewise.
14642
14643 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14644
14645         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14646
14647         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14648         instead of explicitly declaring xdecrypt.
14649         * nis/nss_nis/nis-publickey.c: Likewise.
14650
14651 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14652
14653         [BZ #15890]
14654         * nscd/aicache.c: Include res_hconf.h.
14655         (addhstaiX): Initialize res_hconf.
14656
14657 2013-08-26  Andreas Schwab  <schwab@suse.de>
14658
14659         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14660         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14661
14662 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14663
14664         * nscd/aicache.c (addhstaiX): Fix indentation.
14665
14666 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14667
14668         * configure.ac: Quote $build_pt_chown test.
14669         * configure: Regenerated.
14670
14671 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14672
14673         [BZ #15532]
14674         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14675         * math/s_cexpf.c (__cexpf): Likewise.
14676         * math/s_cexpl.c (__cexpl): Likewise.
14677         * math/libm-test.inc (cexp_test_data): Correct expected return
14678         value for NaN + i0.  Add another test.
14679
14680 2013-08-22  David S. Miller  <davem@davemloft.net>
14681
14682         * po/ca.po: Update Catalan translation from translation project.
14683         * po/uk.po: Add Ukrainian translations from translation project.
14684
14685 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14686
14687         [BZ #15797]
14688         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14689         is infinite, not alongside NaN test.
14690         * math/s_fdimf.c (__fdimf): Likewise.
14691         * math/s_fdiml.c (__fdiml): Likewise.
14692         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14693         errno is unchanged.
14694
14695 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14696
14697         * argp/argp-help.c: Fix typos.
14698         * crypt/speeds.c: Likewise.
14699         * csu/check_fds.c: Likewise.
14700         * elf/dl-load.c: Likewise.
14701         * elf/dl-open.c: Likewise.
14702         * elf/reldep3.c: Likewise.
14703         * elf/reldep.c: Likewise.
14704         * elf/sprof.c: Likewise.
14705         * iconv/iconv_charmap.c: Likewise.
14706         * iconv/skeleton.c: Likewise.
14707         * iconv/strtab.c: Likewise.
14708         * io/lockf64.c: Likewise.
14709         * libio/libioP.h: Likewise.
14710         * resolv/gai_notify.c: Likewise.
14711         * resolv/ns_name.c: Likewise.
14712         * resolv/ns_samedomain.c: Likewise.
14713         * resolv/res_send.c: Likewise.
14714         * stdlib/random.c: Likewise.
14715         * sunrpc/rpc/xdr.h: Likewise.
14716         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
14717         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14718         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14719         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14720         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14721         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14722         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14723         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14724         * sysdeps/mach/hurd/check_fds.c: Likewise.
14725         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14726         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14727         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14728         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14729         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14730         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14731         * sysdeps/pthread/aio_notify.c: Likewise.
14732         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
14733         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
14734         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
14735         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14736         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
14737
14738 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14739
14740         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
14741         version if bit_Slow_SSE4_2 is set.
14742         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14743         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14744
14745 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14746
14747         [BZ #15867]
14748         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
14749         trampoline stack frame information.
14750         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
14751         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
14752         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
14753         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
14754         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
14755         * sysdeps/unix/sysv/linux/powerpc/init-first.c
14756         (_libc_vdso_platform_setup): Initialize the signal trampolines.
14757         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
14758         sa_flags value.
14759         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
14760         interrupting a syscall and set with option SA_SIGINFO.
14761
14762 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14763
14764         [BZ #15531]
14765         * math/s_cproj.c (__cproj): Only return an infinity if one part of
14766         argument is infinite.
14767         * math/s_cprojf.c (__cprojf): Likewise.
14768         * math/s_cprojl.c (__cprojl): Likewise.
14769         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
14770         * math/libm-test.inc (cproj_test_data): Add more tests.
14771
14772         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
14773
14774         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
14775         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
14776         size.  Use __ffs to determine corresponding shift.
14777
14778 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14779             Roland McGrath  <roland@hack.frob.com>
14780
14781         * Makefile (INSTALL): Remove trailing blank lines from output of
14782         makeinfo.
14783
14784 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14785
14786         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
14787         Align 32 bit compat elf_greg to 8 bytes.
14788
14789 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14790
14791         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
14792
14793 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14794
14795         * string/strcoll_l.c (coll_seq): New structure.
14796         (get_next_seq_cached): New function.
14797         (get_next_seq): New function.
14798         (do_compare): New function.
14799         (STRCOLL): Use GNU style definition.  Simplify implementation
14800         by using get_next_seq, get_next_seq_cached and do_compare.
14801
14802 2013-08-16  Florian Weimer  <fweimer@redhat.com>
14803
14804         [BZ #14699]
14805         CVE-2013-4237
14806         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
14807         member.
14808         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
14809         member.
14810         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
14811         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
14812         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
14813         conditional.
14814         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
14815         GETDENTS_64BIT_ALIGNED.
14816         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14817         * manual/filesys.texi (Reading/Closing Directory): Document
14818         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
14819         strongly.
14820         * manual/conf.texi (Limits for Files): Add portability note to
14821         NAME_MAX, PATH_MAX.
14822         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
14823
14824 2013-08-13  Andreas Schwab  <schwab@suse.de>
14825
14826         [BZ #15749]
14827         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
14828         of fabs.
14829         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
14830         LDBL_MAX_EXP >= 16384]: Add tests for it.
14831
14832 2013-08-12  David S. Miller  <davem@davemloft.net>
14833
14834         * version.h (RELEASE): Set to "development".
14835         (VERSION): Set to "2.18.90".
14836         * NEWS: Add 2.19 section.
14837
14838 2013-08-03  David S. Miller  <davem@davemloft.net>
14839
14840         * po/ko.po: Update Korean translation from translation project.
14841
14842 2013-08-01  David S. Miller  <davem@davemloft.net>
14843
14844         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
14845         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
14846         Bilka.
14847
14848 2013-07-30  David S. Miller  <davem@davemloft.net>
14849
14850         * po/fr.po: Update French translation from translation project.
14851
14852 2013-07-28  David S. Miller  <davem@davemloft.net>
14853
14854         * po/cs.po: Update Czech translation from translation project.
14855
14856         * po/sv.po: Update Swedish translation from translation project.
14857
14858 2013-07-27  David S. Miller  <davem@davemloft.net>
14859
14860         * po/eo.po: Update Esperanto translation from translation project.
14861
14862         * po/vi.po: Update Vietnamese translation from translation project.
14863
14864         * po/de.po: Update German translation from translation project.
14865
14866 2013-07-26  David S. Miller  <davem@davemloft.net>
14867
14868         * po/bg.po: Update Bulgarian translation from translation project.
14869
14870         * po/nl.po: Update Dutch translation from translation project.
14871         * po/pl.po: Update Polish translation from translation project.
14872         * po/ru.po: Update Russian translation from translation project.
14873
14874 2013-07-24  David S. Miller  <davem@davemloft.net>
14875
14876         * po/libc.pot: Update.
14877
14878 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14879
14880         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
14881         variable page size.
14882         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
14883         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
14884         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
14885
14886 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14887
14888         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
14889
14890 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14891             Andreas Schwab  <schwab@suse.de>
14892             Roland McGrath  <roland@hack.frob.com>
14893             Joseph Myers  <joseph@codesourcery.com>
14894             Carlos O'Donell  <carlos@redhat.com>
14895
14896         [BZ #15755]
14897         * config.h.in: Define HAVE_PT_CHOWN.
14898         * config.make.in (build-pt-chown): New variable.
14899         * configure.in (--enable-pt_chown): New configure option.
14900         * configure: Regenerate.
14901         * login/Makefile: Include Makeconfig.  Build pt_chown only if
14902         build-pt-chown is enabled.
14903         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
14904         pt_chown to fix pty ownership.
14905         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
14906         CLOSE_ALL_FDS.
14907         * manual/install.texi (Configuring and compiling): Mention
14908         --enable-pt_chown. Add @findex for grantpt.
14909         * INSTALL: Regenerate.
14910
14911 2013-07-20  David S. Miller  <davem@davemloft.net>
14912
14913         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
14914         difference between 32-bit and 64-bit.
14915
14916 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
14917
14918         [BZ #15711]
14919         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
14920         Avoid system header dependency with -ffreestanding.
14921         ($(objpfx)bits/syscall%d): Likewise.
14922
14923 2013-07-13  David S. Miller  <davem@davemloft.net>
14924
14925         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
14926         underflows from atanl/atan2l due to bug 15319.
14927         (casinh_test_data): Likewise.
14928
14929 2013-07-07  David S. Miller  <davem@davemloft.net>
14930
14931         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
14932
14933 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
14934
14935         * sysdeps/i386/fpu/libm-test-ulps: Update.
14936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14937
14938 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14939
14940         * configure.in (--enable-lock-elision): Fix message text.
14941         * INSTALL: Regenerate.
14942         * configure: Regenerate.
14943
14944 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14945
14946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14947
14948 2013-07-03  Andreas Jaeger  <aj@suse.de>
14949
14950         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
14951         define.
14952         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
14953         (ptrace_peeksiginfo_args): Add.
14954         (__ptrace_peeksiginfo_flags): Add.
14955         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14956         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14957         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14958
14959 2013-07-03  Allan McRae  <allan@archlinux.org>
14960
14961         * sysdeps/i386/fpu/libm-test-ulps: Update.
14962
14963 2013-07-02  David S. Miller  <davem@davemloft.net>
14964
14965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14966
14967 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
14968
14969         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14970
14971 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14972
14973         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
14974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14975
14976 2013-07-02  Andi Kleen <ak@linux.intel.com>
14977
14978         * config.h.in (ENABLE_LOCK_ELISION): Add.
14979         * configure.in (--enable-lock-elision): Add option.
14980         * manual/install.texi: Document --enable lock elision.
14981         * configure: Regenerate
14982         * INSTALL: Regenerate.
14983
14984 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14985
14986         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
14987         SSE4.2 strcasecmp for libc.a.
14988         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
14989
14990 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14991
14992         [BZ #13304]
14993         * soft-fp/op-common.h (_FP_FMA): New macro.
14994         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
14995         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
14996         (_FP_MUL_MEAT_1_imm): ... here.
14997         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
14998         (_FP_MUL_MEAT_1_wide): ... here.
14999         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15000         (_FP_MUL_MEAT_1_hard): ... here.
15001         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15002         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15003         (_FP_MUL_MEAT_2_wide): ... here.
15004         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15005         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15006         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15007         (_FP_MUL_MEAT_2_gmp): ... here.
15008         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15009         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15010         (_FP_MUL_MEAT_4_wide): ... here.
15011         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15012         (_FP_MUL_MEAT_4_gmp): ... here.
15013         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
15014         (_FP_WFRACBITS_DW_S): Likewise.
15015         (_FP_WFRACXBITS_DW_S): Likewise.
15016         (_FP_HIGHBIT_DW_S): Likewise.
15017         (FP_FMA_S): Likewise.
15018         (_FP_FRAC_HIGH_DW_S): Likewise.
15019         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
15020         (_FP_WFRACBITS_DW_D): Likewise.
15021         (_FP_WFRACXBITS_DW_D): Likewise.
15022         (_FP_HIGHBIT_DW_D): Likewise.
15023         (FP_FMA_D): Likewise.
15024         (_FP_FRAC_HIGH_DW_D): Likewise.
15025         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
15026         (_FP_WFRACBITS_DW_E): Likewise.
15027         (_FP_WFRACXBITS_DW_E): Likewise.
15028         (_FP_HIGHBIT_DW_E): Likewise.
15029         (FP_FMA_E): Likewise.
15030         (_FP_FRAC_HIGH_DW_E): Likewise.
15031         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
15032         (_FP_WFRACBITS_DW_Q): Likewise.
15033         (_FP_WFRACXBITS_DW_Q): Likewise.
15034         (_FP_HIGHBIT_DW_Q): Likewise.
15035         (FP_FMA_Q): Likewise.
15036         (_FP_FRAC_HIGH_DW_Q): Likewise.
15037         * soft-fp/fmasf4.c: New file.
15038         * soft-fp/fmadf4.c: Likewise.
15039         * soft-fp/fmatf4.c: Likewise.
15040
15041 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15042
15043         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15044         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
15045         Silvermont.
15046         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
15047         macro.
15048         (index_Slow_SSE4_2): Likewise.
15049         (index_Prefer_PMINUB_for_stringop): Likewise.
15050         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
15051         bit_Slow_SSE4_2 is set.
15052         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15053         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15054
15055 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15056
15057         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
15058         rtld_global._dl_hwcap2.
15059         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
15060         POWER8.
15061         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
15062         POWER8 feature descriptions defined in _dl_hwcap2.
15063         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
15064         string handling for POWER8 feature bits.
15065         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
15066         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
15067         _dl_powerpc_cap_flags.
15068         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
15069         * sysdeps/powerpc/rtld-global-offsets.sym
15070         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
15071         _dl_hwcap2 in the rtld_global_ro structure.
15072
15073 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15074
15075         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
15076         hardware capabilities in support of AT_HWCAP2.
15077         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
15078         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
15079         GLRO(dl_hwcap2).
15080         (_dl_show_auxv): Add support for calling _dl_procinfo to display
15081         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
15082         explicitly the unknown a_type display mechanism is used.
15083         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
15084         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
15085         struct member.
15086         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
15087         to macro prototype for AT_HWCAP2 support.
15088         * sysdeps/i386/dl-procinfo.h: Likewise.
15089         * sysdeps/s390/dl-procinfo.h: Likewise.
15090         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
15091         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
15092         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
15093         return -1 for unknown a_type display fallback.
15094         * sysdeps/sparc/dl-procinfo.h: Likewise.
15095         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
15096         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
15097
15098 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
15099
15100         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
15101         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
15102
15103 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
15104
15105         [BZ #12492]
15106         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
15107         mprotect making __stack_prot writable.
15108
15109 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
15110             Joseph Myers  <joseph@codesourcery.com>
15111
15112         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
15113         as being properly aligned.
15114
15115 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
15116
15117         * dlfcn/modstatic5.c: New file.
15118         * dlfcn/tststatic5.c: New file.
15119         * dlfcn/Makefile (tests): Add tststatic5.
15120         (tests-static): Likewise.
15121         (modules-names): Add modstatic5.
15122         (tststatic5-ENV): New variable.
15123         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
15124
15125         [BZ #15022]
15126         * elf/dl-support.c (_dl_main_map): New variable.
15127         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
15128         (_dl_nns, _dl_load_adds): Set to 1.
15129         (_dl_initial_searchlist): Refer to _dl_main_map.
15130         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
15131         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
15132         call to _dl_get_origin.
15133         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
15134         around call_map.
15135         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
15136         * dlfcn/modstatic3.c: New file.
15137         * dlfcn/tststatic3.c: New file.
15138         * dlfcn/tststatic4.c: New file.
15139         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
15140         (tests-static): Likewise.
15141         (modules-names): Add modstatic3.
15142         (tststatic3-ENV, tststatic4-ENV): New variables.
15143         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
15144         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
15145
15146 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
15147
15148         * configure.in (CC): Require GCC version 4.4 or later.
15149         * configure: Regenerated.
15150         * manual/install.texi (Tools for Compilation): Update GCC version
15151         requirement.
15152         * INSTALL: Regenerated.
15153
15154 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15155
15156         [BZ #15674]
15157         * string/test-memcmp.c (check2): New.
15158         (main): Call check2.
15159
15160         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
15161
15162 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
15163
15164         [BZ #15022]
15165         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
15166         over to...
15167         (dl_open_worker) [!SHARED]: ... here.
15168
15169 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15170
15171         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
15172
15173 2013-06-25  Richard Henderson  <rth@redhat.com>
15174
15175         * locale/programs/locarchive.c: Include <libc-internal.h>
15176
15177 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
15178
15179         * manual/texinfo.tex: Update to version 2013-06-21.17, with
15180         trailing whitespace removed.
15181
15182 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15183
15184         [BZ #10283]
15185         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
15186         * locale/programs/locarchive.c: Include libc-mmap.h.
15187         (prepare_address_space): Take two new outputs (the mmap base and len).
15188         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
15189         values.
15190         (create_archive): Declare new mmap base and len values for
15191         prepare_address_space, and store the result in ah.
15192         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
15193         (enlarge_archive): If ah->mmap_base is not NULL, use that and
15194         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15195         Declare new mmap base and len values for
15196         prepare_address_space, and store the result in new_ah.
15197         (open_archive): Declare new mmap base and len values for
15198         prepare_address_space, and store the result in ah.
15199         (close_archive): If ah->mmap_base is not NULL, use that and
15200         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
15201         * sysdeps/generic/libc-mmap.h: New file.
15202
15203 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
15204
15205         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
15206         (ALIGN_UP): Likewise.
15207         (PTR_ALIGN_DOWN): Likewise.
15208         (PTR_ALIGN_UP): Likewise.
15209
15210 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15211
15212         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
15213         entry mapped to PPC_PLATFORM_POWER8.
15214         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
15215         POWER8.
15216         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
15217         (_dl_string_platform): Add case for exporting platform position for
15218         POWER8.
15219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
15220         search path to sysdeps/powerpc/powerpc32/power8 directory.
15221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
15222         search path to sysdeps/powerpc/powerpc64/power8 directory.
15223         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
15224         power7 directories.
15225         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
15226         power7 directories.
15227
15228 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15229
15230         * INSTALL: Regenerate.
15231
15232         * nscd/connections.c (nscd_init): Fix comment.
15233
15234 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
15235
15236         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
15237
15238         [BZ #15667]
15239         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
15240         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
15241
15242 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15243
15244         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
15245         DL_DST_REQ_STATIC.
15246         (DL_DST_REQ_STATIC): Remove macro.
15247
15248 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
15249
15250         [BZ #7006]
15251         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
15252         with a shift of 0 bits.
15253
15254 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
15255
15256         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
15257         $(tststatic-ENV).
15258
15259 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15260
15261         [BZ #15655]
15262         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
15263
15264 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15265
15266         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
15267         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
15268         accepts -fno-tree-loop-distribute-patterns.
15269         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
15270         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
15271         recursive call.
15272         * string/memset.c (memset): Likewise.
15273         * string/test-memmove.c (simple_memmove): Disable loop transformation
15274         to library calls.
15275         * string/test-memset.c (simple_memset): Likewise.
15276         * benchtests/bench-memmove.c (simple_memmove): Likewise.
15277         * benchtests/bench-memset.c (simple_memset): Likewise.
15278         * configure: Regenerated.
15279
15280 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
15281
15282         * math/test-misc.c (main): Ignore fesetround failure when failures
15283         of subsequent rounding tests would be ignored.
15284
15285         [BZ #15654]
15286         * math/fedisblxcpt.c (fedisableexcept): Return 0.
15287         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
15288         * math/fegetenv.c (__fegetenv): Return 0.
15289         * math/fegetexcept.c (fegetexcept): Return 0.
15290         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
15291         FE_TONEAREST.
15292         * math/feholdexcpt.c (feholdexcept): Return 0.
15293         * math/fesetenv.c (__fesetenv): Return 0.
15294         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
15295         argument FE_TONEAREST.
15296         * math/feupdateenv.c (__feupdateenv): Return 0.
15297         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
15298
15299 2013-06-18  Roland McGrath  <roland@hack.frob.com>
15300
15301         * elf/rtld-Rules (rtld-compile-command.S): New variable.
15302         (rtld-compile-command.s, rtld-compile-command.c): New variables.
15303         ($(objpfx)rtld-%.os rules): Use them.
15304
15305 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15306
15307         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
15308         fields.
15309
15310 2013-06-17  Roland McGrath  <roland@hack.frob.com>
15311
15312         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
15313         length of target pattern, then descending length of dependency pattern.
15314         * configure.in (AWK): Require gawk 3.1.2 or newer.
15315         * manual/install.texi (Tools for Compilation): Say that we do.
15316         * configure: Regenerated.
15317
15318         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
15319         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
15320         * scripts/sysd-rules.awk: ... this new script.
15321         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
15322         than a glob-style pattern.
15323
15324 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
15325
15326         * math/test-misc.c (main): Do not treat incorrectly rounded
15327         conversions as failure unless ROUNDING_TESTS passes.
15328
15329 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
15330
15331         [BZ #15631]
15332         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
15333         restore exception state around main square root computation, then
15334         check for inexactness explicitly.
15335
15336         * math/libm-test.inc (fma_test_data): Add another test.
15337
15338 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
15339
15340         * manual/threads.texi (Non-POSIX Extensions): New document
15341         node.  Document pthread_getattr_default_np and
15342         pthread_setattr_default_np.
15343
15344         * Versions.def (libpthread): Add GLIBC_2.18.
15345         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
15346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
15347         Likewise.
15348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
15349         Likewise.
15350         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15351         Likewise.
15352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15353         Likewise.
15354         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
15355         Likewise.
15356         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
15357         Likewise.
15358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
15359         Likewise.
15360         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
15361         Likewise.
15362         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
15363         Likewise.
15364
15365 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15366
15367         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15368         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
15369
15370 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15371             H.J. Lu  <hjl.tools@gmail.com>
15372
15373         [BZ #15627]
15374         * sysdeps/x86_64/rtld-memset.c: Remove file.
15375         * sysdeps/x86_64/rtld-memset.S: New file.
15376
15377 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
15378
15379         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
15380         (test_in_one_mode): Take arguments for whether the rounding mode
15381         is supported for each floating-point type.
15382         (do_test): Pass new arguments to test_in_one_mode using
15383         ROUNDING_TESTS.
15384
15385 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15386
15387         * posix/tst-waitid.c (do_test): Distinguish different instances of
15388         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15389         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15390         before entering the kernel for waitpid.
15391
15392 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15393
15394         * NEWS: Fix note on clock function precision.  Text by Roland
15395         McGrath.
15396
15397 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15398
15399         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15400         it into place only when and if the sanity check passes.
15401
15402 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15403
15404         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15405         output for whether conversion result is exact.  Take argument
15406         indicating whether type is IBM long double.
15407         (round_for_all): Change need_exact field to ibm_ld.
15408         * stdlib/tst-strtod-round.c (struct exactness): New type.
15409         (struct test): Change bool ld_ok field to struct exactness exact.
15410         (TEST): Update all definitions for change to field.
15411         (tests): Regenerate array contents.
15412         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15413         field value.  Check for IBM long double here.
15414         (do_test): Update calls to test_in_one_mode.
15415
15416 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15417
15418         [BZ #12515]
15419         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15420         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15421
15422 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15423
15424         [BZ #15605]
15425         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15426         generated by the compiler on loop optimizations.
15427         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15428         general definitions.
15429
15430 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15431
15432         * math/bug-nextafter.c: Include <math-tests.h>.
15433         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15434         the relevant type.
15435         * math/bug-nexttoward.c: Include <math-tests.h>.
15436         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15437         the relevant type.
15438         * math/test-misc.c: Include <math-tests.h>.
15439         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15440         the relevant type.
15441
15442 2013-06-12  Andreas Jaeger  <aj@suse.de>
15443
15444         * po/ia.po: Update Interlingua translation from translation
15445         project.
15446
15447 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15448
15449         * include/fenv.h: Include stdbool.h.
15450         (struct rm_ctx): New structure.
15451         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15452         Define macro.
15453         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15454         (SET_RESTORE_ROUNDF): Likewise.
15455         (SET_RESTORE_ROUNDL): Likewise.
15456         (SET_RESTORE_ROUND_NOEX): Likewise.
15457         (SET_RESTORE_ROUND_NOEXF): Likewise.
15458         (SET_RESTORE_ROUND_NOEXL): Likewise.
15459         (SET_RESTORE_ROUND_53BIT): Likewise.
15460         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15461         (libc_feresetround_noexf_ctx): Likewise.
15462         (libc_feresetround_noexl_ctx): Likewise.
15463         (libc_feholdsetround_53bit_ctx): Likewise.
15464         (libc_feresetround_53bit_ctx): Likewise.
15465         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15466         (libc_feholdexcept_setround_sse_ctx): New function.
15467         (libc_fesetenv_sse_ctx): Likewise.
15468         (libc_feupdateenv_sse_ctx): Likewise.
15469         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15470         (libc_feholdexcept_setround_387_ctx): Likewise.
15471         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15472         (libc_feholdsetround_387_prec_ctx): Likewise.
15473         (libc_feholdsetround_387_ctx): Likewise.
15474         (libc_feholdsetround_387_53bit_ctx): Likewise.
15475         (libc_feholdsetround_sse_ctx): Likewise.
15476         (libc_feresetround_sse_ctx): Likewise.
15477         (libc_feresetround_387_ctx): Likewise.
15478         (libc_feupdateenv_387_ctx): Likewise.
15479         (libc_feholdexcept_setroundf_ctx): Define macro.
15480         (libc_fesetenvf_ctx): Likewise.
15481         (libc_feupdateenvf_ctx): Likewise.
15482         (libc_feholdsetroundf_ctx): Likewise.
15483         (libc_feresetroundf_ctx): Likewise.
15484         (libc_feholdexcept_setround_ctx): Likewise.
15485         (libc_fesetenv_ctx): Likewise.
15486         (libc_feupdateenv_ctx): Likewise.
15487         (libc_feholdsetround_ctx): Likewise.
15488         (libc_feresetround_ctx): Likewise.
15489         (libc_feholdexcept_setroundl_ctx): Likewise.
15490         (libc_feupdateenvl_ctx): Likewise.
15491         (libc_feholdsetroundl_ctx): Likewise.
15492         (libc_feresetroundl_ctx): Likewise.
15493         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15494         (libc_feresetround_53bit_ctx): Likewise.
15495
15496 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15497
15498         * locale/iso-639.def: Convert to UTF-8.
15499
15500 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15501
15502         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15503         (EXCEPTION_TESTS_double): Likewise.
15504         (EXCEPTION_TESTS_long_double): Likewise.
15505         (EXCEPTION_TESTS): Likewise.
15506         * math/libm-test.inc (test_exceptions): Only test exceptions if
15507         EXCEPTION_TESTS (FLOAT).
15508
15509 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15510
15511         * benchtests/Makefile (string-bench): Add strcpy_chk and
15512         stpcpy_chk.
15513         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15514         * benchtests/bench-stpcpy_chk.c: New file.
15515         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15516         * benchtests/bench-strcpy_chk.c: New file.
15517         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15518         code.
15519         (do_test): Likewise.
15520
15521 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15522
15523         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15524         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15525         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15526         with tabs where appropriate.
15527         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15528         dl-procinfo.h.
15529         [PPC_PLATFORM_PPC440]: Likewise.
15530         [PPC_PLATFORM_PPC464]: Likewise.
15531         [PPC_PLATFORM_PPC476]: Likewise.
15532         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15533         ppc464, and ppc476 platform strings merging from ports/
15534         dl-procinfo.h.
15535
15536 2013-06-11  Andreas Schwab  <schwab@suse.de>
15537
15538         [BZ #14991]
15539         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15540         (from_ucs4_idx): Regenerate.
15541         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15542         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15543         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15544         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15545         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15546         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15547         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15548         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15549         from FROM_LOOP and TO_LOOP specific macros.
15550         (BODY): Handle combining characters.
15551         * iconvdata/BIG5HKSCS.irreversible: Update.
15552         * iconvdata/BIG5HKSCS.precomposed: New file.
15553         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15554         characters.
15555         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15556
15557 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15558
15559         * include/sys/time.h: Fix indentation and add copyright header.
15560
15561         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15562         (do_test): Likewise.
15563         * string/test-memchr.c (do_one_test): Likewise.
15564         (do_test): Likewise.
15565         * string/test-memcmp.c (do_one_test): Likewise.
15566         (do_test): Likewise.
15567         * string/test-memcpy.c (do_one_test): Likewise.
15568         (do_test): Likewise.
15569         * string/test-memmem.c (do_one_test): Likewise.
15570         (do_test): Likewise.
15571         (do_random_tests): Likewise.
15572         * string/test-memmove.c (do_one_test): Likewise.
15573         (do_test): Likewise.
15574         * string/test-memset.c (do_one_test): Likewise.
15575         (do_test): Likewise.
15576         * string/test-rawmemchr.c (do_one_test): Likewise.
15577         (do_test): Likewise.
15578         * string/test-strcasecmp.c (do_one_test): Likewise.
15579         (do_test): Likewise.
15580         * string/test-strcasestr.c (do_one_test): Likewise.
15581         (do_test): Likewise.
15582         * string/test-strcat.c (do_one_test): Likewise.
15583         (do_test): Likewise.
15584         * string/test-strchr.c (do_one_test): Likewise.
15585         (do_test): Likewise.
15586         * string/test-strcmp.c (do_one_test): Likewise.
15587         (do_test): Likewise.
15588         * string/test-strcpy.c (do_one_test): Likewise.
15589         (do_test): Likewise.
15590         * string/test-string.h: Likewise.
15591         (test_init): Likewise.
15592         * string/test-strlen.c (do_one_test): Likewise.
15593         (do_test): Likewise.
15594         * string/test-strncasecmp.c (do_one_test): Likewise.
15595         (do_test): Likewise.
15596         * string/test-strncat.c (do_one_test): Likewise.
15597         (do_test): Likewise.
15598         * string/test-strncmp.c (do_one_test): Likewise.
15599         (do_test_limit): Likewise.
15600         (do_test): Likewise.
15601         * string/test-strncpy.c (do_one_test): Likewise.
15602         (do_test): Likewise.
15603         * string/test-strnlen.c (do_one_test): Likewise.
15604         (do_test): Likewise.
15605         * string/test-strpbrk.c (do_one_test): Likewise.
15606         (do_test): Likewise.
15607         * string/test-strrchr.c (do_one_test): Likewise.
15608         (do_test): Likewise.
15609         * string/test-strspn.c (do_one_test): Likewise.
15610         (do_test): Likewise.
15611         * string/test-strstr.c (do_one_test): Likewise.
15612         (do_test): Likewise.
15613
15614         * benchtests/Makefile (string-bench): Add string benchmarks.
15615         * benchtests/bench-bcopy-ifunc.c: New file.
15616         * benchtests/bench-bcopy.c: New file.
15617         * benchtests/bench-bzero-ifunc.c: New file.
15618         * benchtests/bench-bzero.c: New file.
15619         * benchtests/bench-memccpy-ifunc.c: New file.
15620         * benchtests/bench-memccpy.c: New file.
15621         * benchtests/bench-memchr-ifunc.c: New file.
15622         * benchtests/bench-memchr.c: New file.
15623         * benchtests/bench-memcmp-ifunc.c: New file.
15624         * benchtests/bench-memcmp.c: New file.
15625         * benchtests/bench-memmem-ifunc.c: New file.
15626         * benchtests/bench-memmem.c: New file.
15627         * benchtests/bench-memmove-ifunc.c: New file.
15628         * benchtests/bench-memmove.c: New file.
15629         * benchtests/bench-mempcpy-ifunc.c: New file.
15630         * benchtests/bench-mempcpy.c: New file.
15631         * benchtests/bench-memset-ifunc.c: New file.
15632         * benchtests/bench-memset.c: New file.
15633         * benchtests/bench-rawmemchr-ifunc.c: New file.
15634         * benchtests/bench-rawmemchr.c: New file.
15635         * benchtests/bench-stpcpy-ifunc.c: New file.
15636         * benchtests/bench-stpcpy.c: New file.
15637         * benchtests/bench-stpncpy-ifunc.c: New file.
15638         * benchtests/bench-stpncpy.c: New file.
15639         * benchtests/bench-strcasecmp-ifunc.c: New file.
15640         * benchtests/bench-strcasecmp.c: New file.
15641         * benchtests/bench-strcasestr-ifunc.c: New file.
15642         * benchtests/bench-strcasestr.c: New file.
15643         * benchtests/bench-strcat-ifunc.c: New file.
15644         * benchtests/bench-strcat.c: New file.
15645         * benchtests/bench-strchr-ifunc.c: New file.
15646         * benchtests/bench-strchr.c: New file.
15647         * benchtests/bench-strchrnul-ifunc.c: New file.
15648         * benchtests/bench-strchrnul.c: New file.
15649         * benchtests/bench-strcmp-ifunc.c: New file.
15650         * benchtests/bench-strcmp.c: New file.
15651         * benchtests/bench-strcpy-ifunc.c: New file.
15652         * benchtests/bench-strcpy.c: New file.
15653         * benchtests/bench-strcspn-ifunc.c: New file.
15654         * benchtests/bench-strcspn.c: New file.
15655         * benchtests/bench-strlen-ifunc.c: New file.
15656         * benchtests/bench-strlen.c: New file.
15657         * benchtests/bench-strncasecmp-ifunc.c: New file.
15658         * benchtests/bench-strncasecmp.c: New file.
15659         * benchtests/bench-strncat-ifunc.c: New file.
15660         * benchtests/bench-strncat.c: New file.
15661         * benchtests/bench-strncmp-ifunc.c: New file.
15662         * benchtests/bench-strncmp.c: New file.
15663         * benchtests/bench-strncpy-ifunc.c: New file.
15664         * benchtests/bench-strncpy.c: New file.
15665         * benchtests/bench-strnlen-ifunc.c: New file.
15666         * benchtests/bench-strnlen.c: New file.
15667         * benchtests/bench-strpbrk-ifunc.c: New file.
15668         * benchtests/bench-strpbrk.c: New file.
15669         * benchtests/bench-strrchr-ifunc.c: New file.
15670         * benchtests/bench-strrchr.c: New file.
15671         * benchtests/bench-strspn-ifunc.c: New file.
15672         * benchtests/bench-strspn.c: New file.
15673         * benchtests/bench-strstr-ifunc.c: New file.
15674         * benchtests/bench-strstr.c: New file.
15675
15676         * benchtests/Makefile: Disable parallel execution of targets.
15677         (string-bench): Add memcpy.
15678         (benchset): New variable to store a list of benchmark sets.
15679         (bench-func): Renamed from bench.
15680         (bench-set): New target.
15681         (bench): Depend on bench-func and bench-set.
15682         * benchtests/README: Add section on benchmark sets.
15683         * benchtests/bench-memcpy-ifunc.c: New file.
15684         * benchtests/bench-memcpy.c: New file.
15685         * benchtests/bench-string.h: New file.
15686
15687 2013-06-11  Andreas Schwab  <schwab@suse.de>
15688
15689         [BZ #15577]
15690         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15691         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15692         values in the triple.
15693         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15694         terminator in the group key.
15695
15696 2013-06-11  Andreas Jaeger  <aj@suse.de>
15697
15698         * po/zh_TW.po: Update Chinese (traditional) translation from
15699         translation project.
15700
15701 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15702
15703         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15704         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15705         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
15706         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15707         (clock_getcpuclockid): Likewise.
15708         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
15709         Add weak_alias and libc_hidden_def.
15710         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
15711         * rt/clock_gettime.c (clock_gettime): Rename to
15712         __clock_gettime.  Add weak_alias and libc_hidden_def.
15713         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
15714         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
15715         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
15716         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
15717         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
15718         Likewise.
15719         * rt/clock_settime.c (clock_settime): Rename to
15720         __clock_settime.  Add weak_alias and libc_hidden_def.
15721         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
15722
15723 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
15724
15725         * mach/err_boot.sub: Remove trailing whitespace.
15726         * mach/err_ipc.sub: Likewise.
15727         * mach/err_mach.sub: Likewise.
15728
15729         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
15730         (ROUNDING_TESTS_double): Likewise.
15731         (ROUNDING_TESTS_long_double): Likewise.
15732         (ROUNDING_TESTS): Likewise.
15733         * math/libm-test.inc: Include <math-tests.h>.
15734         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
15735         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15736         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15737         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15738
15739 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15740
15741         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
15742         of assigning.
15743
15744 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
15745
15746         * sysdeps/gnu/errlist.awk: Do not generate space at end of
15747         otherwise empty TRANS lines.
15748         * sysdeps/gnu/errlist.c: Regenerated.
15749
15750         * catgets/gencat.c (error_print): Use (void) in function
15751         definition.
15752         * crypt/crypt_util.c (__init_des): Likewise.
15753         * crypt/speeds.c (Stop): Likewise.
15754         (main): Likewise.
15755         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
15756         * inet/ruserpass.c (token): Likewise.
15757         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
15758         * intl/localealias.c (extend_alias_table): Likewise.
15759         * intl/plural-exp.c (init_germanic_plural): Likewise.
15760         * libio/fcloseall.c (__fcloseall): Likewise.
15761         * libio/genops.c (_IO_flush_all): Likewise.
15762         (_IO_flush_all_linebuffered): Likewise.
15763         (_IO_cleanup): Likewise.
15764         (_IO_iter_begin): Likewise.
15765         (_IO_iter_end): Likewise.
15766         (_IO_list_lock): Likewise.
15767         (_IO_list_unlock): Likewise.
15768         (_IO_list_resetlock): Likewise.
15769         * libio/getchar.c (getchar): Likewise.
15770         * libio/getchar_u.c (getchar_unlocked): Likewise.
15771         * libio/getwchar.c (getwchar): Likewise.
15772         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
15773         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
15774         * login/getpt.c (__getpt): Likewise.
15775         * login/tst-utmp.c (main): Likewise.
15776         * malloc/hooks.c (__malloc_check_init): Likewise.
15777         * malloc/malloc.c (__malloc_stats): Likewise.
15778         * malloc/mtrace.c (tr_break): Likewise.
15779         (mtrace): Likewise.
15780         (muntrace): Likewise.
15781         * misc/fstab.c (endfsent): Likewise.
15782         * misc/getclktck.c (__getclktck): Likewise.
15783         * misc/getdtsz.c (__getdtablesize): Likewise.
15784         * misc/gethostid.c (gethostid): Likewise.
15785         * misc/getpagesize.c (__getpagesize): Likewise.
15786         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
15787         (__get_nprocs): Likewise.
15788         (__get_phys_pages): Likewise.
15789         (__get_avphys_pages): Likewise.
15790         * misc/getttyent.c (getttyent): Likewise.
15791         (setttyent): Likewise.
15792         (endttyent): Likewise.
15793         * misc/getusershell.c (getusershell): Likewise.
15794         (endusershell): Likewise.
15795         (setusershell): Likewise.
15796         (initshells): Likewise.
15797         * misc/hsearch.c (__hdestroy): Likewise.
15798         * misc/sync.c (sync): Likewise.
15799         * misc/syslog.c (closelog_internal): Likewise.
15800         (closelog): Likewise.
15801         * misc/ttyslot.c (ttyslot): Likewise.
15802         * misc/vhangup.c (vhangup): Likewise.
15803         * posix/fork.c (__fork): Likewise.
15804         * posix/getegid.c (__getegid): Likewise.
15805         * posix/geteuid.c (__geteuid): Likewise.
15806         * posix/getgid.c (__getgid): Likewise.
15807         * posix/getpid.c (__getpid): Likewise.
15808         * posix/getppid.c (__getppid): Likewise.
15809         * posix/getuid.c (__getuid): Likewise.
15810         * posix/pause.c (pause): Likewise.
15811         * posix/setpgrp.c (setpgrp): Likewise.
15812         * posix/setsid.c (__setsid): Likewise.
15813         * posix/test-vfork.c (noop): Likewise.
15814         * resolv/gethnamaddr.c (_endhtent): Likewise.
15815         (_gethtent): Likewise.
15816         (ht_endhostent): Likewise.
15817         (gethostent): Likewise.
15818         (dns_service): Likewise.
15819         * stdlib/drand48.c (drand48): Likewise.
15820         * stdlib/lrand48.c (lrand48): Likewise.
15821         * stdlib/mrand48.c (mrand48): Likewise.
15822         * stdlib/rand.c (rand): Likewise.
15823         * stdlib/random.c (__random): Likewise.
15824         * stdlib/setenv.c (clearenv): Likewise.
15825         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
15826         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
15827         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
15828         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
15829         (__get_nprocs): Likewise.
15830         (__get_phys_pages): Likewise.
15831         (__get_avphys_pages): Likewise.
15832         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
15833         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
15834         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
15835         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
15836         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
15837         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
15838         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
15839         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
15840         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
15841         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
15842         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
15843         * sysdeps/mach/hurd/sync.c (sync): Likewise.
15844         * sysdeps/posix/clock.c (clock): Likewise.
15845         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
15846         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
15847         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
15848         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
15849         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
15850         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
15851         (__get_nprocs_conf): Likewise.
15852         (__get_phys_pages): Likewise.
15853         (__get_avphys_pages): Likewise.
15854         * time/clock.c (clock): Likewise.
15855         * time/tzset.c (__tzname_max): Likewise.
15856
15857 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
15858
15859         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
15860         (__bswap_32): Do not use "register".
15861         * crypt/crypt.c (_ufc_doit_r): Likewise.
15862         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
15863         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
15864         * gmon/gmon.c (__monstartup): Likewise.
15865         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
15866         * hurd/hurdmalloc.c (more_memory): Likewise.
15867         (malloc): Likewise.
15868         (free): Likewise.
15869         (realloc): Likewise.
15870         (malloc_fork_prepare): Likewise.
15871         (malloc_fork_parent): Likewise.
15872         (malloc_fork_child): Likewise.
15873         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
15874         (_svcauth_des): Likewise.
15875         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15876         * inet/inet_net.c (inet_network): Likewise.
15877         * inet/inet_netof.c (inet_netof): Likewise.
15878         * inet/rcmd.c (__validuser2_sa): Likewise.
15879         * io/fts.c (fts_open): Likewise.
15880         (fts_load): Likewise.
15881         (fts_close): Likewise.
15882         (fts_read): Likewise.
15883         (fts_children): Likewise.
15884         (fts_build): Likewise.
15885         (fts_stat): Likewise.
15886         (fts_sort): Likewise.
15887         (fts_alloc): Likewise.
15888         (fts_lfree): Likewise.
15889         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
15890         (_IO_file_xsgetn): Likewise.
15891         (_IO_file_xsgetn_mmap): Likewise.
15892         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15893         (_IO_cookie_write): Likewise.
15894         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
15895         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
15896         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
15897         * malloc/obstack.c (_obstack_begin): Likewise.
15898         (_obstack_begin_1): Likewise.
15899         (_obstack_newchunk): Likewise.
15900         (_obstack_allocated_p): Likewise.
15901         (obstack_free): Likewise.
15902         (_obstack_memory_used): Likewise.
15903         * misc/getttyent.c (getttynam): Likewise.
15904         (getttyent): Likewise.
15905         (skip): Likewise.
15906         (value): Likewise.
15907         * misc/getusershell.c (initshells): Likewise.
15908         * misc/syslog.c (__vsyslog_chk): Likewise.
15909         * misc/ttyslot.c (ttyslot): Likewise.
15910         * nis/nis_hash.c (__nis_hash): Likewise.
15911         * posix/fnmatch_loop.c (FCT): Likewise.
15912         * posix/getconf.c (print_all): Likewise.
15913         (main): Likewise.
15914         * posix/getopt.c (exchange): Likewise.
15915         * posix/glob.c (globfree): Likewise.
15916         (prefix_array): Likewise.
15917         (__glob_pattern_type): Likewise.
15918         * resolv/arpa/nameser.h (NS_GET16): Likewise.
15919         (NS_GET32): Likewise.
15920         (NS_PUT16): Likewise.
15921         (NS_PUT32): Likewise.
15922         * resolv/gethnamaddr.c (getanswer): Likewise.
15923         (gethostbyname2): Likewise.
15924         (gethostbyaddr): Likewise.
15925         (_gethtent): Likewise.
15926         (_gethtbyname2): Likewise.
15927         (_gethtbyaddr): Likewise.
15928         * resolv/ns_print.c (dst_s_get_int16): Likewise.
15929         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
15930         * resolv/res_init.c (__res_vinit): Likewise.
15931         (net_mask): Likewise.
15932         * resolv/res_mkquery.c (outchar): Likewise.
15933         (PRINT): Likewise.
15934         * stdio-common/printf_fp.c (outchar): Likewise.
15935         (PRINT): Likewise.
15936         * stdio-common/printf_fphex.c (outchar): Likewise.
15937         (PRINT): Likewise.
15938         * stdio-common/printf_size.c (outchar): Likewise.
15939         (PRINT): Likewise.
15940         * stdio-common/test_rdwr.c (main): Likewise.
15941         * stdio-common/tfformat.c (matches): Likewise.
15942         * stdio-common/vfprintf.c (outchar): Likewise.
15943         (printf_unknown): Likewise.
15944         (buffered_vfprintf): Likewise.
15945         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
15946         * stdio-common/xbug.c (AppendToBuffer): Likewise.
15947         (ReadFile): Likewise.
15948         * stdlib/qsort.c (SWAP): Likewise.
15949         (_quicksort): Likewise.
15950         * stdlib/setenv.c (__add_to_environ): Likewise.
15951         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
15952         * stdlib/strtol_l.c (__strtol_l): Likewise.
15953         * stdlib/tst-strtod.c (main): Likewise.
15954         * stdlib/tst-strtol.c (main): Likewise.
15955         * stdlib/tst-strtoll.c (main): Likewise.
15956         * string/bits/string2.h (__strcmp_cc): Likewise.
15957         (__strcmp_cg): Likewise.
15958         (__strcspn_c1): Likewise.
15959         (__strcspn_c2): Likewise.
15960         (__strcspn_c3): Likewise.
15961         (__strspn_c1): Likewise.
15962         (__strspn_c2): Likewise.
15963         (__strspn_c3): Likewise.
15964         (__strsep_1c): Likewise.
15965         (__strsep_2c): Likewise.
15966         (__strsep_3c): Likewise.
15967         * string/memccpy.c (__memccpy): Likewise.
15968         * string/stpcpy.c (__stpcpy): Likewise.
15969         * string/strcmp.c (strcmp): Likewise.
15970         * string/strrchr.c (strrchr): Likewise.
15971         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
15972         Likewise.
15973         * sysdeps/mach/hurd/getcwd.c
15974         (_hurd_canonicalize_directory_name_internal): Likewise.
15975         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
15976         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
15977         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
15978         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
15979         Likewise, in both definitions.
15980         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
15981         definitions.
15982         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
15983         64] (__bswap_64): Likewise.
15984         * time/test_time.c (main): Likewise.
15985         * time/tzfile.c (__tzfile_read): Likewise.
15986         (__tzfile_compute): Likewise.
15987         * time/tzset.c (__tzset_parse_tz): Likewise.
15988         (tzset_internal): Likewise.
15989         (compute_change): Likewise.
15990         * wcsmbs/wcscat.c (__wcscat): Likewise.
15991         * wcsmbs/wcschr.c (wcschr): Likewise.
15992         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15993         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15994         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15995         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
15996         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15997         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15998         * wcsmbs/wmemchr.c (wmemchr): Likewise.
15999         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16000         * wcsmbs/wmemset.c (wmemset): Likewise.
16001
16002 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16003
16004         * scripts/config.guess: Update to version 2013-05-16.
16005         * scripts/config.sub: Update to version 2013-04-24.
16006         * scripts/install-sh: Update to version 2011-11-20.07.
16007         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16008         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16009
16010 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16011
16012         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16013         * elf/sln.c: Likewise.
16014         * hurd/hurd/ioctl.h: Likewise.
16015         * hurd/hurdmalloc.c: Likewise.
16016         * hurd/xattr.c: Likewise.
16017         * include/shlib-compat.h: Likewise.
16018         * inet/ruserpass.c: Likewise.
16019         * libio/iofgets_u.c: Likewise.
16020         * libio/iofgetws_u.c: Likewise.
16021         * locale/programs/ld-identification.c: Likewise.
16022         * locale/programs/ld-time.c: Likewise.
16023         * mach/msg-destroy.c: Likewise.
16024         * nss/nss_files/files-netgrp.c: Likewise.
16025         * resolv/res_data.c: Likewise.
16026         * soft-fp/op-1.h: Likewise.
16027         * soft-fp/op-2.h: Likewise.
16028         * soft-fp/op-4.h: Likewise.
16029         * soft-fp/op-common.h: Likewise.
16030         * stdio-common/printf_fphex.c: Likewise.
16031         * stdlib/strtod_l.c: Likewise.
16032         * sunrpc/rpc/clnt.h: Likewise.
16033         * sysdeps/generic/framestate.c: Likewise.
16034         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16035         * sysdeps/i386/bsd-setjmp.S: Likewise.
16036         * sysdeps/i386/__longjmp.S: Likewise.
16037         * sysdeps/i386/setjmp.S: Likewise.
16038         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
16039         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
16040         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16041         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16042         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16043         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
16044         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
16045         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
16046         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
16047         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
16048         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
16049         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
16050         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
16051         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
16052         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
16053         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
16054         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
16055         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
16056         * sysdeps/ieee754/support.c: Likewise.
16057         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16058         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
16059         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
16060         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
16061         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
16062         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
16063         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
16064         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
16065         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
16066         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
16067         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
16068         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
16069         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
16070         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
16071         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
16072         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
16073         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
16074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
16075
16076 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
16077
16078         * posix/transbug.c: Remove executable mode.
16079
16080 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
16081
16082         * crypt/speeds.c: Remove trailing whitespace.
16083         * dlfcn/default.c: Likewise.
16084         * elf/ifuncdep2.c: Likewise.
16085         * elf/ifuncmain1.c: Likewise.
16086         * elf/ifuncmain1vis.c: Likewise.
16087         * elf/testobj.h: Likewise.
16088         * elf/tst-stackguard1.c: Likewise.
16089         * gmon/sys/gmon.h: Likewise.
16090         * hurd/hurdmsg.c: Likewise.
16091         * hurd/new-fd.c: Likewise.
16092         * hurd/ports-get.c: Likewise.
16093         * iconvdata/ibm1008_420.c: Likewise.
16094         * inet/tst-getni1.c: Likewise.
16095         * inet/tst-getni2.c: Likewise.
16096         * libio/ioungetc.c: Likewise.
16097         * libio/wfiledoalloc.c: Likewise.
16098         * manual/libm-err-tab.pl: Likewise.
16099         * math/w_dremf.c: Likewise.
16100         * misc/ftruncate.c: Likewise.
16101         * posix/bug-glob2.c: Likewise.
16102         * posix/tst-pcre.c: Likewise.
16103         * posix/wait4.c: Likewise.
16104         * resolv/README: Likewise.
16105         * resolv/res_debug.h: Likewise.
16106         * resolv/tst-inet_ntop.c: Likewise.
16107         * setjmp/bug269-setjmp.c: Likewise.
16108         * soft-fp/extended.h: Likewise.
16109         * soft-fp/op-1.h: Likewise.
16110         * soft-fp/op-2.h: Likewise.
16111         * soft-fp/op-4.h: Likewise.
16112         * soft-fp/op-8.h: Likewise.
16113         * soft-fp/testit.c: Likewise.
16114         * stdio-common/bug16.c: Likewise.
16115         * stdlib/random.c: Likewise.
16116         * sunrpc/rpcsvc/rquota.x: Likewise.
16117         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
16118         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
16119         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
16120         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
16121         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
16122         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
16123         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
16124         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
16125         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
16126         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
16127         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
16128         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
16129         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
16130         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
16131         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
16132         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
16133         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
16134         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
16135         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
16136         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
16137         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
16138         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
16139         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
16140         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
16141         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
16142         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
16143         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
16144         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
16145         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
16146         * sysdeps/ieee754/s_lib_version.c: Likewise.
16147         * sysdeps/mach/hurd/check_fds.c: Likewise.
16148         * sysdeps/mach/hurd/getsockname.c: Likewise.
16149         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
16150         * sysdeps/mach/hurd/recvfrom.c: Likewise.
16151         * sysdeps/powerpc/bits/link.h: Likewise.
16152         * sysdeps/powerpc/dl-procinfo.c: Likewise.
16153         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
16154         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
16155         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
16156         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
16157         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
16158         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
16159         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
16160         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
16161         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
16162         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
16163         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
16164         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
16165         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
16166         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
16167         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
16168         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
16169         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
16170         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
16171         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
16172         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
16173         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
16174         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16175         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
16176         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
16177         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
16178         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
16179         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
16180         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
16181         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
16182         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
16183         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
16184         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16185         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
16186         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
16187         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
16188         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
16189         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
16190         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
16191         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
16192         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
16193         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
16194         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
16195         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
16196         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
16197         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
16198         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
16199         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
16200         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
16201         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
16202         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16203         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16204         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
16205         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
16206         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
16207         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
16208         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
16209         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16210         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
16211         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
16212         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
16213         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
16214         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
16215         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
16216         * sysdeps/powerpc/sysdep.h: Likewise.
16217         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16218         * sysdeps/s390/s390-64/sub_n.S: Likewise.
16219         * sysdeps/sh/dl-trampoline.S: Likewise.
16220         * sysdeps/sh/memset.S: Likewise.
16221         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
16222         * sysdeps/sh/strlen.S: Likewise.
16223         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
16224         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
16225         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
16226         * sysdeps/sparc/sparc32/rem.S: Likewise.
16227         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
16228         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
16229         * sysdeps/sparc/sparc32/strchr.S: Likewise.
16230         * sysdeps/sparc/sparc32/udiv.S: Likewise.
16231         * sysdeps/sparc/sparc32/urem.S: Likewise.
16232         * sysdeps/sparc/sparc64/add_n.S: Likewise.
16233         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
16234         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
16235         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
16236         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
16237         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
16238         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
16239         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
16240         * sysdeps/unix/bsd/times.c: Likewise.
16241         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
16242         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
16243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
16244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
16245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
16246         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
16247         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
16248         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
16249         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
16250         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
16251         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
16252         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
16253         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
16254         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16255         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
16256         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
16257         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
16258         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
16259         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
16260         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
16261         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
16262         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
16263         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16264         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
16265         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
16266         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
16267         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
16268         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
16269         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
16270         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
16271         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
16272         * sysdeps/x86_64/strcspn.S: Likewise.
16273
16274 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16275
16276         * locale/C-translit.h: Revert #include <stdint.h> because this is a
16277         generated file.  Regenerate properly from gen-translit.pl.
16278         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
16279         locale/C-translit.h.
16280
16281 2013-06-05  Andreas Schwab  <schwab@suse.de>
16282
16283         [BZ #15100]
16284         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
16285         week as 6 instead of -1.
16286         * time/tst-strptime.c (day_tests): Add test case.
16287
16288 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16289
16290         * sysdeps/generic/math_private.h
16291         (libc_feholdexcept_setround_53bit): Replace with
16292         libc_feholdsetround_53bit.
16293         (libc_feupdateenv_53bit): Replace with
16294         libc_feresetround_53bit.
16295         (SET_RESTORE_ROUND_53BIT): Adjust.
16296
16297 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
16298
16299         * string/test-strchrnul.c: Add copyright header.
16300
16301         * posix/tst-getaddrinfo4.c: Increase test timeout.
16302
16303 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
16304
16305         [BZ #15536]
16306         * math/libm-test.inc (MAX_EXP): Remove
16307         (MIN_EXP): Define.
16308         (ulp): Use MIN_EXP - MANT_DIG.
16309         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
16310
16311 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
16312
16313         * po/be.po: Revert last change.
16314         * po/zh_CN.po: Likewise.
16315         * po/header.pot: Likewise.
16316
16317 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
16318
16319         * Makefile ($(common-objpfx)linkobj/libc.so): Define
16320         link-libc-deps to empty as target-specific variable.
16321         * Makerules (link-libc-args): New variable.
16322         (libc-for-link): Likewise.
16323         (link-libc-deps): Likewise.
16324         (lib%.so): Depend on $(link-libc-deps).  Link with
16325         $(link-libc-args).
16326         (build-module): Link with $(link-libc-args).
16327         (build-module-asneeded): Likewise.
16328         (build-module-helper-objlist): Filter out $(link-libc-deps) from
16329         list of objects.
16330         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
16331         target-specific variable.
16332         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
16333         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
16334         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
16335         libc.
16336         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
16337         libc and ld.so.
16338         ($(objpfx)libpcprofile.so): Likewise.
16339         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
16340         libc_nonshared.a.
16341         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
16342         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
16343         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
16344         $(link-libc-deps).
16345         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
16346         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
16347         * login/Makefile ($(objpfx)libutil.so): Likewise.
16348         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
16349         * math/Makefile ($(objpfx)libm.so): Likewise.
16350         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
16351         $(objpfx)libnsl.so): Define libc-for-link as target-specific
16352         variable instead of depending directly on libc.
16353         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
16354         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
16355         $(link-libc-deps).
16356         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
16357         libc.
16358         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
16359         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
16360         ($(objpfx)libanl.so): Likewise.
16361         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
16362         ld.so.
16363         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
16364         $(link-libc-deps).
16365         * sysdeps/i386/fpu/Makefile: Remove file.
16366         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
16367         ($(objpfx)libm.so): Remove dependency on ld.so.
16368
16369 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
16370
16371         [BZ # 15553]
16372         * nis/yp_xdr.c (XDRMAXNAME): Define.
16373         (XDRMAXRECORD): Define.
16374         (xdr_domainname): Use XDRMAXNAME.
16375         (xdr_mapname): Likewise.
16376         (xdr_peername): Likewise.
16377         (xdr_keydat): Use XDRMAXRECORD.
16378         (xdr_valdat): Likewise.
16379
16380 2013-05-30  Jeff Law  <law@redhat.com>
16381
16382         [BZ #14256]
16383         * manual/errno.texi (ESTALE): Update to account for more than
16384         just NFS file systems.
16385         * sysdeps/gnu/errlist.c: Regenerated.
16386
16387 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16388
16389         [BZ #15465]
16390         * elf/Makefile (tests): Add tst-null-argv.
16391         (modules-names):  Add tst-null-argv-lib.
16392         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16393         (tst-null-argv-ENV): Set environment for tst-null-argv.
16394         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16395         (RTLD_PROGNAME): New macro.
16396         * elf/tst-null-argv.c: New test case.
16397         * elf/tst-null-argv-lib.c: Library for test case.
16398         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16399         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16400         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16401         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16402         * elf/dl-init.c (call_init): Likewise.
16403         (_dl_init): Likewise.
16404         * elf/dl-load.c (print_search_path): Likewise.
16405         (_dl_map_object): Likewise.
16406         * elf/dl-lookup.c (do_lookup_x): Likewise.
16407         (add_dependency): Likewise.
16408         (_dl_lookup_symbol_x): Likewise.
16409         (_dl_debug_bindings): Likewise.
16410         * elf/dl-open.c (_dl_show_scope): Likewise.
16411         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16412         * elf/dl-version.c (match_symbol): Likewise.
16413         (_dl_check_map_versions): Likewise.
16414         * elf/rtld.c (dl_main): Likewise.
16415         (print_unresolved): Use RTLD_PROGNAME.
16416         (print_missing_version): Likewise.
16417         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16418         (elf_machine_rela): Likewise.
16419         * sysdeps/powerpc/powerpc32/dl-machine.c
16420         (__process_machine_rela): Likewise.
16421         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16422         Likewise.
16423         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16424         Likewise.
16425         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16426         Likewise.
16427         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16428         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16429         Likewise.
16430         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16431         Likewise.
16432         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16433
16434 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16435
16436         * po/be.po: Add descriptive title.
16437         * po/zh_CN.po: Likewise.
16438         * po/header.pot: Likewise.
16439
16440 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16441
16442         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16443         error message.
16444         (enlarge_archive): Likewise.
16445
16446 2013-05-28  Ben North  <ben@redfrontdoor.org>
16447
16448         * manual/arith.texi (frexp): It is the magnitude of the return
16449         value which lies in [0.5, 1), not the return value itself.
16450
16451 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16452
16453         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16454
16455 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16456
16457         * stdio-common/bug26.c (main): Correct fscanf template.
16458
16459         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16460         declare _dl_skip_args.
16461
16462         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16463         Don't declare.
16464
16465         * manual/platform.texi: Add missing @end deftypefun.
16466
16467 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16468
16469         [BZ #15529]
16470         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16471         bit of mantissa of 2^16382.
16472         * math/libm-test.inc (hypot_test_data): Add more tests.
16473
16474         * math/libm-test.inc: Add drem and pow10 to list of tested
16475         functions.
16476         (pow10_test): New function.
16477         (drem_test): Likewise.
16478         (drem_test_tonearest): Likewise.
16479         (drem_test_towardzero): Likewise.
16480         (drem_test_downward): Likewise.
16481         (drem_test_upward): Likewise.
16482         (main): Call the new functions.
16483
16484         * math/libm-test.inc (finite_test_data): Remove.
16485         (finite_test): Run tests from isfinite_test_data.
16486         (gamma_test_data): Remove.
16487         (gamma_test): Run tests from lgamma_test_data.
16488         * sysdeps/i386/fpu/libm-test-ulps: Update.
16489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16490
16491 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16492
16493         * manual/platform.texi: Add PowerPC PPR function set documentation.
16494         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16495         implementation.
16496
16497 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16498
16499         * math/libm-test.inc (MAX_EXP): Define.
16500         (ULPDIFF): Define.
16501         (ulp): New function.
16502         (check_float_internal): Use ULPDIFF.
16503         (cpow_test): Disable failing test.
16504         (check_ulp): Test ulp() implemetnation.
16505         (main): Call check_ulp before starting tests.
16506
16507 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16508
16509         * math/gen-libm-test.pl (generate_testfile): Do not handle
16510         START_DATA and END_DATA.
16511         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16512         END_DATA.
16513         (acos_tonearest_test_data): Likewise.
16514         (acos_towardzero_test_data): Likewise.
16515         (acos_downward_test_data): Likewise.
16516         (acos_upward_test_data): Likewise.
16517         (acosh_test_data): Likewise.
16518         (asin_test_data): Likewise.
16519         (asin_tonearest_test_data): Likewise.
16520         (asin_towardzero_test_data): Likewise.
16521         (asin_downward_test_data): Likewise.
16522         (asin_upward_test_data): Likewise.
16523         (asinh_test_data): Likewise.
16524         (atan_test_data): Likewise.
16525         (atanh_test_data): Likewise.
16526         (atan2_test_data): Likewise.
16527         (cabs_test_data): Likewise.
16528         (cacos_test_data): Likewise.
16529         (cacosh_test_data): Likewise.
16530         (carg_test_data): Likewise.
16531         (casin_test_data): Likewise.
16532         (casinh_test_data): Likewise.
16533         (catan_test_data): Likewise.
16534         (catanh_test_data): Likewise.
16535         (cbrt_test_data): Likewise.
16536         (ccos_test_data): Likewise.
16537         (ccosh_test_data): Likewise.
16538         (ceil_test_data): Likewise.
16539         (cexp_test_data): Likewise.
16540         (cimag_test_data): Likewise.
16541         (clog_test_data): Likewise.
16542         (clog10_test_data): Likewise.
16543         (conj_test_data): Likewise.
16544         (copysign_test_data): Likewise.
16545         (cos_test_data): Likewise.
16546         (cos_tonearest_test_data): Likewise.
16547         (cos_towardzero_test_data): Likewise.
16548         (cos_downward_test_data): Likewise.
16549         (cos_upward_test_data): Likewise.
16550         (cosh_test_data): Likewise.
16551         (cosh_tonearest_test_data): Likewise.
16552         (cosh_towardzero_test_data): Likewise.
16553         (cosh_downward_test_data): Likewise.
16554         (cosh_upward_test_data): Likewise.
16555         (cpow_test_data): Likewise.
16556         (cproj_test_data): Likewise.
16557         (creal_test_data): Likewise.
16558         (csin_test_data): Likewise.
16559         (csinh_test_data): Likewise.
16560         (csqrt_test_data): Likewise.
16561         (ctan_test_data): Likewise.
16562         (ctan_tonearest_test_data): Likewise.
16563         (ctan_towardzero_test_data): Likewise.
16564         (ctan_downward_test_data): Likewise.
16565         (ctan_upward_test_data): Likewise.
16566         (ctanh_test_data): Likewise.
16567         (ctanh_tonearest_test_data): Likewise.
16568         (ctanh_towardzero_test_data): Likewise.
16569         (ctanh_downward_test_data): Likewise.
16570         (ctanh_upward_test_data): Likewise.
16571         (erf_test_data): Likewise.
16572         (erfc_test_data): Likewise.
16573         (exp_test_data): Likewise.
16574         (exp_tonearest_test_data): Likewise.
16575         (exp_towardzero_test_data): Likewise.
16576         (exp_downward_test_data): Likewise.
16577         (exp_upward_test_data): Likewise.
16578         (exp10_test_data): Likewise.
16579         (exp2_test_data): Likewise.
16580         (expm1_test_data): Likewise.
16581         (fabs_test_data): Likewise.
16582         (fdim_test_data): Likewise.
16583         (finite_test_data): Likewise.
16584         (floor_test_data): Likewise.
16585         (fma_test_data): Likewise.
16586         (fma_towardzero_test_data): Likewise.
16587         (fma_downward_test_data): Likewise.
16588         (fma_upward_test_data): Likewise.
16589         (fmax_test_data): Likewise.
16590         (fmin_test_data): Likewise.
16591         (fmod_test_data): Likewise.
16592         (fpclassify_test_data): Likewise.
16593         (frexp_test_data): Likewise.
16594         (gamma_test_data): Likewise.
16595         (hypot_test_data): Likewise.
16596         (ilogb_test_data): Likewise.
16597         (isfinite_test_data): Likewise.
16598         (isgreater_test_data): Likewise.
16599         (isgreaterequal_test_data): Likewise.
16600         (isinf_test_data): Likewise.
16601         (isless_test_data): Likewise.
16602         (islessequal_test_data): Likewise.
16603         (islessgreater_test_data): Likewise.
16604         (isnan_test_data): Likewise.
16605         (isnormal_test_data): Likewise.
16606         (issignaling_test_data): Likewise.
16607         (isunordered_test_data): Likewise.
16608         (j0_test_data): Likewise.
16609         (j1_test_data): Likewise.
16610         (jn_test_data): Likewise.
16611         (ldexp_test_data): Likewise.
16612         (lgamma_test_data): Likewise.
16613         (lrint_test_data): Likewise.
16614         (lrint_tonearest_test_data): Likewise.
16615         (lrint_towardzero_test_data): Likewise.
16616         (lrint_downward_test_data): Likewise.
16617         (lrint_upward_test_data): Likewise.
16618         (llrint_test_data): Likewise.
16619         (llrint_tonearest_test_data): Likewise.
16620         (llrint_towardzero_test_data): Likewise.
16621         (llrint_downward_test_data): Likewise.
16622         (llrint_upward_test_data): Likewise.
16623         (log_test_data): Likewise.
16624         (log10_test_data): Likewise.
16625         (log1p_test_data): Likewise.
16626         (log2_test_data): Likewise.
16627         (logb_test_data): Likewise.
16628         (logb_downward_test_data): Likewise.
16629         (lround_test_data): Likewise.
16630         (llround_test_data): Likewise.
16631         (modf_test_data): Likewise.
16632         (nearbyint_test_data): Likewise.
16633         (nextafter_test_data): Likewise.
16634         (nexttoward_test_data): Likewise.
16635         (pow_test_data): Likewise.
16636         (pow_tonearest_test_data): Likewise.
16637         (pow_towardzero_test_data): Likewise.
16638         (pow_downward_test_data): Likewise.
16639         (pow_upward_test_data): Likewise.
16640         (remainder_test_data): Likewise.
16641         (remainder_tonearest_test_data): Likewise.
16642         (remainder_towardzero_test_data): Likewise.
16643         (remainder_downward_test_data): Likewise.
16644         (remainder_upward_test_data): Likewise.
16645         (remquo_test_data): Likewise.
16646         (rint_test_data): Likewise.
16647         (rint_tonearest_test_data): Likewise.
16648         (rint_towardzero_test_data): Likewise.
16649         (rint_downward_test_data): Likewise.
16650         (rint_upward_test_data): Likewise.
16651         (round_test_data): Likewise.
16652         (scalb_test_data): Likewise.
16653         (scalbn_test_data): Likewise.
16654         (scalbln_test_data): Likewise.
16655         (signbit_test_data): Likewise.
16656         (sin_test_data): Likewise.
16657         (sin_tonearest_test_data): Likewise.
16658         (sin_towardzero_test_data): Likewise.
16659         (sin_downward_test_data): Likewise.
16660         (sin_upward_test_data): Likewise.
16661         (sincos_test_data): Likewise.
16662         (sinh_test_data): Likewise.
16663         (sinh_tonearest_test_data): Likewise.
16664         (sinh_towardzero_test_data): Likewise.
16665         (sinh_downward_test_data): Likewise.
16666         (sinh_upward_test_data): Likewise.
16667         (sqrt_test_data): Likewise.
16668         (tan_test_data): Likewise.
16669         (tan_tonearest_test_data): Likewise.
16670         (tan_towardzero_test_data): Likewise.
16671         (tan_downward_test_data): Likewise.
16672         (tan_upward_test_data): Likewise.
16673         (tanh_test_data): Likewise.
16674         (tgamma_test_data): Likewise.
16675         (trunc_test_data): Likewise.
16676         (y0_test_data): Likewise.
16677         (y1_test_data): Likewise.
16678         (yn_test_data): Likewise.
16679         (significand_test_data): Likewise.
16680
16681         * math/gen-libm-test.pl (@functions): Remove variable.
16682         (generate_testfile): Don't handle START and END lines.
16683         * math/libm-test.inc (START): New macro.
16684         (END): Likewise.
16685         (END_COMPLEX): Likewise.
16686         (acos_test): Use END macro without arguments.
16687         (acos_test_tonearest): Likewise.
16688         (acos_test_towardzero): Likewise.
16689         (acos_test_downward): Likewise.
16690         (acos_test_upward): Likewise.
16691         (acosh_test): Likewise.
16692         (asin_test): Likewise.
16693         (asin_test_tonearest): Likewise.
16694         (asin_test_towardzero): Likewise.
16695         (asin_test_downward): Likewise.
16696         (asin_test_upward): Likewise.
16697         (asinh_test): Likewise.
16698         (atan_test): Likewise.
16699         (atanh_test): Likewise.
16700         (atan2_test): Likewise.
16701         (cabs_test): Likewise.
16702         (cacos_test): Use END_COMPLEX macro without arguments.
16703         (cacosh_test): Likewise.
16704         (carg_test): Use END macro without arguments.
16705         (casin_test): Use END_COMPLEX macro without arguments.
16706         (casinh_test): Likewise.
16707         (catan_test): Likewise.
16708         (catanh_test): Likewise.
16709         (cbrt_test): Use END macro without arguments.
16710         (ccos_test): Use END_COMPLEX macro without arguments.
16711         (ccosh_test): Likewise.
16712         (ceil_test): Use END macro without arguments.
16713         (cexp_test): Use END_COMPLEX macro without arguments.
16714         (cimag_test): Use END macro without arguments.
16715         (clog_test): Use END_COMPLEX macro without arguments.
16716         (clog10_test): Likewise.
16717         (conj_test): Likewise.
16718         (copysign_test): Use END macro without arguments.
16719         (cos_test): Likewise.
16720         (cos_test_tonearest): Likewise.
16721         (cos_test_towardzero): Likewise.
16722         (cos_test_downward): Likewise.
16723         (cos_test_upward): Likewise.
16724         (cosh_test): Likewise.
16725         (cosh_test_tonearest): Likewise.
16726         (cosh_test_towardzero): Likewise.
16727         (cosh_test_downward): Likewise.
16728         (cosh_test_upward): Likewise.
16729         (cpow_test): Use END_COMPLEX macro without arguments.
16730         (cproj_test): Likewise.
16731         (creal_test): Use END macro without arguments.
16732         (csin_test): Use END_COMPLEX macro without arguments.
16733         (csinh_test): Likewise.
16734         (csqrt_test): Likewise.
16735         (ctan_test): Likewise.
16736         (ctan_test_tonearest): Likewise.
16737         (ctan_test_towardzero): Likewise.
16738         (ctan_test_downward): Likewise.
16739         (ctan_test_upward): Likewise.
16740         (ctanh_test): Likewise.
16741         (ctanh_test_tonearest): Likewise.
16742         (ctanh_test_towardzero): Likewise.
16743         (ctanh_test_downward): Likewise.
16744         (ctanh_test_upward): Likewise.
16745         (erf_test): Use END macro without arguments.
16746         (erfc_test): Likewise.
16747         (exp_test): Likewise.
16748         (exp_test_tonearest): Likewise.
16749         (exp_test_towardzero): Likewise.
16750         (exp_test_downward): Likewise.
16751         (exp_test_upward): Likewise.
16752         (exp10_test): Likewise.
16753         (exp2_test): Likewise.
16754         (expm1_test): Likewise.
16755         (fabs_test): Likewise.
16756         (fdim_test): Likewise.
16757         (finite_test): Likewise.
16758         (floor_test): Likewise.
16759         (fma_test): Likewise.
16760         (fma_test_towardzero): Likewise.
16761         (fma_test_downward): Likewise.
16762         (fma_test_upward): Likewise.
16763         (fmax_test): Likewise.
16764         (fmin_test): Likewise.
16765         (fmod_test): Likewise.
16766         (fpclassify_test): Likewise.
16767         (frexp_test): Likewise.
16768         (gamma_test): Likewise.
16769         (hypot_test): Likewise.
16770         (ilogb_test): Likewise.
16771         (isfinite_test): Likewise.
16772         (isgreater_test): Likewise.
16773         (isgreaterequal_test): Likewise.
16774         (isinf_test): Likewise.
16775         (isless_test): Likewise.
16776         (islessequal_test): Likewise.
16777         (islessgreater_test): Likewise.
16778         (isnan_test): Likewise.
16779         (isnormal_test): Likewise.
16780         (issignaling_test): Likewise.
16781         (isunordered_test): Likewise.
16782         (j0_test): Likewise.
16783         (j1_test): Likewise.
16784         (jn_test): Likewise.
16785         (ldexp_test): Likewise.
16786         (lgamma_test): Likewise.
16787         (lrint_test): Likewise.
16788         (lrint_test_tonearest): Likewise.
16789         (lrint_test_towardzero): Likewise.
16790         (lrint_test_downward): Likewise.
16791         (lrint_test_upward): Likewise.
16792         (llrint_test): Likewise.
16793         (llrint_test_tonearest): Likewise.
16794         (llrint_test_towardzero): Likewise.
16795         (llrint_test_downward): Likewise.
16796         (llrint_test_upward): Likewise.
16797         (log_test): Likewise.
16798         (log10_test): Likewise.
16799         (log1p_test): Likewise.
16800         (log2_test): Likewise.
16801         (logb_test): Likewise.
16802         (logb_test_downward): Likewise.
16803         (lround_test): Likewise.
16804         (llround_test): Likewise.
16805         (modf_test): Likewise.
16806         (nearbyint_test): Likewise.
16807         (nextafter_test): Likewise.
16808         (nexttoward_test): Likewise.
16809         (pow_test): Likewise.
16810         (pow_test_tonearest): Likewise.
16811         (pow_test_towardzero): Likewise.
16812         (pow_test_downward): Likewise.
16813         (pow_test_upward): Likewise.
16814         (remainder_test): Likewise.
16815         (remainder_test_tonearest): Likewise.
16816         (remainder_test_towardzero): Likewise.
16817         (remainder_test_downward): Likewise.
16818         (remainder_test_upward): Likewise.
16819         (remquo_test): Likewise.
16820         (rint_test): Likewise.
16821         (rint_test_tonearest): Likewise.
16822         (rint_test_towardzero): Likewise.
16823         (rint_test_downward): Likewise.
16824         (rint_test_upward): Likewise.
16825         (round_test): Likewise.
16826         (scalb_test): Likewise.
16827         (scalbn_test): Likewise.
16828         (scalbln_test): Likewise.
16829         (signbit_test): Likewise.
16830         (sin_test): Likewise.
16831         (sin_test_tonearest): Likewise.
16832         (sin_test_towardzero): Likewise.
16833         (sin_test_downward): Likewise.
16834         (sin_test_upward): Likewise.
16835         (sincos_test): Likewise.
16836         (sinh_test): Likewise.
16837         (sinh_test_tonearest): Likewise.
16838         (sinh_test_towardzero): Likewise.
16839         (sinh_test_downward): Likewise.
16840         (sinh_test_upward): Likewise.
16841         (sqrt_test): Likewise.
16842         (tan_test): Likewise.
16843         (tan_test_tonearest): Likewise.
16844         (tan_test_towardzero): Likewise.
16845         (tan_test_downward): Likewise.
16846         (tan_test_upward): Likewise.
16847         (tanh_test): Likewise.
16848         (tgamma_test): Likewise.
16849         (trunc_test): Likewise.
16850         (y0_test): Likewise.
16851         (y1_test): Likewise.
16852         (yn_test): Likewise.
16853         (significand_test): Likewise.
16854
16855 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
16856
16857         [BZ #15381]
16858         * libio/genops.c (_IO_no_init): Initialize wide struct info.
16859
16860 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
16861
16862         [BZ #14894]
16863         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
16864         __ppc_mdoio and __ppc_mdoom.
16865         * manual/platform.texi: Document new functions __ppc_yield,
16866         __ppc_mdoio and __ppc_mdoom.
16867
16868 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
16869
16870         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
16871         (main): Mention "tls" pseudo-hwcap is legacy.
16872         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
16873
16874 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16875
16876         * math/gen-libm-test.pl (parse_args): Output only string of
16877         arguments as text for test name, not full call or descriptions of
16878         tests for extra outputs.
16879         (generate_testfile): Do not pass function name to parse_args.
16880         Generate this_func variable from START.
16881         * math/libm-test.inc (struct test_f_f_data): Rename test_name
16882         field to arg_str.
16883         (struct test_ff_f_data): Likewise.
16884         (test_ff_f_data_nexttoward): Likewise.
16885         (struct test_fi_f_data): Likewise.
16886         (struct test_fl_f_data): Likewise.
16887         (struct test_if_f_data): Likewise.
16888         (struct test_fff_f_data): Likewise.
16889         (struct test_c_f_data): Likewise.
16890         (struct test_f_f1_data): Likewise.  Remove field extra_name.
16891         (struct test_fF_f1_data): Likewise.
16892         (struct test_ffI_f1_data): Likewise.
16893         (struct test_c_c_data): Rename test_name field to arg_str.
16894         (struct test_cc_c_data): Likewise.
16895         (struct test_f_i_data): Likewise.
16896         (struct test_ff_i_data): Likewise.
16897         (struct test_f_l_data): Likewise.
16898         (struct test_f_L_data): Likewise.
16899         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
16900         and extra2_name.
16901         (COMMON_TEST_SETUP): New macro.
16902         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
16903         (COMMON_TEST_CLEANUP): Likewise.
16904         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
16905         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
16906         macros.
16907         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
16908         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
16909         macros.
16910         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
16911         (RUN_TEST_fff_f): Take argument string.  Call new setup and
16912         cleanup macros.
16913         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
16914         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
16915         macros.
16916         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
16917         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
16918         macros.
16919         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16920         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
16921         cleanup macros.
16922         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16923         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
16924         cleanup macros.
16925         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16926         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
16927         cleanup macros.
16928         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16929         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
16930         macros.
16931         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
16932         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
16933         macros.
16934         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
16935         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
16936         macros.
16937         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
16938         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
16939         cleanup macros.
16940         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
16941         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
16942         cleanup macros.
16943         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
16944         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
16945         macros.
16946         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
16947         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
16948         cleanup macros.
16949         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
16950         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
16951         macros.
16952         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
16953         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
16954         macros.
16955         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
16956         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
16957         cleanup macros.
16958         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
16959
16960 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16961
16962         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
16963         to _sifields.sigfault.
16964         (si_addr_lsb): Define new macro.
16965         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
16966         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16967         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
16968
16969 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
16970
16971         [BZ #15441]
16972         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
16973         returns -1.
16974         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
16975         null return -1.
16976         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
16977         loading the domain.
16978
16979 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16980
16981         * math/gen-libm-test.pl (parse_args): Do not include expected
16982         result in test name.
16983         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
16984         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16985         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16986         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16987         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16989
16990 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16991
16992         * benchtests/Makefile: Sort function entries.
16993
16994         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
16995         tanh, asinh, acosh, atanh.
16996         * benchtests/acos-inputs: New file.
16997         * benchtests/acosh-inputs: New file.
16998         * benchtests/asin-inputs: New file.
16999         * benchtests/asinh-inputs: New file.
17000         * benchtests/atanh-inputs: New file.
17001         * benchtests/cosh-inputs: New file.
17002         * benchtests/log-inputs: New file.
17003         * benchtests/sinh-inputs: New file.
17004         * benchtests/tanh-inputs: New file.
17005
17006 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17007
17008         [BZ #15339]
17009         * posix/tst-getaddrinfo4.c: New test.
17010         * posix/Makefile (tests): Add it.
17011
17012 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17013
17014         [BZ #15339]
17015         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
17016         when no services were used.
17017         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
17018         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
17019
17020 2013-05-21  Andreas Schwab  <schwab@suse.de>
17021
17022         [BZ #15014]
17023         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
17024         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
17025         successful.
17026         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
17027         redundant variable declarations and reallocation of buffer when
17028         parsing as IPv6 address.  Always set NSS status when called from
17029         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
17030         buffer too small.  Correct computation of needed size.
17031         * nss/Makefile (tests): Add test-digits-dots.
17032         * nss/test-digits-dots.c: New test.
17033
17034 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17035
17036         * benchtests/Makefile: Remove instructions for adding
17037         benchmark tests.
17038         * benchtests/README: New file to explain how to execute and
17039         enhance the benchmark tests.
17040
17041 2013-05-21  Andreas Schwab  <schwab@suse.de>
17042
17043         [BZ #15493]
17044         * setjmp/Makefile (tests): Add tst-sigsetjmp.
17045         * setjmp/tst-sigsetjmp.c: New test.
17046
17047 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17048
17049         * sysdeps/x86_64/memset.S (memset): New implementation.
17050         (__bzero): Likewise.
17051         (__memset_tail): New function.
17052
17053 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
17054
17055         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
17056         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
17057         __memcpy_sse2_unaligned ifunc selection.
17058         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
17059         Add memcpy-sse2-unaligned.S.
17060         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
17061         Add: __memcpy_sse2_unaligned.
17062
17063 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
17064
17065         [BZ #15490]
17066         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
17067         math_force_eval before restoring floating-point envrionment.
17068         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
17069         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
17070         Likewise.
17071         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
17072         <math_private.h>.
17073         (__nearbyintl): Use math_force_eval before restoring
17074         floating-point environment.
17075         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
17076
17077         * math/gen-libm-test.pl (special_functions): Remove.
17078         (parse_args): Don't handle TEST_extra.  Handle functions with no
17079         return value.
17080         * math/libm-test.inc (struct test_sincos_data): Replace with
17081         struct test_fFF_11_data.
17082         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
17083         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
17084         (sincos_test_data): Change element type to struct
17085         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
17086         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
17087         RUN_TEST_LOOP_sincos.
17088         * math/README.libm-test: Don't mention special handling of
17089         individual functions.
17090         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
17091         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17092         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17093         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17094         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17096
17097         * math/gen-libm-test.pl (get_variable): Remove function.
17098         (parse_args): Don't show pointer parameters to call in test
17099         names.  Use "extra output N" in test names for extra outputs
17100         rather than naming variables.
17101
17102 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
17103
17104         [BZ #15488]
17105         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
17106         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
17107         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
17108         double tests.
17109         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
17110         disable.
17111         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
17112         check_long_double.
17113
17114         * math/gen-libm-test.pl (@tests): Remove variable.
17115         ($count): Likewise.
17116         (new_test): Remove function.
17117         (show_exceptions): New function.
17118         (special_functions): Use show_exceptions instead of new_test.
17119         (parse_args): Likewise.
17120         (generate_testfile): Pass only function name in generated call to
17121         print_max_error or print_complex_max_error.
17122         (get_ulps): Do not handle complex tests specially.
17123         (output_test): Rename to ...
17124         (get_all_ulps_for_test): ... this.  Return a string rather than
17125         printing to a file.  Require ulps to be present.
17126         (output_ulps): Generate arrays rather than #defines.
17127         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
17128         (struct ulp_data): New type.
17129         (BUILD_COMPLEX_ULP): Remove macro.
17130         (compare_ulp_data): New function.
17131         (find_ulps): Likewise.
17132         (find_test_ulps): Likewise.
17133         (find_function_ulps): Likewise.
17134         (find_complex_function_ulps): Likewise.
17135         (print_max_error): Determine allowed ulps using
17136         find_function_ulps.
17137         (print_complex_max_error): Determine allowed ulps using
17138         find_complex_function_ulps.
17139         (check_float_internal): Determine max ulps using find_test_ulps.
17140         (check_float): Do not take max_ulp parameter.  Update call to
17141         check_float_internal.
17142         (check_complex): Likewise.
17143         (check_int): Do not take max_ulp parameter.
17144         (check_long): Likewise.
17145         (check_bool): Likewise.
17146         (check_longlong): Likewise.
17147         (struct test_f_f_data): Remove max_ulp field.
17148         (struct test_ff_f_data): Likewise.
17149         (struct test_ff_f_data_nexttoward): Likewise.
17150         (struct test_fi_f_data): Likewise.
17151         (struct test_fl_f_data): Likewise.
17152         (struct test_if_f_data): Likewise.
17153         (struct test_fff_f_data): Likewise.
17154         (struct test_c_f_data): Likewise.
17155         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
17156         (struct test_fF_f1_data): Likewise.
17157         (struct test_ffI_f1_data): Likewise.
17158         (struct test_c_c_data): Remove max_ulp field.
17159         (struct test_cc_c_data): Likewise.
17160         (struct test_f_i_data): Likewise.
17161         (struct test_ff_i_data): Likewise.
17162         (struct test_f_l_data): Likewise.
17163         (struct test_f_L_data): Likewise.
17164         (struct test_sincos_data): Likewise.
17165         (RUN_TEST_f_f): Do not handle ulps.
17166         (RUN_TEST_LOOP_f_f): Likewise.
17167         (RUN_TEST_2_f): Likewise.
17168         (RUN_TEST_LOOP_2_f): Likewise.
17169         (RUN_TEST_fff_f): Likewise.
17170         (RUN_TEST_LOOP_fff_f): Likewise.
17171         (RUN_TEST_c_f): Likewise.
17172         (RUN_TEST_LOOP_c_f): Likewise.
17173         (RUN_TEST_f_f1): Likewise.
17174         (RUN_TEST_LOOP_f_f1): Likewise.
17175         (RUN_TEST_fF_f1): Likewise.
17176         (RUN_TEST_LOOP_fF_f1): Likewise.
17177         (RUN_TEST_fI_f1): Likewise.
17178         (RUN_TEST_LOOP_fI_f1): Likewise.
17179         (RUN_TEST_ffI_f1): Likewise.
17180         (RUN_TEST_LOOP_ffI_f1): Likewise.
17181         (RUN_TEST_c_c): Likewise.
17182         (RUN_TEST_LOOP_c_c): Likewise.
17183         (RUN_TEST_cc_c): Likewise.
17184         (RUN_TEST_LOOP_cc_c): Likewise.
17185         (RUN_TEST_f_i): Likewise.
17186         (RUN_TEST_LOOP_f_i): Likewise.
17187         (RUN_TEST_f_i_tg): Likewise.
17188         (RUN_TEST_LOOP_f_i_tg): Likewise.
17189         (RUN_TEST_ff_i_tg): Likewise.
17190         (RUN_TEST_LOOP_ff_i_tg): Likewise.
17191         (RUN_TEST_f_b): Likewise.
17192         (RUN_TEST_LOOP_f_b): Likewise.
17193         (RUN_TEST_f_b_tg): Likewise.
17194         (RUN_TEST_LOOP_f_b_tg): Likewise.
17195         (RUN_TEST_f_l): Likewise.
17196         (RUN_TEST_LOOP_f_l): Likewise.
17197         (RUN_TEST_f_L): Likewise.
17198         (RUN_TEST_LOOP_f_L): Likewise.
17199         (RUN_TEST_sincos): Likewise.
17200         (RUN_TEST_LOOP_sincos): Likewise.
17201
17202 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
17203
17204         [BZ #15480]
17205         [BZ #15485]
17206         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
17207         main case of finite arguments, set rounding mode to FE_TONEAREST
17208         and discard exceptions.
17209         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
17210         exceptions.
17211         (remainder_tonearest_test_data): New variable.
17212         (remainder_test_tonearest): New function.
17213         (remainder_towardzero_test_data): New variable.
17214         (remainder_test_towardzero): New function.
17215         (remainder_downward_test_data): New variable.
17216         (remainder_test_downward): New function.
17217         (remainder_upward_test_data): New variable.
17218         (remainder_test_upward): New function.
17219         (main): Call the new test functions.
17220
17221         * math/libm-test.inc (struct test_f_f1_data): Remove field
17222         extra_init.
17223         (struct test_fF_f1_data): Likewise.
17224         (struct test_ffI_f1_data): Likewise.
17225         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
17226         based on value of EXTRA_EXPECTED.
17227         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17228         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
17229         EXTRA_VAR based on value of EXTRA_EXPECTED.
17230         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17231         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
17232         EXTRA_VAR based on value of EXTRA_EXPECTED.
17233         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17234         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
17235         EXTRA_VAR based on value of EXTRA_EXPECTED.
17236         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17237         * math/gen-libm-test.pl (parse_args): Don't output initializers
17238         for extra output values.
17239
17240         * math/libm-test.inc (check_int): Expect result to be exactly
17241         equal to expected value and do not handle ulps.
17242         (check_long): Likewise.
17243         (check_longlong): Likewise.
17244
17245         * math/libm-test.inc (ceil_test_data): Test for "inexact"
17246         exceptions.
17247         (cimag_test_data): Likewise.
17248         (conj_test_data): Likewise.
17249         (copysign_test_data): Likewise.
17250         (cproj_test_data): Likewise.
17251         (creal_test_data): Likewise.
17252         (fabs_test_data): Likewise.
17253         (fdim_test_data): Likewise.
17254         (finite_test_data): Likewise.
17255         (floor_test_data): Likewise.
17256         (fmax_test_data): Likewise.
17257         (fmin_test_data): Likewise.
17258         (fmod_test_data): Likewise.
17259         (fpclassify_test_data): Likewise.
17260         (frexp_test_data): Likewise.
17261         (ilogb_test_data): Likewise.
17262         (isfinite_test_data): Likewise.
17263         (isgreater_test_data): Likewise.
17264         (isgreaterequal_test_data): Likewise.
17265         (isinf_test_data): Likewise.
17266         (isless_test_data): Likewise.
17267         (islessequal_test_data): Likewise.
17268         (islessgreater_test_data): Likewise.
17269         (isnan_test_data): Likewise.
17270         (isnormal_test_data): Likewise.
17271         (issignaling_test_data): Likewise.
17272         (isunordered_test_data): Likewise.
17273         (ldexp_test_data): Likewise.
17274         (lrint_test_data): Likewise.
17275         (lrint_test_data) [TEST_FLOAT]: Disable one test.
17276         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
17277         (lrint_tonearest_test_data): Test for "inexact" exceptions.
17278         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17279         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
17280         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17281         test input.
17282         (lrint_towardzero_test_data): Test for "inexact" exceptions.
17283         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17284         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
17285         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
17286         that test input.
17287         (lrint_downward_test_data): Test for "inexact" exceptions.
17288         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17289         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
17290         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
17291         test input.
17292         (lrint_upward_test_data): Test for "inexact" exceptions.
17293         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
17294         test input.
17295         (llrint_test_data): Test for "inexact" exceptions.
17296         (llrint_test_data) [TEST_FLOAT]: Disable one test.
17297         (llrint_tonearest_test_data): Test for "inexact" exceptions.
17298         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
17299         (llrint_towardzero_test_data): Test for "inexact" exceptions.
17300         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
17301         (llrint_downward_test_data): Test for "inexact" exceptions.
17302         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
17303         (llrint_upward_test_data): Test for "inexact" exceptions.
17304         (logb_test_data): Likewise.
17305         (logb_downward_test_data): Likewise.
17306         (nextafter_test_data): Likewise.
17307         (nexttoward_test_data): Likewise.
17308         (remainder_test_data): Likewise.
17309         (remquo_test_data): Likewise.
17310         (scalbn_test_data): Likewise.
17311         (scalbln_test_data): Likewise.
17312         (signbit_test_data): Likewise.
17313         (sqrt_test_data): Likewise.
17314         (significand_test_data): Likewise.
17315
17316 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
17317
17318         [BZ #15424]
17319         * benchtests/bench-modf.c (struct args): Mark arg0 as
17320         volatile.
17321         * scripts/bench.pl: Mark members of struct args as volatile.
17322
17323 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17324
17325         [BZ # 15497]
17326         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
17327         negative infinity on POWER6 or lower.
17328         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
17329
17330 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
17331
17332         [BZ #15442]
17333         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
17334         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
17335         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
17336         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
17337         (_FP_SETQNAN): New macro.
17338         (_FP_SETQNAN_SEMIRAW): Likewise.
17339         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
17340         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
17341         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
17342         (FP_EXTEND): Use _FP_FRAC_SNANP.
17343         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
17344         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
17345         into account.
17346         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17347         New macro.
17348         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
17349         Likewise.
17350
17351 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17352
17353         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
17354         with DIVIDE_BY_ZERO_EXCEPTION.
17355         (gamma_test_data): Likewise.
17356         (lgamma_test_data): Likewise.
17357         (log_test_data): Likewise.
17358         (log10_test_data): Likewise.
17359         (log2_test_data): Likewise.
17360         (tgamma_test_data): Likewise.
17361
17362         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
17363         (acos_test_tonearest): Likewise.
17364         (acos_test_towardzero): Likewise.
17365         (acos_test_downward): Likewise.
17366         (acos_test_upward): Likewise.
17367         (acosh_test): Likewise.
17368         (asin_test): Likewise.
17369         (asin_test_tonearest): Likewise.
17370         (asin_test_towardzero): Likewise.
17371         (asin_test_downward): Likewise.
17372         (asin_test_upward): Likewise.
17373         (asinh_test): Likewise.
17374         (atan_test): Likewise.
17375         (atanh_test): Likewise.
17376         (atan2_test): Likewise.
17377         (cabs_test): Likewise.
17378         (cacos_test): Likewise.
17379         (cacosh_test): Likewise.
17380         (casin_test): Likewise.
17381         (casinh_test): Likewise.
17382         (catan_test): Likewise.
17383         (catanh_test): Likewise.
17384         (cbrt_test): Likewise.
17385         (ccos_test): Likewise.
17386         (ccosh_test): Likewise.
17387         (cexp_test): Likewise.
17388         (clog_test): Likewise.
17389         (clog10_test): Likewise.
17390         (cos_test): Likewise.
17391         (cos_test_tonearest): Likewise.
17392         (cos_test_towardzero): Likewise.
17393         (cos_test_downward): Likewise.
17394         (cos_test_upward): Likewise.
17395         (cosh_test): Likewise.
17396         (cosh_test_tonearest): Likewise.
17397         (cosh_test_towardzero): Likewise.
17398         (cosh_test_downward): Likewise.
17399         (cosh_test_upward): Likewise.
17400         (cpow_test): Likewise.
17401         (csin_test): Likewise.
17402         (csinh_test): Likewise.
17403         (csqrt_test): Likewise.
17404         (ctan_test): Likewise.
17405         (ctan_test_tonearest): Likewise.
17406         (ctan_test_towardzero): Likewise.
17407         (ctan_test_downward): Likewise.
17408         (ctan_test_upward): Likewise.
17409         (ctanh_test): Likewise.
17410         (ctanh_test_tonearest): Likewise.
17411         (ctanh_test_towardzero): Likewise.
17412         (ctanh_test_downward): Likewise.
17413         (ctanh_test_upward): Likewise.
17414         (erf_test): Likewise.
17415         (erfc_test): Likewise.
17416         (exp_test): Likewise.
17417         (exp_test_tonearest): Likewise.
17418         (exp_test_towardzero): Likewise.
17419         (exp_test_downward): Likewise.
17420         (exp_test_upward): Likewise.
17421         (exp10_test): Likewise.
17422         (exp2_test): Likewise.
17423         (expm1_test): Likewise.
17424         (fmod_test): Likewise.
17425         (gamma_test): Likewise.
17426         (hypot_test): Likewise.
17427         (j0_test): Likewise.
17428         (j1_test): Likewise.
17429         (jn_test): Likewise.
17430         (lgamma_test): Likewise.
17431         (log_test): Likewise.
17432         (log10_test): Likewise.
17433         (log1p_test): Likewise.
17434         (log2_test): Likewise.
17435         (logb_test_downward): Likewise.
17436         (pow_test): Likewise.
17437         (pow_test_tonearest): Likewise.
17438         (pow_test_towardzero): Likewise.
17439         (pow_test_downward): Likewise.
17440         (pow_test_upward): Likewise.
17441         (remainder_test): Likewise.
17442         (remquo_test): Likewise.
17443         (sin_test): Likewise.
17444         (sin_test_tonearest): Likewise.
17445         (sin_test_towardzero): Likewise.
17446         (sin_test_downward): Likewise.
17447         (sin_test_upward): Likewise.
17448         (sincos_test): Likewise.
17449         (sinh_test): Likewise.
17450         (sinh_test_tonearest): Likewise.
17451         (sinh_test_towardzero): Likewise.
17452         (sinh_test_downward): Likewise.
17453         (sinh_test_upward): Likewise.
17454         (sqrt_test): Likewise.
17455         (tan_test): Likewise.
17456         (tan_test_tonearest): Likewise.
17457         (tan_test_towardzero): Likewise.
17458         (tan_test_downward): Likewise.
17459         (tan_test_upward): Likewise.
17460         (tanh_test): Likewise.
17461         (tgamma_test): Likewise.
17462         (y0_test): Likewise.
17463         (y1_test): Likewise.
17464         (yn_test): Likewise.
17465
17466         * math/gen-libm-test.pl (adjust_arg): Remove function.
17467         (special_function): Remove argument $in_func.  Only handle
17468         generating output for tables of tests, not inside functions.
17469         (parse_args): Likewise.
17470         (generate_testfile): Remove variable $in_func.  Update call to
17471         parse_args.
17472         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17473         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17474         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17475         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17476         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17477         (MAX_VALUE_INIT): Rename macro to max_value.
17478         (MIN_VALUE_INIT): Rename macro to min_value.
17479         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17480         (plus_zero): Remove variable.
17481         (minus_zero): Likewise.
17482         (plus_infty): Likewise.
17483         (minus_infty): Likewise.
17484         (qnan_value): Likewise.
17485         (max_value): Likewise.
17486         (min_value): Likewise.
17487         (min_subnorm_value): Likewise.
17488
17489 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17490
17491         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17492         uint64_t or uint32_t usage.
17493         * crypt/sha256-block.c: Likewise.
17494         * crypt/sha256-crypt.c: Likewise.
17495         * crypt/sha256.c: Likewise.
17496         * crypt/sha512-block.c: Likewise.
17497         * crypt/sha512-crypt.c: Likewise.
17498         * crypt/sha512.c: Likewise.
17499         * debug/backtrace-tst.c: Likewise.
17500         * debug/pcprofiledump.c: Likewise.
17501         * elf/cache.c: Likewise.
17502         * elf/dl-cache.c: Likewise.
17503         * elf/dl-misc.c: Likewise.
17504         * elf/dl-profile.c: Likewise.
17505         * elf/dl-support.c: Likewise.
17506         * elf/ldconfig.c: Likewise.
17507         * elf/sprof.c: Likewise.
17508         * iconv/dummy-repertoire.c: Likewise.
17509         * iconv/iconv_charmap.c: Likewise.
17510         * iconv/skeleton.c: Likewise.
17511         * iconvdata/8bit-generic.c: Likewise.
17512         * iconvdata/cp737.h: Likewise.
17513         * iconvdata/cp775.h: Likewise.
17514         * iconvdata/ibm1008.h: Likewise.
17515         * iconvdata/ibm1025.h: Likewise.
17516         * iconvdata/ibm1046.h: Likewise.
17517         * iconvdata/ibm1097.h: Likewise.
17518         * iconvdata/ibm1112.h: Likewise.
17519         * iconvdata/ibm1122.h: Likewise.
17520         * iconvdata/ibm1123.h: Likewise.
17521         * iconvdata/ibm1124.h: Likewise.
17522         * iconvdata/ibm1129.h: Likewise.
17523         * iconvdata/ibm1130.h: Likewise.
17524         * iconvdata/ibm1132.h: Likewise.
17525         * iconvdata/ibm1133.h: Likewise.
17526         * iconvdata/ibm1137.h: Likewise.
17527         * iconvdata/ibm1140.h: Likewise.
17528         * iconvdata/ibm1141.h: Likewise.
17529         * iconvdata/ibm1142.h: Likewise.
17530         * iconvdata/ibm1143.h: Likewise.
17531         * iconvdata/ibm1144.h: Likewise.
17532         * iconvdata/ibm1145.h: Likewise.
17533         * iconvdata/ibm1146.h: Likewise.
17534         * iconvdata/ibm1147.h: Likewise.
17535         * iconvdata/ibm1148.h: Likewise.
17536         * iconvdata/ibm1149.h: Likewise.
17537         * iconvdata/ibm1153.h: Likewise.
17538         * iconvdata/ibm1154.h: Likewise.
17539         * iconvdata/ibm1155.h: Likewise.
17540         * iconvdata/ibm1156.h: Likewise.
17541         * iconvdata/ibm1157.h: Likewise.
17542         * iconvdata/ibm1158.h: Likewise.
17543         * iconvdata/ibm1160.h: Likewise.
17544         * iconvdata/ibm1161.h: Likewise.
17545         * iconvdata/ibm1162.h: Likewise.
17546         * iconvdata/ibm1163.h: Likewise.
17547         * iconvdata/ibm1164.h: Likewise.
17548         * iconvdata/ibm1166.h: Likewise.
17549         * iconvdata/ibm1167.h: Likewise.
17550         * iconvdata/ibm12712.h: Likewise.
17551         * iconvdata/ibm1390.h: Likewise.
17552         * iconvdata/ibm1399.h: Likewise.
17553         * iconvdata/ibm16804.h: Likewise.
17554         * iconvdata/ibm4517.h: Likewise.
17555         * iconvdata/ibm4899.h: Likewise.
17556         * iconvdata/ibm4909.h: Likewise.
17557         * iconvdata/ibm4971.h: Likewise.
17558         * iconvdata/ibm5347.h: Likewise.
17559         * iconvdata/ibm803.h: Likewise.
17560         * iconvdata/ibm856.h: Likewise.
17561         * iconvdata/ibm901.h: Likewise.
17562         * iconvdata/ibm902.h: Likewise.
17563         * iconvdata/ibm9030.h: Likewise.
17564         * iconvdata/ibm9066.h: Likewise.
17565         * iconvdata/ibm921.h: Likewise.
17566         * iconvdata/ibm922.h: Likewise.
17567         * iconvdata/ibm9448.h: Likewise.
17568         * iconvdata/isiri-3342.h: Likewise.
17569         * iconvdata/jis0201.h: Likewise.
17570         * include/link.h: Likewise.
17571         * include/netdb.h: Likewise.
17572         * inet/check_native.c: Likewise.
17573         * inet/check_pf.c: Likewise.
17574         * inet/getipv4sourcefilter.c: Likewise.
17575         * inet/getnameinfo.c: Likewise.
17576         * inet/getsourcefilter.c: Likewise.
17577         * inet/htonl.c: Likewise.
17578         * inet/setipv4sourcefilter.c: Likewise.
17579         * inet/setsourcefilter.c: Likewise.
17580         * inet/test-inet6_opt.c: Likewise.
17581         * inet/tst-network.c: Likewise.
17582         * locale/C-collate.c: Likewise.
17583         * locale/C-ctype.c: Likewise.
17584         * locale/C-time.c: Likewise.
17585         * locale/C-translit.h: Likewise.
17586         * locale/loadarchive.c: Likewise.
17587         * locale/programs/3level.h: Likewise.
17588         * locale/programs/charmap.c: Likewise.
17589         * locale/programs/charmap.h: Likewise.
17590         * locale/programs/ld-address.c: Likewise.
17591         * locale/programs/ld-collate.c: Likewise.
17592         * locale/programs/ld-ctype.c: Likewise.
17593         * locale/programs/ld-identification.c: Likewise.
17594         * locale/programs/ld-measurement.c: Likewise.
17595         * locale/programs/ld-messages.c: Likewise.
17596         * locale/programs/ld-monetary.c: Likewise.
17597         * locale/programs/ld-name.c: Likewise.
17598         * locale/programs/ld-numeric.c: Likewise.
17599         * locale/programs/ld-paper.c: Likewise.
17600         * locale/programs/ld-telephone.c: Likewise.
17601         * locale/programs/ld-time.c: Likewise.
17602         * locale/programs/linereader.c: Likewise.
17603         * locale/programs/locale.c: Likewise.
17604         * locale/programs/locarchive.c: Likewise.
17605         * locale/programs/locfile.h: Likewise.
17606         * locale/programs/repertoire.c: Likewise.
17607         * locale/programs/simple-hash.c: Likewise.
17608         * locale/programs/simple-hash.h: Likewise.
17609         * malloc/memusage.c: Likewise.
17610         * malloc/memusagestat.c: Likewise.
17611         * nis/nis_defaults.c: Likewise.
17612         * nis/nis_hash.c: Likewise.
17613         * nis/nis_print.c: Likewise.
17614         * nis/nis_xdr.c: Likewise.
17615         * nscd/connections.c: Likewise.
17616         * nscd/hstcache.c: Likewise.
17617         * nscd/nscd_gethst_r.c: Likewise.
17618         * nscd/nscd_getserv_r.c: Likewise.
17619         * nscd/nscd_helper.c: Likewise.
17620         * nscd/servicescache.c: Likewise.
17621         * nss/makedb.c: Likewise.
17622         * nss/nss_db/db-XXX.c: Likewise.
17623         * nss/nss_db/db-initgroups.c: Likewise.
17624         * nss/nss_db/db-netgrp.c: Likewise.
17625         * nss/nss_files/files-network.c: Likewise.
17626         * nss/nss_files/files-parse.c: Likewise.
17627         * posix/bug-regex5.c: Likewise.
17628         * posix/fnmatch_loop.c: Likewise.
17629         * posix/regcomp.c: Likewise.
17630         * posix/regexec.c: Likewise.
17631         * posix/tst-rfc3484-2.c: Likewise.
17632         * posix/tst-rfc3484-3.c: Likewise.
17633         * posix/tst-rfc3484.c: Likewise.
17634         * resolv/nss_dns/dns-canon.c: Likewise.
17635         * resolv/nss_dns/dns-network.c: Likewise.
17636         * resolv/res_init.c: Likewise.
17637         * resolv/res_mkquery.c: Likewise.
17638         * resolv/tst-aton.c: Likewise.
17639         * stdlib/cxa_atexit.c: Likewise.
17640         * stdlib/cxa_finalize.c: Likewise.
17641         * stdlib/gen-fpioconst.c: Likewise.
17642         * stdlib/strtol_l.c: Likewise.
17643         * string/tst-endian.c: Likewise.
17644         * sunrpc/auth_des.c: Likewise.
17645         * sunrpc/clnt_udp.c: Likewise.
17646         * sunrpc/rtime.c: Likewise.
17647         * sunrpc/svcauth_des.c: Likewise.
17648         * sunrpc/xdr.c: Likewise.
17649         * sunrpc/xdr_intXX_t.c: Likewise.
17650         * sunrpc/xdr_rec.c: Likewise.
17651         * sysdeps/generic/ldconfig.h: Likewise.
17652         * sysdeps/generic/ldsodefs.h: Likewise.
17653         * sysdeps/generic/memusage.h: Likewise.
17654         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17655         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17656         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17657         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17658         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17659         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17660         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17661         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17662         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17663         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17664         * sysdeps/posix/getaddrinfo.c: Likewise.
17665         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17666         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17667         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17668         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17669         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17670         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17671         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17672         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17673         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17674         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17675         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17676         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17677         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17678         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17679         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17680         * sysdeps/x86_64/dl-tls.h: Likewise.
17681         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17682         * time/alt_digit.c: Likewise.
17683         * time/era.c: Likewise.
17684         * wcsmbs/tst-c16c32-1.c: Likewise.
17685
17686 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17687
17688         * math/libm-test.inc (struct test_sincos_data): New type.
17689         (RUN_TEST_LOOP_sincos): New macro.
17690         (sincos_test_data): New variable.
17691         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17692
17693 2013-05-16  Richard Henderson  <rth@redhat.com>
17694
17695         * math/atest-exp2.c (LIMB64): New macro.
17696         (CONSTSZ): New macro.
17697         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17698         (hexdig): Move ...
17699         (print_mpn_fp): ... to function scope.
17700         (read_mpn_hex): Remove.
17701         (get_log2): Remove.
17702         (exp2_mpn): Use mp_log2.
17703         (main): Use mp_exp1.
17704
17705 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17706
17707         * math/libm-test.inc: Remove comment about not testing "inexact"
17708         exceptions.
17709         (INEXACT_EXCEPTION): New macro.
17710         (NO_INEXACT_EXCEPTION): Likewise.
17711         (INVALID_EXCEPTION_OK): Update value.
17712         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17713         (OVERFLOW_EXCEPTION_OK): Likewise.
17714         (UNDERFLOW_EXCEPTION_OK): Likewise.
17715         (IGNORE_ZERO_INF_SIGN): Likewise.
17716         (ERRNO_UNCHANGED): Likewise.
17717         (ERRNO_EDOM): Likewise.
17718         (ERRNO_ERANGE): Likewise.
17719         (test_exceptions): Handle testing "inexact" exceptions.
17720         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
17721         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
17722         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
17723         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
17724         INEXACT_EXCEPTION.
17725         (rint_towardzero_test_data): Likewise.
17726         (rint_downward_test_data): Likewise.
17727         (rint_upward_test_data): Likewise.
17728
17729         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
17730         with OVERFLOW_EXCEPTION.
17731         (exp10_test_data): Likewise.
17732         (exp2_test_data): Likewise.
17733         (expm1_test_data): Likewise.
17734         (lgamma_test_data): Likewise.
17735         (pow_test_data): Likewise.
17736         (tgamma_test_data): Likewise.
17737         (yn_test_data): Remove duplicate test of overflow.
17738
17739         * math/libm-test.inc (struct test_cc_c_data): New type.
17740         (RUN_TEST_LOOP_cc_c): New macro.
17741         (cpow_test_data): New variable.
17742         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
17743
17744         * math/libm-test.inc (struct test_f_L_data): New type.
17745         (RUN_TEST_LOOP_f_L): New macro.
17746         (llrint_test_data): New variable.
17747         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
17748         (llrint_tonearest_test_data): New variable.
17749         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
17750         (llrint_towardzero_test_data): New variable.
17751         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
17752         (llrint_downward_test_data): New variable.
17753         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
17754         (llrint_upward_test_data): New variable.
17755         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
17756         (llround_test_data): New variable.
17757         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
17758
17759 2013-05-13  Peter Collingbourne  <pcc@google.com>
17760
17761         * math/atest-exp2.c (get_log2): Remove const attribute.
17762
17763 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17764
17765         * math/libm-test.inc (struct test_f_l_data): New type.
17766         (RUN_TEST_LOOP_f_l): New macro.
17767         (lrint_test_data): New variable.
17768         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
17769         (lrint_tonearest_test_data): New variable.
17770         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
17771         (lrint_towardzero_test_data): New variable.
17772         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
17773         (lrint_downward_test_data): New variable.
17774         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
17775         (lrint_upward_test_data): New variable.
17776         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
17777         (lround_test_data): New variable.
17778         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
17779
17780 2013-05-15  Peter Collingbourne  <pcc@google.com>
17781
17782         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
17783         (EXTRACT_WORDS64) Use where appropriate.
17784         (INSERT_WORDS64) Likewise.
17785
17786         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
17787         constraints with x constraints.
17788         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
17789
17790         * malloc/obstack.c (_obstack_compat): Add initializer.
17791
17792 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17793
17794         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
17795         si_trapno and add si_addr_lsb to _sifields.sigfault.
17796         (si_trapno): Remove macro.
17797         (si_addr_lsb): Define new macro.
17798         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17799
17800 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17801
17802         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
17803         instead of TEST_f_l.
17804         (llrint_test_tonearest): Likewise.
17805         (llrint_test_towardzero): Likewise.
17806         (llrint_test_downward): Likewise.
17807         (llrint_test_upward): Likewise.
17808         (llround_test): Likewise.
17809
17810         * math/libm-test.inc (struct test_f_i_data): Add comment.
17811         (RUN_TEST_LOOP_f_b): New macro.
17812         (RUN_TEST_LOOP_f_b_tg): Likewise.
17813         (finite_test_data): New variable.
17814         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
17815         (isfinite_test_data): New variable.
17816         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17817         (isinf_test_data): New variable.
17818         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17819         (isnan_test_data): New variable.
17820         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17821         (isnormal_test_data): New variable.
17822         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17823         (issignaling_test_data): New variable.
17824         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17825         (signbit_test_data): New variable.
17826         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17827
17828         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
17829         with INVALID_EXCEPTION.
17830         (acosh_test_data): Likewise.
17831         (asin_test_data): Likewise.
17832         (atanh_test_data): Likewise.
17833         (fmod_test_data): Likewise.
17834         (log_test_data): Likewise.
17835         (log10_test_data): Likewise.
17836         (log2_test_data): Likewise.
17837         (pow_test_data): Likewise.
17838         (sqrt_test_data): Likewise.
17839         (y0_test_data): Likewise.
17840         (y1_test_data): Likewise.
17841         (yn_test_data): Likewise.
17842
17843         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
17844         function contents.
17845
17846         * math/libm-test.inc (struct test_ff_i_data): New type.
17847         (RUN_TEST_LOOP_ff_i_tg): New macro.
17848         (isgreater_test_data): New variable.
17849         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17850         (isgreaterequal_test_data): New variable.
17851         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17852         (isless_test_data): New variable.
17853         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17854         (islessequal_test_data): New variable.
17855         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17856         (islessgreater_test_data): New variable.
17857         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17858         (isunordered_test_data): New variable.
17859         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17860
17861 2013-05-14  David S. Miller  <davem@davemloft.net>
17862
17863         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17864
17865 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
17866
17867         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
17868
17869         * math/libm-test.inc (struct test_fF_f1_data): Change type of
17870         extra_test to int.
17871         (struct test_f_i_data): Change type of max_ulp to int.
17872
17873         * math/libm-test.inc (test_ffI_f1_data): New type.
17874         (RUN_TEST_LOOP_ffI_f1): New macro.
17875         (remquo_test_data): New variable.
17876         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
17877
17878         * setjmp/tst-setjmp-fp.c: New file.
17879         * setjmp/Makefile (tests): Add tst-setjmp-fp.
17880         (link-libm): New variable.
17881         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
17882
17883         * math/libm-test.inc (struct test_f_i_data): New type.
17884         (RUN_TEST_LOOP_f_i): New macro.
17885         (RUN_TEST_LOOP_f_i_tg): Likewise.
17886         (fpclassify_test_data): New variable.
17887         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
17888         (ilogb_test_data): New variable.
17889         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
17890
17891         * math/libm-test.inc (scalbln_test): Correct function name in END
17892         call.
17893
17894         * math/libm-test.inc (struct test_f_f1_data): Add comment.
17895         (RUN_TEST_LOOP_fI_f1): New macro.
17896         (frexp_test_data): New variable.
17897         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
17898
17899         * math/libm-test.inc (struct test_fF_f1_data): New type.
17900         (RUN_TEST_LOOP_fF_f1): New macro.
17901         (modf_test_data): New variable.
17902         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
17903
17904         * math/libm-test.inc (struct test_f_f1_data): New type.
17905         (RUN_TEST_LOOP_f_f1): New macro.
17906         (gamma_test_data): New variable.
17907         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17908         (lgamma_test_data): New variable.
17909         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17910
17911 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
17912
17913         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
17914         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
17915         (main): Comment "tls" pseudo-hwcap.
17916
17917 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
17918
17919         * math/libm-test.inc (struct test_fl_f_data): New type.
17920         (RUN_TEST_LOOP_fl_f): New variable.
17921         (scalbln_test_data): New variable.
17922         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
17923
17924         * math/libm-test.inc (struct test_fi_f_data): New type.
17925         (RUN_TEST_LOOP_fi_f): New macro.
17926         (ldexp_test_data): New variable.
17927         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
17928         (scalbn_test_data): New variable.
17929         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
17930
17931         * math/libm-test.inc (struct test_c_f_data): New type.
17932         (RUN_TEST_LOOP_c_f): New macro.
17933         (cabs_test_data): New variable.
17934         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
17935         (carg_test_data): New variable.
17936         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
17937         (cimag_test_data): New variable.
17938         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
17939         (creal_test_data): New variable.
17940         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
17941
17942         * math/libm-test.inc (struct test_if_f_data): New type.
17943         (RUN_TEST_LOOP_if_f): New macro.
17944         (jn_test_data): New variable.
17945         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
17946         (yn_test_data): New variable.
17947         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
17948
17949         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
17950
17951 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17952
17953         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
17954         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
17955
17956 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
17957
17958         * benchtests/Makefile (CPPFLAGS-nonlib): Add
17959         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
17960         (bench-deps): Add bench-timing.h.
17961         * benchtests-bench-skeleton.c: Include bench-timing.h.
17962         (main): Use TIMING_* macros instead of clock_gettime.
17963         * benchtests/bench-timing.h: New file.
17964
17965         [BZ #14582]
17966         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
17967         Renamed from _LIB_VERSION.
17968         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
17969
17970 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
17971
17972         * math/libm-test.inc (struct test_fff_f_data): New type.
17973         (RUN_TEST_LOOP_fff_f): New macro.
17974         (fma_test_data): New variable.
17975         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
17976         (fma_towardzero_test_data): New variable.
17977         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
17978         (fma_downward_test_data): New variable.
17979         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
17980         (fma_upward_test_data): New variable.
17981         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
17982
17983         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
17984         (struct test_c_c_data): New type.
17985         (RUN_TEST_LOOP_c_c): New macro.
17986         (cacos_test_data): New variable.
17987         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
17988         (cacosh_test_data): New variable.
17989         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
17990         (casin_test_data): New variable.
17991         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
17992         (casinh_test_data): New variable.
17993         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
17994         (catan_test_data): New variable.
17995         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
17996         (catanh_test_data): New variable.
17997         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
17998         (ccos_test_data): New variable.
17999         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18000         (ccosh_test_data): New variable.
18001         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18002         (cexp_test_data): New variable.
18003         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18004         (clog_test_data): New variable.
18005         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18006         (clog10_test_data): New variable.
18007         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18008         (conj_test_data): New variable.
18009         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18010         (cproj_test_data): New variable.
18011         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18012         (csin_test_data): New variable.
18013         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
18014         (csinh_test_data): New variable.
18015         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
18016         (csqrt_test_data): New variable.
18017         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
18018         (ctan_test_data): New variable.
18019         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
18020         (ctan_tonearest_test_data): New variable.
18021         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18022         (ctan_towardzero_test_data): New variable.
18023         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18024         (ctan_downward_test_data): New variable.
18025         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18026         (ctan_upward_test_data): New variable.
18027         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18028         (ctanh_test_data): New variable.
18029         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
18030         (ctanh_tonearest_test_data): New variable.
18031         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
18032         (ctanh_towardzero_test_data): New variable.
18033         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
18034         (ctanh_downward_test_data): New variable.
18035         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
18036         (ctanh_upward_test_data): New variable.
18037         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
18038         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
18039         of BUILD_COMPLEX.
18040
18041         * math/libm-test.inc (struct test_ff_f_data): New type.
18042         (struct test_ff_f_data_nexttoward): Likewise.
18043         (RUN_TEST_LOOP_2_f): New macro.
18044         (RUN_TEST_LOOP_ff_f): Likewise.
18045         (atan2_test_data): New variable.
18046         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
18047         (copysign_test_data): New variable.
18048         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
18049         (fdim_test_data): New variable.
18050         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
18051         (fmax_test_data): New variable.
18052         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
18053         (fmin_test_data): New variable.
18054         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
18055         (fmod_test_data): New variable.
18056         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
18057         (hypot_test_data): New variable.
18058         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
18059         (nextafter_test_data): New variable.
18060         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
18061         (nexttoward_test_data): New variable.
18062         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
18063         (pow_test_data): New variable.
18064         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
18065         (pow_tonearest_test_data): New variable.
18066         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
18067         (pow_towardzero_test_data): New variable.
18068         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
18069         (pow_downward_test_data): New variable.
18070         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
18071         (pow_upward_test_data): New variable.
18072         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
18073         (remainder_test_data): New variable.
18074         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
18075         (scalb_test_data): New variable.
18076         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
18077         * sysdeps/i386/fpu/libm-test-ulps: Update.
18078
18079 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
18080
18081         * math/libm-test.inc (fma_test): Use max_value instead of local
18082         variable fltmax.
18083         (nextafter_test): Likewise.
18084
18085         * math/libm-test.inc (acos_towardzero_test_data): New variable.
18086         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18087         (acos_downward_test_data): New variable.
18088         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18089         (acos_upward_test_data): New variable.
18090         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18091         (acosh_test_data): New variable.
18092         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
18093         (asin_test_data): New variable.
18094         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
18095         (asin_tonearest_test_data): New variable.
18096         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18097         (asin_towardzero_test_data): New variable.
18098         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18099         (asin_downward_test_data): New variable.
18100         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18101         (asin_upward_test_data): New variable.
18102         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18103         (asinh_test_data): New variable.
18104         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
18105         (atan_test_data): New variable.
18106         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
18107         (atanh_test_data): New variable.
18108         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
18109         (cbrt_test_data): New variable.
18110         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
18111         (ceil_test_data): New variable.
18112         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
18113         (cos_test_data): New variable.
18114         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
18115         (cos_tonearest_test_data): New variable.
18116         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18117         (cos_towardzero_test_data): New variable.
18118         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18119         (cos_downward_test_data): New variable.
18120         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18121         (cos_upward_test_data): New variable.
18122         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18123         (cosh_test_data): New variable.
18124         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
18125         (cosh_tonearest_test_data): New variable.
18126         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18127         (cosh_towardzero_test_data): New variable.
18128         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18129         (cosh_downward_test_data): New variable.
18130         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18131         (cosh_upward_test_data): New variable.
18132         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18133         (erf_test_data): New variable.
18134         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
18135         (erfc_test_data): New variable.
18136         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
18137         (exp_test_data): New variable.
18138         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
18139         (exp_tonearest_test_data): New variable.
18140         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18141         (exp_towardzero_test_data): New variable.
18142         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18143         (exp_downward_test_data): New variable.
18144         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18145         (exp_upward_test_data): New variable.
18146         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18147         (exp10_test_data): New variable.
18148         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
18149         (exp2_test_data): New variable.
18150         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
18151         (expm1_test_data): New variable.
18152         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
18153         (fabs_test_data): New variable.
18154         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
18155         (floor_test_data): New variable.
18156         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
18157         (j0_test_data): New variable.
18158         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
18159         (j1_test_data): New variable.
18160         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
18161         (log_test_data): New variable.
18162         (log_test): Run tests with RUN_TEST_LOOP_f_f.
18163         (log10_test_data): New variable.
18164         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
18165         (log1p_test_data): New variable.
18166         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
18167         (log2_test_data): New variable.
18168         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
18169         (logb_test_data): New variable.
18170         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
18171         (logb_downward_test_data): New variable.
18172         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18173         (nearbyint_test_data): New variable.
18174         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
18175         (rint_test_data): New variable.
18176         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
18177         (rint_tonearest_test_data): New variable.
18178         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18179         (rint_towardzero_test_data): New variable.
18180         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18181         (rint_downward_test_data): New variable.
18182         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18183         (rint_upward_test_data): New variable.
18184         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18185         (round_test_data): New variable.
18186         (round_test): Run tests with RUN_TEST_LOOP_f_f.
18187         (sin_test_data): New variable.
18188         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
18189         (sin_tonearest_test_data): New variable.
18190         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18191         (sin_towardzero_test_data): New variable.
18192         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18193         (sin_downward_test_data): New variable.
18194         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18195         (sin_upward_test_data): New variable.
18196         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18197         (sinh_test_data): New variable.
18198         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
18199         (sinh_tonearest_test_data): New variable.
18200         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18201         (sinh_towardzero_test_data): New variable.
18202         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18203         (sinh_downward_test_data): New variable.
18204         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18205         (sinh_upward_test_data): New variable.
18206         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18207         (sqrt_test_data): New variable.
18208         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
18209         (tan_test_data): New variable.
18210         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
18211         (tan_tonearest_test_data): New variable.
18212         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18213         (tan_towardzero_test_data): New variable.
18214         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
18215         (tan_downward_test_data): New variable.
18216         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
18217         (tan_upward_test_data): New variable.
18218         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
18219         (tanh_test_data): New variable.
18220         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
18221         (tgamma_test_data): New variable.
18222         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
18223         (trunc_test_data): New variable.
18224         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
18225         (y0_test_data): New variable.
18226         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
18227         (y1_test_data): New variable.
18228         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
18229         (significand_test_data): New variable.
18230         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
18231
18232 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
18233
18234         [BZ #12387]
18235         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
18236
18237 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18238
18239         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
18240
18241 2013-05-10  Andreas Jaeger  <aj@suse.de>
18242
18243         [BZ #15448]
18244         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
18245         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
18246
18247 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18248
18249         * math/gen-libm-test.pl (adjust_arg): New function.
18250         (special_functions): Handle generating output in both functions
18251         and arrays.
18252         (parse_args): Likewise.
18253         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
18254         $in_func argument to parse_args.
18255         * math/libm-test.inc (struct test_f_f_data): New type.
18256         (IF_ROUND_INIT_): New macro.
18257         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
18258         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
18259         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
18260         (IF_ROUND_INIT_FE_UPWARD): Likewise.
18261         (ROUND_RESTORE_): Likewise.
18262         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
18263         (ROUND_RESTORE_FE_TONEAREST): Likewise.
18264         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
18265         (ROUND_RESTORE_FE_UPWARD): Likewise.
18266         (RUN_TEST_LOOP_f_f): New macro.
18267         (acos_test_data): New variable.
18268         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
18269         (acos_tonearest_test_data): New variable.
18270         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
18271
18272 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18273
18274         * benchtests/bench-skeleton.c (startup): Fix coding style.
18275
18276 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
18277
18278         [BZ #6809]
18279         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
18280         negative infinity argument.
18281         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
18282         negative infinity argument.
18283         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
18284         negative infinity argument.
18285         * math/libm-test.inc (tgamma_test): Expect errno to be set for
18286         domain errors.
18287
18288 2013-05-10  Florian Weimer  <fweimer@redhat.com>
18289
18290         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
18291         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
18292         * iconv/iconv_prog.c (main): Likewise.
18293         * locale/programs/charmap-dir.c (charmap_readdir)
18294         (fopen_uncompressed): Likewise.
18295         * locale/programs/locfile.c (siblings_uncached)
18296         (write_locale_data): Use lstat64 instead of lstat.
18297         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
18298         stat.
18299
18300 2013-05-10  Andreas Jaeger  <aj@suse.de>
18301
18302         [BZ #15395]
18303         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
18304         localization.
18305         Include <locale.h>.
18306
18307 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
18308
18309         * elf/dl-close.c (_dl_close_worker): Add comments.
18310
18311 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
18312
18313         [BZ #15359]
18314         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
18315         high part of pi/2.
18316         (__ieee754_rem_pio2l): Update comments.
18317
18318         [BZ #15429]
18319         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
18320         high part of pi/2.
18321         (__ieee754_rem_pio2l): Update comments.
18322
18323         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
18324         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
18325
18326         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
18327         M_PI_4l.
18328
18329         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
18330         (M_PI_34_LOG10El): Likewise.
18331         (M_PI2_LOG10El): Likewise.
18332         (M_PI4_LOG10El): Likewise.
18333         (M_PI_LOG10El): Likewise.
18334
18335 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18336
18337         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18338
18339 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
18340
18341         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
18342         (MINUS_ZERO_INIT): Likewise.
18343         (PLUS_INFTY_INIT): Likewise.
18344         (MINUS_INFTY_INIT): Likewise.
18345         (QNAN_VALUE_INIT): Likewise.
18346         (MAX_VALUE_INIT): Likewise.
18347         (MIN_VALUE_INIT): Likewise.
18348         (MIN_SUBNORM_VALUE_INIT): Likewise.
18349         (plus_zero): Initialize with PLUS_ZERO_INIT.
18350         (minus_zero): Initialize with MINUS_ZERO_INIT.
18351         (plus_infty): Initialize with PLUS_INFTY_INIT.
18352         (minus_infty): Initialize with MINUS_INFTY_INIT.
18353         (qnan_value): Initialize with QNAN_VALUE_INIT.
18354         (max_value): Initialize with MAX_VALUE_INIT.
18355         (min_value): Initialize with MIN_VALUE_INIT.
18356         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
18357
18358         * math/libm-test.inc (RUN_TEST_if_f): New macro.
18359         (jn_test): Use TEST_if_f instead of TEST_ff_f.
18360         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
18361         (yn_test): Use TEST_if_f instead of TEST_ff_f.
18362
18363         * math/libm-test.inc (RUN_TEST_f_f): New macro.
18364         (RUN_TEST_2_f): Likewise.
18365         (RUN_TEST_ff_f): Likewise.
18366         (RUN_TEST_fi_f): Likewise.
18367         (RUN_TEST_fl_f): Likewise.
18368         (RUN_TEST_fff_f): Likewise.
18369         (RUN_TEST_c_f): Likewise.
18370         (RUN_TEST_f_f1): Likewise.
18371         (RUN_TEST_fF_f1): Likewise.
18372         (RUN_TEST_fI_f1): Likewise.
18373         (RUN_TEST_ffI_f1): Likewise.
18374         (RUN_TEST_c_c): Likewise.
18375         (RUN_TEST_cc_c): Likewise.
18376         (RUN_TEST_f_i): Likewise.
18377         (RUN_TEST_f_i_tg): Likewise.
18378         (RUN_TEST_ff_i_tg): Likewise.
18379         (RUN_TEST_f_b): Likewise.
18380         (RUN_TEST_f_b_tg): Likewise.
18381         (RUN_TEST_f_l): Likewise.
18382         (RUN_TEST_f_L): Likewise.
18383         (RUN_TEST_sincos): Likewise.
18384         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18385         whether to show exceptions.  Do not include ");\n" in return
18386         value.
18387         (special_functions): Output call to RUN_TEST_sincos instead of
18388         check_float calls.  Update calls to new_test.
18389         (parse_args): Output call to single RUN_TEST_* macro instead of
18390         check_* calls and other assignments.  Update calls to new_test.
18391
18392         [BZ #2546]
18393         [BZ #2560]
18394         [BZ #5159]
18395         [BZ #15426]
18396         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18397         input to result for tgamma overflow.
18398         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18399         (gamma_coeff): New variable.
18400         (NCOEFF): New macro.
18401         (gamma_positive): New function.
18402         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18403         underflow here.  Use gamma_positive instead of exp (lgamma) for
18404         other arguments.
18405         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18406         (gamma_coeff): New variable.
18407         (NCOEFF): New macro.
18408         (gammaf_positive): New function.
18409         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18410         underflow here.  Use gamma_positive instead of exp (lgamma) for
18411         other arguments.
18412         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18413         (gamma_coeff): New variable.
18414         (NCOEFF): New macro.
18415         (gammal_positive): New function.
18416         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18417         underflow here.  Use gamma_positive instead of exp (lgamma) for
18418         other arguments.
18419         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18420         (gamma_coeff): New variable.
18421         (NCOEFF): New macro.
18422         (gammal_positive): New function.
18423         (__ieee754_gammal_r): Handle positive infinity, overflow and
18424         underflow here.  Handle NaN the same as positive infinity.  Remove
18425         check x < 0xffffffff for negative integers.  Use gamma_positive
18426         instead of exp (lgamma) for other arguments.
18427         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18428         (gamma_coeff): New variable.
18429         (NCOEFF): New macro.
18430         (gammal_positive): New function.
18431         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18432         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18433         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18434         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18435         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18436         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18437         * sysdeps/generic/math_private.h (__gamma_productf): New
18438         prototype.
18439         (__gamma_product): Likewise.
18440         (__gamma_productl): Likewise.
18441         * math/Makefile (libm-calls): Add gamma_product.
18442         * math/libm-test.inc (tgamma_test): Add more tests.
18443         * sysdeps/i386/fpu/libm-test-ulps: Update.
18444         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18445
18446 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18447
18448         * benchtests/bench-skeleton.c (main): Preheat CPU.
18449
18450 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18451
18452         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18453
18454 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18455
18456         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18457         and _dl_skip_args_internal.
18458
18459 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18460
18461         * manual/message.texi (Message Translation): Talk about users.
18462         Message to key mapping impacts design.
18463
18464 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18465
18466         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18467
18468         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18469
18470         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18471         * sysdeps/wordsize-64/glob64.c: ... here.
18472
18473         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18474         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18475         New macros.
18476
18477         * debug/getlogin_r_chk.c: Moved to ...
18478         * login/getlogin_r_chk.c: ... here.
18479         * debug/Makefile (routines): Move getlogin_r_chk to ...
18480         * login/Makefile (routines): ... here.
18481         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18482         * login/Versions (libc: GLIBC_2.4): ... here.
18483
18484         * io/poll.c (__poll): Renamed from poll.
18485         Add libc_hidden_def.
18486         (poll): Define as weak alias.
18487
18488         * debug/ptsname_r_chk.c: Moved to ...
18489         * login/ptsname_r_chk.c: ... here.
18490         * debug/Makefile (routines): Move ptsname_r_chk to ...
18491         * login/Makefile (routines): ... here.
18492         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18493         * login/Versions (libc: GLIBC_2.4): ... here.
18494
18495         * posix/getlogin.c: Moved to ...
18496         * login/getlogin.c: ... here.
18497         * posix/getlogin_r.c: Moved to ...
18498         * login/getlogin_r.c: ... here.
18499         * posix/getlogin_r.c: Moved to ...
18500         * login/getlogin_r.c: ... here.
18501         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18502         * login/Makefile (routines): ... here.
18503         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18504         * login/Versions (libc: GLIBC_2.0): ... here.
18505
18506         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18507         (setrlimit): Define as weak alias.
18508
18509         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18510         Call __ names for open, ftruncate, and close.
18511         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18512         (truncate): Define as weak alias.
18513
18514 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18515
18516         * math/gen-libm-test.pl (parse_args): Initialize x before each
18517         test of frexp, modf and remquo.
18518
18519         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18520         test signgam value.
18521
18522 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18523
18524         [BZ #15418]
18525         [BZ #15419]
18526         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18527         internal tests.
18528         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18529
18530 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18531
18532         * elf/dl-writev.h: New file.
18533         * elf/dl-misc.c: Include it.
18534         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18535         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18536
18537 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18538
18539         * math/libm-test.inc (noXFails): Remove variable.
18540         (noXPasses): Likewise.
18541         (BUILD_COMPLEX_INT): Remove macro.
18542         (print_screen): Remove xfail argument.
18543         (print_screen_max_error): Likewise.
18544         (update_stats): Likewise.
18545         (print_max_error): Likewise.  Update calls to other affected
18546         functions.
18547         (print_complex_max_error): Likewise.
18548         (test_single_exception): Update calls to print_screen.
18549         (test_single_errno): Likewise.
18550         (check_float_internal): Remove xfail argument.  Update calls to
18551         other affected functions.
18552         (check_float): Likewise.
18553         (check_complex): Likewise.
18554         (check_int): Likewise.
18555         (check_long): Likewise.
18556         (check_bool): Likewise.
18557         (check_longlong): Likewise.
18558         (main): Don't print noXFails and noXPasses.
18559         * math/gen-libm-test.pl (top level): Don't mention expected
18560         failure handling in comment.
18561         (new_test): Don't handle expected failures.
18562         (parse_args): Don't mention expected failure handling in comment.
18563         (generate_testfile): Don't handle expected failures.
18564         (parse_ulps): Likewise.
18565         (print_ulps_file): Likewise.
18566         (get_failure): Remove function.
18567         (output_test): Don't handle expected failures.
18568         * make/README.libm-test: Don't mention expected failure handling.
18569
18570         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18571         (minus_zero): Likewise.
18572         (plus_infty): Likewise.
18573         (minus_infty): Likewise.
18574         (qnan_value): Likewise.
18575         (max_value): Likewise.
18576         (min_value): Likewise.
18577         (min_subnorm_value): Likewise.
18578         (initialize): Do not initialize those variables dynamically.
18579
18580 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18581
18582         * io/open.c (__open_2): Moved to ...
18583         * io/open_2.c: ... this new file.
18584         * io/open64.c (__open64_2): Moved to ...
18585         * io/open64_2.c: ... this new file.
18586         * io/openat.c (__openat_2): Moved to ...
18587         * io/openat_2.c: ... this new file.
18588         * io/openat64.c (__openat64_2): Moved to ...
18589         * io/openat64_2.c: ... this new file.
18590         * io/Makefile (routines): Add them.
18591         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18592         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18593         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18594         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18595         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18596         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18597         (__openat64): Add hidden_ver.
18598         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18599         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18600
18601         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18602         Separately conditionalize setting of GLRO(dl_sysinfo) so
18603         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18604         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18605
18606 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18607
18608         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18609         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18610         definition.
18611         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18612         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18613         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18614         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18615         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18616
18617 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18618
18619         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18620         test signgam value.
18621
18622         * math/libm-test.inc (hypot_test): Do not use
18623         IGNORE_ZERO_INF_SIGN.
18624
18625 2013-05-03  Andreas Jaeger  <aj@suse.de>
18626
18627         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18628         Linux 3.9.
18629         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18630         (PF_MAX): Adjust for VSOCK change.
18631
18632 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18633
18634         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18635
18636 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18637
18638         [BZ #15264]
18639         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18640         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18641         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18642
18643 2013-05-02  David S. Miller  <davem@davemloft.net>
18644
18645         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18646
18647 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18648
18649         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18650
18651 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18652
18653         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18654
18655 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18656
18657         [BZ #14952]
18658         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18659         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18660         Use __attribute__ ((__gnu_inline__)).
18661         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18662         Don't use __attribute__ ((__gnu_inline__)).
18663
18664 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18665
18666         [BZ #15423]
18667         * math/s_catan.c (__catan): Handle small real or imaginary part of
18668         input specially to avoid spurious underflow.
18669         * math/s_catanf.c (__catanf): Likewise.
18670         * math/s_catanh.c (__catanh): Likewise.
18671         * math/s_catanhf.c (__catanhf): Likewise.
18672         * math/s_catanhl.c (__catanhl): Likewise.
18673         * math/s_catanl.c (__catanl): Likewise.
18674         * math/libm-test.inc (catan_test): Add more tests.
18675         (catanh_test): Likewise.
18676         * sysdeps/i386/fpu/libm-test-ulps: Update.
18677         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18678
18679 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18680
18681         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18682
18683 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18684
18685         [BZ #15416]
18686         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18687         accurately for denominator in atan2.
18688         * math/s_catanf.c (__catanf): Likewise.
18689         * math/s_catanh.c (__catanh): Likewise.
18690         * math/s_catanhf.c (__catanhf): Likewise.
18691         * math/s_catanhl.c (__catanhl): Likewise.
18692         * math/s_catanl.c (__catanl): Likewise.
18693         * math/libm-test.inc (catan_test): Add more tests.
18694         (catanh_test): Likewise.
18695         * sysdeps/i386/fpu/libm-test-ulps: Update.
18696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18697
18698 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18699
18700         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18701
18702         * benchtests/Makefile (bench): Remove slow benchmarks.
18703         * benchtests/atan-inputs: Add slow benchmark inputs.
18704         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18705         (BENCH_FUNC): Accept variant offset.
18706         (VARIANT): Define.
18707         * benchtests/bench-skeleton.c (main): Run benchmark for each
18708         variant.
18709         * benchtests/cos-inputs: Add slow benchmark inputs.
18710         * benchtests/exp-inputs: Likewise.
18711         * benchtests/pow-inputs: Likewise.
18712         * benchtests/sin-inputs: Likewise.
18713         * benchtests/slowatan-inputs: Remove.
18714         * benchtests/slowatan.c: Remove.
18715         * benchtests/slowcos-inputs: Remove.
18716         * benchtests/slowcos.c: Remove.
18717         * benchtests/slowexp-inputs: Remove.
18718         * benchtests/slowexp.c: Remove.
18719         * benchtests/slowpow-inputs: Remove.
18720         * benchtests/slowpow.c: Remove.
18721         * benchtests/slowsin-inputs: Remove.
18722         * benchtests/slowsin.c: Remove.
18723         * benchtests/slowtan-inputs: Remove.
18724         * benchtests/slowtan.c: Remove.
18725         * benchtests/tan-inputs: Add slow benchmark inputs.
18726         * scripts/bench.pl: Parse comments and directives.
18727
18728         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
18729         in CPPFLAGS.
18730         ($(objpfx)bench-%.c): Remove *-ITER.
18731         * benchtests/bench-modf.c: Remove definition of ITER.
18732         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
18733         (main): Loop for DURATION seconds instead of fixed number of
18734         iterations.
18735         * scripts/bench.pl: Don't expect iterations in parameters.
18736
18737 2013-04-29  Roland McGrath  <roland@hack.frob.com>
18738
18739         * io/fchdir.c (__fchdir): Renamed from fchdir.
18740         (fchdir): Define as weak alias.
18741
18742 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18743
18744         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
18745         (ERRNO_EDOM): Likewise.
18746         (ERRNO_ERANGE): Likewise.
18747         (noErrnoTests): New variable.
18748         (init_max_error): Set errno to 0.
18749         (test_single_errno): New function.
18750         (test_errno): Likewise.
18751         (check_float_internal): Call test_errno.  Set errno to 0.
18752         (check_complex): Refer to errno tests in comment.
18753         (check_int): Call test_errno.  Set errno to 0.
18754         (check_long): Likewise.
18755         (check_bool): Likewise.
18756         (check_longlong): Likewise.
18757         (cos_test): Use ERRNO_* flags for errno tests instead of
18758         check_int.
18759         (expm1_test): Likewise.
18760         (fmod_test): Likewise.
18761         (ilogb_test): Likewise.
18762         (lgamma_test): Likewise.
18763         (pow_test): Likewise.
18764         (remainder_test): Likewise.
18765         (sin_test): Likewise.
18766         (tan_test): Likewise.
18767         (yn_test): Likewise.
18768         (initialize): Set errno to 0.
18769         (main): Print number of errno tests.
18770         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
18771
18772 2013-04-29  Andreas Jaeger  <aj@suse.de>
18773
18774         [BZ #15084]
18775         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
18776         and RES_USEVC.
18777
18778         [BZ #15085]
18779         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
18780         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
18781         unimplemented.
18782
18783         [BZ #15380]
18784         * stdlib/random.c (__initstate): Return NULL if
18785         __initstate fails.
18786
18787         [BZ #15086]
18788         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
18789         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
18790         RES_SNGLKUPREOP.
18791
18792 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18793
18794         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18795
18796 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18797
18798         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
18799         of individual tests.
18800         (casin_test): Likewise.
18801         (casinh_test): Likewise.
18802
18803 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
18804
18805         [BZ #15409]
18806         * math/s_catan.c (__catan): Handle arguments with large real or
18807         imaginary part separately without squaring.
18808         * math/s_catanf.c (__catanf): Likewise.
18809         * math/s_catanh.c (__catanh): Likewise.
18810         * math/s_catanhf.c (__catanhf): Likewise.
18811         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18812         and redefine.
18813         (__catanhl): Handle arguments with large real or imaginary part
18814         separately without squaring.
18815         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18816         and redefine.
18817         (__catanl): Handle arguments with large real or imaginary part
18818         separately without squaring.
18819         * math/libm-test.inc (catan_test): Add more tests.
18820         (catanh_test): Likewise.
18821         * sysdeps/i386/fpu/libm-test-ulps: Update.
18822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18823
18824 2013-04-27  Andreas Jaeger  <aj@suse.de>
18825
18826         [BZ #15007]
18827         * stdlib/stdlib.h: Update guards for qecvt.
18828         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
18829         <stdlib.h>.
18830
18831 2013-04-27  Allan McRae  <allan@archlinux.org>
18832
18833         * sysdeps/i386/fpu/libm-test-ulps: Update.
18834
18835 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
18836
18837         [BZ #15406]
18838         * math/s_catan.c: Include <float.h>.
18839         (__catan): Ensure underflow exception occurs for underflowed
18840         result.
18841         * math/s_catanf.c: Include <float.h>.
18842         (__catanf): Ensure underflow exception occurs for underflowed
18843         result.
18844         * math/s_catanh.c: Include <float.h>.
18845         (__catanh): Ensure underflow exception occurs for underflowed
18846         result.
18847         * math/s_catanhf.c: Include <float.h>.
18848         (__catanhf): Ensure underflow exception occurs for underflowed
18849         result.
18850         * math/s_catanhl.c: Include <float.h>.
18851         (__catanhl): Ensure underflow exception occurs for underflowed
18852         result.
18853         * math/s_catanl.c: Include <float.h>.
18854         (__catanl): Ensure underflow exception occurs for underflowed
18855         result.
18856         * math/libm-test.inc (catan_test): Add more tests.
18857         (catanh_test): Likewise.
18858
18859         [BZ #15405]
18860         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
18861         underflowed result.
18862         * math/s_ccoshf.c (__ccoshf): Likewise.
18863         * math/s_ccoshl.c (__ccoshl): Likewise.
18864         * math/s_csin.c (__csin): Likewise.
18865         * math/s_csinf.c (__csinf): Likewise.
18866         * math/s_csinh.c (__csinh): Likewise.
18867         * math/s_csinhf.c (__csinhf): Likewise.
18868         * math/s_csinhl.c (__csinhl): Likewise.
18869         * math/s_csinl.c (__csinl): Likewise.
18870         * math/libm-test.inc (ccos_test): Add more tests.
18871         (ccosh_test): Likewise.
18872         (csin_test): Likewise.
18873         (csinh_test): Likewise.
18874
18875 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18876
18877         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
18878         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
18879         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
18880         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
18881         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
18882         powerpc/power5+/fpu folders.
18883         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18884
18885
18886 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18887
18888         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18889
18890 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
18891
18892         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
18893         additions to variable.
18894         [$(config-machine) = x86_64] (modules-names): Likewise.
18895         ($(objpfx)tst-audit3): Remove dependency.
18896         ($(objpfx)tst-audit3.out): Likewise.
18897         ($(objpfx)tst-audit4): Likewise.
18898         ($(objpfx)tst-audit4.out): Likewise.
18899         ($(objpfx)tst-audit5): Likewise.
18900         ($(objpfx)tst-audit5.out): Likewise.
18901         ($(objpfx)tst-audit6): Likewise.
18902         ($(objpfx)tst-audit6.out): Likewise.
18903         ($(objpfx)tst-audit7): Likewise.
18904         ($(objpfx)tst-audit7.out): Likewise.
18905         (tst-audit3-ENV): Remove variable.
18906         (tst-audit4-ENV): Likewise.
18907         (tst-audit5-ENV): Likewise.
18908         (tst-audit6-ENV): Likewise.
18909         (tst-audit7-ENV): Likewise.
18910         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
18911         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
18912         addition to variable.
18913         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
18914         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
18915         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
18916         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
18917         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
18918         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
18919         tst-audit3, tst-audit4 and tst-audit5.
18920         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
18921         tst-audit6 and tst-audit7.
18922         [$(subdir) = elf] (modules-names): Add audit modules for those
18923         tests.
18924         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
18925         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
18926         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
18927         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
18928         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
18929         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
18930         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
18931         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
18932         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
18933         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
18934         [$(subdir) = elf] (tst-audit3-ENV): New variable.
18935         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
18936         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
18937         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
18938         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
18939         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
18940         Likewise.
18941         [$(subdir) = elf && $(config-cflags-avx) = yes]
18942         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
18943         [$(subdir) = elf && $(config-cflags-avx) = yes]
18944         (CFLAGS-tst-auditmod4a.c): Likewise.
18945         [$(subdir) = elf && $(config-cflags-avx) = yes]
18946         (CFLAGS-tst-auditmod4b.c): Likewise.
18947         [$(subdir) = elf && $(config-cflags-avx) = yes]
18948         (CFLAGS-tst-auditmod6b.c): Likewise.
18949         [$(subdir) = elf && $(config-cflags-avx) = yes]
18950         (CFLAGS-tst-auditmod6c.c): Likewise.
18951         [$(subdir) = elf && $(config-cflags-avx) = yes]
18952         (CFLAGS-tst-auditmod7b.c): Likewise.
18953         * elf/tst-audit3.c: Move to ...
18954         * sysdeps/x86_64/tst-audit3.c: ... here.
18955         * elf/tst-audit4.c: Move to ...
18956         * sysdeps/x86_64/tst-audit4.c: ... here.
18957         * elf/tst-audit5.c: Move to ...
18958         * sysdeps/x86_64/tst-audit5.c: ... here.
18959         * elf/tst-audit6.c: Move to ...
18960         * sysdeps/x86_64/tst-audit6.c: ... here.
18961         * elf/tst-audit7.c: Move to ...
18962         * sysdeps/x86_64/tst-audit7.c: ... here.
18963         * elf/tst-auditmod3a.c: Move to ...
18964         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
18965         * elf/tst-auditmod3b.c: Move to ...
18966         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
18967         * elf/tst-auditmod4a.c: Move to ...
18968         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
18969         * elf/tst-auditmod4b.c: Move to ...
18970         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
18971         * elf/tst-auditmod5a.c: Move to ...
18972         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
18973         * elf/tst-auditmod5b.c: Move to ...
18974         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
18975         * elf/tst-auditmod6a.c: Move to ...
18976         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
18977         * elf/tst-auditmod6b.c: Move to ...
18978         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
18979         * elf/tst-auditmod6c.c: Move to ...
18980         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
18981         * elf/tst-auditmod7a.c: Move to ...
18982         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
18983         * elf/tst-auditmod7b.c: Move to ...
18984         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
18985
18986 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
18987
18988         [BZ #15366]
18989         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
18990         define unconditionally.
18991         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
18992         define unconditionally.
18993         (INT8_C, INT16_C, etc.): Likewise.
18994
18995 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
18996
18997         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
18998         __ehdr_start with hidden visibility.
18999
19000         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19001
19002 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19003
19004         * math/libm-test.inc (cos_test): Use accurate hex constants.
19005         (sincost_test): Likewise.
19006
19007 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19008
19009         * math/libm-test.inc (catan_test): Add more tests.
19010         (catanh_test): Likewise.
19011
19012         * math/s_catanf.c (__catanf): Use suffixed floating-point
19013         constants.
19014         * math/s_catanhf.c (__catanhf): Likewise.
19015         * math/s_catanhl.c (__catanhl): Likewise.
19016         * math/s_catanl.c (__catanl): Likewise.
19017
19018         [BZ #15394]
19019         * math/s_catan.c (__catan): Calculate imaginary part of result
19020         with log1p not log unless computing log of number close to 0.
19021         * math/s_catanf.c (__catanf): Likewise.
19022         * math/s_catanl.c (__catanl): Likewise.
19023         * math/s_catanh.c (__catanh): Calculate real part of result with
19024         log1p not log unless computing log of number close to 0.
19025         * math/s_catanhf.c (__catanhf): Likewise.
19026         * math/s_catanhl.c (__catanhl): Likewise.
19027         * math/libm-test.inc (catan_test): Add more tests.
19028         (catanh_test): Likewise.
19029         * sysdeps/i386/fpu/libm-test-ulps: Update.
19030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19031
19032 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19033
19034         * benchtests/Makefile: Mention files in which fast and slow
19035         paths of math functions are implemented.
19036
19037 2013-04-23  Roland McGrath  <roland@hack.frob.com>
19038
19039         * sysdeps/posix/timespec_get.c: New file.
19040
19041 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19042
19043         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
19044         POWER.
19045         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
19046         for POWER.
19047         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
19048         powerpc/power5/fpu folders.
19049         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
19050         * benchtests/Makefile: Add modf testcase.
19051         * benchtests/bench-modf.c: New file: Benchmark test for mo
19052
19053 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
19054
19055         [BZ #14888]
19056         * time/Makefile (tests): Add tst-strptime-whitespace.
19057         * time/strptime_l.c (get_number): Use ISSPACE.
19058         (__strptime_internal): Likewise.
19059         * time/tst-strptime-whitespace.c: New test case.
19060
19061 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
19062
19063         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
19064         member.
19065         (_nss_files_init): Set it here.
19066
19067 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
19068
19069         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
19070         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
19071         unsigned.
19072
19073 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
19074
19075         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
19076
19077 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
19078
19079         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
19080         size just once.
19081
19082 2013-04-21  David S. Miller  <davem@davemloft.net>
19083
19084         * po/ru.po: Update Russion translation from translation project.
19085
19086 2013-04-17  Adam Conrad  <adconrad@0c3.net>
19087
19088         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
19089         and setfsgid.
19090
19091 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
19092
19093         * configure.in: Remove i386 configure warning. Remove i386 case.
19094         * configure: Regenerate.
19095         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
19096         Add example to error message.
19097         * sysdeps/i386/configure: Regenerate.
19098
19099 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19100
19101         * benchtests/Makefile (bench): Add cos, tan, slowcos and
19102         slowtan.
19103         * benchtests/cos-inputs: New file.
19104         * benchtests/slowcos-inputs: New file.
19105         * benchtests/slowcos.c: New file.
19106         * benchtests/slowtan-inputs: New file.
19107         * benchtests/slowtan.c: New file.
19108         * benchtests/tan-inputs: New file.
19109
19110 2013-04-16  Roland McGrath  <roland@hack.frob.com>
19111
19112         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
19113         considered kosher.
19114
19115 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
19116
19117         * benchtests/Makefile: Include cppflags-iterator.mk to add
19118         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
19119
19120         * Makefile.in (bench-clean): New target.
19121         * benchtests/Makefile (bench-clean): Likewise.
19122
19123 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
19124
19125         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
19126
19127 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19128
19129         * stdio-common/tstdiomisc.c: Fix coding-style violation.
19130
19131 2013-04-15  Andreas Schwab  <schwab@suse.de>
19132
19133         * nscd/grpcache.c (cache_addgr): Properly check for short write.
19134         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19135         * nscd/pwdcache.c (cache_addpw): Likewise.
19136         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
19137         more than recsize.
19138
19139 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19140
19141         * benchtests/Makefile (bench): Write all output to
19142         bench-out.tmp together.
19143
19144 2013-04-15  Andreas Schwab  <schwab@suse.de>
19145
19146         * nscd/nscd.c (main): Don't fork again after closing files.
19147
19148 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19149
19150         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
19151
19152         * benchtests/Rules (bench-deps): Collect dependencies into a
19153         single variable.  Add Makefile to dependencies.
19154         ($(objpfx)bench-%.c): Depend on bench-deps.
19155
19156 2013-04-12  Roland McGrath  <roland@hack.frob.com>
19157             Xavier Roche  <roche+kml2@exalead.com>
19158
19159         [BZ #15361]
19160         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
19161         just that it's a file descriptor.
19162         * manual/llio.texi (Synchronizing AIO Operations): Update description
19163         for EBADF error from aio_fsync.
19164
19165 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
19166
19167         * Rules (bench): Move target definition...
19168         * benchtests/Makefile: ... here.
19169
19170 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
19171
19172         * math/libm-test.inc (cos_test): Fix PI/2 test.
19173         (sincos_test): Likewise.
19174         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
19175         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
19176
19177 2013-04-11  Andreas Schwab  <schwab@suse.de>
19178
19179         [BZ #13988]
19180         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
19181         accept exponent character only when digits were seen.
19182         * stdio-common/Makefile (tests): Add bug26.
19183         * stdio-common/bug26.c: New file.
19184
19185         [BZ #14293]
19186         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
19187         non-freeable.
19188
19189 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19190
19191         * Makeconfig (rtld-prefix): Define built linker prefix.
19192         * Rules (run-bench): Use it.
19193         * math/Makefile (run-regen-ulps): Likewise.
19194
19195         * Rules (bench): Remove eval.
19196
19197 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19198             Roland McGrath  <roland@hack.frob.com>
19199             Ondrej Bilka  <neleai@seznam.cz>
19200
19201         [BZ #15346]
19202         * time/getdate.c: Include ctype.h and alloca.h.
19203         (__getdate_r): Trim leading and trailing spaces of input.
19204         * time/tst-getdate.c (tests): Add tests with leading and
19205         trailing spaces.
19206
19207 2013-04-08  Roland McGrath  <roland@hack.frob.com>
19208
19209         [BZ #14280]
19210         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
19211         when computing value.
19212
19213 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19214
19215         * math/README.libm-test (How can I generate "libm-test-ulps"?):
19216         Use testrun.sh to run libm tests.
19217
19218         [BZ #15309]
19219         * elf/dl-open.c (dl_open_worker): memset all of seen array.
19220
19221 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
19222
19223         [BZ #15264]
19224         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
19225
19226 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19227
19228         * Makefile.in (regen-ulps): New target.
19229         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
19230         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
19231         [ifneq (no,$(PERL)] (regen-ulps): New target.
19232         [ifeq (no,$(PERL)] (regen-ulps): New target.
19233         * math/libm-test.inc (ulps_file_name): Define.
19234         (output_dir): New variable.
19235         (options): Add "output-dir" option.
19236         (parse_opt): Handle 'o' case.
19237         (main): If output_dir is non-NULL use it as a prefix
19238         otherwise use "".
19239         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
19240
19241 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19242
19243         [BZ #10060, #10062]
19244         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
19245         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
19246         fail configure if __sync_val_compare_and_swap is not inlined.
19247         * sysdeps/i386/configure: Regenerate.
19248         * configure.in: Build for i686 when configured for i386.
19249         * configure: Regenerate.
19250         * README: Remove i386 reference.
19251
19252 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
19253
19254         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
19255         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19256
19257 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
19258
19259         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
19260         (lmsnanval): New variables.
19261         (F): Add conversion tests.
19262         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
19263         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
19264
19265         * stdio-common/tstdiomisc.c (F): Properly collect individual
19266         tests' results.
19267
19268         [BZ #14686, #15336]
19269         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
19270         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
19271         Instead, use input NaN values or generate a qNaN by arithmetic
19272         operation.  Also fix bugs to comply with the standard.
19273         * math/libm-test.inc (remainder_test): Add more tests.
19274
19275         [BZ #15335, #15342]
19276         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
19277         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
19278         input NaN values or generate a qNaN by arithmetic operation.
19279
19280         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
19281         unreachable code.
19282
19283         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
19284         definitions.
19285
19286 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
19287
19288         [BZ #14478]
19289         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
19290         underflowed result.
19291         * math/s_cexpf.c (__cexpf): Likewise.
19292         * math/s_cexpl.c (__cexpl): Likewise.
19293         * math/libm-test.inc (cexp_test): Add more tests.
19294
19295 2013-04-03  Andreas Schwab  <schwab@suse.de>
19296
19297         [BZ #15330]
19298         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
19299         order arrays from heap if bigger than alloca cutoff.
19300
19301 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
19302
19303         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
19304         (SNAN_TESTS_double): Refer to GCC PR56831.
19305         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
19306         GCC PR56828.
19307
19308 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
19309
19310         * Rules (bench): Move bench.out after the run is complete.
19311
19312         * Rules (bench): Echo currently running benchmark.
19313
19314         * benchtests/Makefile (bench): Add atan and slowatan.
19315         * benchtests/atan-inputs: New file.
19316         * benchtests/slowatan-inputs: New file.
19317         * benchtests/slowatan.c: New file.
19318
19319         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
19320         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
19321         its value.
19322
19323         [BZ #15305]
19324         * sysdeps/unix/sysv/linux/kernel-features.h
19325         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
19326         __ASSUME_XFS_RESTRICTED_CHOWN.
19327         * sysdeps/unix/sysv/linux/pathconf.c
19328         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
19329         Save and restore errno.
19330
19331 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
19332
19333         [BZ #15327]
19334         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
19335         arguments using __kernel_casinh.
19336         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
19337         arguments using __kernel_casinhf.
19338         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
19339         arguments using __kernel_casinhl.
19340         * math/libm-test.inc (cacosh_test): Add more tests.
19341         * sysdeps/i386/fpu/libm-test-ulps: Update.
19342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19343
19344 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
19345
19346         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
19347         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
19348
19349         * bench/Makefile (bench): Add sin and slowsin.
19350         * benchtests/sin-inputs: New file.
19351         * benchtests/slowsin-inputs: New file.
19352         * benchtests/slowsin.c: New file.
19353
19354         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
19355         (bench): Add slowexp and slowpow.
19356         (exp-ITER): Increase iterations.
19357         (pow-ITER): Likewise.
19358         * benchtests/exp-inputs: Change input.
19359         * benchtests/pow-inputs: Likewise.
19360         * benchtests/slowexp-inputs: New file.
19361         * benchtests/slowexp.c: New file.
19362         * benchtests/slowpow-inputs: New file.
19363         * benchtests/slowpow.c: New file.
19364
19365 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19366
19367         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
19368         instructions.
19369         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
19370         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
19371         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
19372         * benchtests/Makefile: Add rint benchtest.
19373         * benchtests/rint-inputs: Input for rint benchtest.
19374
19375 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
19376
19377         * Versions.def (libm): Add GLIBC_2.18.
19378         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
19379         hidden libm prototypes.
19380         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19381         * math/Makefile (libm-calls): Add s_issignaling.
19382         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19383         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19384         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19385         declaration.
19386         * math/math.h [__USE_GNU] (issignaling): New macro.
19387         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19388         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19389         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19390         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19391         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19392         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19393         * manual/arith.texi (issignaling): New section.
19394         * manual/libm-err-tab.pl (@all_functions): Update comment.
19395         * math/gen-libm-test.pl (parse_args): Apply special handling for
19396         issignaling.
19397         * math/libm-test.inc (print_float, issignaling_test): New
19398         functions.
19399         (check_float_internal): Add issignaling checks.
19400         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19401         default definition.
19402         * sysdeps/powerpc/math-tests.h: New file.
19403         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19404         tests.
19405         * math/test-snan.c (TEST_FUNC): Likewise.
19406
19407 2013-03-30  David S. Miller  <davem@davemloft.net>
19408
19409         * po/de.po: Update from translation team.
19410
19411 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19412
19413         [BZ #10357]
19414         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19415         imaginary part less than 1.0 and real part less than 0.5
19416         specially.
19417         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19418         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19419         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19420         (cacos_test): Add more tests.
19421         (casin_test): Likewise.
19422         (casinh_test): Likewise.
19423         * sysdeps/i386/fpu/libm-test-ulps: Update.
19424         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19425
19426 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19427
19428         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19429         ONE with its value.
19430
19431         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19432         (__pow_mp): Replace ONE and MONE with their values.
19433         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19434         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19435         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19436         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19437         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19438         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19439
19440         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19441
19442         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19443         (__pow_mp): Replace ZERO and MZERO with their values.
19444         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19445         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19446         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19447         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19448         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19449         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19450         (__sqr): Likewise.
19451
19452         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19453
19454         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19455
19456 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19457
19458         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19459         Declare with __attribute__ ((weak)).
19460         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19461         Call __call_tls_dtors only if it's not NULL.
19462
19463 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19464
19465         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19466         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19467         magic __ehdr_start linker symbol if it's defined.
19468         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19469         them up here if it was already done.
19470
19471         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19472         (_dl_aux_init): Use const in cast when setting it.
19473         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19474         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19475         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19476
19477         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19478         Declare them here.
19479         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19480         * csu/libc-tls.c: Nor here.
19481         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19482
19483         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19484         (__libc_message): Never call vsyslog.
19485
19486 2013-03-28  Alan Modra  <amodra@gmail.com>
19487
19488         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19489         Define as empty.
19490         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19491         Likewise.
19492
19493 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19494
19495         [BZ #15214]
19496         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19497         underflow.
19498         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19499
19500 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19501
19502         [BZ #15304]
19503         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19504         Don't add gid passed as argument.
19505
19506         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19507
19508 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19509
19510         [BZ #15307]
19511         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19512         imaginary part between 1.0 and 1.5 and real part less than 0.5
19513         specially.
19514         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19515         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19516         * math/libm-test.inc (cacos_test): Add more tests.
19517         (casin_test): Likewise.
19518         (casinh_test): Likewise.
19519         * sysdeps/i386/fpu/libm-test-ulps: Update.
19520         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19521
19522 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19523
19524         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19525         constants.
19526         (norm): Likewise.
19527         (denorm): Likewise.
19528         (__dbl_mp): Likewise.
19529         (add_magnitudes): Likewise.
19530         (sub_magnitudes): Likewise.
19531         (__add): Likewise.
19532         (__sub): Likewise.
19533         (__mul): Likewise.
19534         (__sqr): Likewise.
19535         (__inv): Likewise.
19536         (__dvd): Likewise.
19537
19538         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19539         commented code.
19540         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19541         (__dubcos): Likewise.
19542         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19543         (__ieee754_acos): Likewise.
19544         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19545         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19546         (__exp1): Likewise.
19547         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19548         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19549         (log1): Likewise.
19550         (my_log2): Likewise.
19551         (checkint): Likewise.
19552         * sysdeps/ieee754/dbl-64/e_remainder.c
19553         (__ieee754_remainder): Likewise.
19554         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19555         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19556         (bsloww): Likewise.
19557         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19558
19559         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19560         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19561         MANTISSA_STORE_T to store computations on mantissa.  Use
19562         macros for rounding and division.
19563         (denorm): Likewise.
19564         (__dbl_mp): Likewise.
19565         (add_magnitudes): Likewise.
19566         (sub_magnitudes): Likewise.
19567         (__mul): Likewise.
19568         (__sqr): Likewise.
19569         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19570         powers of two in terms of TWOPOW macro.
19571         (mp_no): Make type of mantissa as MANTISSA_T.
19572         [!RADIXI]: Define RADIXI.
19573         [!TWO52]: Define TWO52.
19574         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19575
19576 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19577
19578         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19579         llroundl symbol when building for PPC32.
19580
19581 2013-03-24  Mark H Weaver  <mhw@netris.org>
19582
19583         * manual/arith.texi (Normalization Functions): Fix prototypes for
19584         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19585
19586 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19587
19588         [BZ #13889]
19589         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19590         high value to check if expl overflow.
19591         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19592         to check for underflow and overflow.
19593         * math/libm-test.inc: Add exp test.
19594
19595 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19596
19597         [BZ #11120]
19598         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19599         with NOT_IN_libc.
19600
19601 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19602
19603         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19604         symbol.
19605
19606 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19607
19608         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19609         wrap blocks consisting of several statements.
19610
19611         * sysdeps/generic/math-tests.h: New file.
19612         * sysdeps/i386/fpu/math-tests.h: Likewise.
19613         * math/test-snan.c: Include it.
19614         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19615
19616 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19617
19618         [BZ #15285]
19619         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19620         (__ieee754_j0l): Do not improve calculations using cos of twice
19621         input for inputs above LDBL_MAX / 2.0L.
19622         (__ieee754_y0l): Likewise.
19623         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19624         (__ieee754_j1l): Do not improve calculations using cos of twice
19625         input for inputs above LDBL_MAX / 2.0L.
19626         (__ieee754_y1l): Likewise.
19627         * math/libm-test.inc (j0_test): Add another test.
19628         (j1_test): Likewise.
19629         (y0_test): Likewise.
19630         (y1_test): Likewise.
19631         * sysdeps/i386/fpu/libm-test-ulps: Update.
19632
19633 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19634
19635         * Rules ($(objpfx)bench-%.c): Include code from a C source
19636         file.
19637
19638 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19639
19640         [BZ #15287]
19641         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19642         imaginary part 1.0 and real part less than 0.5 specially.
19643         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19644         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19645         * math/libm-test.inc (cacos_test): Add more tests.
19646         (casin_test): Likewise.
19647         (casinh_test): Likewise.
19648         * sysdeps/i386/fpu/libm-test-ulps: Update.
19649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19650
19651 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19652
19653         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19654         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19655
19656 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19657
19658         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19659         * config.make.in (config-cflags-sse4): Remove variable.
19660         (config-cflags-avx): Likewise.
19661         (config-cflags-sse2avx): Likewise.
19662         (config-cflags-novzeroupper): Likewise.
19663         (config-asflags-i686): Likewise.
19664         (have-mfma4): Likewise.
19665         (have-as-vis3): Likewise.
19666         (MIG): Likewise.
19667         * configure.in (MIG): Do not AC_SUBST.
19668         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19669         (libc_cv_cc_sse4): Do not AC_SUBST.
19670         (libc_cv_cc_avx): Likewise.
19671         (libc_cv_cc_sse2avx): Likewise.
19672         (libc_cv_cc_novzeroupper): Likewise.
19673         (libc_cv_cc_fma4): Likewise.
19674         (libc_cv_as_i686): Likewise.
19675         (libc_cv_sparc_as_vis3): Likewise.
19676         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19677         LIBC_CONFIG_VAR.
19678         (config-asflags-i686): Likewise.
19679         (config-cflags-avx): Likewise.
19680         (config-cflags-sse2avx): Likewise.
19681         (have-mfma4): Likewise.
19682         (config-cflags-novzeroupper): Likewise.
19683         * sysdeps/mach/configure.in (MIG): Likewise.
19684         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19685         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19686         LIBC_CONFIG_VAR.
19687         (config-cflags-avx): Likewise.
19688         (config-cflags-sse2avx): Likewise.
19689         (have-mfma4): Likewise.
19690         (config-cflags-novzeroupper): Likewise.
19691         * configure: Regenerated.
19692         * sysdeps/i386/configure: Likewise.
19693         * sysdeps/mach/configure: Likewise.
19694         * sysdeps/sparc/configure: Likewise.
19695         * sysdeps/x86_64/configure: Likewise.
19696
19697 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19698
19699         [BZ #14812]
19700         * locale/programs/localedef.c (options): Put N_ translation marker
19701         on argument names, not just descriptions.
19702
19703 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19704
19705         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
19706
19707 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
19708
19709         [BZ #14176]
19710         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
19711
19712 2013-03-19  Roland McGrath  <roland@hack.frob.com>
19713
19714         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
19715         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
19716         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
19717         [!BEFORE_ABORT] (before_abort): New function.
19718         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
19719         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
19720         (writev_for_fatal): New function.
19721         (WRITEV_FOR_FATAL): New macro; call that.
19722         (backtrace_and_maps): New function.
19723         (BEFORE_ABORT): New macro; call that.
19724         (struct str_list): Type removed.
19725         (__libc_message, __libc_fatal): Functions removed.
19726         Include <sysdeps/posix/libc_fatal.c> instead.
19727
19728 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
19729
19730         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
19731         constants.
19732         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
19733         double constants.
19734
19735 2013-03-19  Andreas Schwab  <schwab@suse.de>
19736
19737         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
19738         * sysdeps/gnu/configure: Regenerate.
19739
19740         * configure.in: Substitute libc_cv_rtlddir.
19741         * configure: Regenerate.
19742         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
19743         * Makeconfig (rtlddir, inst_rtlddir): New variables.
19744         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
19745         * elf/Makefile (install-others, CFLAGS-interp.c)
19746         (ldso_install, common-ldd-rewrite): Likewise.
19747         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
19748         $(inst_slibdir)/$(rtld-installed-name).
19749         * scripts/rellns-sh: Add -p option.
19750         * Makerules (make-shlib-link): Use rellns-sh to get relative name
19751         for source.
19752
19753 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19754
19755         * manual/nptl.texi: Renamed to ...
19756         * manual/threads.texi: ... this.
19757         * manual/Makefile (chapters): Update.
19758
19759 2013-03-18  Roland McGrath  <roland@hack.frob.com>
19760
19761         [BZ #14812]
19762         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
19763         on argument names, not just descriptions.
19764         * malloc/memusagestat.c (options): Likewise.
19765         * nss/getent.c (options): Likewise.
19766
19767 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
19768
19769         [BZ #14812]
19770         * iconv/iconv_prog.c (options): Put N_ translation marker
19771         on argument names, not just descriptions.
19772         * iconv/iconvconfig.c (options): Likewise.
19773
19774 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
19775
19776         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
19777         implementation which is faster on all x86_64 architectures.
19778         Tested on AMD, Intel Nehalem, SNB, IVB.
19779         * sysdeps/x86_64/strnlen.S: Likewise.
19780
19781         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
19782         Remove all multiarch strlen and strnlen versions.
19783         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
19784         Remove strlen and strnlen related parts.
19785
19786         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
19787         Inline strlen part.
19788         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
19789
19790         * sysdeps/x86_64/multiarch/strlen.S: Remove.
19791         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
19792         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
19793         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
19794         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
19795         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
19796
19797 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
19798
19799         * manual/memory.texi (Malloc Tunable Parameters):
19800         Sort parameters alphabetically. Add comments for missing entries.
19801
19802 2013-03-17  David S. Miller  <davem@davemloft.net>
19803
19804         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19805
19806 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
19807
19808         [BZ #15283]
19809         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
19810         for arguments at most half maximum finite value.
19811         * math/libm-test.inc (j0_test): Add more tests.
19812         (j1_test): Likewise.
19813         (y0_test): Likewise.
19814         (y1_test): Likewise.
19815         * sysdeps/i386/fpu/libm-test-ulps: Update.
19816         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19817
19818         [BZ #14155]
19819         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
19820         1 / x and functions P and Q for arguments above 0x1p256L.
19821         (__ieee754_y0l): Likewise.
19822         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19823         (__ieee754_y1l): Likewise.
19824         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
19825         (j1_test): Likewise.
19826         (y0_test): Likewise.
19827         (y1_test): Likewise.
19828
19829 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
19830
19831         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
19832         variable.
19833
19834 2013-03-15  Roland McGrath  <roland@hack.frob.com>
19835
19836         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
19837         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
19838         zero since it's initialized to EXEC_PAGESIZE.
19839
19840         * sysdeps/unix/sysv/linux/ldsodefs.h
19841         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
19842         * sysdeps/generic/ldsodefs.h: ... here.
19843
19844 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
19845
19846         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
19847
19848         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
19849         math/test-snan.c.
19850         * math/test-snan.c: Renamed from
19851         sysdeps/powerpc/fpu/test-powerpc-snan.c.
19852         * math/Makefile (tests): Add test-snan.
19853         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
19854         test-powerpc-snan.
19855
19856         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
19857         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
19858         functions.
19859         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
19860         __builtin_nan family of functions.
19861         * math/libm-test.inc (initialize): Initialize qnan_value with
19862         __builtin_nan family of functions.
19863         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
19864         Remove variables.
19865         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
19866         Remove functions.
19867         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
19868         storage class.  Initialize qNaN_var and sNaN_var with
19869         __builtin_nan and __builtin_nans families of functions,
19870         respectively.
19871
19872         * math/libm-test.inc (acosh_test): Also test with qNaN input.
19873         (sqrt_test): Remove duplicate test with qNaN input.
19874         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
19875         (round_test, signbit_test, significand_test): Note missing +/-Inf
19876         as well as qNaN tests.
19877
19878         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
19879         qNaN_var.  Fix a few strings, too.
19880         * math/libm-test.inc (nan_value): Rename to qnan_value.
19881         * math/gen-libm-test.pl (%beautify): Adjust to that.
19882         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
19883         * math/test-misc.c (main): Likewise.
19884         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
19885         to __qnan_bytes, and __qnan_union, respectively.
19886         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
19887         Likewise.
19888         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
19889         and lqnanval, respectively.
19890         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
19891         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
19892         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
19893         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
19894
19895         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
19896         * math/test-misc.c (main) [__x86_64__]: Enable test for long
19897         doubles.
19898
19899         * math/test-misc.c (main): Fix copy'n'pastos.
19900         * misc/tst-efgcvt.c (special): Likewise.
19901
19902         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
19903         Remove declarations.
19904
19905 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19906
19907         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
19908         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
19909         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
19910         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
19911
19912 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19913
19914         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
19915         macro to return vdso values correctly in IFUNC implementations.
19916         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
19917         Optimization by using IFUNC.
19918
19919 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19920             Richard Henderson  <rth@redhat.com>
19921             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19922
19923         * Makefile.in (bench): New target.
19924         * NEWS: Mention the benchmark framework.
19925         * Rules (bench): Likewise.
19926         (binaries-bench): Generate binaries for functions to
19927         benchmark.
19928         * benchtests/Makefile: New makefile for benchmark tests.
19929         * benchtests/bench-skeleton.c: New skeleton file for benchmark
19930         programs.
19931         * benchtests/exp-inputs: New input file for EXP function.
19932         * benchtests/pow-inputs: New input file for POW function.
19933         * scripts/bench.pl: New script to generate source files for
19934         benchmark programs.
19935
19936 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19937
19938         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19939         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
19940         computations on mantissa.  Use macros for rounding and
19941         division.
19942         (denorm): Likewise.
19943         (__dbl_mp): Likewise.
19944         (add_magnitudes): Likewise.
19945         (sub_magnitudes): Likewise.
19946         (__mul): Likewise.
19947         (__sqr): Likewise.
19948         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19949         powers of two in terms of TWOPOW macro.
19950         (mp_no): Make type of mantissa as MANTISSA_T.
19951         [!RADIXI]: Define RADIXI.
19952         [!TWO52]: Define TWO52.
19953         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19954
19955         * manual/nptl.texi (cindex): Modify threads to pthreads.
19956
19957 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
19958
19959         * sysdeps/x86_64/preconfigure: Regenerated.
19960
19961 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
19962
19963         [BZ #14155]
19964         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
19965         0x1p28 and above.
19966         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
19967         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
19968         0x1p28 and above.
19969         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
19970         * math/libm-test.inc (j0_test): Do not allow one spurious
19971         underflow exception.
19972         (y1_test): Likewise.
19973
19974 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19975
19976         * manual/Makefile (chapters): Add nptl.
19977         * manual/debug.texi (Debugging Support): Add link to Threads
19978         chapter.
19979         * manual/nptl.texi: New file.
19980
19981         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
19982
19983 2013-03-14  Petr Baudis  <pasky@ucw.cz>
19984
19985         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
19986         for non-NULL pointer before the memory validity test. Pointed
19987         out by Holger Brunck <holger.brunck@keymile.com>.
19988
19989 2013-03-13  Andreas Schwab  <schwab@suse.de>
19990
19991         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
19992         instead of .os.
19993
19994 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
19995
19996         * timezone/zic.c: Update from tzcode 2013b.
19997
19998 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
19999
20000         * manual/install.texi (Configuring and compiling):
20001         Mention i686 and i586.
20002         * INSTALL: Regenerate.
20003
20004 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20005
20006         * sysdeps/init_array/elf-init.c: New file.
20007         * csu/elf-init.c
20008         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20009         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20010
20011         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20012         __gmon_start__ as global, but as static with a .preinit_array pointer.
20013         * sysdeps/init_array/gmon-start.c: New file.  Use that.
20014         * sysdeps/init_array/crti.S: New file, empty except for comments.
20015         * sysdeps/init_array/crtn.S: Likewise.
20016
20017 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
20018
20019         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
20020         definining bcopy.
20021         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20022         Remove Prefer_SSE_for_memop.
20023         * sysdeps/x86_64/multiarch/init-arch.h: Remove
20024         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
20025         HAS_PREFER_SSE_FOR_MEMOP.
20026         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
20027         memset-x86-64.
20028         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
20029         Remove bzero, memset ifunc support.
20030         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
20031         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
20032         * sysdeps/x86_64/multiarch/memset.S: Likewise.
20033         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
20034
20035 2013-03-11  Andreas Schwab  <schwab@suse.de>
20036
20037         [BZ #15234]
20038         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
20039         by SHLIB_COMPAT.
20040         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
20041         (GLIBC_2.16): Remove pthread_atfork.
20042
20043 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
20044
20045         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
20046         (ptestcases.h): Likewise.
20047
20048 2013-03-08  Roland McGrath  <roland@hack.frob.com>
20049
20050         * Makeconfig ($(common-objpfx)config.status): Depend on
20051         sysdeps/*/preconfigure{,.in} too.
20052
20053 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
20054
20055         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
20056         (__free_hook): Use void * instead of __malloc_ptr_t.
20057         (__malloc_hook): Likewise.
20058         (__realloc_hook): Likewise.
20059         (__memalign_hook): Likewise.
20060         (__after_morecore_hook): Likewise.
20061         * malloc/arena.c (save_malloc_hook): Likewise.
20062         (save_free_hook): Likewise.
20063         * malloc/hooks.c (malloc_hook_ini): Likewise.
20064         (realloc_hook_ini): Likewise.
20065         (memalign_hook_ini): Likewise.
20066         * malloc/malloc.c (malloc_hook_ini): Likewise.
20067         (realloc_hook_ini): Likewise.
20068         (memalign_hook_ini): Likewise.
20069         (__free_hook): Likewise.
20070         (__malloc_hook): Likewise.
20071         (__realloc_hook): Likewise.
20072         (__memalign_hook): Likewise.
20073         (__libc_malloc): Likewise.
20074         (__libc_free): Likewise.
20075         (__libc_realloc): Likewise.
20076         (__libc_memalign): Likewise.
20077         (__libc_valloc): Likewise.
20078         (__libc_pvalloc): Likewise.
20079         (__libc_calloc): Likewise.
20080         (__posix_memalign): Likewise.
20081         * malloc/morecore.c (__sbrk): Likewise.
20082         (__default_morecore): Likewise.
20083
20084         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
20085
20086         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
20087         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
20088         __malloc_ptrdiff_t.
20089
20090         * malloc/malloc.h (__malloc_size_t): Remove macro.
20091         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
20092         __malloc_size_t.
20093         (old_memalign_hook): Likewise.
20094         (old_realloc_hook): Likewise.
20095         (struct hdr): Likewise.
20096         (flood): Likewise.
20097         (mallochook): Likewise.
20098         (memalignhook): Likewise.
20099         (reallochook): Likewise.
20100         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
20101         (tr_old_realloc_hook): Likewise.
20102         (tr_old_memalign_hook): Likewise.
20103         (tr_mallochook): Likewise.
20104         (tr_reallochook): Likewise.
20105         (tr_memalignhook): Likewise.
20106
20107 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20108
20109         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
20110         default_ldbl_pack and using as default implementation.
20111         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
20112         implementation.
20113         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
20114         redundant definition.
20115         (ldbl_insert_mantissa): Likewise.
20116         (ldbl_canonicalize): Likewise.
20117         (ldbl_nearbyint): Likewise.
20118         (ldbl_pack): Rename to ldbl_pack_ppc.
20119         (ldbl_unpack): Rename to ldbl_unpack_ppc.
20120         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
20121         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
20122
20123 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20124
20125         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
20126         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
20127         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
20128         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
20129         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
20130         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
20131         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
20132         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
20133
20134 2013-03-07  Andreas Jaeger  <aj@suse.de>
20135
20136         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20137         bits/mman-linux.h.
20138
20139 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20140
20141         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
20142         Include mpa.h and declare __MPEXP.
20143         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
20144         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20145         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20146         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
20147         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20148         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
20149         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
20150
20151         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
20152         (__slowpow): Use long double EXPL and LOGL functions to
20153         compute POW.
20154         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
20155         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20156         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
20157         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
20158         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
20159         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
20160
20161         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
20162         intermediate variable to calculate exponent.
20163         (__sqr): Likewise.
20164         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20165         Likewise.
20166         (__sqr): Likewise.
20167
20168         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
20169         [!NO__SQR]: Define __sqr.
20170         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
20171         and NO__SQR.  Remove all code except __mul and __sqr.  Include
20172         sysdeps/ieee754/dbl-64/mpa.c.
20173         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
20174
20175         [BZ #12723]
20176         * posix/Makefile (tests): Add tst-pathconf.
20177         * posix/tst-pathconf.c: New test case.
20178         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
20179         _PC_PIPE_BUF.
20180         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
20181
20182 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
20183
20184         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
20185
20186 2013-03-06  Andreas Jaeger  <aj@suse.de>
20187
20188         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
20189         definition via __MAP_ANONYMOUS.
20190
20191         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20192         it's not part of Linux headers.
20193
20194         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
20195         (MAP_HUGE_MASK): Define.
20196
20197         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20198         Define.
20199         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20200         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20201         Define.
20202         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20203         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
20204         Define.
20205         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20206         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
20207         Define.
20208         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
20209
20210         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
20211         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
20212         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
20213         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
20214         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
20215         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
20216
20217         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20218         Handle f2fs.
20219
20220         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20221         Handle f2fs and efivarfs.
20222
20223         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
20224         f2fs.
20225
20226         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
20227         (EFIVARFS_MAGIC): Add.
20228         (F2FS_LINK_MAX): Add.
20229
20230 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20231
20232         * stdio-common/vfprintf.c: Replace __builtin_expect with
20233         __glibc_unlikely.
20234
20235 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
20236
20237         [BZ #13550]
20238         * sysdeps/generic/bp-sym.h: Remove file.
20239         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
20240         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
20241         <bp-sym.h> and <bp-asm.h>.
20242         (__longjmp): Don't use BP_SYM.
20243         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
20244         and <bp-asm.h>.
20245         (memcpy): Don't use BP_SYM.
20246         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
20247         <bp-sym.h> and <bp-asm.h>.
20248         (memcpy): Don't use BP_SYM.
20249         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
20250         <bp-asm.h>.
20251         (memcpy): Don't use BP_SYM.
20252         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
20253         <bp-asm.h>.
20254         (memset): Don't use BP_SYM.
20255         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20256         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20257         (__bzero): Don't use BP_SYM.
20258         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20259         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20260         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
20261         <bp-sym.h> and <bp-asm.h>.
20262         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20263         pointers.
20264         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
20265         <bp-sym.h> and <bp-asm.h>.
20266         (memcpy): Don't use BP_SYM.
20267         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
20268         <bp-sym.h> and <bp-asm.h>.
20269         (memset): Don't use BP_SYM.
20270         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20271         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20272         (__bzero): Don't use BP_SYM.
20273         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20274         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20275         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
20276         <bp-sym.h> and <bp-asm.h>.
20277         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20278         pointers.
20279         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
20280         <bp-sym.h> and <bp-asm.h>.
20281         (memcpy): Don't use BP_SYM.
20282         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
20283         <bp-sym.h> and <bp-asm.h>.
20284         (memset): Don't use BP_SYM.
20285         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20286         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20287         (__bzero): Don't use BP_SYM.
20288         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20289         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20290         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
20291         <bp-sym.h> and <bp-asm.h>.
20292         (__memchr): Don't use BP_SYM.
20293         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
20294         <bp-sym.h> and <bp-asm.h>.
20295         (memcmp): Don't use BP_SYM.  Remove comment about bounded
20296         pointers.
20297         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
20298         <bp-sym.h> and <bp-asm.h>.
20299         (memcpy): Don't use BP_SYM.
20300         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
20301         <bp-sym.h> and <bp-asm.h>.
20302         (__mempcpy): Don't use BP_SYM.
20303         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
20304         <bp-sym.h> and <bp-asm.h>.
20305         (__memrchr): Don't use BP_SYM.
20306         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
20307         <bp-sym.h> and <bp-asm.h>.
20308         (memset): Don't use BP_SYM.
20309         (__bzero): Likewise.
20310         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
20311         <bp-sym.h> and <bp-asm.h>.
20312         (__rawmemchr): Don't use BP_SYM.
20313         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
20314         <bp-sym.h> and <bp-asm.h>.
20315         (__STRCMP): Don't use BP_SYM.
20316         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
20317         <bp-sym.h> and <bp-asm.h>.
20318         (strchr): Don't use BP_SYM.
20319         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
20320         <bp-sym.h> and <bp-asm.h>.
20321         (__strchrnul): Don't use BP_SYM.
20322         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
20323         <bp-sym.h> and <bp-asm.h>.
20324         (strlen): Don't use BP_SYM.
20325         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
20326         <bp-sym.h> and <bp-asm.h>.
20327         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20328         pointers.
20329         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
20330         <bp-sym.h> and <bp-asm.h>.
20331         (__strnlen): Don't use BP_SYM.
20332         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
20333         <bp-sym.h> and <bp-asm.h>.
20334         (__GI__setjmp): Don't use BP_SYM.
20335         (_setjmp): Likewise.
20336         (__sigsetjmp): Likewise.
20337         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
20338         (L(start_addresses)): Don't use BP_SYM.
20339         (_start): Likewise.
20340         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
20341         <bp-asm.h>.
20342         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
20343         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
20344         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20345         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20346         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
20347         <bp-asm.h>.
20348         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
20349         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
20350         about bounded pointers.
20351         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20352         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20353         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
20354         <bp-asm.h>.
20355         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20356         about bounded pointers.  Remove GKM FIXME comments.
20357         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20358         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
20359         <bp-asm.h>.
20360         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
20361         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
20362         Remove GKM FIXME comments.
20363         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20364         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20365         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
20366         <bp-asm.h>.
20367         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
20368         about bounded pointers.  Remove GKM FIXME comment.
20369         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
20370         and <bp-asm.h>.
20371         (strncmp): Don't use BP_SYM.  Remove comment about bounded
20372         pointers.
20373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
20374         <bp-sym.h> and <bp-asm.h>.
20375         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
20377         <bp-sym.h> and <bp-asm.h>.
20378         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20379         comment.
20380
20381 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20382
20383         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20384         call free(NULL).
20385
20386 2013-03-05  David S. Miller  <davem@davemloft.net>
20387
20388         * po/es.po: Update from translation team.
20389
20390 2013-03-05  Andreas Jaeger  <aj@suse.de>
20391
20392         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20393         <bits/mman-linux.h>.
20394         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20395         is fine.
20396         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20397         <bits/mman-linux.h> to end of file.
20398         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20399         is fine.
20400         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20401         <bits/mman-linux.h> to end of file.
20402         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20403         is fine.
20404         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20405         <bits/mman-linux.h> to end of file.
20406
20407         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20408         (MCL_CURRENT, MCL_FUTURE): Define here.
20409
20410 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20411
20412         [BZ #15232]
20413         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20414         attribute_hidden.
20415         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20416
20417 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20418
20419         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20420         fourth parameter needed for rt_sigprocmask syscall.
20421         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20422         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20423         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20424         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20425         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20426         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20427
20428 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20429
20430         [BZ #13550]
20431         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20432         comment about bounded pointers.
20433         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20434         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20435
20436 2013-03-04  Andreas Jaeger  <aj@suse.de>
20437
20438         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20439         common definitions.
20440
20441         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20442         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20443         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20444         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20445         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20446         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20447
20448 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20449
20450         [BZ #15055]
20451         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20452         __ieee754_sqrl instead of __sqrl.
20453
20454 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20455
20456         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20457         * sysdeps/powerpc/fpu_control.h: ... here.
20458         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20459         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20460         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20461         * sysdeps/powerpc/bits/mathinline.h: ... here.
20462
20463 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20464
20465         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20466         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20467         to just [NEED_DL_SYSINFO_DSO].
20468         * elf/dl-support.c: Likewise.
20469         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20470         * elf/rtld.c (dl_main): Likewise.
20471         * elf/setup-vdso.h (setup_vdso): Likewise.
20472         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20473         * sysdeps/unix/sysv/linux/dl-sysdep.c
20474         (_dl_discover_osversion): Likewise.
20475
20476 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20477
20478         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20479         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20480
20481 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20482
20483         * NEWS: Mention libm performance improvements and non-x86 PI
20484         futex support.
20485
20486         * csu/libc-start.c (__pthread_initialize_minimal): Change
20487         function arguments.
20488         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20489
20490 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20491
20492         [BZ #13550]
20493         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20494         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20495         <bp-sym.h> and <bp-asm.h>.
20496         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20497         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20498         and <bp-asm.h>.
20499         (memcpy): Don't use BP_SYM.
20500         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20501         <bp-asm.h>.
20502         (__mpn_add_n): Don't use BP_SYM.
20503         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20504         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20505         and <bp-asm.h>.
20506         (__mpn_addmul_1): Don't use BP_SYM.
20507         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20508         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20509         <bp-sym.h>.
20510         (_setjmp): Don't use BP_SYM.
20511         (__novmx_setjmp): Likewise.
20512         (__GI__setjmp): Likewise.
20513         (__vmx_setjmp): Likewise.
20514         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20515         <bp-sym.h>.
20516         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20517         (__bzero): Don't use BP_SYM.
20518         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20519         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20520         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20521         <bp-sym.h> and <bp-asm.h>.
20522         (memcpy): Don't use BP_SYM.
20523         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20524         <bp-sym.h> and <bp-asm.h>.
20525         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20526         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20527         <bp-sym.h> and <bp-asm.h>.
20528         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20529         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20530         <bp-asm.h>.
20531         (__mpn_lshift): Don't use BP_SYM.
20532         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20533         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20534         <bp-asm.h>.
20535         (memset): Don't use BP_SYM.
20536         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20537         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20538         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20539         <bp-asm.h>.
20540         (__mpn_mul_1): Don't use BP_SYM.
20541         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20542         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20543         <bp-sym.h> and <bp-asm.h>.
20544         (memcmp): Don't use BP_SYM.
20545         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20546         <bp-sym.h> and <bp-asm.h>.
20547         (memcpy): Don't use BP_SYM.
20548         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20549         <bp-sym.h> and <bp-asm.h>.
20550         (memset): Don't use BP_SYM.
20551         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20552         <bp-sym.h> and <bp-asm.h>.
20553         (strncmp): Don't use BP_SYM.
20554         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20555         <bp-sym.h> and <bp-asm.h>.
20556         (memcpy): Don't use BP_SYM.
20557         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20558         <bp-sym.h> and <bp-asm.h>.
20559         (memset): Don't use BP_SYM.
20560         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20561         <bp-sym.h> and <bp-asm.h>.
20562         (__memchr): Don't use BP_SYM.
20563         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20564         <bp-sym.h> and <bp-asm.h>.
20565         (memcmp): Don't use BP_SYM.
20566         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20567         <bp-sym.h> and <bp-asm.h>.
20568         (memcpy): Don't use BP_SYM.
20569         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20570         <bp-sym.h> and <bp-asm.h>.
20571         (__mempcpy): Don't use BP_SYM.
20572         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20573         <bp-sym.h> and <bp-asm.h>.
20574         (__memrchr): Don't use BP_SYM.
20575         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20576         <bp-sym.h> and <bp-asm.h>.
20577         (memset): Don't use BP_SYM.
20578         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20579         <bp-sym.h> and <bp-asm.h>.
20580         (__rawmemchr): Don't use BP_SYM.
20581         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20582         <bp-sym.h> and <bp-asm.h>.
20583         (__STRCMP): Don't use BP_SYM.
20584         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20585         <bp-sym.h> and <bp-asm.h>.
20586         (strchr): Don't use BP_SYM.
20587         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20588         <bp-sym.h> and <bp-asm.h>.
20589         (__strchrnul): Don't use BP_SYM.
20590         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20591         <bp-sym.h> and <bp-asm.h>.
20592         (strlen): Don't use BP_SYM.
20593         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20594         <bp-sym.h> and <bp-asm.h>.
20595         (strncmp): Don't use BP_SYM.
20596         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20597         <bp-sym.h> and <bp-asm.h>.
20598         (__strnlen): Don't use BP_SYM.
20599         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20600         <bp-asm.h>.
20601         (__mpn_rshift): Don't use BP_SYM.
20602         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20603         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20604         <bp-sym.h> and <bp-asm.h>.
20605         (__sigsetjmp): Don't use BP_SYM.
20606         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20607         (L(start_addresses)): Don't use BP_SYM.
20608         (_start): Likewise.
20609         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20610         <bp-asm.h>.
20611         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20612         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20613         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20614         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20615         <bp-asm.h>.
20616         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20617         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20618         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20619         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20620         <bp-asm.h>.
20621         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20622         comments.
20623         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20624         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20625         <bp-asm.h>.
20626         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20627         FIXME comments.
20628         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20629         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20630         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20631         <bp-asm.h>.
20632         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20633         comment.
20634         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20635         and <bp-asm.h>.
20636         (strncmp): Don't use BP_SYM,
20637         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20638         <bp-asm.h>.
20639         (__mpn_sub_n): Don't use BP_SYM.
20640         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20641         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20642         and <bp-asm.h>.
20643         (__mpn_submul_1): Don't use BP_SYM.
20644         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20646         <bp-sym.h> and <bp-asm.h>.
20647         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20649         <bp-sym.h> and <bp-asm.h>.
20650         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20651         comment.
20652
20653 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20654
20655         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20656         Use ZK to minimize writes to Z.
20657         (sub_magnitudes): Simplify code a bit.
20658         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20659         Use ZK to minimize writes to Z.
20660         (sub_magnitudes): Simplify code a bit.
20661
20662 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20663
20664         * csu/gmon-start.c: Add special exception to license text.
20665
20666 2013-02-27  Richard Henderson  <rth@redhat.com>
20667
20668         * scripts/config.guess: Update from config.git.
20669         * scripts/config.sub: Likewise.
20670
20671 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20672
20673         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20674
20675         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20676
20677         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20678
20679         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20680
20681         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20682
20683 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20684
20685         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20686         [$(build-shared = yes].
20687
20688 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20689
20690         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20691         (__mul): Reduce iterations for calculating mantissa.
20692
20693         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20694         MPTWO.
20695         (__mpranred): Likewise.
20696
20697         [BZ #15160]
20698         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20699         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20700
20701 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20702
20703         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20704         Define __attribute__.
20705
20706 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20707
20708         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
20709         unused.
20710         * posix/regex_internal.h (__attribute): Remove.
20711         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
20712         (re_string_context_at): Likewise.
20713         (bitset_not): Use __attribute__ and mark function as possibly
20714         unused.
20715         (bitset_merge): Likewise.
20716         (bitset_mask): Likewise.
20717         (re_string_char_size_at): Likewise.
20718         (re_string_wchar_at): Likewise.
20719         (re_string_elem_size_at): Likewise.
20720
20721 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20722
20723         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
20724         code.
20725         (cc32): Likewise.
20726
20727         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
20728         (__acr): Likewise.
20729         (__cpy): Likewise.
20730         (norm): Likewise.
20731         (denorm): Likewise.
20732         (__dbl_mp): Likewise.
20733         (add_magnitudes): Likewise.
20734         (sub_magnitudes): Likewise.
20735         (__mul): Likewise.
20736         (__inv): Likewise.
20737
20738         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
20739         style.
20740
20741         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
20742         style.
20743
20744         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
20745         code.
20746
20747         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
20748         up changes with default code.
20749         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
20750         Likewise.
20751
20752 2013-02-24  Allan McRae  <allan@archlinux.org>
20753
20754         * manual/socket.texi (The Internet Namespace): Order menu items
20755         to match that in the file.
20756
20757         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
20758         node listing of the info page menu.
20759
20760 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
20761
20762         [BZ #13550]
20763         * sysdeps/i386/bp-asm.h: Remove file.
20764         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20765         (PARMS): Do not use macros from bp-asm.h.
20766         (S1): Likewise.
20767         (S2): Likewise.
20768         (SIZE): Likewise.
20769         (__mpn_add_n): Do not use BP_SYM
20770         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
20771         "bp-asm.h".
20772         (PARMS): Do not use macros from bp-asm.h.
20773         (S1): Likewise.
20774         (SIZE): Likewise.
20775         (__mpn_addmul_1): Do not use BP_SYM
20776         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
20777         "bp-asm.h".
20778         (PARMS): Do not use macros from bp-asm.h.
20779         (SIGMSK): Likewise.
20780         (_setjmp): Likewise.  Do not use BP_SYM.
20781         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
20782         "bp-asm.h".
20783         (PARMS): Do not use macros from bp-asm.h.
20784         (SIGMSK): Likewise.
20785         (setjmp): Likewise.  Do not use BP_SYM.
20786         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
20787         "bp-asm.h".
20788         (PARMS): Do not use macros from bp-asm.h.
20789         (__frexp): Do not use BP_SYM.
20790         (frexp): Likewise.
20791         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
20792         "bp-asm.h".
20793         (PARMS): Do not use macros from bp-asm.h.
20794         (__frexpf): Do not use BP_SYM.
20795         (frexpf): Likewise.
20796         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
20797         "bp-asm.h".
20798         (PARMS): Do not use macros from bp-asm.h.
20799         (__frexpl): Do not use BP_SYM.
20800         (frexpl): Likewise.
20801         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
20802         "bp-asm.h".
20803         (PARMS): Do not use macros from bp-asm.h.
20804         (__remquo): Do not use BP_SYM.
20805         (remquo): Likewise.
20806         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
20807         "bp-asm.h".
20808         (PARMS): Do not use macros from bp-asm.h.
20809         (__remquof): Do not use BP_SYM.
20810         (remquof): Likewise.
20811         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
20812         "bp-asm.h".
20813         (PARMS): Do not use macros from bp-asm.h.
20814         (__remquol): Do not use BP_SYM.
20815         (remquol): Likewise.
20816         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
20817         "bp-asm.h".
20818         (PARMS): Do not use macros from bp-asm.h.
20819         (DEST): Likewise.
20820         (SRC): Likewise.
20821         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
20822         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
20823         "bp-asm.h".
20824         (PARMS): Do not use macros from bp-asm.h.
20825         (strlen): Do not use BP_SYM.
20826         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
20827         "bp-asm.h".
20828         (PARMS): Do not use macros from bp-asm.h.
20829         (S1): Likewise.
20830         (S2): Likewise.
20831         (SIZE): Likewise.
20832         (__mpn_add_n): Do not use BP_SYM.
20833         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
20834         "bp-asm.h".
20835         (PARMS): Do not use macros from bp-asm.h.
20836         (S1): Likewise.
20837         (SIZE): Likewise.
20838         (__mpn_addmul_1): Do not use BP_SYM.
20839         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
20840         weak_alias.
20841         (bzero): Likewise.
20842         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
20843         "bp-asm.h".
20844         (PARMS): Do not use macros from bp-asm.h.
20845         (S): Likewise.
20846         (SIZE): Likewise.
20847         (__mpn_lshift): Do not use BP_SYM.
20848         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
20849         "bp-asm.h".
20850         (PARMS): Do not use macros from bp-asm.h.
20851         (DEST): Likewise.
20852         (SRC): Likewise.
20853         (LEN): Likewise.
20854         (memcpy): Likewise.  Do not use BP_SYM.
20855         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
20856         libc_hidden_def and weak_alias.
20857         (mempcpy): Do not use BP_SYM in weak_alias.
20858         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
20859         "bp-asm.h".
20860         (PARMS): Do not use macros from bp-asm.h.
20861         (DEST): Likewise.
20862         (LEN): Likewise.
20863         [!BZERO_P] (CHR): Likewise.
20864         (memset): Likewise.  Do not use BP_SYM.
20865         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
20866         "bp-asm.h".
20867         (PARMS): Do not use macros from bp-asm.h.
20868         (S1): Likewise.
20869         (SIZE): Likewise.
20870         (__mpn_mul_1): Do not use BP_SYM.
20871         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
20872         "bp-asm.h".
20873         (PARMS): Do not use macros from bp-asm.h.
20874         (S): Likewise.
20875         (SIZE): Likewise.
20876         (__mpn_rshift): Do not use BP_SYM.
20877         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
20878         "bp-asm.h".
20879         (PARMS): Do not use macros from bp-asm.h.
20880         (STR): Likewise.
20881         (CHR): Likewise.
20882         (strchr): Likewise.  Do not use BP_SYM.
20883         (index): Do not use BP_SYM in weak_alias.
20884         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
20885         "bp-asm.h".
20886         (PARMS): Do not use macros from bp-asm.h.
20887         (DEST): Likewise.
20888         (SRC): Likewise.
20889         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
20890         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
20891         "bp-asm.h".
20892         (PARMS): Do not use macros from bp-asm.h.
20893         (strlen): Do not use BP_SYM.
20894         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
20895         "bp-asm.h".
20896         (PARMS): Do not use macros from bp-asm.h.
20897         (S1): Likewise.
20898         (S2): Likewise.
20899         (SIZE): Likewise.
20900         (__mpn_sub_n): Do not use BP_SYM.
20901         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
20902         "bp-asm.h".
20903         (PARMS): Do not use macros from bp-asm.h.
20904         (S1): Likewise.
20905         (SIZE): Likewise.
20906         (__mpn_submul_1): Do not use BP_SYM.
20907         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
20908         "bp-asm.h".
20909         (PARMS): Do not use macros from bp-asm.h.
20910         (S1): Likewise.
20911         (S2): Likewise.
20912         (SIZE): Likewise.
20913         (__mpn_add_n): Do not use BP_SYM.
20914         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
20915         weak_alias.
20916         (bzero): Likewise.
20917         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
20918         "bp-asm.h".
20919         (PARMS): Do not use macros from bp-asm.h.
20920         (BLK2): Likewise.
20921         (LEN): Likewise.
20922         (memcmp): Do not use BP_SYM.
20923         (bcmp): Do not use BP_SYM in weak_alias.
20924         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
20925         "bp-asm.h".
20926         (PARMS): Do not use macros from bp-asm.h.
20927         (DEST): Likewise.
20928         (SRC): Likewise.
20929         (LEN): Likewise.
20930         (memcpy): Likewise.  Do not use BP_SYM.
20931         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
20932         "bp-asm.h".
20933         (PARMS): Do not use macros from bp-asm.h.
20934         (DEST): Likewise.
20935         (SRC): Likewise.
20936         (LEN): Likewise.
20937         (memmove): Likewise.  Do not use BP_SYM.
20938         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
20939         "bp-asm.h".
20940         (PARMS): Do not use macros from bp-asm.h.
20941         (DEST): Likewise.
20942         (SRC): Likewise.
20943         (LEN): Likewise.
20944         (__mempcpy): Likewise.  Do not use BP_SYM.
20945         (mempcpy): Do not use BP_SYM in weak_alias.
20946         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
20947         "bp-asm.h".
20948         (PARMS): Do not use macros from bp-asm.h.
20949         (DEST): Likewise.
20950         (LEN): Likewise.
20951         [!BZERO_P] (CHR): Likewise.
20952         (memset): Likewise.  Do not use BP_SYM.
20953         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
20954         "bp-asm.h".
20955         (PARMS): Do not use macros from bp-asm.h.
20956         (STR2): Likewise.
20957         (strcmp): Do not use BP_SYM.
20958         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
20959         "bp-asm.h".
20960         (PARMS): Do not use macros from bp-asm.h.
20961         (STR): Likewise.
20962         (DELIM): Likewise.
20963         [USE_AS_STRTOK_R] (SAVE): Likewise.
20964         (FUNCTION): Likewise.  Do not use BP_SYM.
20965         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
20966         aliases.
20967         (strtok_r): Likewise.
20968         (__GI___strtok_r): Likewise.
20969         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20970         (PARMS): Do not use macros from bp-asm.h.
20971         (S): Likewise.
20972         (SIZE): Likewise.
20973         (__mpn_lshift): Do not use BP_SYM.
20974         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20975         (PARMS): Do not use macros from bp-asm.h.
20976         (STR): Likewise.
20977         (CHR): Likewise.
20978         (__memchr): Do not use BP_SYM.
20979         (memchr): Do not use BP_SYM in weak_alias.
20980         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20981         (PARMS): Do not use macros from bp-asm.h.
20982         (BLK2): Likewise.
20983         (LEN): Likewise.
20984         (memcmp): Do not use BP_SYM.
20985         (bcmp): Do not use BP_SYM in weak_alias.
20986         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
20987         (PARMS): Do not use macros from bp-asm.h.
20988         (S1): Likewise.
20989         (SIZE): Likewise.
20990         (__mpn_mul_1): Do not use BP_SYM.
20991         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
20992         "bp-asm.h".
20993         (PARMS): Do not use macros from bp-asm.h.
20994         (STR): Likewise.
20995         (CHR): Likewise.
20996         (__rawmemchr): Do not use BP_SYM.
20997         (rawmemchr): Do not use BP_SYM in weak_alias.
20998         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20999         (PARMS): Do not use macros from bp-asm.h.
21000         (S): Likewise.
21001         (SIZE): Likewise.
21002         (__mpn_rshift): Do not use BP_SYM.
21003         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21004         (PARMS): Do not use macros from bp-asm.h.
21005         (SIGMSK): Likewise.
21006         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21007         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21008         (_start): Do not use BP_SYM.
21009         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21010         (PARMS): Do not use macros from bp-asm.h.
21011         (DEST): Likewise.
21012         (SRC): Likewise.
21013         (__stpcpy): Likewise.  Do not use BP_SYM.
21014         (stpcpy): Do not use BP_SYM in weak_alias.
21015         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
21016         "bp-asm.h".
21017         (PARMS): Do not use macros from bp-asm.h.
21018         (DEST): Likewise.
21019         (SRC): Likewise.
21020         (LEN): Likewise.
21021         (__stpncpy): Likewise.  Do not use BP_SYM.
21022         (stpncpy): Do not use BP_SYM in weak_alias.
21023         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21024         (PARMS): Do not use macros from bp-asm.h.
21025         (STR): Likewise.
21026         (CHR): Likewise.
21027         (strchr): Likewise.  Do not use BP_SYM.
21028         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
21029         "bp-asm.h".
21030         (PARMS): Do not use macros from bp-asm.h.
21031         (STR): Likewise.
21032         (CHR): Likewise.
21033         (__strchrnul): Likewise.  Do not use BP_SYM.
21034         (strchrnul): Do not use BP_SYM in weak_alias.
21035         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
21036         "bp-asm.h".
21037         (PARMS): Do not use macros from bp-asm.h.
21038         (STOP): Likewise.
21039         (strcspn): Do not use BP_SYM.
21040         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
21041         "bp-asm.h".
21042         (PARMS): Do not use macros from bp-asm.h.
21043         (STR): Likewise.
21044         (STOP): Likewise.
21045         (strpbrk): Likewise.  Do not use BP_SYM.
21046         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
21047         "bp-asm.h".
21048         (PARMS): Do not use macros from bp-asm.h.
21049         (STR): Likewise.
21050         (CHR): Likewise.
21051         (strrchr): Likewise.  Do not use BP_SYM.
21052         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
21053         (PARMS): Do not use macros from bp-asm.h.
21054         (SKIP): Likewise.
21055         (strspn): Do not use BP_SYM.
21056         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
21057         (PARMS): Do not use macros from bp-asm.h.
21058         (STR): Likewise.
21059         (DELIM): Likewise.
21060         (SAVE): Likewise.
21061         (FUNCTION): Likewise.  Do not use BP_SYM.
21062         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
21063         aliases.
21064         (strtok_r): Likewise.
21065         (__GI___strtok_r): Likewise.
21066         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21067         (PARMS): Do not use macros from bp-asm.h.
21068         (S1): Likewise.
21069         (S2): Likewise.
21070         (SIZE): Likewise.
21071         (__mpn_sub_n): Do not use BP_SYM.
21072         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
21073         "bp-asm.h".
21074         (PARMS): Do not use macros from bp-asm.h.
21075         (S1): Likewise.
21076         (SIZE): Likewise.
21077         (__mpn_submul_1): Do not use BP_SYM.
21078         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
21079         <bp-sym.h>.
21080         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
21081         and <bp-asm.h>.
21082         (PARMS): Do not use macros from bp-asm.h.
21083         (FLAGS): Likewise.
21084         (PTID): Likewise.
21085         (TLS): Likewise.
21086         (CTID): Likewise.
21087         (__clone): Do not use BP_SYM.
21088         (clone): Do not use BP_SYM in weak_alias.
21089         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
21090         and <bp-asm.h>.
21091         (PARMS): Do not use macros from bp-asm.h.
21092         (LEN): Likewise.
21093         (__mmap64): Do not use BP_SYM.
21094         (mmap64): Do not use BP_SYM in weak_alias.
21095         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
21096         <bp-sym.h> and <bp-asm.h>.
21097         (PARMS): Do not use macros from bp-asm.h.
21098         (__posix_fadvise64_l64): Do not use BP_SYM.
21099         * sysdeps/unix/sysv/linux/i386/semtimedop.S
21100         (PARMS): Do not use macros from bp-asm.h.
21101         (NSOPS): Likewise.
21102         (semtimedop): Do not use BP_SYM.
21103         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
21104         and <bp-asm.h>.
21105
21106 2013-02-21  Allan McRae  <allan@archlinux.org>
21107
21108         * manual/message.texi (Charset conversion in gettext):
21109         Move @end statement to beginning of line.
21110
21111 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21112
21113         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
21114         static.
21115         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
21116         Likewise.
21117
21118         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
21119         (denorm): Likewise.
21120         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
21121         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
21122
21123 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21124
21125         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
21126         tail-call to the resolved function if pltexit isn't needed.
21127
21128 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21129
21130         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
21131         or Y being zero as being unlikely.
21132         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21133         Likewise.
21134
21135 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
21136
21137         * manual/nss.texi (System Databases and Name Service Switch):
21138         Remove frobnicate @pxref.
21139
21140 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21141
21142         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21143         __attribute__ ((unused)) to __attribute__ ((__unused__)).
21144
21145 2013-02-20  Petr Machata  <pmachata@redhat.com>
21146
21147         * elf/elf.h (R_ARM_TARGET1): New macro.
21148         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
21149         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
21150         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
21151         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
21152         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
21153         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
21154         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
21155         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
21156         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
21157         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
21158         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
21159         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
21160         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
21161         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
21162         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
21163         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
21164         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
21165         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
21166         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
21167         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
21168         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
21169         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
21170         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
21171         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
21172         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
21173         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
21174         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
21175         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
21176         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
21177         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
21178         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
21179         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
21180         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
21181         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
21182         (R_ARM_THM_GOT_BREL12): Likewise.
21183         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
21184         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
21185         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
21186         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
21187         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
21188         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
21189         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
21190         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
21191         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
21192
21193 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
21194
21195         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
21196         __attribute_used__ to __attribute__ ((unused)).
21197
21198 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21199
21200         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
21201         powerpc mpa.c.
21202         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
21203         comment formatting.
21204         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
21205
21206 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
21207
21208         [BZ #13550]
21209         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
21210         Remove macro.
21211         (ENTER): Remove both macro definitions.
21212         (LEAVE): Likewise.
21213         (CHECK_BOUNDS_LOW): Likewise.
21214         (CHECK_BOUNDS_HIGH): Likewise.
21215         (CHECK_BOUNDS_BOTH): Likewise.
21216         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
21217         (RETURN_BOUNDED_POINTER): Likewise.
21218         (RETURN_NULL_BOUNDED_POINTER): Likewise.
21219         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
21220         (POP_ERRNO_LOCATION_RETURN): Likewise.
21221         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
21222         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21223         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
21224         macros.
21225         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21226         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
21227         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
21228         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
21229         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
21230         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
21231         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
21232         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
21233         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
21234         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
21235         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
21236         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
21237         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21238         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
21239         removed macros.
21240         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21241         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
21242         macros.
21243         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21244         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
21245         * sysdeps/i386/i586/memset.S (memset): Likewise.
21246         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
21247         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21248         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
21249         macros.
21250         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21251         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
21252         Change uses of L(2) to L(out).
21253         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
21254         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
21255         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
21256         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21257         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
21258         removed macros.
21259         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21260         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
21261         macros.
21262         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21263         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
21264         (RETURN): Do not use macro LEAVE.
21265         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
21266         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
21267         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
21268         * sysdeps/i386/i686/memset.S (memset): Likewise.
21269         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
21270         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
21271         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21272         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
21273         Likewise.
21274         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21275         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
21276         L(1_2) and L(1_3) into L(1).
21277         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21278         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
21279         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21280         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
21281         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21282         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
21283         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
21284         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21285         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
21286         macros.
21287         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
21288         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21289         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
21290         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
21291         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
21292         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21293         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
21294         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
21295         * sysdeps/i386/strcspn.S (strcspn): Likewise.
21296         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
21297         * sysdeps/i386/strrchr.S (strrchr): Likewise.
21298         * sysdeps/i386/strspn.S (strspn): Likewise.
21299         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
21300         conditional code.
21301         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21302         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
21303         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
21304         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
21305         L(1_3) into L(1_1).
21306         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
21307         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21308         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
21309         macros.
21310         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21311
21312 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
21313
21314         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
21315         macro.
21316
21317 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21318
21319         * math/atest-exp.c (exp_mpn): Remove ROUND.
21320         * math/atest-exp2.c (exp_mpn): Likewise.
21321         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
21322
21323         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
21324         * stdlib/tst-tls-atexit-lib.c: Likewise.
21325         * stdlib/tst-tls-atexit.c: Likewise.
21326
21327 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21328
21329         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
21330         and __attribute_alloc_size__.
21331
21332 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21333
21334         * include/programs/xmalloc.h: Change __attribute_alloc_size to
21335         __attribute_alloc_size__.
21336         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
21337         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
21338
21339 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
21340
21341         * include/programs/xmalloc.h: New file.
21342         * catgets/gencat.c: Include it.
21343         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
21344         * elf/pldd.c: Likewise.
21345         * iconv/iconv_charmap.c: Likewise.
21346         * iconv/iconvconfig.c: Likewise.
21347         * iconv/strtab.c: Likewise.
21348         * locale/programs/locale.c: Likewise.
21349         * locale/programs/localedef.h: Likewise.
21350         * locale/programs/simple-hash.c: Likewise.
21351         * nscd/nscd.h: Likewise.
21352         * nss/makedb.c: Likewise.
21353         * sysdeps/generic/ldconfig.h: Likewise.
21354
21355 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21356
21357         * Versions.def: Add GLIBC_2.18.
21358         * include/link.h (struct link_map): New member l_tls_dtor_count.
21359         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
21360         (__call_tls_dtors): Likewise.
21361         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
21362         __cxa_thread_atexit_impl.
21363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
21364         Likewise.
21365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
21366         Likewise.
21367         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
21368         Likewise.
21369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
21370         Likewise.
21371         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
21372         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
21373         Likewise.
21374         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
21375         Likewise.
21376         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
21377         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
21378         Likewise.
21379         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
21380         (tests): Add test case tst-tls-atexit.
21381         (modules-names): Add shared library for tst-tls-atexit.
21382         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21383         (GLIBC_PRIVATE): Add __call_tls_dtors.
21384         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21385         for libstdc++.
21386         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21387         * stdlib/tst-tls-atexit.c: New test case.
21388         * stdlib/tst-tls-atexit-lib.c: New test case.
21389
21390         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21391
21392         * elf/Versions (ld): Add _dl_find_dso_for_object.
21393         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21394         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21395         (dl_open_worker): Use _dl_find_dso_for_object.
21396         * elf/dl-sym.c (do_sym): Likewise.
21397         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21398
21399 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21400
21401         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21402         Syntactic changes only.
21403         (_dl_runtime_profile): Do a tail-call to the resolved function.
21404
21405 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21406
21407         [BZ #13550]
21408         * sysdeps/x86_64/bp-asm.h: Remove file.
21409         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21410         <bp-sym.h> and <bp-asm.h>.
21411         (__clone): Do not use BP_SYM.
21412         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21413         <bp-sym.h> and <bp-asm.h>.
21414         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21415         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21416         "bp-asm.h".
21417         (_setjmp): Do not use BP_SYM.
21418         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21419         "bp-asm.h".
21420         (setjmp): Do not use BP_SYM.
21421         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21422         libc_hidden_def.
21423         (mempcpy): Do not use BP_SYM in weak_alias.
21424         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21425         "bp-asm.h".
21426         (strchr): Do not use BP_SYM.
21427         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21428         "bp-asm.h".
21429         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21430         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21431         (_start): Do not use BP_SYM.
21432         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21433         "bp-asm.h".
21434         (strcat): Do not use BP_SYM.
21435         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21436         "bp-asm.h".
21437         (STRCMP): Do not use BP_SYM.
21438         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21439         "bp-asm.h".
21440         (STRCPY): Do not use BP_SYM.
21441         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21442         "bp-asm.h".
21443         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21444         "bp-asm.h".
21445         (FUNCTION): Do not use BP_SYM.
21446         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21447         weak_alias.
21448         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21449
21450 2013-02-17  Andreas Jaeger  <aj@suse.de>
21451
21452         * time/Versions: Sort entries.
21453         * string/Versions: Likewise.
21454         * resolv/Versions: Likewise.
21455         * posix/Versions: Likewise.
21456         * iconv/Versions: Likewise.
21457         * elf/Versions: Likewise.
21458         * wcsmbs/Versions: Likewise.
21459
21460 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21461
21462         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21463         loop termination condition.
21464
21465         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21466         variable to calculate EZ.
21467         (__sqr): Likewise.
21468
21469         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21470         the lower precision input.
21471
21472 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21473
21474         [BZ #13550]
21475         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21476         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21477         (run-via-rtld-prefix): Do not handle %-bp tests.
21478         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21479         (all-object-suffixes): Remove .ob.
21480         (bppfx): Remove variable.
21481         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21482         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21483         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21484         [$(build-bounded) = yes] (libtype.ob): Likewise.
21485         * Makerules (elide-routines.ob): Remove variable.
21486         (do-tests-clean): Do not handle *-bp.out.
21487         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21488         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21489         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21490         (tests): Do not include $(tests-bp.out).
21491         (xtests): Do not include $(xtests-bp.out).
21492         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21493         [$(build-bounded) = yes] ($(addprefix
21494         $(objpfx),$(binaries-bounded))): Remove rule.
21495         ($(objpfx)%-bp.out): Remove rule.
21496         * config.make.in (build-bounded): Remove variable.
21497         * crypt/Makefile [$(build-bounded) = yes]
21498         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21499         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21500         append to variable.
21501         [$(build-bounded) = yes] (install-lib): Likewise.
21502         [$(build-bounded) = yes] (generated): Likewise.
21503         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21504         Remove rule.
21505         * intl/Makefile [$(build-bounded) = yes]
21506         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21507         * math/Makefile [$(build-bounded) = yes]
21508         ($(tests:%=$(objpfx)%-bp): Likewise.
21509         * misc/Makefile [$(build-bounded) = yes]
21510         ($(objpfx)tst-tsearch-bp): Likewise.
21511         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21512         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21513         Remove dependency.
21514         * string/Makefile (o-objects.ob): Remove variable.
21515         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21516         (CFLAGS-.ob): Remove variable.
21517         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21518         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21519         both definitions of variable.
21520         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21521         (ASFLAGS-.ob): Remove variable.
21522
21523 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21524
21525         [BZ #13550]
21526         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21527         Remove __BOUNDED_POINTERS__ from condition.
21528         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21529         * string/bits/string2.h [!__NO_STRING_INLINES &&
21530         !__BOUNDED_POINTERS__]: Likewise.
21531         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21532         Likewise.
21533         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21534         Remove conditional code.
21535         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21536         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21537         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21538         condition.
21539
21540         [BZ #13550]
21541         * csu/libc-start.c: Do not include <bp-sym.h>.
21542         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21543         * elf/dl-open.c: Do not include <bp-sym.h>.
21544         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21545         * math/fegetenv.c: Do not include <bp-sym.h>.
21546         (fegetenv): Do not use BP_SYM in versioned symbols.
21547         * nptl/sysdeps/pthread/bits/libc-lockP.h
21548         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21549         <bp-sym.h>.
21550         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21551         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21552         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21553         (__pthread_mutex_destroy): Likewise.
21554         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21555         (__pthread_mutex_lock): Likewise.
21556         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21557         (__pthread_mutex_trylock): Likewise.
21558         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21559         (__pthread_mutex_unlock): Likewise.
21560         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21561         (__pthread_mutexattr_init): Likewise.
21562         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21563         (__pthread_mutexattr_destroy): Likewise.
21564         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21565         (__pthread_mutexattr_settype): Likewise.
21566         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21567         (__pthread_rwlock_init): Likewise.
21568         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21569         (__pthread_rwlock_destroy): Likewise.
21570         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21571         (__pthread_rwlock_rdlock): Likewise.
21572         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21573         (__pthread_rwlock_tryrdlock): Likewise.
21574         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21575         (__pthread_rwlock_wrlock): Likewise.
21576         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21577         (__pthread_rwlock_trywrlock): Likewise.
21578         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21579         (__pthread_rwlock_unlock): Likewise.
21580         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21581         (__pthread_key_create): Likewise.
21582         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21583         (__pthread_setspecific): Likewise.
21584         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21585         (__pthread_getspecific): Likewise.
21586         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21587         Likewise.
21588         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21589         (_pthread_cleanup_push_defer): Likewise.
21590         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21591         (_pthread_cleanup_pop_restore): Likewise.
21592         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21593         (pthread_setcancelstate): Likewise.
21594         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21595         <bp-sym.h>.
21596         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21597         (memchr): Do not use BP_SYM in weak_alias.
21598         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21599         (fegetenv): Do not use BP_SYM in versioned symbols.
21600         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21601         (fesetenv): Do not use BP_SYM in versioned symbols.
21602         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21603         (feupdateenv): Do not use BP_SYM in versioned symbols.
21604         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21605         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21606         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21607         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21608         (open64): Do not use BP_SYM in weak_alias.
21609         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21610         (fegetenv): Do not use BP_SYM in versioned symbols.
21611         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21612         (fesetenv): Do not use BP_SYM in versioned symbols.
21613         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21614         (feupdateenv): Do not use BP_SYM in versioned symbols.
21615         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21616         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21617         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21618         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21619         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21620         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21621         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21622         <bp-sym.h>.
21623         (__libc_start_main): Do not use BP_SYM.
21624
21625 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21626
21627         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21628         redundant return line.
21629         (norm): Likewise.
21630         (denorm): Likewise.
21631         (dbl_mp): Likewise.
21632         (sub_magnitudes): Likewise.
21633         (__add): Likewise.
21634         (__sub): Likewise.
21635         (__mul): Likewise.
21636         (__inv): Likewise.
21637         (__dvd): Likewise.
21638         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21639         (norm): Likewise.
21640         (denorm): Likewise.
21641         (dbl_mp): Likewise.
21642         (sub_magnitudes): Likewise.
21643         (__add): Likewise.
21644         (__sub): Likewise.
21645         (__mul): Likewise.
21646         (__inv): Likewise.
21647         (__dvd): Likewise.
21648
21649         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21650         instead of __mul.
21651         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21652         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21653         (cc32): Likewise.
21654
21655         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21656         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21657         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21658         of __mul for squares.
21659         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21660         function
21661         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21662         Likewise.
21663         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21664         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21665
21666 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21667
21668         [BZ #13550]
21669         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21670         code.
21671         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21672         prototype or function definition.  Rename ubp_* variables and
21673         parameters.  Remove argv definitions conditional on
21674         [__BOUNDED_POINTERS__].
21675         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21676         * elf/dl-runtime.c (_dl_fixup): Likewise.
21677         * include/set-hooks.h (RUN_HOOK): Likewise.
21678         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21679         definition.
21680         * string/strcpy.c (strcpy): Do not use __unbounded.
21681         * sysdeps/generic/frame.h (struct layout): Likewise.
21682         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21683         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21684         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21685         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21686         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21687         (__backtrace): Likewise.
21688         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21689         use __ptrvalue.
21690         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21691         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21692         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21693         Likewise.
21694         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21695         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21696         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21697         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21698         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21699         Do not use __unbounded.
21700         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21701         Rename __unboundedrlimits parameter to rlimits in prototype.
21702         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21703         Do not use __unbounded.
21704         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21705         not use __ptrvalue.
21706         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21707         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
21708         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21709         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
21710         __ptrvalue or __unbounded.
21711         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
21712         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
21713         use __unbounded.
21714         (__new_msgctl): Do not use __ptrvalue.
21715         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
21716         __unbounded.
21717         (__libc_msgrcv): Do not use __ptrvalue.
21718         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
21719         startup_info): Do not use __unbounded.
21720         (__libc_start_main): Likewise.  Rename ubp_* variables and
21721         parameters.  Remove argv definitions conditional on
21722         [__BOUNDED_POINTERS__].
21723         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
21724         __ptrvalue.
21725         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
21726         use __unbounded.
21727         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
21728         or __ptrvalue.
21729         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
21730         use __unbounded.
21731         (__new_shmctl): Do not use __ptrvalue.
21732         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21733         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21734         Likewise.
21735         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21736         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
21737         (__libc_sigaction): Likewise.
21738         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
21739         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
21740         Likewise.
21741         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21742
21743 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
21744
21745         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
21746
21747         * string/mempcpy.c: Implement by calling memcpy.
21748
21749 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
21750
21751         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
21752
21753         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
21754         evaluation.
21755
21756         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
21757         values in the mantissa.
21758
21759         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
21760         minimize writes to Z.
21761         (sub_magnitudes): Simplify code a bit.
21762
21763 2013-02-12  Roland McGrath  <roland@hack.frob.com>
21764
21765         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
21766         from the message.  The linker prefixes all warnings with that already.
21767
21768 2013-02-12  Andreas Schwab  <schwab@suse.de>
21769
21770         [BZ #15078]
21771         * posix/regexec.c (extend_buffers): Add parameter min_len.
21772         (check_matching): Pass minimum needed length.
21773         (clean_state_log_if_needed): Likewise.
21774         (get_subexp): Likewise.
21775         * posix/Makefile (tests): Add bug-regex34.
21776         (bug-regex34-ENV): Define.
21777         * posix/bug-regex34.c: New file.
21778
21779         [BZ #11561]
21780         * posix/regcomp.c (parse_bracket_exp): When looking up collating
21781         elements compare against the byte sequence of it, not its name.
21782         * posix/Makefile (tests): Add bug-regex35.
21783         (bug-regex35-ENV): Define.
21784         * posix/bug-regex35.c: New file.
21785
21786 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21787
21788         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
21789         comment.
21790         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
21791         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
21792         (CHECK_EOL): Add undef.
21793
21794 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
21795
21796         * bits/stdlib-bsearch.h: New file.
21797         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
21798         * stdlib/stdlib.h: Likewise.
21799
21800 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21801
21802         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
21803         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
21804         declaration.
21805         * manual/search.texi (Array Search Function): Add missing const in
21806         lfind prototype.
21807         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
21808         declaration to use rlim_t.
21809         (Basic Scheduling Functions): Remove erroneous const from
21810         sched_getparam prototype.  Remove erroneous * from
21811         sched_get_priority_max and sched_get_priority_min prototypes.
21812         (Resource Usage): Fix summary @comment on vtimes to refer to
21813         sys/vtimes.h rather than vtimes.h.
21814         Add missing *s in vtimes prototype.
21815         (Limits on Resources): Fix ulimit prototype to return long int.
21816         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
21817         prototypes to use long int rather than double.
21818         (BSD Random): Fix initstate and setstate to use char *, not void *.
21819         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
21820         prototype to make second argument 'struct aiocb64 *const[]'.
21821         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
21822         (Status of AIO Operations): Remove erroneous const in aio_return and
21823         aio_return64 prototypes.
21824         (Synchronizing I/O): Fix sync prototype to return void.
21825         * manual/startup.texi (Suboptions): Remove an erroneous const in
21826         getsubopt prototype.
21827         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
21828         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
21829         use size_t rather than int.
21830         (Scanning All Users): Likewise for getpwent_r.
21831         (Setting Groups): Add missing const to setgroups prototype.
21832         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
21833         * manual/socket.texi (Host Names): Fix gethostbyaddr and
21834         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
21835         'const void *' rather than 'const char *'.
21836         (Host Address Functions): Likewise for inet_ntop.
21837         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
21838         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
21839         ssize_t for return value.
21840         (Sending Data): Likewise for send, sendto, sendmsg.
21841         (Socket Option Functions): Add a missing const in setsockopt prototype.
21842         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
21843         use wchar_t for the argument.
21844         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
21845         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
21846         take no arguments.
21847         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
21848         double/float/long double for second argument.
21849         Fix return types of significand, significandf, significandl.
21850         * manual/filesys.texi (Setting Permissions): Use mode_t for second
21851         argument in fchmod prototype.
21852         (File Owner): Use uid_t and gid_t in fchown prototype.
21853         (File Times): Add const to utimes, futimes, and lutimes prototypes.
21854         (Making Special Files): Use mode_t and dev_t in mknod prototype.
21855         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
21856         use 'const struct dirent **' as argument types to CMP function pointer
21857         argument.
21858         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
21859         (File Times): Fix summary magic @comment for struct utimbuf and utime
21860         to refer to utime.h, not time.h.
21861         * manual/string.texi (Argz Functions): Add missing const in
21862         argz_extract and argz_next prototypes.
21863         (Finding Tokens in a String): Likewise for basename.
21864         (String/Array Comparison): Fix typo in wcscasecmp prototype.
21865         (Copying and Concatenation): Fix typo in wmemmove prototype.
21866         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
21867         (Signal Stack): Remove erroneous const in sigstack prototype.
21868         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
21869         prototype.
21870         (Simple Calendar Time): Likewise for stime.
21871         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
21872         prototype.
21873         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
21874         say sys/sysctl.h instead.
21875         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
21876         and vsyslog prototypes.
21877
21878 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21879
21880         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
21881         Remove.
21882
21883 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21884
21885         * misc/sys/mman.h: Fix typo in mremap comment.
21886
21887 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21888
21889         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
21890         the '\0' terminator.
21891
21892 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21893
21894         [BZ #13550]
21895         * debug/segfault.c: Don't include <bp-checks.h>.
21896         * sysdeps/generic/bp-checks.h: Remove file.
21897         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
21898         (__GETDENTS): Don't use CHECK_N.
21899         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
21900         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
21901         (__getgroups): Don't use CHECK_N.
21902         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
21903         (setgroups): Don't use CHECK_N.
21904         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
21905         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
21906         (__libc_msgrcv): Don't use CHECK_N.
21907         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
21908         (__libc_msgsnd): Don't use CHECK_N.
21909         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
21910         <bp-checks.h>.
21911         (__libc_pread): Don't use CHECK_N.
21912         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
21913         include <bp-checks.h>.
21914         (__libc_pread64): Don't use CHECK_N.
21915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
21916         include <bp-checks.h>.
21917         (__libc_pwrite): Don't use CHECK_N.
21918         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
21919         include <bp-checks.h>.
21920         (__libc_pwrite64): Don't use CHECK_N.
21921         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
21922         <bp-checks.h>.
21923         (__libc_pread): Don't use CHECK_N.
21924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
21925         include <bp-checks.h>.
21926         (__libc_pread64): Don't use CHECK_N.
21927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
21928         include <bp-checks.h>.
21929         (__libc_pwrite): Don't use CHECK_N.
21930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
21931         include <bp-checks.h>.
21932         (__libc_pwrite64): Don't use CHECK_N.
21933         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
21934         (do_pread): Don't use CHECK_N.
21935         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
21936         (do_pread64): Don't use CHECK_N.
21937         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
21938         (do_pwrite): Don't use CHECK_N.
21939         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
21940         (do_pwrite64): Don't use CHECK_N.
21941         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
21942         (__libc_readv): Don't use CHECK_N.
21943         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
21944         (semop): Don't use CHECK_N.
21945         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
21946         <bp-checks.h>.
21947         (semtimedop): Don't use CHECK_N.
21948         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
21949         (__libc_pread): Don't use CHECK_N.
21950         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
21951         <bp-checks.h>.
21952         (__libc_pread64): Don't use CHECK_N.
21953         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
21954         <bp-checks.h>.
21955         (__libc_pwrite): Don't use CHECK_N.
21956         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
21957         <bp-checks.h>.
21958         (__libc_pwrite64): Don't use CHECK_N.
21959         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
21960         <bp-checks.h>.
21961         (__libc_msgrcv): Don't use CHECK_N.
21962         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
21963         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
21964         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
21965         (__libc_writev): Don't use CHECK_N.
21966
21967 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21968
21969         * string/strcpy.c: Removed unused variable.
21970
21971         * Makeconfig (+sysdep-includes): Define with := rather than =.
21972         Use an existing include/ subdir of each sysdeps dir before it.
21973
21974 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21975
21976         * nscd/connection.c (register_traced_file): Comment function.
21977         [HAVE_INOTIFY] (union __inev): Define.
21978         [HAVE_INOTIFY] (inotify_check_files): New function.
21979         [HAVE_INOTIFY] (clear_db_cache): Likewise.
21980         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
21981         clear_db_cache.
21982         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
21983
21984 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21985
21986         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
21987         loaded if not already and that a failure is permanent.
21988
21989 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21990
21991         [BZ #15006]
21992         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
21993         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
21994
21995 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21996
21997         [BZ #13550]
21998         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
21999         (CHECK_1_NULL_OK): Likewise.
22000         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22001         (__fxstat): Do not use CHECK_1.
22002         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22003         <bp-checks.h>.
22004         (___fxstat64): Do not use CHECK_1.
22005         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22006         <bp-checks.h>.
22007         (__fxstatat): Do not use CHECK_1.
22008         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22009         <bp-checks.h>.
22010         (__fxstatat64): Do not use CHECK_1.
22011         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22012         <bp-checks.h>.
22013         (__fxstat): Do not use CHECK_1.
22014         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
22015         <bp-checks.h>.
22016         (__fxstatat): Do not use CHECK_1.
22017         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
22018         <bp-checks.h>.
22019         (__getresgid): Do not use CHECK_1.
22020         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
22021         <bp-checks.h>.
22022         (__getresuid): Do not use CHECK_1.
22023         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
22024         <bp-checks.h>.
22025         (__lxstat): Do not use CHECK_1.
22026         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
22027         <bp-checks.h>.
22028         (__old_msgctl): Do not use CHECK_1.
22029         (__new_msgctl): Likewise.
22030         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
22031         <bp-checks.h>.
22032         (__new_setrlimit): Do not use CHECK_1.
22033         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
22034         <bp-checks.h>.
22035         (__old_shmctl): Do not use CHECK_1.
22036         (__new_shmctl): Likewise.
22037         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
22038         <bp-checks.h>.
22039         (__xstat): Do not use CHECK_1.
22040         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
22041         (__lxstat): Do not use CHECK_1.
22042         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
22043         <bp-checks.h>.
22044         (___lxstat64): Do not use CHECK_1.
22045         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
22046         (__old_msgctl): Do not use CHECK_1.
22047         (__new_msgctl): Likewise.
22048         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
22049         <bp-checks.h>.
22050         (__gettimeofday): Do not use CHECK_1.
22051         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
22052         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
22053         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
22054         <bp-checks.h>.
22055         (__gettimeofday): Do not use CHECK_1.
22056         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
22057         (__old_shmctl): Do not use CHECK_1_NULL_OK.
22058         (__new_shmctl): Do not use CHECK_1.
22059         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
22060         <bp-checks.h>.
22061         (do_sigtimedwait): Do not use CHECK_1.
22062         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
22063         <bp-checks.h>.
22064         (do_sigwaitinfo): Do not use CHECK_1.
22065         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
22066         <bp-checks.h>.
22067         (msgctl): Do not use CHECK_1.
22068         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
22069         <bp-checks.h>.
22070         (shmctl): Do not use CHECK_1.
22071         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
22072         (ustat): Do not use CHECK_1.
22073         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
22074         <bp-checks.h>.
22075         (__fxstat): Do not use CHECK_1.
22076         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
22077         <bp-checks.h>.
22078         (__fxstatat): Do not use CHECK_1.
22079         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
22080         <bp-checks.h>.
22081         (__lxstat): Do not use CHECK_1.
22082         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
22083         <bp-checks.h>.
22084         (__xstat): Do not use CHECK_1.
22085         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
22086         (__xstat): Do not use CHECK_1.
22087         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
22088         (___xstat64): Do not use CHECK_1.
22089
22090         [BZ #13550]
22091         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
22092         definitions.
22093         (CHECK_BOUNDS_HIGH): Likewise.
22094         * string/strcpy.c: Do not include <bp-checks.h>.
22095         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
22096
22097 2013-02-07  Roland McGrath  <roland@hack.frob.com>
22098
22099         * nscd/nscd-client.h (__nscd_drop_map_ref):
22100         Add __attribute__ ((unused)).
22101         * nis/nss-nisplus.h (niserr2nss): Likewise.
22102
22103         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
22104         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
22105
22106         * csu/libc-tls.c (init_static_tls, init_slotinfo):
22107         Remove inline keyword.
22108         * include/rounding-mode.h (round_away): Likewise.
22109         * libio/wfileops.c (adjust_wide_data): Likewise.
22110         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
22111         (__m128i_strloadu_tolower): Likewise.
22112         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
22113         (__m128i_strloadu_tolower): Likewise.
22114         * time/mktime.c (ydhms_diff): Likewise.
22115         * locale/elem-hash.h (elem_hash): Likewise.
22116         * locale/setlocale.c (setdata): Likewise.
22117         * posix/regex_internal.h (re_string_char_size_at): Likewise.
22118         (re_string_wchar_at): Likewise.
22119         (bitset_not, bitset_merge, bitset_mask): Likewise.
22120         [!(__GNUC__ > 3)] (inline): Remove macro.
22121         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
22122         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
22123         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
22124         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22125         * string/memcmp.c (memcmp_bytes): Likewise.
22126         * locale/programs/locarchive.c (compute_hashval): Likewise.
22127         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
22128         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
22129         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
22130         * nss/getent.c (print_rpc, print_protocols): Likewise.
22131         (print_passwd, print_group, print_aliases): Likewise.
22132         * nis/nss-nisplus.h (niserr2nss): Likewise.
22133         * nscd/connections.c (restart_p): Likewise.
22134         Change return type to bool.
22135
22136 2013-02-05  Roland McGrath  <roland@hack.frob.com>
22137
22138         * Makeconfig (all-Depend-files): Add existing
22139         $(sorted-subdirs:=/Depend) files.
22140         (all-subdirs): Remove nss.
22141         * sysdeps/unix/inet/Subdirs: Add it here instead.
22142         * hesiod/Depend: New file.
22143
22144         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
22145         instead of calling alloca.
22146
22147         * io/lseek.c (__lseek): Rename to __libc_lseek.
22148         Define __lseek as an alias.
22149
22150         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
22151
22152 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
22153
22154         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
22155         else clause and remove check for non-standard endianness.
22156
22157 2013-02-04  David S. Miller  <davem@davemloft.net>
22158
22159         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22160
22161 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
22162
22163         [BZ #13550]
22164         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
22165         (__ubp_memchr): Remove prototype.
22166         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
22167         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22168         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
22169         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
22170         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
22171         Remove alias.
22172         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
22173         (__ubp_memchr): Likewise.
22174         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
22175         (__ubp_memchr): Likewise.
22176         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
22177         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
22178         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
22179         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
22180         CHECK_STRING.
22181         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
22182         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
22183         (__getcwd): Do not use CHECK_STRING.
22184         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
22185         <bp-checks.h>.
22186         (__real_chown): Do not use CHECK_STRING.
22187         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
22188         <bp-checks.h>.
22189         (fchownat): Do not use CHECK_STRING.
22190         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
22191         CHECK_STRING.
22192         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
22193         <bp-checks.h>.
22194         (__lchown): Do not use CHECK_STRING.
22195         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22196         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22197         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22198         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
22199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
22200         include <bp-checks.h>.
22201         (truncate64): Do not use CHECK_STRING.
22202         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
22203         <bp-checks.h>.
22204         (__real_chown): Do not use CHECK_STRING.
22205         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
22206         <bp-checks.h>.
22207         (__lchown): Do not use CHECK_STRING.
22208         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
22209         <bp-checks.h>.
22210         (__chown): Do not use CHECK_STRING.
22211         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
22212         <bp-checks.h>.
22213         (truncate64): Do not use CHECK_STRING.
22214         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
22215         Likewise.
22216         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
22217         (__xmknod): Do not use CHECK_STRING.
22218         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
22219         <bp-checks.h>.
22220         (__xmknodat): Do not use CHECK_STRING.
22221         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22222         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
22223
22224 2013-02-04  Andreas Schwab  <schwab@suse.de>
22225
22226         [BZ #14142]
22227         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
22228         * include/netdb.h: Likewise for h_errno.
22229         * elf/tst-stackguard1.c: Include <tls.h>.
22230
22231 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
22232
22233         * elf/link.h (struct link_map): Extend the l_addr comment.
22234         * include/link.h (struct link_map): Likewise.
22235
22236 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
22237
22238         [BZ #13550]
22239         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
22240         (BOUNDED_1): Remove macro.
22241         * debug/backtrace.c: Don't include <bp-checks.h>.
22242         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
22243         (__backtrace): Likewise.
22244         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
22245         <bp-checks.h>.
22246         (__backtrace): Don't use BOUNDED_1.
22247         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
22248         <bp-checks.h>.
22249         (__backtrace): Don't use BOUNDED_1.
22250         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
22251         (__backtrace): Don't use BOUNDED_1.
22252         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
22253         (shmat): Don't use BOUNDED_N.
22254
22255 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
22256
22257         [BZ #13550]
22258         * sysdeps/generic/bp-start.h: Remove file.
22259         * csu/libc-start.c: Don't include <bp-start.h>.
22260         (LIBC_START_MAIN): Set up __environ directly instead of using
22261         INIT_ARGV_and_ENVIRON.
22262         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
22263         <bp-start.h>.
22264
22265         [BZ #13550]
22266         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
22267         definitions.
22268         (CHECK_FCNTL): Likewise.
22269         (CHECK_N_PAGES): Likewise.
22270
22271         [BZ #13550]
22272         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
22273         definitions.
22274         (CHECK_SIGSET_NULL_OK): Likewise.
22275         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
22276         <bp-checks.h>.
22277         (sigpending): Don't use CHECK_SIGSET.
22278         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
22279         <bp-checks.h>.
22280         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22281         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
22282         <bp-checks.h>.
22283         (do_sigsuspend): Don't use CHECK_SIGSET.
22284         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
22285         use CHECK_SIGSET.
22286         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
22287         (do_sigwait): Don't use CHECK_SIGSET.
22288         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
22289         use CHECK_SIGSET.
22290         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
22291         include <bp-checks.h>.
22292         (sigpending): Don't use CHECK_SIGSET.
22293         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
22294         include <bp-checks.h>.
22295         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22296         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
22297         <bp-checks.h>.
22298         (sigpending): Don't use CHECK_SIGSET.
22299         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
22300         <bp-checks.h>.
22301         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
22302
22303         [BZ #13550]
22304         * sysdeps/generic/bp-semctl.h: Remove file.
22305         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
22306         <bp-checks.h> and <bp-semctl.h>.
22307         (__old_semctl): Don't use CHECK_SEMCTL.
22308         (__new_semctl): Likewise.
22309         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
22310         and <bp-semctl.h>.
22311         (__old_semctl): Don't use CHECK_SEMCTL.
22312         (__new_semctl): Likewise.
22313         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
22314         <bp-checks.h> and <bp-semctl.h>.
22315         (__old_semctl): Don't use CHECK_SEMCTL.
22316         (__new_semctl): Likewise.
22317         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
22318         <bp-checks.h> and <bp-semctl.h>.
22319         (semctl): Don't use CHECK_SEMCTL.
22320
22321         [BZ #13550]
22322         * Makerules (elide-bp-thunks): Remove variable.
22323         (elide-routines.oS): Don't use $(elide-bp-thunks).
22324         (elide-routines.os): Likewise.
22325         (elide-routines.o): Likewise.
22326         (elide-routines.op): Likewise.
22327         (elide-routines.og): Likewise.
22328         (objects): Don't use $(bp-thunks).
22329         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
22330         include.
22331         (common-generated): Do not add s-proto-bp.d.
22332         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
22333         (int): Likewise.
22334         (typ): Likewise.
22335         Do not generate makefile rules for bounded-pointer thunks.
22336         * sysdeps/generic/bp-thunks.h: Remove file.
22337         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
22338         * sysdeps/unix/s-proto-bp.S: Likewise.
22339
22340         [BZ #15062]
22341         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
22342         parts of result separately when argument is not close to line from
22343         -i to i and one part of argument is small.
22344         * math/k_casinhf.c (__kernel_casinhf): Likewise.
22345         * math/k_casinhl.c (__kernel_casinhl): Likewise.
22346         * math/libm-test.inc (cacos_test): Add more tests.
22347         (casin_test): Likewise.
22348         (casinh_test): Likewise.
22349         * sysdeps/i386/fpu/libm-test-ulps: Update.
22350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22351
22352 2013-01-31  David S. Miller  <davem@davemloft.net>
22353
22354         * po/de.po: Update from translation team.
22355
22356 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
22357
22358         * time/tzfile.c: Include stdint.h for SIZE_MAX.
22359
22360 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
22361
22362         * configure.in (_AC_PROG_CC_C89): New definition.
22363         * configure: Regenerate.
22364
22365         * configure.in (AC_PROG_CPP): New definition.
22366         * configure: Regenerate.
22367
22368 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22369
22370         * debug/tst-backtrace.h: New file.
22371         * debug/tst-backtrace2.c: Include tst-backtrace.h.
22372         (ret): Remove variable.
22373         (x): Likewise.
22374         (FAIL): Remove macro.
22375         (NO_INLINE): Likewise.
22376         (fn1): Use match function instead of strstr.
22377         * debug/tst-backtrace3.c: Include tst-backtrace.h.
22378         (ret): Remove variable.
22379         (x): Likewise.
22380         (FAIL): Remove macro.
22381         (NO_INLINE): Likewise.
22382         (fn): Use match function instead of strstr.
22383         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22384         (ret): Remove variable.
22385         (x): Likewise.
22386         (FAIL): Remove macro.
22387         (NO_INLINE): Likewise.
22388         (handle_signal): Use match function instead of strstr.
22389         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22390         (ret): Remove variable.
22391         (x): Likewise.
22392         (FAIL): Remove macro.
22393         (NO_INLINE): Likewise.
22394         (handle_signal): Use match function instead of strstr.
22395
22396 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22397
22398         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22399
22400 2013-01-23  David S. Miller  <davem@davemloft.net>
22401
22402         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22403         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22404         argument of CAS if possible.
22405         * sysdeps/sparc/sparc64/bits/atomic.h
22406         (__arch_compare_and_exchange_val_32_acq): Likewise.
22407         (__arch_compare_and_exchange_val_64_acq): Likewise.
22408
22409 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22410
22411         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22412         * sysdeps/posix/ulimit.c: ... this.
22413         Include <limits.h>.
22414         * sysdeps/unix/bsd/ulimit.c: Remove file.
22415
22416 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22417
22418         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22419         (LDFLAGS-tst-array5): Likewise.
22420
22421 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22422
22423         [BZ #15036]
22424         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22425         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22426         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22427         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22428
22429 2013-01-21  David S. Miller  <davem@davemloft.net>
22430
22431         * sysdeps/sparc/backtrace.c: New file.
22432         * sysdeps/sparc/sparc32/backtrace.h: New file.
22433         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22434         * sysdeps/sparc/sparc64/backtrace.h: New file.
22435         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22436         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22437         -funwind-tables.
22438
22439 2013-01-21  Andreas Schwab  <schwab@suse.de>
22440
22441         [BZ #15020]
22442         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22443         closed its stdout.
22444
22445 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22446
22447         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22448         "mpa2.h".
22449         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22450
22451 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22452             Mark Mitchell  <mark@codesourcery.com>
22453             Tom de Vries  <tom@codesourcery.com>
22454             Paul Pluzhnikov  <ppluzhnikov@google.com>
22455
22456         * debug/tst-backtrace2.c: New file.
22457         * debug/tst-backtrace3.c: Likewise.
22458         * debug/tst-backtrace4.c: Likewise.
22459         * debug/tst-backtrace5.c: Likewise.
22460         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22461         (CFLAGS-tst-backtrace3.c): Likewise.
22462         (CFLAGS-tst-backtrace4.c): Likewise.
22463         (CFLAGS-tst-backtrace5.c): Likewise.
22464         (LDFLAGS-tst-backtrace2): Likewise.
22465         (LDFLAGS-tst-backtrace3): Likewise.
22466         (LDFLAGS-tst-backtrace4): Likewise.
22467         (LDFLAGS-tst-backtrace5): Likewise.
22468         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22469         tst-backtrace4 and tst-backtrace5.
22470
22471 2013-01-18  Anton Blanchard  <anton@samba.org>
22472             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22473
22474         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22475         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22476         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22477         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22479         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22480         "+r" and remove output regs list as redundant.  Add explicit inline
22481         asm to specify register of return val to work around compiler codegen
22482         bug.  Remove (int) cast on return value.  Add return type parameter to
22483         use in macro so that this macro does not truncate return value for
22484         64-bit values.
22485         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22486         pass to INTERNAL_VSYSCALL_NCS.
22487         (INLINE_VSYSCALL): Add 'long int' as return type to
22488         INTERNAL_VSYSCALL_NCS macro invocation.
22489         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22490         INTERNAL_VSYSCALL_NCS macro invocation.
22491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22492
22493 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22494
22495         [BZ #14496]
22496         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22497         Fix application of SIMD FP exception mask.
22498
22499         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22500         mp_no from a power of two.
22501         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22502         __mpexp_twomm1.  Use __pow_mp.
22503
22504         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22505         multiplication.
22506
22507 2013-01-17  David S. Miller  <davem@davemloft.net>
22508
22509         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22510
22511 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22512
22513         [BZ #15023]
22514         * include/complex.h: Condition contents on [!_COMPLEX_H].
22515         (__kernel_casinhf): New prototype.
22516         (__kernel_casinh): Likewise.
22517         (__kernel_casinhl): Likewise.
22518         * math/Makefile (libm_calls): Add k_casinh.
22519         * math/k_casinh.c: New file.
22520         * math/k_casinhf.c: Likewise.
22521         * math/k_casinhl.c: Likewise.
22522         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22523         finite nonzero arguments.
22524         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22525         finite nonzero arguments.
22526         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22527         finite nonzero arguments.
22528         * math/s_casinh.c: Do not include <float.h>.
22529         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22530         * math/s_casinhf.c: Do not include <float.h>.
22531         (__casinhf): Move code for finite nonzero arguments to
22532         k_casinhf.c.
22533         * math/s_casinhl.c: Do not include <float.h>.
22534         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22535         redefine.
22536         (__casinhl): Move code for finite nonzero arguments to
22537         k_casinhl.c.
22538         * math/libm-test.inc (cacos_test): Add more tests.
22539         * sysdeps/i386/fpu/libm-test-ulps: Update.
22540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22541
22542 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22543
22544         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22545         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22546         [!HAVE_MREMAP]: Remove [defined linux] case.
22547         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22548
22549 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22550
22551         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22552
22553 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22554
22555         * elf/elf.h (R_386_SIZE32): New relocation.
22556         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22557         R_386_SIZE32.
22558         (elf_machine_rela): Likewise.
22559         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22560         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22561
22562 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22563
22564         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22565         (FP_FAST_FMA): Do not define.
22566         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22567         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22568         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22569         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22570         !_SOFT_FLOAT]: Likewise.
22571         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22572         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22573         value.
22574         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22575         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22576         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22577         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22578         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22579         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22580         file.
22581
22582 2013-01-16  Andreas Schwab  <schwab@suse.de>
22583
22584         [BZ #14327]
22585         * include/stdlib.h (__mktemp): Add declaration.
22586         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22587         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22588
22589 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22590
22591         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22592         definitions.
22593         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22594         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22595         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22596         definitions here.
22597         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22598         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22599         definitions.
22600         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22601         and ONE.
22602         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22603         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22604         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22605         definitions.
22606         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22607         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22608         definitions.
22609         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22610
22611         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22612
22613 2013-01-15  David S. Miller  <davem@davemloft.net>
22614
22615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22616         trunc{,f} to libm-sysdep_routes.
22617         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22619         file.
22620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22622         file.
22623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22624         file.
22625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22627         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22628         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22629         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22630         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22631         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22632         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22633
22634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22635         nearbyint{,f} to libm-sysdep_routes.
22636         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22638         New file.
22639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22640         file.
22641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22642         New file.
22643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22644         file.
22645         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22646         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22647         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22648         file.
22649         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22650         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22651         file.
22652         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22653         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22654         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22655
22656         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22657         libc_feholdexcept and libc_fesetenv.
22658
22659 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22660
22661         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22662
22663 2013-01-14  David S. Miller  <davem@davemloft.net>
22664
22665         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22666         (SPARC_ASM_VIS2_IFUNC): Likewise.
22667         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22669         use of 'siam' instruction.
22670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22671         Likewise.
22672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22673         Likewise.
22674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22675         Likewise.
22676         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22677         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22678         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22679         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22681         file.
22682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22683         file.
22684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22685         file.
22686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22687         file.
22688         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22689         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22690         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22691         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22693         new VIS2 routines.
22694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22697         Likewise.
22698         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22699         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22700         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22701         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22703         routines to libm-sysdep_routines.
22704         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22705
22706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22707         fdim/fdimf to libm-sysdep_routines.
22708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
22709         file.
22710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
22711         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
22712         file.
22713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
22714         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
22715         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
22716         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
22717         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
22718         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
22719         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
22720
22721 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22722
22723         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
22724         to optimize copies.
22725
22726         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
22727         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22728         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22729
22730         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
22731         local variable MPTWO.
22732         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22733         Likewise.
22734
22735 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22736
22737         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
22738         GLOB_NOESCAPE.
22739
22740 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22741
22742         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
22743
22744 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22745
22746         * manual/pattern.texi (glob_t): Document gl_flags.
22747         (glob64_t): Likewise.
22748
22749 2013-01-11  David S. Miller  <davem@davemloft.net>
22750
22751         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
22752         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
22753         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
22754         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
22755         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
22756         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
22757         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
22758         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
22759         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
22760         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
22761         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
22762         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
22763         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
22764
22765         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22766         sparc V9 rather than using V8 code.
22767         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22768         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22769
22770         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
22771         Move to...
22772         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
22773         Here.
22774
22775 2013-01-11  Roland McGrath  <roland@hack.frob.com>
22776
22777         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
22778         not in the main loop.
22779         * configure: Regenerated.
22780
22781 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
22782
22783         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
22784         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
22785         to just #else.
22786         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
22787         [!__GLIBC_HAVE_LONG_LONG] case.
22788         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
22789         condition to just #else.
22790         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
22791         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
22792         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
22793         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
22794         unconditional.
22795         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
22796         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22797         #elif condition to just #else.
22798         * sysdeps/unix/sysv/linux/sys/sysmacros.h
22799         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
22800         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22801         #elif condition to just #else.
22802
22803 2013-01-11  Steve Ellcey  <sellcey@mips.com>
22804
22805         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
22806         (EF_MIPS_ARCH_64): Fix value.
22807         (EF_MIPS_ARCH_32R2): New.
22808         (EF_MIPS_ARCH_64R2): New.
22809
22810 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
22811
22812         * Makeconfig (+link-pie-before-libc): New.
22813         (+link-pie-after-libc): Likewise.
22814         (+link-pie-tests): Likewise.
22815         (+link-pie): Rewritten.
22816         (link-before-libc): Remove $(config-LDFLAGS).
22817         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
22818         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
22819         (config-LDFLAGS): Renamed to ...
22820         (rtld-LDFLAGS): This.
22821         (rtld-tests-LDFLAGS): New macro.
22822         (link-libc-rpath-link): Likewise.
22823         (link-libc-tests-rpath-link): Likewise.
22824         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
22825         (link-libc): Prepand $(link-libc-rpath-link).
22826         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
22827         (test-program-prefix): New macro.
22828         (test-via-rtld-prefix): Likewise.
22829         (test-program-cmd): Likewise.
22830         (host-test-program-cmd): Likewise.
22831         * Makefile ($(common-objpfx)testrun.sh): Replace
22832         $(run-program-prefix) with $(test-program-prefix).
22833         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
22834         $(rtld-LDFLAGS).
22835         ($(common-objpfx)shlib.lds): Likewise.
22836         (build-module-helper): Likewise.
22837         ($(common-objpfx)format.lds): Likewise.
22838         * Rules (binaries-pie-tests): New.
22839         (binaries-pie-notests): Likewise.
22840         (binaries-pie): Rewritten.
22841         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
22842         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
22843         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
22844         (make-test-out): Replace $(host-built-program-cmd) with
22845         $(host-test-program-cmd).
22846         * config.make.in (build-hardcoded-path-in-tests): New variable.
22847         * configure.in (--enable-hardcoded-path-in-tests): New configure
22848         option.
22849         (hardcoded_path_in_tests): New AC_SUBST.
22850         * configure: Regenerated.
22851         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
22852         $(built-program-cmd) with $(test-program-cmd).
22853         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
22854         (test_program_cmd): This.
22855         * elf/Makefile ($(objpfx)order.out): Run test with
22856         $(test-program-prefix).
22857         ($(objpfx)order2.out): Likewise.
22858         ($(objpfx)tst-initorder.out): Likewise.
22859         ($(objpfx)tst-initorder2.out): Likewise.
22860         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
22861         $(test-program-cmd).
22862         ($(objpfx)tst-array1-static.out): Likewise.
22863         ($(objpfx)tst-array2.out): Likewise.
22864         ($(objpfx)tst-array3.out): Likewise.
22865         ($(objpfx)tst-array4.out): Likewise.
22866         ($(objpfx)tst-array5.out): Likewise.
22867         ($(objpfx)tst-array5-static.out): Likewise.
22868         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
22869         $(test-program-cmd).
22870         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
22871         $(run-program-prefix) with $(test-program-prefix).
22872         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
22873         (test_program_prefix): This.
22874         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
22875         $(run-program-prefix) with $(test-program-prefix).
22876         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
22877         (test_program_prefix): This.
22878         * iconvdata/tst-tables.sh: Likewise.
22879         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
22880         $(run-program-prefix) with $(test-program-prefix).
22881         ($(objpfx)tst-translit.out): Likewise.
22882         ($(objpfx)tst-gettext2.out): Likewise.
22883         ($(objpfx)tst-gettext4.out): Likewise.
22884         ($(objpfx)tst-gettext6.out): Likewise.
22885         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
22886         (test_program_prefix): This.
22887         * intl/tst-gettext2.sh: Likewise.
22888         * intl/tst-gettext4.sh  Likewise.
22889         * intl/tst-gettext6.sh: Likewise.
22890         * intl/tst-translit.sh: Likewise.
22891         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
22892         with $(test-program-cmd).
22893         * libio/Makefile ($(objpfx)test-freopen.out): Replace
22894         $(run-program-prefix) with $(test-program-prefix).
22895         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
22896         (test_program_prefix): This.
22897         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
22898         $(run-program-prefix) with $(test-program-prefix).
22899         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
22900         (test_program_prefix): This.
22901         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
22902         * posix/Makefile ($(objpfx)globtest.out): Replace
22903         $(run-via-rtld-prefix) and $(test-wrapper) with
22904         $(test-program-prefix) and $(test-via-rtld-prefix).
22905         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
22906         $(test-program-prefix).
22907         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
22908         $(host-test-program-cmd).
22909         (tst-spawn-ARGS): Likewise.
22910         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
22911         $(test-program-prefix).
22912         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
22913         (test_via_rtld_prefix): This.
22914         (test_wrapper): Renamed to ...
22915         (test_program_prefix): This.
22916         (run_program_prefix): Replaced by test_program_prefix.
22917         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
22918         (test_program_prefix): This.
22919         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
22920         with $(host-test-program-cmd).
22921         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
22922         $(run-program-prefix) with $(test-program-prefix).
22923         ($(objpfx)tst-printf.out): Likewise.
22924         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
22925         $(test-program-cmd).
22926         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
22927         (test_program_prefix): This.
22928         * stdio-common/tst-unbputc.sh: Likewise.
22929         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
22930         $(run-program-prefix) with $(test-program-prefix).
22931         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
22932         (test_program_prefix): This.
22933         * string/Makefile ($(objpfx)tst-svc.out):  Replace
22934         $(built-program-cmd) with $(test-program-cmd).
22935
22936 2013-01-11  Andreas Jaeger  <aj@suse.de>
22937
22938         [BZ #15003]
22939         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
22940         value. Sync with Linux 3.7.
22941
22942 2013-01-10  David S. Miller  <davem@davemloft.net>
22943
22944         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
22945         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22946         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22947
22948 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22949
22950         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
22951         never set.
22952         * configure: Regenerated.
22953
22954 2013-01-10  David S. Miller  <davem@davemloft.net>
22955
22956         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22957         sparc V9 rather than using V8 code.
22958         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22959         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22960
22961 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22962
22963         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
22964         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
22965         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
22966         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
22967         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
22968         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
22969         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
22970         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
22971         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
22972         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
22973         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
22974         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
22975         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
22976         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
22977         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
22978         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
22979         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
22980         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
22981         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
22982         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
22983         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
22984         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
22985         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
22986         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
22987         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
22988         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
22989         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
22990
22991 2013-01-10  David S. Miller  <davem@davemloft.net>
22992
22993         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22994
22995 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22996
22997         * posix/Makefile (tests-static): New variable.
22998         (tests): Add $(tests-static).
22999         (tst-exec-static-ARGS): New variable.
23000         (tst-spawn-static-ARGS): Likewise.
23001         * posix/tst-exec-static.c: New file.
23002         * posix/tst-spawn-static.c: Likewise.
23003         * posix/tst-exec.c: Support run directly.
23004         * posix/tst-spawn.c: Likewise.
23005
23006 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23007
23008         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23009         long.
23010         * math/bits/mathcalls.h (llrint): Likewise.
23011         (llround): Likewise.
23012         * stdlib/stdlib.h (struct drand48_data): Likewise.
23013         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
23014         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
23015         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
23016         Likewise.
23017         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
23018         Likewise.
23019         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
23020         (elf_greg_t): Likewise.
23021         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
23022         (__jmp_buf): Likewise.
23023         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
23024         definitions.
23025         (llrint): Likewise, for all definitions.
23026         (llrintl): Likewise.
23027
23028         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
23029         Remove [__GNUC__] condition.
23030         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
23031         condition to just [__USE_ISOC99].
23032         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
23033
23034 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23035
23036         [BZ #14200]
23037         * sysdeps/unix/sysv/linux/x86/bits/environments.h
23038         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
23039         defined.
23040         (_POSIX_V6_ILP32_OFF32): Likewise.
23041         (_XBS5_ILP32_OFF32): Likewise.
23042         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
23043         (__ILP32_OFFBIG_LDFLAGS): Likewise.
23044
23045 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23046
23047         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
23048
23049         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
23050         doubles __mpexp_twomm1.  Adjust usage.
23051         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
23052         Remove.
23053
23054 2013-01-10  Andreas Schwab  <schwab@suse.de>
23055
23056         [BZ #14964]
23057         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
23058         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
23059
23060 2013-01-09  David S. Miller  <davem@davemloft.net>
23061
23062         [BZ #15003]
23063         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
23064         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
23065         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
23066         (TCP_FASTOPEN): Define.
23067         (tcp_repair_opt): New structure.
23068         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
23069         enum values.
23070         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
23071         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
23072         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
23073         (tcp_cookie_transactions): New structure.
23074
23075 2013-01-09  Anton Blanchard  <anton@samba.org>
23076
23077         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
23078         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
23079         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
23080         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
23081
23082 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
23083
23084         * include/features.h (__USE_ANSI): Remove.
23085
23086 2013-01-09  Roland McGrath  <roland@hack.frob.com>
23087
23088         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
23089
23090         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
23091
23092 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
23093
23094         * sysdeps/s390/fpu/libm-test-ulps: Update.
23095
23096         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23097
23098         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
23099         (__acr): Likewise.
23100         (__cpy): Likewise.
23101         (norm): Likewise.
23102         (denorm): Likewise.
23103         (__mp_dbl): Likewise.
23104         (__dbl_mp): Likewise.
23105         (add_magnitudes): Likewise.
23106         (sub_magnitudes): Likewise.
23107         (__add): Likewise.
23108         (__sub): Likewise.
23109         (__mul): Likewise.
23110         (__inv): Likewise.
23111         (__dvd): Likewise.
23112         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
23113         (__acr): Likewise.
23114         (__cpy): Likewise.
23115         (norm): Likewise.
23116         (denorm): Likewise.
23117         (__mp_dbl): Likewise.
23118         (__dbl_mp): Likewise.
23119         (add_magnitudes): Likewise.
23120         (sub_magnitudes): Likewise.
23121         (__add): Likewise.
23122         (__sub): Likewise.
23123         (__mul): Likewise.
23124         (__inv): Likewise.
23125         (__dvd): Likewise.
23126         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
23127         (__acr): Likewise.
23128         (__cpy): Likewise.
23129         (norm): Likewise.
23130         (denorm): Likewise.
23131         (__mp_dbl): Likewise.
23132         (__dbl_mp): Likewise.
23133         (add_magnitudes): Likewise.
23134         (sub_magnitudes): Likewise.
23135         (__add): Likewise.
23136         (__sub): Likewise.
23137         (__mul): Likewise.
23138         (__inv): Likewise.
23139         (__dvd): Likewise.
23140
23141 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
23142
23143         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
23144         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
23145         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
23146         2 && __USE_EXTERN_INLINES]: Likewise.
23147
23148 2013-01-08  Andreas Jaeger  <aj@suse.de>
23149
23150         [BZ# 14985]
23151         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
23152         Remove.
23153         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23154         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
23155
23156 2013-01-07  Anton Blanchard  <anton@samba.org>
23157
23158         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
23159         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23160         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
23161         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23162         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
23163         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23164         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
23165         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23166         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23167         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23168         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23169         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23170         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
23171         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23172         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
23173         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23174         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23175         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23176         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
23177         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
23178         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
23179         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
23180         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
23181         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
23182         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
23183         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
23184         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
23185         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23186         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
23187         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
23188         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
23189         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23190         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23191         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23192         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23193         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
23194         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23195         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
23196         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
23197         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
23198         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
23199         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
23200         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23201
23202 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
23203
23204         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
23205         (__MALLOC_PMT): Likewise.
23206         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
23207         [__GNUC__], only on [_LIBC].
23208         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23209         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
23210         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
23211         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
23212         forward declaration.
23213         (realloc_hook_ini): Likewise.
23214         (memalign_hook_ini): Likewise.
23215         (__libc_memalign): Do not use __MALLOC_PMT in variable
23216         declaration.
23217         (__libc_valloc): Likewise.
23218         (__libc_pvalloc): Likewise.
23219         (__libc_calloc): Likewise.
23220         (__posix_memalign): Likewise.
23221
23222         [BZ #14996]
23223         * math/s_casinh.c: Include <float.h>.
23224         (__casinh): Do not do computation with squaring and square root
23225         for large arguments.
23226         * math/s_casinhf.c: Include <float.h>.
23227         (__casinhf): Do not do computation with squaring and square root
23228         for large arguments.
23229         * math/s_casinhl.c: Include <float.h>.
23230         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
23231         (__casinhl): Do not do computation with squaring and square root
23232         for large arguments.
23233         * math/libm-test.inc (casin_test): Add more tests.
23234         (casinh_test): Likewise.
23235         * sysdeps/i386/fpu/libm-test-ulps: Update.
23236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23237
23238 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
23239
23240         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
23241         (__x86_64_raw_data_cache_size): Likewise.
23242         (__x86_64_data_cache_size_half): Likewise.
23243         (__x86_64_raw_data_cache_size_half): Likewise.
23244         (__x86_64_shared_cache_size): Likewise.
23245         (__x86_64_raw_shared_cache_size): Likewise.
23246         (__x86_64_shared_cache_size_half): Likewise.
23247         (__x86_64_raw_shared_cache_size_half): Likewise.
23248         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
23249         to ...
23250         (__x86_data_cache_size): This.
23251         (__x86_64_raw_data_cache_size): Renamed to ...
23252         (__x86_raw_data_cache_size): This.
23253         (__x86_64_data_cache_size_half): Renamed to ...
23254         (__x86_data_cache_size_half): This.
23255         (__x86_64_raw_data_cache_size_half): Renamed to ...
23256         (__x86_raw_data_cache_size_half): This.
23257         (__x86_64_shared_cache_size): Renamed to ...
23258         (__x86_shared_cache_size): This.
23259         (__x86_64_raw_shared_cache_size): Renamed to ...
23260         (__x86_raw_shared_cache_size): This.
23261         (__x86_64_shared_cache_size_half): Renamed to ...
23262         (__x86_shared_cache_size_half): This.
23263         (__x86_64_raw_shared_cache_size_half): Renamed to ...
23264         (__x86_raw_shared_cache_size_half): This.
23265         * sysdeps/x86_64/memcpy.S: Updated.
23266         * sysdeps/x86_64/memset.S: Likewise.
23267         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
23268         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
23269         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
23270
23271 2013-01-04  David S. Miller  <davem@davemloft.net>
23272
23273         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23274
23275 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
23276
23277         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
23278         1 to avoid redefinition warning.
23279         (__USE_GNU): Don't define.
23280         (init_signaling_nan): Protoize.
23281
23282         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23283
23284 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23285
23286         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
23287         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
23288         (__cpymn): Likewise.
23289         (norm): Remove commented code.
23290         (denorm): Likewise.
23291         (__mp_dbl): Likewise.
23292         (__inv): Likewise.
23293         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
23294         (__cpymn): Likewise.
23295         (norm): Remove commented code.
23296         (denorm): Likewise.
23297         (__mp_dbl): Likewise.
23298         (__inv): Likewise.
23299
23300         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
23301         mp_no value for 1.0 and 2.0.
23302         (norm): Use RADIXI instead of radixi.d.
23303         (denorm): Likewise.
23304         (__mul): Use 0.0 instead of zero.d.
23305         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
23306         mp_no value for 1.0 and 2.0.
23307         (norm): Use RADIXI instead of radixi.d.
23308         (denorm): Likewise.
23309         (__mul): Use 0.0 instead of zero.d.
23310
23311 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
23312
23313         [BZ #14994]
23314         * math/s_casinh.c (__casinh): Reduce finite argument to first
23315         quadrant then set signs of results at the end.
23316         * math/s_casinhf.c (__casinhf): Likewise.
23317         * math/s_casinhl.c (__casinhl): Likewise.
23318         * math/libm-test.inc (casin_test): Add more tests.
23319         (casinh_test): Likewise.
23320         * sysdeps/i386/fpu/libm-test-ulps: Update.
23321         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23322
23323 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23324
23325         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
23326
23327         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
23328
23329         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
23330         declarations.
23331         (denorm): Likewise.
23332         (__mp_dbl): Likewise.
23333         (__inv): Likewise.
23334
23335         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
23336         and adjust the header comment.
23337
23338         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
23339         variable name from declaration.
23340
23341 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
23342
23343         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23344         Initialize COMMON_CPUID_INDEX_7 element.
23345         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
23346         (CPUID_RTM): Likewise.
23347         (HAS_RTM): Likewise.
23348         (COMMON_CPUID_INDEX_7): New enum.
23349
23350 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
23351
23352         [BZ #14981]
23353         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
23354         size is zero, record memory as freed.
23355
23356 2013-01-03  Andreas Jaeger  <aj@suse.de>
23357
23358         * po/ia.po: Add new Interlingua translation.
23359
23360 2012-01-03  Allan McRae  <allan@archlinux.org>
23361
23362         * locale/programs/localedef.c: Fix description of '--posix' flag.
23363
23364 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
23365
23366         * NEWS: Update dates in second copyright notice.
23367         * README: Update copyright dates in example.
23368         * manual/libc.texinfo: Update copyright dates.
23369         * scripts/test-installation.pl: Update copyright date in --version
23370         output.
23371
23372         * hurd/ctty-input.c: Fix copyright notice formatting.
23373         * hurd/ctty-output.c: Likewise.
23374         * hurd/dtable.c: Likewise.
23375         * hurd/hurd-raise.c: Likewise.
23376         * hurd/hurdprio.c: Likewise.
23377         * hurd/msgportdemux.c: Likewise.
23378         * misc/sys/file.h: Likewise.
23379         * misc/sys/ioctl.h: Likewise.
23380         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23381         * sysdeps/mach/hurd/chdir.c: Likewise.
23382         * sysdeps/mach/hurd/fchdir.c: Likewise.
23383         * sysdeps/mach/hurd/rename.c: Likewise.
23384         * sysdeps/mach/hurd/rmdir.c: Likewise.
23385         * sysdeps/mach/hurd/seekdir.c: Likewise.
23386         * sysdeps/mach/hurd/setsid.c: Likewise.
23387         * sysdeps/posix/wait3.c: Likewise.
23388
23389         * All files with FSF copyright notices: Update copyright dates
23390         using scripts/update-copyrights.
23391         * intl/plural.c: Regenerated.
23392         * locale/programs/charmap-kw.h: Likewise.
23393         * locale/programs/locfile-kw.h: Likewise.
23394
23395 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23396
23397         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23398         four values.
23399
23400         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23401         calculation loop and add branch prediction.
23402
23403         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23404         check access beyond bounds of m1np.
23405
23406         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23407         MPTWO.
23408         (__inv): Remove local variable MPTWO to use the global
23409         constant.
23410         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23411         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23412         variable MPTWO.
23413         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23414         MP3HALFS static const.
23415
23416 2013-01-01  David S. Miller  <davem@davemloft.net>
23417
23418         * po/ca.po: Update from translation team.
23419
23420 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23421
23422         * scripts/update-copyrights: New file.
23423         * Makeconfig: Reformat copyright notice.
23424         * ctype/ctype.h: Likewise.
23425         * debug/swprintf_chk.c: Likewise.
23426         * elf/dl-cache.c: Likewise.
23427         * elf/dl-debug.c: Likewise.
23428         * elf/dl-object.c: Likewise.
23429         * grp/initgroups.c: Likewise.
23430         * hurd/Makefile: Likewise.
23431         * hurd/hurd/signal.h: Likewise.
23432         * hurd/hurdfault.c: Likewise.
23433         * hurd/hurdioctl.c: Likewise.
23434         * hurd/hurdlookup.c: Likewise.
23435         * hurd/intr-msg.c: Likewise.
23436         * iconv/gconv_open.c: Likewise.
23437         * libio/swprintf.c: Likewise.
23438         * locale/lc-ctype.c: Likewise.
23439         * locale/nl_langinfo.c: Likewise.
23440         * mach/Machrules: Likewise.
23441         * mach/Makefile: Likewise.
23442         * malloc/obstack.h: Likewise.
23443         * manual/Makefile: Likewise.
23444         * manual/tsort.awk: Likewise.
23445         * misc/bits/stab.def: Likewise.
23446         * nis/nis_print_group_entry.c: Likewise.
23447         * nis/nis_table.c: Likewise.
23448         * nis/nss_compat/compat-pwd.c: Likewise.
23449         * nis/nss_compat/compat-spwd.c: Likewise.
23450         * po/Makefile: Likewise.
23451         * posix/fnmatch.c: Likewise.
23452         * posix/regex.h: Likewise.
23453         * resolv/Makefile: Likewise.
23454         * resolv/nss_dns/dns-network.c: Likewise.
23455         * resolv/res_hconf.c: Likewise.
23456         * scripts/gen-sorted.awk: Likewise.
23457         * soft-fp/soft-fp.h: Likewise.
23458         * stdio-common/printf.h: Likewise.
23459         * stdlib/monetary.h: Likewise.
23460         * stdlib/random.c: Likewise.
23461         * stdlib/random_r.c: Likewise.
23462         * sysdeps/generic/Makefile: Likewise.
23463         * sysdeps/gnu/Makefile: Likewise.
23464         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23465         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23466         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23467         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23468         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23469         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23470         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23471         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23472         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23473         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23474         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23475         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23476         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23477         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23478         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23479         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23480         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23481         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23482         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23483         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23484         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23485         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23486         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23487         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23488         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23489         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23490         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23491         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23492         * sysdeps/mach/hurd/errnos.awk: Likewise.
23493         * sysdeps/mach/hurd/fork.c: Likewise.
23494         * sysdeps/mach/hurd/getcwd.c: Likewise.
23495         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23496         * sysdeps/mach/hurd/mmap.c: Likewise.
23497         * sysdeps/mach/hurd/utimes.c: Likewise.
23498         * sysdeps/mach/hurd/xmknod.c: Likewise.
23499         * sysdeps/posix/profil.c: Likewise.
23500         * sysdeps/posix/readdir_r.c: Likewise.
23501         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23502         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23503         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23504         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23505         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23506         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23507         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23508         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23509         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23510         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23511         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23512         * sysdeps/pthread/lio_listio.c: Likewise.
23513         * sysdeps/sparc/dl-procinfo.h: Likewise.
23514         * sysdeps/unix/i386/sysdep.S: Likewise.
23515         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23516         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23517         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23518         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23520         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23521         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23522         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23523         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23524         * sysdeps/wordsize-32/divdi3.c: Likewise.
23525         * time/sys/time.h: Likewise.
23526         * wcsmbs/Makefile: Likewise.
23527
23528 2013-01-01  David S. Miller  <davem@davemloft.net>
23529
23530         * po/fr.po: Update from translation team.
23531
23532         * catgets/gencat.c: Update copyright year.
23533         * csu/version.c: Likewise.
23534         * debug/catchsegv.sh: Likewise.
23535         * debug/pcprofiledump.c: Likewise.
23536         * debug/xtrace.sh: Likewise.
23537         * elf/ldconfig.c: Likewise.
23538         * elf/ldd.bash.in: Likewise.
23539         * elf/pldd.c: Likewise.
23540         * elf/sotruss.ksh: Likewise.
23541         * elf/sprof.c: Likewise.
23542         * iconv/iconv_prog.c: Likewise.
23543         * iconv/iconvconfig.c: Likewise.
23544         * locale/programs/locale.c: Likewise.
23545         * locale/programs/localedef.c: Likewise.
23546         * login/programs/pt_chown.c: Likewise.
23547         * malloc/memusage.sh: Likewise.
23548         * malloc/memusagestat.c: Likewise.
23549         * malloc/mtrace.pl: Likewise.
23550         * nscd/nscd.c: Likewise.
23551         * nss/getent.c: Likewise.
23552         * nss/makedb.c: Likewise.
23553         * posix/getconf.c: Likewise.
23554
23555 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23556
23557         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23558         numbers.
23559
23560 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23561
23562         * math/bits/mathcalls.h (modf): Use __nonnull.
23563
23564 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23565
23566         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23567         (split): Use macro CN instead of the bare value.
23568         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23569         could be used.
23570         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23571         instead of the bare value.
23572         (power1): Likewise.
23573
23574 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23575
23576         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23577         __ATAN_TWOM.
23578         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23579
23580         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23581         their values.
23582         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23583         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23584         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23585         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23586
23587 2012-12-28  Andreas Jaeger  <aj@suse.de>
23588
23589         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23590         values are from Linux 3.7.
23591
23592         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23593         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23594
23595 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23596
23597         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23598         TRUE case.
23599
23600         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23601         (norm): Likewise.
23602         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23603         variables with preprocessor constants.
23604         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23605         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23606         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23607
23608 2012-12-27  Bruno Haible  <bruno@clisp.org>
23609
23610         [BZ #14317]
23611         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23612         only if needed.
23613
23614 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23615
23616         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23617         and use variable directly.
23618         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23619
23620         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23621         MPONE.
23622         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23623         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23624         variable MPONE.
23625         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23626         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23627         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23628         include directive.  Remove local variable MPONE.
23629         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23630         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23631         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23632
23633 2012-12-25  David S. Miller  <davem@davemloft.net>
23634
23635         * version.h (RELEASE): Set to "development".
23636         (VERSION): Set to "2.17.90".
23637         * NEWS: Add 2.18 section.
23638
23639 2012-12-21  David S. Miller  <davem@davemloft.net>
23640
23641         * po/hr.po: Update from translation team.
23642
23643 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23644
23645         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23646
23647 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23648
23649         * NEWS:  Mention new memcpy for MIPS.
23650
23651 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23652
23653         * manual/contrib.texi (Contributors): Spelling correction.
23654
23655 2012-12-15  David S. Miller  <davem@davemloft.net>
23656
23657         * po/ru.po: Update from translation team.
23658
23659 2012-12-13  David S. Miller  <davem@davemloft.net>
23660
23661         * NEWS: Mention IFUNC testsuite enhancements.
23662
23663         * po/pl.po: Update from translation team.
23664         * po/bg.po: Likewise.
23665
23666         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23667         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23668
23669 2012-12-11  David S. Miller  <davem@davemloft.net>
23670
23671         * po/sv.po: Update from translation team.
23672
23673         * po/vi.po: Update from translation team.
23674
23675         * po/cs.po: Update from translation team.
23676
23677         * po/de.po: Update from translation team.
23678         * po/eo.po: Likewise.
23679         * po/nl.po: Likewise.
23680
23681 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23682
23683         [BZ #14246]
23684         * manual/argp.texi (Argp Helper Functions): Move node to follow
23685         Argp Parsing State.
23686
23687         [BZ #14872]
23688         * manual/conf.texi (Limits on File System Capacity): Mention if
23689         terminating null is included in the max size.
23690
23691 2012-12-10  Andreas Jaeger  <aj@suse.de>
23692
23693         * po/cs.po: Update from translation team.
23694
23695 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23696
23697         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23698         void pointer and cast to uintptr_t.
23699         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23700         path.
23701         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23702         * sysdeps/s390/s390-64/memset.S: Likewise.
23703
23704 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23705
23706         [BZ #14833]
23707         * menual/message.texi (Message Translation): Fix typos.
23708         (Helper programs for gettext): Likewise.
23709
23710 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
23711
23712         [BZ #14898]
23713         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
23714         Change to -1.
23715
23716 2012-12-07  David S. Miller  <davem@davemloft.net>
23717
23718         * po/libc.pot: Update.
23719
23720 2012-12-07  Richard Henderson  <rth@redhat.com>
23721
23722         [BZ #10114]
23723         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
23724         normal/normal case to before the switch.
23725         (_FP_DIV): Likewise.
23726
23727 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
23728             Mike Frysinger  <vapier@gentoo.org>
23729
23730         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
23731         check for __NR_fadvise64_64.
23732
23733 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
23734
23735         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
23736         0, not just to plain "0" as a statement.
23737         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
23738         with cw.
23739
23740 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
23741
23742         * NEWS: Use sourceware.org in Bugzilla URL.
23743
23744 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
23745
23746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23747         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23748
23749         * stdio-common/tst-put-error.c (do_test): Add newline to the
23750         padded test to ensure flush.
23751
23752 2012-12-05  Jeff Law  <law@redhat.com>
23753
23754         * sunrpc/etc.rpc (fedfs_admin): Add entry.
23755
23756 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
23757
23758         * README: Don't refer to ports add-on as distributed separately.
23759         Mention AArch64 in list of systems supported in the ports add-on.
23760
23761         * LICENSES: Add more non-FSF copyright and license notices.
23762
23763         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
23764         ((unused)).
23765
23766         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
23767
23768         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
23769         10000 as width of padded output.
23770
23771 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23772
23773         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
23774
23775         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
23776         variable LX with __attribute__ ((unused)).
23777         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
23778         Likewise.
23779         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
23780         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23781         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
23782         with __attribute__ ((unused)).
23783
23784 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
23785
23786         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
23787
23788 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23789
23790         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
23791         (CFLAGS-nldbl-acos.c): New variable.
23792         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
23793         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
23794         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
23795         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
23796         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
23797         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
23798         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
23799         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
23800         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
23801         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
23802         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
23803         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
23804         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
23805         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
23806         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
23807         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
23808         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
23809         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
23810         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
23811         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
23812         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
23813         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
23814         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
23815         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
23816         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
23817         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
23818         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
23819         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
23820         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
23821         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
23822         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
23823         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
23824         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
23825         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
23826         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
23827         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
23828         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
23829         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
23830         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
23831         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
23832         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
23833         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
23834         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
23835         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
23836         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
23837         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
23838         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
23839         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
23840         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
23841         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
23842         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
23843         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
23844         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
23845         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
23846         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
23847         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
23848         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
23849         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
23850         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
23851         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
23852         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
23853         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
23854         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
23855         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
23856         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
23857         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
23858         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
23859         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
23860         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
23861         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
23862         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
23863         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
23864         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
23865         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
23866         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
23867         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
23868         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
23869         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
23870         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
23871         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
23872         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
23873         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
23874         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
23875         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
23876         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
23877         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
23878         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
23879         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
23880         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
23881         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
23882         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
23883         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
23884         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
23885         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
23886         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
23887         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
23888         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
23889
23890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23891         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23892
23893         [BZ #14914]
23894         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
23895         whole low double instead of just low 47 bits when splitting values
23896         into two parts.
23897
23898 2012-12-03  Allan McRae  <allan@archlinux.org>
23899
23900         * manual/stdio.texi (Predefined Printf Handlers): Remove
23901         @hsep and @vsep usage.
23902
23903 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
23904
23905         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
23906         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
23907
23908 2012-12-03  Jeff Law  <law@redhat.com>
23909
23910         * time/sys/time.h (settimeofday): Do not mark TV argument
23911         as __nonnull.
23912
23913 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
23914
23915         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
23916         when currently writing and seek to current position when not.
23917         * libio/Makefile (tests): Remove bug-fclose1.
23918         * libio/bug-fclose1.c: Delete.
23919
23920 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
23921
23922         * manual/arith.texi (feenableexcept): Fix typo.
23923         (fedisableexcept): Likewise.
23924
23925 2012-11-30  Roland McGrath  <roland@hack.frob.com>
23926
23927         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
23928         second, differently-typed declaration, rather than a cast.
23929
23930 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23931
23932         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
23933         * include/rpc/svc.h: ... here.
23934
23935 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
23936
23937         [BZ #13013]
23938         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
23939         depending n and resplen2 to catch cases where answer
23940         equals answerp2.
23941
23942 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
23943
23944         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
23945         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
23946
23947 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
23948
23949         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
23950
23951 2012-11-29  Roland McGrath  <roland@hack.frob.com>
23952
23953         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
23954
23955 2012-11-28  Jeff Law  <law@redhat.com>
23956
23957         [BZ #13761]
23958         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
23959         dataset_temporary.  Track alloca usage into alloca_used.
23960         If dataset is large allocate and release it via malloc/free.
23961
23962 2012-06-04  Florian Weimer  <fweimer@redhat.com>
23963
23964         [BZ #14197]
23965         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
23966
23967 2012-11-28  David S. Miller  <davem@davemloft.net>
23968
23969         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23970
23971 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23972
23973         [BZ #14803]
23974         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
23975         of pi/2 rounded to nearest to 64 bits.
23976         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
23977         nearest to 64 bits.
23978         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
23979         bits.
23980
23981 2012-11-28  Jeff Law <law@redhat.com>
23982             Martin Osvald <mosvald@redhat.com>
23983
23984         [BZ #14889]
23985         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
23986         * sunrpc/svc.c: Include time.h.
23987         (__svc_accept_failed): New function.
23988         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
23989         any reason other than EINTR, call __svc_accept_failed.
23990         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
23991         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
23992
23993 2012-11-28  Andreas Schwab  <schwab@suse.de>
23994
23995         * scripts/abilist.awk: Also handle indirect functions in .opd
23996         section.
23997
23998 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23999
24000         [BZ #13881]
24001         * sysdeps/x86/fpu/powl_helper.c: New file.
24002         * sysdeps/x86/fpu/Makefile: Likewise.
24003         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24004         (p3): New object.
24005         (__ieee754_powl): Use __powl_helper for finite arguments except
24006         integer exponents below 8.
24007         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24008         (p3): New object.
24009         (__ieee754_powl): Use __powl_helper for finite arguments except
24010         integer exponents below 8.
24011         * math/libm-test.inc (pow_test): Add more tests and enable some
24012         previously disabled tests.
24013         * sysdeps/i386/fpu/libm-test-ulps: Update.
24014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24015
24016 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24017             Carlos O'Donell  <carlos_odonell@mentor.com>
24018
24019         * nss/makedb.c (is_prime): Assert that input is odd and greater
24020         than 4.  Note that fact in a comment too.
24021         (next_prime): Add 4 to input.
24022
24023 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24024
24025         [BZ #11741]
24026         * libio/Makefile (tests): Add test case tst-fwrite-error.
24027         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
24028         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
24029         * libio/tst-fwrite-error.c: New test case.
24030
24031 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
24032
24033         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
24034         before casting to void *.
24035         * include/libc-internal.h (__pointer_type): New macro.
24036         (__integer_if_pointer_type_sub): Likewise.
24037         (__integer_if_pointer_type): Likewise.
24038         (cast_to_integer): Likewise.
24039         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
24040         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
24041         before casting to atomic64_t.
24042         (atomic_exchange_acq): Likewise.
24043         (__arch_exchange_and_add_body): Likewise.
24044         (__arch_add_body): Likewise.
24045         (atomic_add_negative): Likewise.
24046         (atomic_add_zero): Likewise.
24047
24048 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
24049
24050         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
24051         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
24052         (add_fdes): Likewise.
24053         (linear_search_fdes): Likewise.
24054         (binary_search_unencoded_fdes): Likewise.
24055
24056 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
24057
24058         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
24059
24060 2012-11-24  Adam Conrad  <adconrad@0c3.net>
24061
24062         * configure.in: Autodetect C++ header directories.
24063         * configure: Regenerated.
24064
24065 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
24066
24067         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
24068
24069 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
24070
24071         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24072
24073 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
24074
24075         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
24076         LDBL_MANT_DIG == 106]: Disable some tests.
24077         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24078         Likewise.
24079         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
24080         Likewise.
24081
24082         [BZ #14871]
24083         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
24084         input for small inputs.  Return +/- pi/2 for large inputs.
24085         * math/libm-test.inc (atan_test): Add more tests.
24086
24087         * sysdeps/generic/unwind-dw2-fde-glibc.c
24088         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
24089         __attribute__ ((unused)).
24090
24091         [BZ #14645]
24092         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
24093         x * y if x and y are nonzero and z is zero.
24094
24095         [BZ #14811]
24096         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
24097         nonzero exponents with absolute value below 0x1p-117 to +/-
24098         0x1p-117.
24099
24100         [BZ #14869]
24101         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
24102         up arguments below 2**-450, not just those below 2**-500.
24103         * math/libm-test.inc (hypot_test): Add another test.
24104
24105         [BZ #14868]
24106         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
24107         Return a+b for ratio over 2**120, not 2**60.
24108         * math/libm-test.inc (hypot_test): Add another test.
24109
24110         * math/libm-test.inc (clog_test): Use
24111         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
24112         (clog10_test): Likewise.
24113
24114         [BZ #6778]
24115         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
24116
24117 2012-11-22  Andreas Schwab  <schwab@suse.de>
24118
24119         * sysdeps/i386/fpu/libm-test-ulps: Update.
24120
24121 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
24122
24123         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
24124         printf output with newline.
24125
24126 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
24127
24128         [BZ #14865]
24129         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
24130         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
24131         -z nodlopen, -z initfirst and -z execstack support.
24132         * configure: Regenerated.
24133
24134         * elf/elf.h (DF_1_NODIRECT): New macro.
24135         (DF_1_IGNMULDEF): Likewise.
24136         (DF_1_NOKSYMS): Likewise.
24137         (DF_1_NOHDR): Likewise.
24138         (DF_1_EDITED): Likewise.
24139         (DF_1_NORELOC): Likewise.
24140         (DF_1_SYMINTPOSE): Likewise.
24141         (DF_1_GLOBAUDIT): Likewise.
24142         (DF_1_SINGLETON): Likewise.
24143         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
24144         DT_1_SUPPORTED_MASK bits.
24145         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
24146
24147 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
24148
24149         * sysdeps/unix/make-syscalls.sh: Document prefixes.
24150
24151 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
24152
24153         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
24154         macro.
24155
24156         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
24157         (sendmmsg): Move declarations...
24158         * socket/sys/socket.h: ... here.
24159         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
24160         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
24161         include it from...
24162         * socket/recvmmsg.c: ... this new file.
24163         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
24164         (sendmmsg): Rename to __sendmmsg, create weak alias and make
24165         definition of __sendmmsg hidden.
24166         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
24167         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
24168         Move ENOSYS stub into and include it from...
24169         * socket/sendmmsg.c: ... this new file.
24170         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
24171         (sysdep_routines): Move recvmmsg and sendmmsg...
24172         * socket/Makefile (routines): ... here.
24173         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
24174         (GLIBC_PRIVATE): Add __sendmmsg.
24175         * include/sys/socket.h (__sendmmsg): Add declarations.
24176         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
24177         sendmmsg.
24178
24179 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
24180
24181         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
24182         variable I1 with __attribute__ ((unused)).
24183         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24184
24185 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24186
24187         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
24188         DUMMY variables with __attribute__ ((unused)).
24189
24190         * bits/byteswap.h: Include <bits/types.h>.
24191         (__bswap_64): Use __uint64_t instead of unsigned long long int.
24192
24193 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24194
24195         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
24196         string_t.  Do not manually set errno.
24197         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
24198         length with __strnlen.  Make sure to both set errno and return it on
24199         failure.
24200
24201 2012-11-19  David S. Miller  <davem@davemloft.net>
24202
24203         With help from Joseph Myers.
24204         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
24205         very large arguments properly.
24206         * math/libm-test.inc (atan_test): New tests.
24207         (atan2_test): New tests.
24208         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24209         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24210
24211 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
24212
24213         [BZ #14856]
24214         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
24215         Define to 3.
24216
24217         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
24218         [POSIX] (EADDRNOTAVAIL): Likewise.
24219         [POSIX] (EAFNOSUPPORT): Likewise.
24220         [POSIX] (EALREADY): Likewise.
24221         [POSIX] (ECONNABORTED): Likewise.
24222         [POSIX] (ECONNREFUSED): Likewise.
24223         [POSIX] (ECONNRESET): Likewise.
24224         [POSIX] (EDESTADDRREQ): Likewise.
24225         [POSIX] (EDQUOT): Likewise.
24226         [POSIX] (EHOSTUNREACH): Likewise.
24227         [POSIX] (EIDRM): Likewise.
24228         [POSIX] (EISCONN): Likewise.
24229         [POSIX] (ELOOP): Likewise.
24230         [POSIX] (EMULTIHOP): Likewise.
24231         [POSIX] (ENETDOWN): Likewise.
24232         [POSIX] (ENETUNREACH): Likewise.
24233         [POSIX] (ENOBUFS): Likewise.
24234         [POSIX] (ENODATA): Likewise.
24235         [POSIX] (ENOLINK): Likewise.
24236         [POSIX] (ENOMSG): Likewise.
24237         [POSIX] (ENOPROTOOPT): Likewise.
24238         [POSIX] (ENOSR): Likewise.
24239         [POSIX] (ENOSTR): Likewise.
24240         [POSIX] (ENOTCONN): Likewise.
24241         [POSIX] (ENOTSOCK): Likewise.
24242         [POSIX] (EOPNOTSUPP): Likewise.
24243         [POSIX] (EOVERFLOW): Likewise.
24244         [POSIX] (EPROTO): Likewise.
24245         [POSIX] (EPROTONOSUPPORT): Likewise.
24246         [POSIX] (EPROTOTYPE): Likewise.
24247         [POSIX] (ESTALE): Likewise.
24248         [POSIX] (ETIME): Likewise.
24249         [POSIX] (ETXTBSY): Likewise.
24250         [POSIX] (EWOULDBLOCK): Likewise.
24251         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
24252         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
24253         [POSIX] (SEEK_CUR): Likewise.
24254         [POSIX] (SEEK_END): Likewise.
24255         [POSIX || UNIX98] (mode_t): Do not require.
24256         [POSIX] (off_t): Likewise.
24257         [POSIX] (pid_t): Likewise.
24258         [POSIX] (sys/stat.h): Do not allow header.
24259         [POSIX] (unistd.h): Likewise.
24260         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
24261         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
24262         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
24263         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
24264         require.
24265         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
24266         sigevent): Specify elements.
24267         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
24268         entry.
24269         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
24270         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
24271
24272         * conform/data/cpio.h-data [POSIX]: Disable whole file.
24273         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
24274         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
24275         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
24276         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
24277         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
24278         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
24279         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
24280         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
24281         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
24282         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
24283         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
24284         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
24285         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
24286         Likewise.
24287         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
24288         Likewise.
24289         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
24290         Likewise.
24291         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
24292         Likewise.
24293         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
24294         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
24295         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
24296         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
24297         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
24298         Specify lower bound on value.
24299         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
24300         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
24301         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
24302         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
24303         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
24304         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
24305         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
24306         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
24307         value.
24308         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
24309         as optional.
24310         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
24311         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
24312         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
24313         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
24314         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
24315         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
24316         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
24317         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
24318         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
24319         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
24320         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
24321         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
24322         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
24323         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
24324         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
24325         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
24326         entry.
24327         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
24328         optional.
24329         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
24330         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
24331         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
24332         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
24333         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
24334         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
24335         Likewise.
24336         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
24337         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
24338         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
24339         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
24340         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
24341         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
24342         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
24343         as optional.
24344         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
24345         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
24346         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
24347         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
24348         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
24349         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
24350         specify as optional.
24351         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
24352         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
24353         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
24354         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
24355         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
24356         [XPG3] (NL_LANGMAX): Likewise.
24357         [POSIX || XPG3] (NL_MSGMAX): Likewise.
24358         [POSIX || XPG3] (NL_NMAX): Likewise.
24359         [POSIX || XPG3] (NL_SETMAX): Likewise.
24360         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
24361         [XPG3] (NZERO): Likewise.
24362         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
24363         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
24364         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
24365         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
24366         (REG_ERANGE): Expect.
24367         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
24368         optional-constant.
24369         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
24370         Use (void) in prototype.
24371         [POSIX] (*_t): Allow.
24372         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
24373         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
24374         (WRDE_BADVAL): Expect.
24375
24376         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
24377         expect.
24378         [XPG3 || XPG4] (O_RSYNC): Likewise.
24379         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
24380         Likewise.
24381         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24382         [XPG3 || XPG4] (sigqueue): Likewise.
24383         [XPG3 || XPG4] (sigtimedwait): Likewise.
24384         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24385         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24386         [XPG3 || XPG4] (vsnprintf): Likewise.
24387         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24388         Likewise.
24389         [XPG3 || XPG4] (blksize_t): Likewise.
24390         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24391         Likewise.
24392         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24393         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24394         [XPG3 || XPG4] (struct itimerspec): Likewise.
24395         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24396         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24397         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24398         [XPG3 || XPG4] (clockid_t): Likewise.
24399         [XPG3 || XPG4] (timer_t): Likewise.
24400         [XPG3 || XPG4] (clock_getres): Likewise.
24401         [XPG3 || XPG4] (clock_gettime): Likewise.
24402         [XPG3 || XPG4] (clock_settime): Likewise.
24403         [XPG3 || XPG4] (nanosleep): Likewise.
24404         [XPG3 || XPG4] (timer_create): Likewise.
24405         [XPG3 || XPG4] (timer_delete): Likewise.
24406         [XPG3 || XPG4] (timer_gettime): Likewise.
24407         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24408         [XPG3 || XPG4] (timer_settime): Likewise.
24409         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24410         [XPG3 || XPG4] (getlogin_r): Likewise.
24411         [XPG3 || XPG4] (pread): Likewise.
24412         [XPG3 || XPG4] (pthread_atfork): Likewise.
24413         [XPG3 || XPG4] (pwrite): Likewise.
24414
24415         [BZ #14835]
24416         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24417         <bits/siginfo.h>.
24418
24419 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24420
24421         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24422         finalizing MALLSTREAM.
24423
24424         * sysdeps/mach/hurd/syncfs.c: New file.
24425
24426 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24427
24428         [BZ #14719]
24429         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24430         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24431         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24432         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24433         (_nss_dns_gethostbyname4_r): Likewise.
24434         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24435         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24436
24437 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24438
24439         [BZ #13763]
24440         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24441
24442 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24443
24444         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24445         * elf/cache.c (print_entry): Print ",AArch64" for
24446         FLAG_AARCH64_LIB64
24447
24448         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24449         * elf/cache.c (print_entry): Print ",hard-float" for
24450         FLAG_ARM_LIBHF.
24451
24452 2012-11-18  David S. Miller  <davem@davemloft.net>
24453
24454         With help from Joseph Myers.
24455         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24456         cutoff to 2**-13.
24457         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24458         cutoff to 2**-25.
24459         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24460         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24461         small.
24462         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24463         * math/libm-test.inc (y0_test): New tests.
24464         (y1_test): New tests.
24465         * sysdeps/i386/fpu/libm-test-ulps: Update.
24466         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24467         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24468
24469 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24470
24471         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24472         64-bit targets.
24473         * configure: Regenerated.
24474
24475 2012-11-17  David S. Miller  <davem@davemloft.net>
24476
24477         [BZ #14811]
24478         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24479         nonzero exponents with absolute value below 0x1p-128 to +/-
24480         0x1p-128.
24481
24482 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24483
24484         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24485
24486         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24487
24488         * posix/getconf-speclist.c: New file.
24489         * posix/posix-envs.def: Likewise.
24490         * posix/confstr.c (START_ENV_GROUP): New macro.
24491         (END_ENV_GROUP): Likewise.
24492         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24493         (KNOWN_PRESENT_ENV_STRING): Likewise.
24494         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24495         (UNKNOWN_ENVIRONMENT): Likewise.
24496         (confstr): Include posix-envs.def instead of handling
24497         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24498         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24499         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24500         (END_ENV_GROUP): Likewise.
24501         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24502         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24503         (UNKNOWN_ENVIRONMENT): Likewise.
24504         (__sysconf): Include posix-envs.def instead of handling associated
24505         cases directly here.
24506         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24507         preprocessing getconf-speclist.c rather than running getconf or
24508         generating empty file.
24509
24510 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24511
24512         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24513
24514 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24515
24516         [BZ #14672]
24517         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24518
24519 2012-11-16  David S. Miller  <davem@davemloft.net>
24520
24521         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24522         smaller than LDBL_EPSILON/2.0L, just return xm1.
24523
24524 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24525
24526         * elf/tst-array1.c (init): Set constructor priority to 1000.
24527         (fini): Set destructor priority to 1000.
24528         * elf/tst-array2dep.c: Likewise.
24529
24530 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24531
24532         [BZ #11741]
24533         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24534         (_IO_new_file_xsputn): Also return EOF if none of the input
24535         data was written when overflow failed.
24536         * libio/iopadn.c (_IO_padn): Likewise.
24537         * libio/iowpadn.c (_IO_wpadn): Likewise.
24538         * stdio-common/tst-put-error.c: Add copyright notice.
24539         (do_test): Add case for printing padded string.
24540         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24541         _IO_padn returned error.
24542         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24543         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24544         return EOF.
24545
24546 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24547
24548         * libio/libioP.h: Add comment note that the references to C++
24549         bits are now obsolete.
24550
24551 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24552
24553         * math/libm-test.inc (check_complex): Use asprintf.
24554
24555 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24556
24557         * debug/pcprofiledump.c (print_version): Update copyright year.
24558         * malloc/memusagestat.c (print_version): Likewise.
24559
24560 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24561
24562         [BZ #14831]
24563         * elf/Makefile (tests): Add tst-audit8.
24564         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24565         ($(objpfx)tst-audit8.out): New target.
24566         (tst-audit8-ENV): New variable.
24567         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24568         audit if l_reloc_result is NULL.
24569         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24570         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24571         * elf/tst-audit8.c: New file.
24572
24573 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24574
24575         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24576         * misc/Makefile (CFLAGS-select.c): Define.
24577         * posix/Makefile (CFLAGS-pause.c): Define.
24578
24579 2012-11-13  David S. Miller  <davem@davemloft.net>
24580
24581         * crypt/Makefile: Move test targets after toplevel Rules
24582         inclusion.  Grab any necessary sysdep routines when linking.
24583         * crypt/md5.c (md5_process_block): Remove define, we will always
24584         name it __md5_process_block.
24585         (md5_finish_ctx): Update md5_process_block call.
24586         (md5_stream): Likewise.
24587         (md5_process_bytes): Likewise.
24588         (md5_process_block): Rename to __md5_process_block and move to ...
24589         * crypt/md5-block.c: ... here.
24590         * crypt/sha256.c (sha256_process_block): Move to ...
24591         * crypt/sha256-block.c: ... here.
24592         * crypt/sha512.c (sha512_process_block): Move to ...
24593         * crypt/sha512-block.c: ... here.
24594         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24595         path.
24596         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24597         * sysdeps/sparc/sparc64/multiarch/Makefile
24598         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24599         crypt subdir.
24600         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24601         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24602         multiarch changes.
24603         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24604         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24605         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24606         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24607         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24608         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24609         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24610         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24611         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24612         file.
24613         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24614         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24615         file.
24616         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24617
24618 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24619
24620         * timezone/tzselect.ksh: Update from tzcode git revision
24621         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24622         * timezone/zdump.c: Likewise.
24623         * timezone/zic.c: Likewise.
24624         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24625         in TZVERSION setting, not $(PKGVERSION).
24626         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24627         REPORT_BUGS_TO settings.
24628
24629         [BZ #14838]
24630         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24631         macro.
24632
24633 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24634
24635         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24636         detection to immediately after _FP_ROUND().
24637         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24638         bits are 0.
24639
24640 2012-11-11  David S. Miller  <davem@davemloft.net>
24641
24642         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24643         inttypes.h
24644         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24645         __close rather than their public counterparts.
24646
24647 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24648
24649         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24650         file.
24651         [UNIX98] (sem_timedwait): Do not expect.
24652         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24653         [XPG4 || UNIX98] (sockatmark): Do not expect.
24654         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24655         (clock_getcpuclockid): Do not expect.
24656         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24657         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24658         Do not expect.
24659         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24660         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24661         [UNIX98] (vwscanf): Likewise.
24662         [UNIX98] (vswscanf): Likewise.
24663
24664 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24665
24666         * timezone/version.h: Remove file.
24667         * timezone/README: Do not refer to version.h.
24668         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24669         $(objpfx)version.h.
24670         ($(objpfx)zdump.o): Likewise.
24671         ($(objpfx)version.h): New target.
24672
24673         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24674         2012i.
24675         * timezone/README: Don't mention modification to tzselect.ksh.
24676         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24677         work on unmodified tzselect.ksh.  Substitute version numbers in
24678         tzselect.ksh.
24679
24680         * Makefile (format-me): Remove.
24681         (INSTALL): Adjust indentation.  Use commands directly instead of
24682         using $(format-me).
24683
24684         * aclocal.m4 (ACX_PKGVERSION): New macro.
24685         (ACX_BUGURL): Likewise.
24686         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24687         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24688         (REPORT_BUGS_TO): Likewise.
24689         * configure: Regenerated.
24690         * config.h.in (PKGVERSION): New macro.
24691         (REPORT_BUGS_TO): Likewise.
24692         * config.make.in (PKGVERSION): New variable.
24693         (PKGVERSION_TEXI): Likewise.
24694         (REPORT_BUGS_TO): Likewise.
24695         (REPORT_BUGS_TEXI): Likewise.
24696         * Makefile (format-me): Use -I$(common-objpfx)manual.
24697         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24698         ($(common-objpfx)manual/%): New target.
24699         (manual/%): Remove target.
24700         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24701         (print_version): Use PKGVERSION.
24702         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24703         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24704         and REPORT_BUGS_TO.
24705         ($(objpfx)xtrace): Likewise.
24706         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
24707         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
24708         (print_version): Use PKGVERSION.
24709         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
24710         (do_version): Use PKGVERSION.
24711         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
24712         REPORT_BUGS_TO.
24713         (common-ldd-rewrite): Likewise.
24714         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
24715         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
24716         (print_version): Use PKGVERSION.
24717         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
24718         * elf/pldd.c (argp_program_bug_address): Remove variable.
24719         (more_help): New function.
24720         (argp): Use more_help.
24721         (print_version): Use PKGVERSION.
24722         * elf/sln.c (main): Use PKGVERSION.
24723         (usage): Use REPORT_BUGS_TO.
24724         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
24725         (top level): Use PKGVERSION.
24726         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
24727         (print_version): Use PKGVERSION.
24728         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
24729         (print_version): Use PKGVERSION.
24730         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
24731         (print_version): Use PKGVERSION.
24732         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
24733         (print_version): Use PKGVERSION.
24734         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
24735         (print_version): Use PKGVERSION.
24736         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
24737         (print_version): Use PKGVERSION.
24738         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
24739         and BUGURL.
24740         ($(objpfx)memusage): Likewise.
24741         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
24742         (do_version): Use PKGVERSION.
24743         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
24744         (print_version): Use PKGVERSION.
24745         * malloc/mtrace.pl ($PACKAGE): Remove variable.
24746         ($PKGVERSION): New variable.
24747         ($REPORT_BUGS_TO): Likewise.
24748         (usage): Use $REPORT_BUGS_TO.
24749         (top level): Use $PKGVERSION.
24750         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
24751         ($(objpfx)pkgvers.texi): New rule.
24752         ($(objpfx)stamp-pkgvers): Likewise.
24753         * manual/install.texi: Include pkgvers.texi.
24754         (--with-pkgversion): Document new configure option.
24755         (--with-bugurl): Likewise.
24756         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
24757         than necessarily for this particular distribution.  Use
24758         REPORT_BUGS_TO for where to report bugs.
24759         * INSTALL: Regenerated.
24760         * manual/libc.texinfo: Include pkgvers.texi.
24761         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
24762         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
24763         (print_version): Use PKGVERSION.
24764         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
24765         (print_version): Use PKGVERSION.
24766         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
24767         (print_version): Use PKGVERSION.
24768         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
24769         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
24770         macro.
24771         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
24772         (print_version): Use PKGVERSION.
24773         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
24774         (print_version): Use PKGVERSION.
24775         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
24776         and PKGVERSION.
24777
24778         * timezone/checktab.awk: Update from tzcode 2012i.
24779         * timezone/ialloc.c: Likewise.
24780         * timezone/private.h: Likewise.
24781         * timezone/scheck.c: Likewise.
24782         * timezone/tzfile.h: Likewise.
24783         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
24784         (TZVERSION): Hardcode tzcode version number.
24785         * timezone/zdump.c: Update from tzcode 2012i.
24786         * timezone/zic.c: Likewise.
24787         * timezone/version.h: New file.
24788         * timezone/README: Describe version.h.  Update upstream location.
24789
24790         [BZ #14824]
24791         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
24792         (mktemp): Enable declaration.
24793         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
24794         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
24795         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
24796         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
24797         Likewise.
24798         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
24799         Likewise.
24800         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
24801         Likewise.
24802         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
24803         Likewise.
24804         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
24805         Likewise.
24806         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
24807         Likewise.
24808
24809         [BZ #14821]
24810         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
24811         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
24812         for copies of such integer values.
24813         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
24814         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
24815
24816 2012-11-09  Andreas Jaeger  <aj@suse.de>
24817
24818         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
24819         definitions and declarations that are provided by
24820         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24821
24822 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24823
24824         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
24825         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
24826         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
24827         definition.
24828
24829 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24830
24831         * elf/elf.h: Update comment before AArch64 relocations.
24832
24833 2012-11-07  David S. Miller  <davem@davemloft.net>
24834
24835         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
24836         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24837         (__start_context): Declare.
24838         (__makecontext_ret): Delete.
24839         (__makecontext): Hook up __start_context instead of
24840         __makecontext_ret.
24841         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
24842         (sysdep_routines): Add __start_context when in stdlib.
24843
24844 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24845
24846         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
24847         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
24848         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
24849         hardcoded "nm".
24850         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
24851         (READELF): New variable.  Use it instead of hardcoded "readelf".
24852
24853 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24854
24855         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
24856         * sysdeps/x86/Makefile: Here.
24857         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
24858         * sysdeps/x86/tst-xmmymm.sh: This.
24859
24860 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24861
24862         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
24863         expectations.
24864         [UNIX98] (pthread_barrier_t): Do not expect.
24865         [UNIX98] (pthread_barrierattr_t): Likewise.
24866         [UNIX98] (pthread_spinlock_t): Likewise.
24867         [UNIX98] (pthread_barrier_destroy): Likewise.
24868         [UNIX98] (pthread_barrier_init): Likewise.
24869         [UNIX98] (pthread_barrier_wait): Likewise.
24870         [UNIX98] (pthread_barrierattr_destroy): Likewise.
24871         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
24872         [UNIX98] (pthread_barrierattr_init): Likewise.
24873         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
24874         [UNIX98] (pthread_getcpuclockid): Likewise.
24875         [UNIX98] (pthread_mutex_timedlock): Likewise.
24876         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
24877         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
24878         [UNIX98] (pthread_sigmask): Likewise.
24879         [UNIX98] (pthread_spin_destroy): Likewise.
24880         [UNIX98] (pthread_spin_init): Likewise.
24881         [UNIX98] (pthread_spin_lock): Likewise.
24882         [UNIX98] (pthread_spin_trylock): Likewise.
24883         [UNIX98] (pthread_spin_unlock): Likewise.
24884         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
24885         Do not expect.
24886         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
24887         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
24888         [XPG3 || XPG4] (pthread_cond_t): Likewise.
24889         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
24890         [XPG3 || XPG4] (pthread_key_t): Likewise.
24891         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
24892         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
24893         [XPG3 || XPG4] (pthread_once_t): Likewise.
24894         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
24895         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
24896         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
24897         [XPG3 || XPG4] (pthread_t): Likewise.
24898
24899         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
24900         not expect.
24901         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
24902
24903         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
24904         Change function return type to int.
24905
24906         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
24907         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
24908         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
24909         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
24910         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
24911         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
24912         [!POSIX] (posix_madvise): Likewise.
24913         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
24914         && !UNIX98].
24915         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
24916         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
24917         (mode_t): Likewise.
24918         (posix_mem_offset): Likewise.
24919         (posix_typed_mem_get_info): Likewise.
24920         (posix_typed_mem_open): Likewise.
24921
24922         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
24923         Change condition to [XOPEN2K8].
24924
24925         * conform/conformtest.pl: Preprocess allow-header data with -x c
24926         instead of from stdin.
24927         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
24928         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
24929         [C99-based standards] (cerfc): Likewise.
24930         [C99-based standards] (cexp2): Likewise.
24931         [C99-based standards] (cexpm1): Likewise.
24932         [C99-based standards] (clog10): Likewise.
24933         [C99-based standards] (clog1p): Likewise.
24934         [C99-based standards] (clog2): Likewise.
24935         [C99-based standards] (clgamma): Likewise.
24936         [C99-based standards] (ctgamma): Likewise.
24937         [C99-based standards] (cerff): Likewise.
24938         [C99-based standards] (cerfcf): Likewise.
24939         [C99-based standards] (cexp2f): Likewise.
24940         [C99-based standards] (cexpm1f): Likewise.
24941         [C99-based standards] (clog10f): Likewise.
24942         [C99-based standards] (clog1pf): Likewise.
24943         [C99-based standards] (clog2f): Likewise.
24944         [C99-based standards] (clgammaf): Likewise.
24945         [C99-based standards] (ctgammaf): Likewise.
24946         [C99-based standards] (cerfl): Likewise.
24947         [C99-based standards] (cerfcl): Likewise.
24948         [C99-based standards] (cexp2l): Likewise.
24949         [C99-based standards] (cexpm1l): Likewise.
24950         [C99-based standards] (clog10l): Likewise.
24951         [C99-based standards] (clog1pl): Likewise.
24952         [C99-based standards] (clog2l): Likewise.
24953         [C99-based standards] (clgammal): Likewise.
24954         [C99-based standards] (ctgammal): Likewise.
24955         * conform/data/inttypes.h-data [C99-based standards]: Include
24956         stdint.h-data.  Remove all expectations for stdint.h contents.
24957         [C99-based standards] (PRI*): Do not allow.
24958         [C99-based standards] (SCN*): Likewise.
24959         [C99-based standards] (*_t): Likewise.
24960         [C99-based-standards] (PRId8): Expect macro.
24961         [C99-based-standards] (PRIi8): Likewise.
24962         [C99-based-standards] (PRIo8): Likewise.
24963         [C99-based-standards] (PRIu8): Likewise.
24964         [C99-based-standards] (PRIx8): Likewise.
24965         [C99-based-standards] (PRIX8): Likewise.
24966         [C99-based-standards] (SCNd8): Likewise.
24967         [C99-based-standards] (SCNi8): Likewise.
24968         [C99-based-standards] (SCNo8): Likewise.
24969         [C99-based-standards] (SCNu8): Likewise.
24970         [C99-based-standards] (SCNx8): Likewise.
24971         [C99-based-standards] (PRIdLEAST8): Likewise.
24972         [C99-based-standards] (PRIiLEAST8): Likewise.
24973         [C99-based-standards] (PRIoLEAST8): Likewise.
24974         [C99-based-standards] (PRIuLEAST8): Likewise.
24975         [C99-based-standards] (PRIxLEAST8): Likewise.
24976         [C99-based-standards] (PRIXLEAST8): Likewise.
24977         [C99-based-standards] (SCNdLEAST8): Likewise.
24978         [C99-based-standards] (SCNiLEAST8): Likewise.
24979         [C99-based-standards] (SCNoLEAST8): Likewise.
24980         [C99-based-standards] (SCNuLEAST8): Likewise.
24981         [C99-based-standards] (SCNxLEAST8): Likewise.
24982         [C99-based-standards] (PRIdFAST8): Likewise.
24983         [C99-based-standards] (PRIiFAST8): Likewise.
24984         [C99-based-standards] (PRIoFAST8): Likewise.
24985         [C99-based-standards] (PRIuFAST8): Likewise.
24986         [C99-based-standards] (PRIxFAST8): Likewise.
24987         [C99-based-standards] (PRIXFAST8): Likewise.
24988         [C99-based-standards] (SCNdFAST8): Likewise.
24989         [C99-based-standards] (SCNiFAST8): Likewise.
24990         [C99-based-standards] (SCNoFAST8): Likewise.
24991         [C99-based-standards] (SCNuFAST8): Likewise.
24992         [C99-based-standards] (SCNxFAST8): Likewise.
24993         [C99-based-standards] (PRId16): Likewise.
24994         [C99-based-standards] (PRIi16): Likewise.
24995         [C99-based-standards] (PRIo16): Likewise.
24996         [C99-based-standards] (PRIu16): Likewise.
24997         [C99-based-standards] (PRIx16): Likewise.
24998         [C99-based-standards] (PRIX16): Likewise.
24999         [C99-based-standards] (SCNd16): Likewise.
25000         [C99-based-standards] (SCNi16): Likewise.
25001         [C99-based-standards] (SCNo16): Likewise.
25002         [C99-based-standards] (SCNu16): Likewise.
25003         [C99-based-standards] (SCNx16): Likewise.
25004         [C99-based-standards] (PRIdLEAST16): Likewise.
25005         [C99-based-standards] (PRIiLEAST16): Likewise.
25006         [C99-based-standards] (PRIoLEAST16): Likewise.
25007         [C99-based-standards] (PRIuLEAST16): Likewise.
25008         [C99-based-standards] (PRIxLEAST16): Likewise.
25009         [C99-based-standards] (PRIXLEAST16): Likewise.
25010         [C99-based-standards] (SCNdLEAST16): Likewise.
25011         [C99-based-standards] (SCNiLEAST16): Likewise.
25012         [C99-based-standards] (SCNoLEAST16): Likewise.
25013         [C99-based-standards] (SCNuLEAST16): Likewise.
25014         [C99-based-standards] (SCNxLEAST16): Likewise.
25015         [C99-based-standards] (PRIdFAST16): Likewise.
25016         [C99-based-standards] (PRIiFAST16): Likewise.
25017         [C99-based-standards] (PRIoFAST16): Likewise.
25018         [C99-based-standards] (PRIuFAST16): Likewise.
25019         [C99-based-standards] (PRIxFAST16): Likewise.
25020         [C99-based-standards] (PRIXFAST16): Likewise.
25021         [C99-based-standards] (SCNdFAST16): Likewise.
25022         [C99-based-standards] (SCNiFAST16): Likewise.
25023         [C99-based-standards] (SCNoFAST16): Likewise.
25024         [C99-based-standards] (SCNuFAST16): Likewise.
25025         [C99-based-standards] (SCNxFAST16): Likewise.
25026         [C99-based-standards] (PRId32): Likewise.
25027         [C99-based-standards] (PRIi32): Likewise.
25028         [C99-based-standards] (PRIo32): Likewise.
25029         [C99-based-standards] (PRIu32): Likewise.
25030         [C99-based-standards] (PRIx32): Likewise.
25031         [C99-based-standards] (PRIX32): Likewise.
25032         [C99-based-standards] (SCNd32): Likewise.
25033         [C99-based-standards] (SCNi32): Likewise.
25034         [C99-based-standards] (SCNo32): Likewise.
25035         [C99-based-standards] (SCNu32): Likewise.
25036         [C99-based-standards] (SCNx32): Likewise.
25037         [C99-based-standards] (PRIdLEAST32): Likewise.
25038         [C99-based-standards] (PRIiLEAST32): Likewise.
25039         [C99-based-standards] (PRIoLEAST32): Likewise.
25040         [C99-based-standards] (PRIuLEAST32): Likewise.
25041         [C99-based-standards] (PRIxLEAST32): Likewise.
25042         [C99-based-standards] (PRIXLEAST32): Likewise.
25043         [C99-based-standards] (SCNdLEAST32): Likewise.
25044         [C99-based-standards] (SCNiLEAST32): Likewise.
25045         [C99-based-standards] (SCNoLEAST32): Likewise.
25046         [C99-based-standards] (SCNuLEAST32): Likewise.
25047         [C99-based-standards] (SCNxLEAST32): Likewise.
25048         [C99-based-standards] (PRIdFAST32): Likewise.
25049         [C99-based-standards] (PRIiFAST32): Likewise.
25050         [C99-based-standards] (PRIoFAST32): Likewise.
25051         [C99-based-standards] (PRIuFAST32): Likewise.
25052         [C99-based-standards] (PRIxFAST32): Likewise.
25053         [C99-based-standards] (PRIXFAST32): Likewise.
25054         [C99-based-standards] (SCNdFAST32): Likewise.
25055         [C99-based-standards] (SCNiFAST32): Likewise.
25056         [C99-based-standards] (SCNoFAST32): Likewise.
25057         [C99-based-standards] (SCNuFAST32): Likewise.
25058         [C99-based-standards] (SCNxFAST32): Likewise.
25059         [C99-based-standards] (PRId64): Likewise.
25060         [C99-based-standards] (PRIi64): Likewise.
25061         [C99-based-standards] (PRIo64): Likewise.
25062         [C99-based-standards] (PRIu64): Likewise.
25063         [C99-based-standards] (PRIx64): Likewise.
25064         [C99-based-standards] (PRIX64): Likewise.
25065         [C99-based-standards] (SCNd64): Likewise.
25066         [C99-based-standards] (SCNi64): Likewise.
25067         [C99-based-standards] (SCNo64): Likewise.
25068         [C99-based-standards] (SCNu64): Likewise.
25069         [C99-based-standards] (SCNx64): Likewise.
25070         [C99-based-standards] (PRIdLEAST64): Likewise.
25071         [C99-based-standards] (PRIiLEAST64): Likewise.
25072         [C99-based-standards] (PRIoLEAST64): Likewise.
25073         [C99-based-standards] (PRIuLEAST64): Likewise.
25074         [C99-based-standards] (PRIxLEAST64): Likewise.
25075         [C99-based-standards] (PRIXLEAST64): Likewise.
25076         [C99-based-standards] (SCNdLEAST64): Likewise.
25077         [C99-based-standards] (SCNiLEAST64): Likewise.
25078         [C99-based-standards] (SCNoLEAST64): Likewise.
25079         [C99-based-standards] (SCNuLEAST64): Likewise.
25080         [C99-based-standards] (SCNxLEAST64): Likewise.
25081         [C99-based-standards] (PRIdFAST64): Likewise.
25082         [C99-based-standards] (PRIiFAST64): Likewise.
25083         [C99-based-standards] (PRIoFAST64): Likewise.
25084         [C99-based-standards] (PRIuFAST64): Likewise.
25085         [C99-based-standards] (PRIxFAST64): Likewise.
25086         [C99-based-standards] (PRIXFAST64): Likewise.
25087         [C99-based-standards] (SCNdFAST64): Likewise.
25088         [C99-based-standards] (SCNiFAST64): Likewise.
25089         [C99-based-standards] (SCNoFAST64): Likewise.
25090         [C99-based-standards] (SCNuFAST64): Likewise.
25091         [C99-based-standards] (SCNxFAST64): Likewise.
25092         [C99-based-standards] (PRIdMAX): Likewise.
25093         [C99-based-standards] (PRIiMAX): Likewise.
25094         [C99-based-standards] (PRIoMAX): Likewise.
25095         [C99-based-standards] (PRIuMAX): Likewise.
25096         [C99-based-standards] (PRIxMAX): Likewise.
25097         [C99-based-standards] (PRIXMAX): Likewise.
25098         [C99-based-standards] (SCNdMAX): Likewise.
25099         [C99-based-standards] (SCNiMAX): Likewise.
25100         [C99-based-standards] (SCNoMAX): Likewise.
25101         [C99-based-standards] (SCNuMAX): Likewise.
25102         [C99-based-standards] (SCNxMAX): Likewise.
25103         [C99-based-standards] (PRIdPTR): Likewise.
25104         [C99-based-standards] (PRIiPTR): Likewise.
25105         [C99-based-standards] (PRIoPTR): Likewise.
25106         [C99-based-standards] (PRIuPTR): Likewise.
25107         [C99-based-standards] (PRIxPTR): Likewise.
25108         [C99-based-standards] (PRIXPTR): Likewise.
25109         [C99-based-standards] (SCNdPTR): Likewise.
25110         [C99-based-standards] (SCNiPTR): Likewise.
25111         [C99-based-standards] (SCNoPTR): Likewise.
25112         [C99-based-standards] (SCNuPTR): Likewise.
25113         [C99-based-standards] (SCNxPTR): Likewise.
25114         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
25115         allow.
25116         * conform/data/stdint.h-data: Update comments to clarify
25117         requirements.
25118         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
25119         type.
25120         [C99-based standards] (INT8_MAX): Likewise.
25121         [C99-based standards] (INT16_MIN): Likewise.
25122         [C99-based standards] (INT16_MAX): Likewise.
25123         [C99-based standards] (INT32_MIN): Likewise.
25124         [C99-based standards] (INT32_MAX): Likewise.
25125         [C99-based standards] (INT64_MIN): Likewise.
25126         [C99-based standards] (INT64_MAX): Likewise.
25127         [C99-based standards] (UINT8_MAX): Likewise.
25128         [C99-based standards] (UINT16_MAX): Likewise.
25129         [C99-based standards] (UINT32_MAX): Likewise.
25130         [C99-based standards] (UINT64_MAX): Likewise.
25131         [C99-based standards] (INT_LEAST8_MIN): Likewise.
25132         [C99-based standards] (INT_LEAST8_MAX): Likewise.
25133         [C99-based standards] (INT_LEAST16_MIN): Likewise.
25134         [C99-based standards] (INT_LEAST16_MAX): Likewise.
25135         [C99-based standards] (INT_LEAST32_MIN): Likewise.
25136         [C99-based standards] (INT_LEAST32_MAX): Likewise.
25137         [C99-based standards] (INT_LEAST64_MIN): Likewise.
25138         [C99-based standards] (INT_LEAST64_MAX): Likewise.
25139         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
25140         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
25141         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
25142         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
25143         [C99-based standards] (INT_FAST8_MIN): Likewise.
25144         [C99-based standards] (INT_FAST8_MAX): Likewise.
25145         [C99-based standards] (INT_FAST16_MIN): Likewise.
25146         [C99-based standards] (INT_FAST16_MAX): Likewise.
25147         [C99-based standards] (INT_FAST32_MIN): Likewise.
25148         [C99-based standards] (INT_FAST32_MAX): Likewise.
25149         [C99-based standards] (INT_FAST64_MIN): Likewise.
25150         [C99-based standards] (INT_FAST64_MAX): Likewise.
25151         [C99-based standards] (UINT_FAST8_MAX): Likewise.
25152         [C99-based standards] (UINT_FAST16_MAX): Likewise.
25153         [C99-based standards] (UINT_FAST32_MAX): Likewise.
25154         [C99-based standards] (UINT_FAST64_MAX): Likewise.
25155         [C99-based standards] (INTPTR_MIN): Likewise.
25156         [C99-based standards] (INTPTR_MAX): Likewise.
25157         [C99-based standards] (UINTPTR_MAX): Likewise.
25158         [C99-based standards] (INTMAX_MIN): Likewise.
25159         [C99-based standards] (INTMAX_MAX): Likewise.
25160         [C99-based standards] (UINTMAX_MAX): Likewise.
25161         [C99-based standards] (PTRDIFF_MIN): Likewise.
25162         [C99-based standards] (PTRDIFF_MAX): Likewise.
25163         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
25164         [C99-based standards] (SIZE_MAX): Likewise.
25165         [C99-based standards] (WCHAR_MAX): Likewise.
25166         [C99-based standards] (WINT_MAX): Likewise.
25167         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
25168         constraint on value.
25169         [C99-based standards] (WCHAR_MIN): Likewise.
25170         [C99-based standards] (WINT_MIN): Likewise.
25171         [C99-based standards] (*_t): Allow.
25172         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
25173         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
25174         Include math.h-data and complex.h-data.  Remove all expectations
25175         of math.h and complex.h contents.
25176         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
25177         at end of line.
25178         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
25179         (struct tm): Expect tag.
25180         [C99-based-standards] (wcstof): Expect function.
25181         [C99-based-standards] (wcstold): Likewise.
25182         [C99-based-standards] (wcstoll): Likewise.
25183         [C99-based-standards] (wcstoull): Likewise.
25184         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
25185         macro-int-constant.  Specify type.
25186         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
25187         constraint on value.
25188         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25189         Specify type.
25190         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
25191         Specify value.
25192         [ISO C standards]: Do not allow headers.
25193         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
25194         wcs[abcdefghijklmnopqrstuvwxyz]*.
25195         [ISO C standards] (*_t): Do not allow.
25196         * conform/data/wctype.h-data [C99-based standards] (iswblank):
25197         Expect function.
25198         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
25199         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
25200         Specify type.
25201         [ISO C standards]: Do not allow headers.
25202         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
25203         is[abcdefghijklmnopqrstuvwxyz]*.
25204         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
25205         to[abcdefghijklmnopqrstuvwxyz]*.
25206         [ISO C standards] (*_t): Do not allow.
25207         * conform/data/stdalign.h-data: New file.
25208         * conform/data/stdbool.h-data: Likewise.
25209         * conform/data/stdnoreturn.h-data: Likewise.
25210
25211 2012-11-07  Roland McGrath  <roland@hack.frob.com>
25212
25213         [BZ #14815]
25214         * manual/filesys.texi (Directory Entries): Typo fix.
25215         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
25216
25217 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25218
25219         * elf/elf.h (EM_AARCH64): New macro.
25220         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
25221         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
25222         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
25223         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
25224         (R_AARCH64_TLSDESC): Likewise.
25225         (NT_ARM_TLS): Likewise.
25226         (NT_ARM_HW_BREAK): Likewise.
25227         (NT_ARM_HW_WATCH): Likewise.
25228
25229 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25230
25231         [BZ #14811]
25232         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
25233         (__ieee754_powl): Saturate nonzero exponents with absolute value
25234         below 0x1p-79 to +/- 0x1p-79.
25235         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
25236         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
25237         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
25238         nonzero exponents with absolute value below 0x1p-32 to +/-
25239         0x1p-32.
25240         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
25241         (__ieee754_powl): Saturate nonzero exponents with absolute value
25242         below 0x1p-79 to +/- 0x1p-79.
25243         * math/libm-test.inc (pow_test): Add more tests.
25244
25245 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25246
25247         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
25248         _dl_s390_cap_flags with kernel. Increase string length.
25249         (_dl_s390_platforms): Add z196 and zEC12.
25250
25251 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25252
25253         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
25254         Change XOPEN21K to XOPEN2K.
25255
25256 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25257
25258         * string/memmove.c: Use memcpy when possible.
25259
25260 2012-11-06  Andreas Jaeger  <aj@suse.de>
25261
25262         * po/eo.po: Update from translation team.
25263
25264 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
25265
25266         [BZ #14793]
25267         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
25268         exponent and small x and y exponents, scale x or y up.  Increase
25269         by 2 the exponent used in scaling up.
25270         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25271         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25272         * math/libm-test.inc (fma_test): Add more tests.
25273         (fma_test_towardzero): Likewise.
25274         (fma_test_downward): Likewise.
25275         (fma_test_upward): Likewise.
25276
25277 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
25278
25279         [BZ #14805]
25280         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
25281         fenv_t *.
25282
25283         [BZ #14801]
25284         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
25285         namespace for names of struct fields.
25286         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
25287         fenv_t fields.
25288         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
25289         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
25290
25291 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25292
25293         [BZ #3665]
25294         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
25295
25296 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25297
25298         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
25299         PTR_DEMANGLE.
25300
25301         [BZ #5246]
25302         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
25303         PTR_DEMANGLE.
25304
25305 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
25306
25307         [BZ #14797]
25308         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
25309         definitely overflow as x * y not x * y + z.
25310         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25311         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25312         * math/libm-test.inc (fma_test): Add more tests.
25313         (fma_test_towardzero): Likewise.
25314         (fma_test_downward): Likewise.
25315         (fma_test_upward): Likewise.
25316
25317 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
25318
25319         [BZ #157]
25320
25321         * include/stub-tag.h: Remove file.
25322         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
25323         '#include' of it.
25324         * manual/maint.texi (Porting): Don't reference it.
25325         * Makerules ($(objpfx)stubs): Likewise.
25326         * dirent/closedir.c: Don't include <stub-tag.h>.
25327         * dirent/dirfd.c: Likewise.
25328         * dirent/fdopendir.c: Likewise.
25329         * dirent/getdents.c: Likewise.
25330         * dirent/getdents64.c: Likewise.
25331         * dirent/opendir.c: Likewise.
25332         * dirent/readdir.c: Likewise.
25333         * dirent/readdir64.c: Likewise.
25334         * dirent/readdir64_r.c: Likewise.
25335         * dirent/readdir_r.c: Likewise.
25336         * dirent/rewinddir.c: Likewise.
25337         * dirent/seekdir.c: Likewise.
25338         * dirent/telldir.c: Likewise.
25339         * gmon/profil.c: Likewise.
25340         * grp/setgroups.c: Likewise.
25341         * inet/if_index.c: Likewise.
25342         * io/access.c: Likewise.
25343         * io/chdir.c: Likewise.
25344         * io/chmod.c: Likewise.
25345         * io/chown.c: Likewise.
25346         * io/close.c: Likewise.
25347         * io/dup.c: Likewise.
25348         * io/dup2.c: Likewise.
25349         * io/dup3.c: Likewise.
25350         * io/euidaccess.c: Likewise.
25351         * io/faccessat.c: Likewise.
25352         * io/fchdir.c: Likewise.
25353         * io/fchmod.c: Likewise.
25354         * io/fchmodat.c: Likewise.
25355         * io/fchown.c: Likewise.
25356         * io/fchownat.c: Likewise.
25357         * io/fcntl.c: Likewise.
25358         * io/flock.c: Likewise.
25359         * io/fstatfs.c: Likewise.
25360         * io/fstatfs64.c: Likewise.
25361         * io/fstatvfs.c: Likewise.
25362         * io/fstatvfs64.c: Likewise.
25363         * io/futimens.c: Likewise.
25364         * io/fxstat.c: Likewise.
25365         * io/fxstat64.c: Likewise.
25366         * io/fxstatat.c: Likewise.
25367         * io/fxstatat64.c: Likewise.
25368         * io/getcwd.c: Likewise.
25369         * io/isatty.c: Likewise.
25370         * io/lchmod.c: Likewise.
25371         * io/lchown.c: Likewise.
25372         * io/link.c: Likewise.
25373         * io/linkat.c: Likewise.
25374         * io/lseek.c: Likewise.
25375         * io/lseek64.c: Likewise.
25376         * io/lxstat64.c: Likewise.
25377         * io/mkdir.c: Likewise.
25378         * io/mkdirat.c: Likewise.
25379         * io/mkfifo.c: Likewise.
25380         * io/mkfifoat.c: Likewise.
25381         * io/open.c: Likewise.
25382         * io/open64.c: Likewise.
25383         * io/openat.c: Likewise.
25384         * io/openat64.c: Likewise.
25385         * io/pipe.c: Likewise.
25386         * io/pipe2.c: Likewise.
25387         * io/poll.c: Likewise.
25388         * io/posix_fadvise.c: Likewise.
25389         * io/posix_fadvise64.c: Likewise.
25390         * io/posix_fallocate.c: Likewise.
25391         * io/posix_fallocate64.c: Likewise.
25392         * io/read.c: Likewise.
25393         * io/readlink.c: Likewise.
25394         * io/readlinkat.c: Likewise.
25395         * io/rmdir.c: Likewise.
25396         * io/sendfile.c: Likewise.
25397         * io/sendfile64.c: Likewise.
25398         * io/statfs.c: Likewise.
25399         * io/statfs64.c: Likewise.
25400         * io/statvfs.c: Likewise.
25401         * io/statvfs64.c: Likewise.
25402         * io/symlink.c: Likewise.
25403         * io/symlinkat.c: Likewise.
25404         * io/ttyname.c: Likewise.
25405         * io/ttyname_r.c: Likewise.
25406         * io/umask.c: Likewise.
25407         * io/unlink.c: Likewise.
25408         * io/unlinkat.c: Likewise.
25409         * io/utime.c: Likewise.
25410         * io/utimensat.c: Likewise.
25411         * io/write.c: Likewise.
25412         * io/xmknod.c: Likewise.
25413         * io/xmknodat.c: Likewise.
25414         * io/xstat.c: Likewise.
25415         * io/xstat64.c: Likewise.
25416         * login/getpt.c: Likewise.
25417         * login/grantpt.c: Likewise.
25418         * login/unlockpt.c: Likewise.
25419         * math/e_acoshl.c: Likewise.
25420         * math/e_acosl.c: Likewise.
25421         * math/e_asinl.c: Likewise.
25422         * math/e_atan2l.c: Likewise.
25423         * math/e_atanhl.c: Likewise.
25424         * math/e_coshl.c: Likewise.
25425         * math/e_expl.c: Likewise.
25426         * math/e_fmodl.c: Likewise.
25427         * math/e_gammal_r.c: Likewise.
25428         * math/e_hypotl.c: Likewise.
25429         * math/e_j0l.c: Likewise.
25430         * math/e_j1l.c: Likewise.
25431         * math/e_jnl.c: Likewise.
25432         * math/e_lgammal_r.c: Likewise.
25433         * math/e_log10l.c: Likewise.
25434         * math/e_log2l.c: Likewise.
25435         * math/e_logl.c: Likewise.
25436         * math/e_powl.c: Likewise.
25437         * math/e_rem_pio2l.c: Likewise.
25438         * math/e_sinhl.c: Likewise.
25439         * math/e_sqrtl.c: Likewise.
25440         * math/fclrexcpt.c: Likewise.
25441         * math/fedisblxcpt.c: Likewise.
25442         * math/feenablxcpt.c: Likewise.
25443         * math/fegetenv.c: Likewise.
25444         * math/fegetexcept.c: Likewise.
25445         * math/fegetround.c: Likewise.
25446         * math/feholdexcpt.c: Likewise.
25447         * math/fesetenv.c: Likewise.
25448         * math/fesetround.c: Likewise.
25449         * math/feupdateenv.c: Likewise.
25450         * math/fgetexcptflg.c: Likewise.
25451         * math/fraiseexcpt.c: Likewise.
25452         * math/fsetexcptflg.c: Likewise.
25453         * math/ftestexcept.c: Likewise.
25454         * math/k_cosl.c: Likewise.
25455         * math/k_rem_pio2l.c: Likewise.
25456         * math/k_sinl.c: Likewise.
25457         * math/k_tanl.c: Likewise.
25458         * math/s_asinhl.c: Likewise.
25459         * math/s_atanl.c: Likewise.
25460         * math/s_cbrtl.c: Likewise.
25461         * math/s_erfl.c: Likewise.
25462         * math/s_expm1l.c: Likewise.
25463         * math/s_log1pl.c: Likewise.
25464         * math/s_tanhl.c: Likewise.
25465         * misc/acct.c: Likewise.
25466         * misc/brk.c: Likewise.
25467         * misc/chflags.c: Likewise.
25468         * misc/chroot.c: Likewise.
25469         * misc/fchflags.c: Likewise.
25470         * misc/fgetxattr.c: Likewise.
25471         * misc/flistxattr.c: Likewise.
25472         * misc/fremovexattr.c: Likewise.
25473         * misc/fsetxattr.c: Likewise.
25474         * misc/fsync.c: Likewise.
25475         * misc/ftruncate.c: Likewise.
25476         * misc/futimes.c: Likewise.
25477         * misc/futimesat.c: Likewise.
25478         * misc/getdomain.c: Likewise.
25479         * misc/getdtsz.c: Likewise.
25480         * misc/gethostid.c: Likewise.
25481         * misc/gethostname.c: Likewise.
25482         * misc/getloadavg.c: Likewise.
25483         * misc/getpagesize.c: Likewise.
25484         * misc/getsysstats.c: Likewise.
25485         * misc/getxattr.c: Likewise.
25486         * misc/gtty.c: Likewise.
25487         * misc/ioctl.c: Likewise.
25488         * misc/lgetxattr.c: Likewise.
25489         * misc/listxattr.c: Likewise.
25490         * misc/llistxattr.c: Likewise.
25491         * misc/lremovexattr.c: Likewise.
25492         * misc/lsetxattr.c: Likewise.
25493         * misc/lutimes.c: Likewise.
25494         * misc/madvise.c: Likewise.
25495         * misc/mincore.c: Likewise.
25496         * misc/mlock.c: Likewise.
25497         * misc/mlockall.c: Likewise.
25498         * misc/mmap.c: Likewise.
25499         * misc/mprotect.c: Likewise.
25500         * misc/msync.c: Likewise.
25501         * misc/munlock.c: Likewise.
25502         * misc/munlockall.c: Likewise.
25503         * misc/munmap.c: Likewise.
25504         * misc/preadv.c: Likewise.
25505         * misc/preadv64.c: Likewise.
25506         * misc/ptrace.c: Likewise.
25507         * misc/pwritev.c: Likewise.
25508         * misc/pwritev64.c: Likewise.
25509         * misc/readv.c: Likewise.
25510         * misc/reboot.c: Likewise.
25511         * misc/remap_file_pages.c: Likewise.
25512         * misc/removexattr.c: Likewise.
25513         * misc/revoke.c: Likewise.
25514         * misc/select.c: Likewise.
25515         * misc/setdomain.c: Likewise.
25516         * misc/setegid.c: Likewise.
25517         * misc/seteuid.c: Likewise.
25518         * misc/sethostid.c: Likewise.
25519         * misc/sethostname.c: Likewise.
25520         * misc/setregid.c: Likewise.
25521         * misc/setreuid.c: Likewise.
25522         * misc/setxattr.c: Likewise.
25523         * misc/sstk.c: Likewise.
25524         * misc/stty.c: Likewise.
25525         * misc/swapoff.c: Likewise.
25526         * misc/swapon.c: Likewise.
25527         * misc/sync.c: Likewise.
25528         * misc/syncfs.c: Likewise.
25529         * misc/syscall.c: Likewise.
25530         * misc/truncate.c: Likewise.
25531         * misc/ualarm.c: Likewise.
25532         * misc/usleep.c: Likewise.
25533         * misc/ustat.c: Likewise.
25534         * misc/utimes.c: Likewise.
25535         * misc/vhangup.c: Likewise.
25536         * misc/writev.c: Likewise.
25537         * posix/_exit.c: Likewise.
25538         * posix/alarm.c: Likewise.
25539         * posix/execve.c: Likewise.
25540         * posix/fexecve.c: Likewise.
25541         * posix/fork.c: Likewise.
25542         * posix/fpathconf.c: Likewise.
25543         * posix/getaddrinfo.c: Likewise.
25544         * posix/getegid.c: Likewise.
25545         * posix/geteuid.c: Likewise.
25546         * posix/getgid.c: Likewise.
25547         * posix/getgroups.c: Likewise.
25548         * posix/getlogin.c: Likewise.
25549         * posix/getlogin_r.c: Likewise.
25550         * posix/getpgid.c: Likewise.
25551         * posix/getpid.c: Likewise.
25552         * posix/getppid.c: Likewise.
25553         * posix/getresgid.c: Likewise.
25554         * posix/getresuid.c: Likewise.
25555         * posix/getsid.c: Likewise.
25556         * posix/getuid.c: Likewise.
25557         * posix/glob64.c: Likewise.
25558         * posix/nanosleep.c: Likewise.
25559         * posix/pathconf.c: Likewise.
25560         * posix/pause.c: Likewise.
25561         * posix/posix_madvise.c: Likewise.
25562         * posix/pread.c: Likewise.
25563         * posix/pread64.c: Likewise.
25564         * posix/pwrite.c: Likewise.
25565         * posix/pwrite64.c: Likewise.
25566         * posix/sched_getaffinity.c: Likewise.
25567         * posix/sched_getp.c: Likewise.
25568         * posix/sched_gets.c: Likewise.
25569         * posix/sched_primax.c: Likewise.
25570         * posix/sched_primin.c: Likewise.
25571         * posix/sched_rr_gi.c: Likewise.
25572         * posix/sched_setaffinity.c: Likewise.
25573         * posix/sched_setp.c: Likewise.
25574         * posix/sched_sets.c: Likewise.
25575         * posix/sched_yield.c: Likewise.
25576         * posix/setgid.c: Likewise.
25577         * posix/setlogin.c: Likewise.
25578         * posix/setpgid.c: Likewise.
25579         * posix/setresgid.c: Likewise.
25580         * posix/setresuid.c: Likewise.
25581         * posix/setsid.c: Likewise.
25582         * posix/setuid.c: Likewise.
25583         * posix/sleep.c: Likewise.
25584         * posix/spawni.c: Likewise.
25585         * posix/sysconf.c: Likewise.
25586         * posix/times.c: Likewise.
25587         * posix/wait.c: Likewise.
25588         * posix/wait3.c: Likewise.
25589         * posix/wait4.c: Likewise.
25590         * posix/waitpid.c: Likewise.
25591         * resolv/gai_sigqueue.c: Likewise.
25592         * resource/getpriority.c: Likewise.
25593         * resource/getrlimit.c: Likewise.
25594         * resource/getrusage.c: Likewise.
25595         * resource/nice.c: Likewise.
25596         * resource/setpriority.c: Likewise.
25597         * resource/setrlimit.c: Likewise.
25598         * resource/ulimit.c: Likewise.
25599         * rt/aio_cancel.c: Likewise.
25600         * rt/aio_fsync.c: Likewise.
25601         * rt/aio_read.c: Likewise.
25602         * rt/aio_sigqueue.c: Likewise.
25603         * rt/aio_suspend.c: Likewise.
25604         * rt/aio_write.c: Likewise.
25605         * rt/clock_getres.c: Likewise.
25606         * rt/clock_gettime.c: Likewise.
25607         * rt/clock_nanosleep.c: Likewise.
25608         * rt/clock_settime.c: Likewise.
25609         * rt/lio_listio.c: Likewise.
25610         * rt/mq_close.c: Likewise.
25611         * rt/mq_getattr.c: Likewise.
25612         * rt/mq_notify.c: Likewise.
25613         * rt/mq_open.c: Likewise.
25614         * rt/mq_receive.c: Likewise.
25615         * rt/mq_send.c: Likewise.
25616         * rt/mq_setattr.c: Likewise.
25617         * rt/mq_timedreceive.c: Likewise.
25618         * rt/mq_timedsend.c: Likewise.
25619         * rt/mq_unlink.c: Likewise.
25620         * rt/shm_open.c: Likewise.
25621         * rt/shm_unlink.c: Likewise.
25622         * rt/timer_create.c: Likewise.
25623         * rt/timer_delete.c: Likewise.
25624         * rt/timer_getoverr.c: Likewise.
25625         * rt/timer_gettime.c: Likewise.
25626         * rt/timer_settime.c: Likewise.
25627         * setjmp/__longjmp.c: Likewise.
25628         * setjmp/setjmp.c: Likewise.
25629         * signal/kill.c: Likewise.
25630         * signal/killpg.c: Likewise.
25631         * signal/raise.c: Likewise.
25632         * signal/sigaction.c: Likewise.
25633         * signal/sigaltstack.c: Likewise.
25634         * signal/sigblock.c: Likewise.
25635         * signal/sigignore.c: Likewise.
25636         * signal/sigintr.c: Likewise.
25637         * signal/signal.c: Likewise.
25638         * signal/sigpause.c: Likewise.
25639         * signal/sigpending.c: Likewise.
25640         * signal/sigqueue.c: Likewise.
25641         * signal/sigreturn.c: Likewise.
25642         * signal/sigset.c: Likewise.
25643         * signal/sigsetmask.c: Likewise.
25644         * signal/sigstack.c: Likewise.
25645         * signal/sigsuspend.c: Likewise.
25646         * signal/sigtimedwait.c: Likewise.
25647         * signal/sigvec.c: Likewise.
25648         * signal/sigwait.c: Likewise.
25649         * signal/sigwaitinfo.c: Likewise.
25650         * signal/sysv_signal.c: Likewise.
25651         * socket/accept.c: Likewise.
25652         * socket/accept4.c: Likewise.
25653         * socket/bind.c: Likewise.
25654         * socket/connect.c: Likewise.
25655         * socket/getpeername.c: Likewise.
25656         * socket/getsockname.c: Likewise.
25657         * socket/getsockopt.c: Likewise.
25658         * socket/isfdtype.c: Likewise.
25659         * socket/listen.c: Likewise.
25660         * socket/recv.c: Likewise.
25661         * socket/recvfrom.c: Likewise.
25662         * socket/recvmsg.c: Likewise.
25663         * socket/send.c: Likewise.
25664         * socket/sendmsg.c: Likewise.
25665         * socket/sendto.c: Likewise.
25666         * socket/setsockopt.c: Likewise.
25667         * socket/shutdown.c: Likewise.
25668         * socket/sockatmark.c: Likewise.
25669         * socket/socket.c: Likewise.
25670         * socket/socketpair.c: Likewise.
25671         * stdio-common/ctermid.c: Likewise.
25672         * stdio-common/cuserid.c: Likewise.
25673         * stdio-common/remove.c: Likewise.
25674         * stdio-common/rename.c: Likewise.
25675         * stdio-common/renameat.c: Likewise.
25676         * stdio-common/tempname.c: Likewise.
25677         * stdlib/getcontext.c: Likewise.
25678         * stdlib/makecontext.c: Likewise.
25679         * stdlib/setcontext.c: Likewise.
25680         * stdlib/swapcontext.c: Likewise.
25681         * stdlib/system.c: Likewise.
25682         * streams/fattach.c: Likewise.
25683         * streams/fdetach.c: Likewise.
25684         * streams/getmsg.c: Likewise.
25685         * streams/getpmsg.c: Likewise.
25686         * streams/putmsg.c: Likewise.
25687         * streams/putpmsg.c: Likewise.
25688         * sysdeps/unix/bsd/getpt.c: Likewise.
25689         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25690         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25691         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25693         Likewise.
25694         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25695         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25696         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25697         * sysvipc/msgctl.c: Likewise.
25698         * sysvipc/msgget.c: Likewise.
25699         * sysvipc/msgrcv.c: Likewise.
25700         * sysvipc/msgsnd.c: Likewise.
25701         * sysvipc/semctl.c: Likewise.
25702         * sysvipc/semget.c: Likewise.
25703         * sysvipc/semop.c: Likewise.
25704         * sysvipc/semtimedop.c: Likewise.
25705         * sysvipc/shmat.c: Likewise.
25706         * sysvipc/shmctl.c: Likewise.
25707         * sysvipc/shmdt.c: Likewise.
25708         * sysvipc/shmget.c: Likewise.
25709         * termios/tcdrain.c: Likewise.
25710         * termios/tcflow.c: Likewise.
25711         * termios/tcflush.c: Likewise.
25712         * termios/tcgetattr.c: Likewise.
25713         * termios/tcgetpgrp.c: Likewise.
25714         * termios/tcsendbrk.c: Likewise.
25715         * termios/tcsetattr.c: Likewise.
25716         * termios/tcsetpgrp.c: Likewise.
25717         * time/adjtime.c: Likewise.
25718         * time/clock.c: Likewise.
25719         * time/getitimer.c: Likewise.
25720         * time/gettimeofday.c: Likewise.
25721         * time/setitimer.c: Likewise.
25722         * time/settimeofday.c: Likewise.
25723         * time/stime.c: Likewise.
25724         * time/time.c: Likewise.
25725
25726 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
25727
25728         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
25729         /usr/old/bin.
25730
25731         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
25732         instead of spaces.
25733         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
25734
25735 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
25736
25737         [BZ #14796]
25738         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
25739         FE_TONEAREST before applying Dekker multiplication and Knuth
25740         addition.  Clear inexact exceptions and check for exact zero
25741         results afterwards.
25742         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25743         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25744         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25745         * math/libm-test.inc (fma_test): Add more tests.
25746         (fma_test_towardzero): Likewise.
25747         (fma_test_downward): Likewise.
25748         (fma_test_upward): Likewise.
25749         * sysdeps/generic/math_private.h (default_libc_fesetround): New
25750         function.
25751         (libc_fesetround): New macro.
25752         (libc_fesetroundf): Likewise.
25753         (libc_fesetroundl): Likewise.
25754         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
25755         function.
25756         (libc_fesetround_387): Likewise.
25757         (libc_fesetroundf): New macro.
25758         (libc_fesetround): Likewise.
25759         (libc_fesetroundl): Likewise.
25760         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
25761         function.
25762         (libc_fesetroundf): New macro.
25763         (libc_fesetround): Likewise.
25764         (libc_fesetroundl): Likewise.
25765         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
25766         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
25767         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
25768         libm_hidden_ver.
25769         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
25770         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
25771         libm_hidden_def.
25772         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
25773         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
25774         libm_hidden_ver.
25775         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
25776         libm_hidden_def.
25777
25778         [BZ #3439]
25779         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
25780         integer constant usable in #if and use that to give value to enum
25781         constant.
25782         (FE_DIVBYZERO): Likewise.
25783         (FE_UNDERFLOW): Likewise.
25784         (FE_OVERFLOW): Likewise.
25785         (FE_INVALID): Likewise.
25786         (FE_INVALID_SNAN): Likewise.
25787         (FE_INVALID_ISI): Likewise.
25788         (FE_INVALID_IDI): Likewise.
25789         (FE_INVALID_ZDZ): Likewise.
25790         (FE_INVALID_IMZ): Likewise.
25791         (FE_INVALID_COMPARE): Likewise.
25792         (FE_INVALID_SOFTWARE): Likewise.
25793         (FE_INVALID_SQRT): Likewise.
25794         (FE_INVALID_INTEGER_CONVERSION): Likewise.
25795         (FE_TONEAREST): Likewise.
25796         (FE_TOWARDZERO): Likewise.
25797         (FE_UPWARD): Likewise.
25798         (FE_DOWNWARD): Likewise.
25799         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
25800         (FE_DIVBYZERO): Likewise.
25801         (FE_OVERFLOW): Likewise.
25802         (FE_UNDERFLOW): Likewise.
25803         (FE_INEXACT): Likewise.
25804         (FE_TONEAREST): Likewise.
25805         (FE_DOWNWARD): Likewise.
25806         (FE_UPWARD): Likewise.
25807         (FE_TOWARDZERO): Likewise.
25808         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
25809         (FE_UNDERFLOW): Likewise.
25810         (FE_OVERFLOW): Likewise.
25811         (FE_DIVBYZERO): Likewise.
25812         (FE_INVALID): Likewise.
25813         (FE_TONEAREST): Likewise.
25814         (FE_TOWARDZERO): Likewise.
25815         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
25816         (FE_OVERFLOW): Likewise.
25817         (FE_UNDERFLOW): Likewise.
25818         (FE_DIVBYZERO): Likewise.
25819         (FE_INEXACT): Likewise.
25820         (FE_TONEAREST): Likewise.
25821         (FE_TOWARDZERO): Likewise.
25822         (FE_UPWARD): Likewise.
25823         (FE_DOWNWARD): Likewise.
25824         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
25825         (FE_DIVBYZERO): Likewise.
25826         (FE_OVERFLOW): Likewise.
25827         (FE_UNDERFLOW): Likewise.
25828         (FE_INEXACT): Likewise.
25829         (FE_TONEAREST): Likewise.
25830         (FE_DOWNWARD): Likewise.
25831         (FE_UPWARD): Likewise.
25832         (FE_TOWARDZERO): Likewise.
25833
25834 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
25835
25836         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
25837
25838 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
25839
25840         * scripts/cross-test-ssh.sh (command): Use newlines to separate
25841         commands.  Quote $PWD.
25842         (blacklist_exports): Don't use remove_newlines.  Replace "declare
25843         -x" by "export".
25844         (remove_newlines): Remove.
25845
25846 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
25847
25848         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
25849         * stdlib/stdlib.h (atof): Moved to ...
25850         * include/bits/stdlib-float.h: Here.  New file.
25851         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
25852         * stdlib/bits/stdlib-float.h: New file.
25853         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
25854         -mno-sse -mno-mmx.
25855         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
25856         <xmmintrin.h>.
25857
25858 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25859
25860         * conform/conformtest.pl (@headers): Add fenv.h.
25861         * conform/data/fenv.h-data: New file.
25862         * include/fenv.h [_ISOMAC]: Disable all contents of file except
25863         include of <math/fenv.h>.
25864
25865         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
25866         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
25867         && !UNIX98].  Enables tests for XOPEN2K8.
25868         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
25869         POSIX2008]: Likewise.
25870
25871         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
25872         (struct rusage): Do not expect type or its members.
25873
25874         [BZ #3439]
25875         * math/math.h (FP_NAN): Define macro to integer constant usable in
25876         #if and use that to give value to enum constant.
25877         (FP_INFINITE): Likewise.
25878         (FP_ZERO): Likewise.
25879         (FP_SUBNORMAL): Likewise.
25880         (FP_NORMAL): Likewise.
25881
25882 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
25883
25884         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
25885         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
25886         arguments.
25887
25888 2012-11-02  Roland McGrath  <roland@hack.frob.com>
25889
25890         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
25891         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
25892         autoconf-time if not.
25893         * configure.in: Remove AC_PREREQ.
25894
25895 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25896
25897         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
25898         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
25899         of the internal implementation.
25900
25901 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25902
25903         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
25904         except include of <misc/sys/syslog.h>.
25905
25906 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25907
25908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
25909         function returns with a NULL context exit with zero.
25910
25911 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25912
25913         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
25914
25915 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
25916
25917         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
25918         (run_program_cmd): This.
25919         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
25920         (tst_langinfo): New variable.  Use it.
25921
25922 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
25923
25924         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
25925         floating point opcodes.
25926
25927 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25928
25929         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
25930         variable.
25931
25932         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
25933
25934         * sysdeps/mach/hurd/powerpc: Remove directory.
25935         * sysdeps/mach/powerpc: Likewise.
25936
25937 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25938
25939         * scripts/check-local-headers.sh: Ignore c++ headers.
25940
25941 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25942
25943         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
25944         __libc_cleanup_region_start argument.
25945
25946 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
25947
25948         [BZ #14784]
25949         [BZ #14785]
25950         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
25951         x * y using scaling, not as x * y + z.
25952         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25953         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25954         * math/libm-test.inc (fma_test): Add more tests.
25955         (fma_test_towardzero): Likewise.
25956         (fma_test_downward): Likewise.
25957         (fma_test_upward): Likewise.
25958
25959 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25960
25961         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
25962
25963 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25964
25965         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
25966         New variable.
25967
25968 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
25969
25970         * rt/tst-shm.c (worker): Correct checking for mmap failure.
25971
25972 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25973
25974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25975         Fix sort order.
25976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25977         Likewise.
25978
25979 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25980
25981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25982         Fix the order of the list for glibc 2.17.
25983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25984         Likewise.
25985
25986 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25987
25988         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25989
25990 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25991
25992         [BZ #14610]
25993         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
25994         for low part of x being zero before using __atanl (y).
25995         * math/libm-test.inc (atan2_test): Add another test.
25996
25997         * manual/install.texi (Configuring and compiling): Document
25998         general use of test-wrapper and test-wrapper-env.
25999         * INSTALL: Regenerated.
26000
26001         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26002         (__fma): Do not extract and scale down low bits on after-rounding
26003         systems when result rounded to normal precision would have normal
26004         exponent.
26005         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26006         (__fmal): Do not extract and scale down low bits on after-rounding
26007         systems when result rounded to normal precision would have normal
26008         exponent.
26009         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26010         (__fmal): Do not extract and scale down low bits on after-rounding
26011         systems when result rounded to normal precision would have normal
26012         exponent.
26013         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
26014         macro.
26015         (fma_test): Add more tests.
26016         (fma_test_towardzero): Likewise.
26017         (fma_test_downward): Likewise.
26018         (fma_test_upward): Likewise.
26019
26020 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
26021
26022         * sysdeps/i386/tininess.h: Renamed to ...
26023         * sysdeps/x86/tininess.h: This.
26024         * sysdeps/x86_64/tininess.h: Removed.
26025
26026 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26027
26028         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
26029         input.  Use $(build-program-cmd).
26030         ($(objpfx)tst-array1-static.out): Likewise.
26031         ($(objpfx)tst-array2.out): Likewise.
26032         ($(objpfx)tst-array3.out): Likewise.
26033         ($(objpfx)tst-array4.out): Likewise.
26034         ($(objpfx)tst-array5.out): Likewise.
26035         ($(objpfx)tst-array5-static.out): Likewise.
26036
26037 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
26038
26039         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
26040         if defined.
26041
26042         * nss/nsswitch.h (nss_interface_function): Provide new
26043         macro for use with NSS functions.
26044         * grp/initgroups.c: Use new macro.
26045         * nss/getXXbyYY.c: Likewise.
26046         * nss/getXXbyYY_r.c: Likewise.
26047         * nss/getXXent.c: Likewise.
26048         * nss/getXXent_r.c: Likewise.
26049         * sysdeps/posix/getaddrinfo.c: Likewise.
26050
26051 2012-10-30  Andreas Jaeger  <aj@suse.de>
26052
26053         * po/ru.po: Update Russion translation from translation project.
26054
26055 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
26056
26057         [BZ #14152]
26058         [BZ #14783]
26059         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
26060         result and shift together with sticky bit instead of replicating
26061         round-to-nearest rounding.
26062         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26063         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26064         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
26065         missing underflow exceptions.
26066         (fma_test_towardzero): Add more tests.
26067         (fma_test_downward): Likewise.
26068         (fma_test_upward): Likewise.
26069
26070         [BZ #14047]
26071         * sysdeps/generic/tininess.h: New file.
26072         * sysdeps/i386/tininess.h: Likewise.
26073         * sysdeps/sh/tininess.h: Likewise.
26074         * sysdeps/x86_64/tininess.h: Likewise.
26075         * stdlib/tst-strtod-underflow.c: Likewise.
26076         * stdlib/tst-tininess.c: Likewise.
26077         * stdlib/strtod_l.c: Include <tininess.h>.
26078         (round_and_return): Do not set errno for exact underflow cases.
26079         Force an underflow exception when setting errno for underflow.
26080         Determine underflow based on rounding to normal precision if
26081         TININESS_AFTER_ROUNDING.
26082         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
26083         ERANGE for exact underflow cases.
26084         * stdlib/Makefile (tests): Add tst-tininess and
26085         tst-strtod-underflow.
26086         ($(objpfx)tst-tininess): Use $(link-libm).
26087         ($(objpfx)tst-strtod-underflow): Likewise.
26088
26089 2012-10-30  Andreas Jaeger  <aj@suse.de>
26090
26091         [BZ#14767]
26092         * elf/Makefile (tests): Remove conditional for have-initfini-array
26093         since this is now always required and the variable does not exist
26094         anymore.
26095         (tests-static): Likewise.
26096         (modules-names): Likewise.
26097
26098         * po/eo.po: Add Esperanto translation from translation project.
26099
26100         * elf/tst-array1.c (fini_array): Make writeable so that it can be
26101         merged with constructor/destructor.
26102         (init_array): Likewise.
26103         * elf/tst-array2dep.c (fini_array): Likewise.
26104         (init_array): Likewise.
26105
26106 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
26107
26108         * manual/message.texi: Delete @cartouche tags.
26109
26110 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
26111
26112         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
26113         EOPNOTSUPP.
26114         * sysdeps/mach/hurd/fsync.c: Likewise.
26115
26116         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
26117         [_POSIX_REALTIME_SIGNALS]: Change condition to
26118         [_POSIX_REALTIME_SIGNALS > 0].
26119
26120 2012-10-27  Andreas Jaeger  <aj@suse.de>
26121
26122         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
26123         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
26124         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
26125         [__WORDSIZE != 64]: Likewise.
26126
26127 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
26128
26129         *  iconvdata/tst-table.sh: Remove ${SHELL}.
26130         *  iconvdata/tst-tables.sh: Likewise.
26131
26132 2012-10-25  David S. Miller  <davem@davemloft.net>
26133
26134         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26135         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
26136         of strtoull.
26137
26138         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
26139         ifunc-impl-list.c
26140         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26141         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
26142         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
26143         file.
26144
26145 2012-10-25  Roland McGrath  <roland@hack.frob.com>
26146
26147         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26148         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
26149         __getdirentries.
26150
26151 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26152             Jim Blandy  <jimb@codesourcery.com>
26153
26154         * scripts/cross-test-ssh.sh: New file.
26155         * manual/install.texi (Configuring and compiling): Document use of
26156         cross-test-ssh.sh.
26157         * INSTALL: Regenerated.
26158
26159 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
26160
26161         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
26162         EOPNOTSUPP.
26163
26164 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
26165
26166         * Makeconfig (run-program-prefix): Fix comment.
26167
26168 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26169             Jim Blandy  <jimb@codesourcery.com>
26170
26171         * Makeconfig (test-wrapper): New variable,
26172         (test-wrapper-env): Likewise.
26173         [$(cross-compiling) = yes && $(test-wrapper) != ""]
26174         (run-built-tests): Define to yes.
26175         (run-program-prefix): Use $(test-wrapper).
26176         (built-program-cmd): Likewise.
26177         * Rules (make-test-out): Use $(test-wrapper-env) and
26178         $(host-built-program-cmd).
26179         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
26180         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
26181         tst-pathopt.sh.
26182         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
26183         $(test-wrapper-env) to tst-rtld-load-self.sh.
26184         ($(objpfx)order2.out): Use $(test-wrapper).
26185         ($(objpfx)tst-initorder.out): Likewise.
26186         ($(objpfx)tst-initorder2.out): Likewise.
26187         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
26188         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
26189         (test_wrapper_env): New variable.  Use it to run ld.so.
26190         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
26191         Use it to run ld.so.
26192         (test_wrapper_env): Likewise.
26193         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
26194         $(test-wrapper) to run-iconv-test.sh.
26195         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
26196         (ICONV): Use $test_wrapper.
26197         * posix/Makefile ($(objpfx)globtest.out): Pass
26198         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
26199         globtest.sh, not $(run-program-prefix).
26200         * posix/globtest.sh (run_via_rtld_prefix): New variable.
26201         (test_wrapper): Likewise.
26202         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
26203         set together with run_via_rtld_prefix.
26204         (run_program_prefix): Define in terms of test_wrapper and
26205         run_via_rtld_prefix.
26206
26207 2012-10-24  Roland McGrath  <roland@hack.frob.com>
26208
26209         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
26210         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
26211         Targets removed.
26212
26213         [BZ #14743]
26214         * include/time.h: Remove librt_hidden_proto (clock_gettime).
26215         Declare __clock_getres, __clock_gettime, __clock_settime,
26216         __clock_nanosleep, and __clock_getcpuclockid.
26217         * rt/clock_gettime.c: Define __clock_gettime as an alias.
26218         Remove librt_hidden_def (clock_gettime).
26219         * sysdeps/unix/clock_gettime.c: Likewise.
26220         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
26221         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
26222         * rt/clock_getres.c: Define __clock_getres as an alias.
26223         * sysdeps/posix/clock_getres.c: Likewise.
26224         * rt/clock_settime.c: Define __clock_settime as an alias.
26225         * sysdeps/unix/clock_settime.c: Likewise.
26226         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
26227         * sysdeps/unix/clock_nanosleep.c: Likewise.
26228         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
26229         * rt/clock-compat.c: New file.
26230         * rt/Makefile (librt-routines): Add clock-compat and move
26231         $(clock-routines) to ...
26232         (routines): ... here, new variable.
26233         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
26234         Don't add get_clockfreq here.
26235         * rt/Versions (libc: GLIBC_2.17): New version set.
26236         Add clock_* symbols here.
26237         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
26238         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
26239         (GLIBC_2.17): Add clock_* symbols.
26240         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
26241         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
26242         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
26243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26244         Likewise.
26245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26246         Likewise.
26247         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
26248         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
26249         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
26250         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
26251         * NEWS: Mention the move.
26252
26253         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
26254         Use __open, __read, __close rather than their public counterparts.
26255         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26256         (__get_clockfreq_via_cpuinfo): Likewise.
26257         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
26258         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
26259
26260         * config.h.in (HAVE_IFUNC): New #undef.
26261         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
26262         was successful.
26263         * configure: Regenerated.
26264
26265 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26266
26267         * configure.in: Move READELF check to start of file.
26268         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
26269         libc_cv_asm_gnu_indirect_function in the process.
26270         * configure: Regenerated.
26271
26272 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
26273
26274         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
26275         send the output to /dev/null.
26276         (libc_cv_cc_with_libunwind): Likewise.
26277         (libc_cv_as_noexecstack): Likewise.
26278         * configure: Regenerate.
26279
26280 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
26281
26282         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
26283
26284         * posix/globtest.sh (TMPDIR): Do not set.
26285         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
26286         (testout): Likewise.
26287
26288 2012-10-24  Andreas Jaeger  <aj@suse.de>
26289
26290         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
26291         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
26292         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
26293         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
26294         posix_fadvise64, posix_fallocate64.
26295
26296         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
26297         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
26298         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
26299         Likewise.
26300         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
26301         Likewise.
26302         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
26303
26304         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
26305         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
26306         <bits/fcntl-linux.h>.
26307         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
26308
26309         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
26310         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
26311         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
26312         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
26313         [__WORDSIZE != 64]: Likewise.
26314
26315 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26316
26317         * Makeconfig (run-built-tests): New variable.
26318         * Rules [$(cross-compiling) = yes]: Change condition to
26319         [$(run-built-tests) = no].
26320         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
26321         to [$(run-built-tests) = yes].
26322         * elf/Makefile [$(cross-compiling) = no]: Likewise
26323         * grp/Makefile [$(cross-compiling) = no]: Likewise.
26324         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
26325         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
26326         * intl/Makefile [$(cross-compiling) = no]: Likewise.
26327         * io/Makefile [$(cross-compiling) = no]: Likewise.
26328         * libio/Makefile [$(cross-compiling) = no]: Likewise.
26329         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
26330         * misc/Makefile [$(cross-compiling) = no]: Likewise.
26331         * posix/Makefile [$(cross-compiling) = no]: Likewise.
26332         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
26333         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
26334         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
26335         * string/Makefile [$(cross-compiling) = no]: Likewise.
26336
26337         * posix/Makefile ($(objpfx)globtest.out): Pass
26338         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
26339         $(rtld-installed-name).
26340         * posix/globtest.sh (elf_objpfx): Remove variable.
26341         (rtld_installed_name): Likewise.
26342         (library_path): Likewise.
26343         (run_program_prefix): New variable.  Use for running globtest
26344         binary.
26345
26346 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
26347             Joseph Myers  <joseph@codesourcery.com>
26348
26349         * Makeconfig (host-built-program-cmd): New variable.
26350         * elf/Makefile (tst-stackguard1-ARGS): Use
26351         $(host-built-program-cmd).
26352         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
26353         (tst-spawn-ARGS): Likewise.
26354         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
26355
26356 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
26357             Jim Blandy  <jimb@codesourcery.com>
26358
26359         * Makeconfig (run-via-rtld-prefix): New variable.
26360         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
26361         (built-program-cmd): Likewise.
26362
26363 2012-10-22  Andreas Jaeger  <aj@suse.de>
26364
26365         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
26366         __O_RSYNC if it exists, otherwise to O_SYNC.
26367
26368 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
26369             Joseph Myers  <joseph@codesourcery.com>
26370
26371         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
26372         /dev/null.
26373         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
26374         from /dev/null
26375         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
26376         /dev/null.
26377
26378 2012-10-22  Andreas Jaeger  <aj@suse.de>
26379
26380         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26381         Define always.
26382         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26383
26384         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26385         bits/fcntl-linux.h.
26386
26387         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26388         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26389
26390         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26391         to __O_LARGEFILE.
26392         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26393         to __O_LARGEFILE.
26394
26395 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26396             Joseph Myers  <joseph@codesourcery.com>
26397
26398         * config.make.in (NM): New variable.
26399
26400 2012-10-21  Andreas Jaeger  <aj@suse.de>
26401
26402         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26403         definitions and declarations that are provided by
26404         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26405
26406 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26407
26408         [BZ #14683]
26409         * elf/Makefile (tests-static): Add tst-leaks1-static.
26410         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26411         ($(objpfx)tst-leaks1-static): New rule.
26412         ($(objpfx)tst-leaks1-static-mem): Likewise.
26413         (tst-leaks1-static-ENV): New macro.
26414         * elf/dl-open.c (dl_open_worker): Check the main application
26415         only if SHARED is defined.
26416         * elf/tst-leaks1-static.c: New file.
26417
26418 2012-10-20  Andreas Jaeger  <aj@suse.de>
26419
26420         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26421         generic values for Linux.
26422         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26423         and declarations that are provided by <bits/fcntl-linux.h> and
26424         include <bits/fcntl-linux.h>.
26425         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26426         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26427
26428 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26429
26430         * io/fcntl.h: Move include of <bits/types.h> to the top and
26431         include it unconditionally.
26432
26433 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26434
26435         * wcsmbs/Makefile (tests-ifunc): New variable.
26436         (tests): Add $(tests-ifunc).
26437         * wcsmbs/test-wcschr-ifunc.c: New file.
26438         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26439         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26440         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26441         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26442         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26443
26444         * string/Makefile (tests-ifunc): New variable.
26445         (tests): Add $(tests-ifunc).
26446         * string/test-memccpy.c (TEST_NAME): New macro.
26447         * string/test-memchr.c (TEST_NAME): Likewise.
26448         * string/test-memcmp.c (TEST_NAME): Likewise.
26449         * string/test-memcpy.c (TEST_NAME): Likewise.
26450         * string/test-memmem.c (TEST_NAME): Likewise.
26451         * string/test-memmove.c (TEST_NAME): Likewise.
26452         * string/test-memset.c (TEST_NAME): Likewise.
26453         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26454         * string/test-stpcpy.c (TEST_NAME): Likewise.
26455         * string/test-stpncpy.c (TEST_NAME): Likewise.
26456         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26457         * string/test-strcasestr.c (TEST_NAME): Likewise.
26458         * string/test-strcat.c (TEST_NAME): Likewise.
26459         * string/test-strchr.c (TEST_NAME): Likewise.
26460         * string/test-strcmp.c(TEST_NAME): Likewise.
26461         * string/test-strcpy.c (TEST_NAME): Likewise.
26462         * string/test-strcspn.c (TEST_NAME): Likewise.
26463         * string/test-strlen.c (TEST_NAME): Likewise.
26464         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26465         * string/test-strncmp.c (TEST_NAME): Likewise.
26466         * string/test-strncpy.c (TEST_NAME): Likewise.
26467         * string/test-strnlen.c (TEST_NAME): Likewise.
26468         * string/test-strpbrk.c (TEST_NAME): Likewise.
26469         * string/test-strrchr.c (TEST_NAME): Likewise.
26470         * string/test-strspn.c (TEST_NAME): Likewise.
26471         * string/test-strstr.c (TEST_NAME): Likewise.
26472         * string/test-bcopy-ifunc.c: New file.
26473         * string/test-bzero-ifunc.c: Likewise.
26474         * string/test-memccpy-ifunc.c: Likewise.
26475         * string/test-memchr-ifunc.c: Likewise.
26476         * string/test-memcmp-ifunc.c: Likewise.
26477         * string/test-memcpy-ifunc.c: Likewise.
26478         * string/test-memmem-ifunc.c: Likewise.
26479         * string/test-memmove-ifunc.c: Likewise.
26480         * string/test-mempcpy-ifunc.c: Likewise.
26481         * string/test-memset-ifunc.c: Likewise.
26482         * string/test-rawmemchr-ifunc.c: Likewise.
26483         * string/test-stpcpy-ifunc.c: Likewise.
26484         * string/test-stpncpy-ifunc.c: Likewise.
26485         * string/test-strcasecmp-ifunc.c: Likewise.
26486         * string/test-strcasestr-ifunc.c: Likewise.
26487         * string/test-strcat-ifunc.c: Likewise.
26488         * string/test-strchr-ifunc.c: Likewise.
26489         * string/test-strchrnul-ifunc.c: Likewise.
26490         * string/test-strcmp-ifunc.c: Likewise.
26491         * string/test-strcpy-ifunc.c: Likewise.
26492         * string/test-strcspn-ifunc.c: Likewise.
26493         * string/test-strlen-ifunc.c: Likewise.
26494         * string/test-strncasecmp-ifunc.c: Likewise.
26495         * string/test-strncat-ifunc.c: Likewise.
26496         * string/test-strncmp-ifunc.c: Likewise.
26497         * string/test-strncpy-ifunc.c: Likewise.
26498         * string/test-strnlen-ifunc.c: Likewise.
26499         * string/test-strpbrk-ifunc.c: Likewise.
26500         * string/test-strrchr-ifunc.c: Likewise.
26501         * string/test-strspn-ifunc.c: Likewise.
26502         * string/test-strstr-ifunc.c: Likewise.
26503
26504         * debug/Makefile (tests-ifunc): New variable.
26505         (tests): Add $(tests-ifunc).
26506         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26507         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26508         * debug/test-stpcpy_chk-ifunc.c: New file.
26509         * debug/test-strcpy_chk-ifunc.c: Likewise.
26510
26511 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26512
26513         [BZ #13601]
26514         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26515         header is not read in.
26516
26517 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26518
26519         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26520         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26521         directly.  Pass built executable to script as
26522         $(built-program-cmd).
26523         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26524         $testprogram without using LD_LIBRARY_PATH and $ldso.
26525
26526         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26527         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26528         $(rtld-installed-name).
26529         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26530         (rtld_installed_name): Likewise.
26531         (library_path): Likewise.
26532         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26533         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26534         $(run-program-prefix) to tst-tables.sh.
26535         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26536         it to run tst-table-from and tst-table-to.
26537         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26538         Pass it to tst-table.sh.
26539         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26540         $(run-program-prefix) to tst-gettext.sh.
26541         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26542         tst-translit.sh.
26543         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26544         tst-gettext2.sh.
26545         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26546         to run tst-gettext.
26547         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26548         to run tst-gettext2.
26549         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26550         to run tst-translit.
26551         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26552         $(run-program-prefix) to tst-mtrace.sh.
26553         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26554         to run tst-mtrace.
26555         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26556         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26557         $(rtld-installed-name).
26558         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26559         (rtld_installed_name): Likewise.
26560         (run_program_prefix): New variable.  Use it to run wordexp-test.
26561
26562         * Makeconfig (ARCH): Remove all definitions.
26563         (machine): Likewise.
26564         [ARCH]: Remove conditional code.
26565         [!objdir]: Give error.
26566         [!objdir] (objpfx): Remove.
26567         [!objdir] (common-objpfx): Likewise.
26568         [!objdir] (common-objdir): Likewise.
26569         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26570         AC_CONFIG_FILES call.
26571         * configure: Regenerated.
26572
26573         [BZ #13888]
26574         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26575         or TMPDIR.
26576         (testout): Likewise.
26577
26578         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26579         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26580         $(rtld-installed-name).
26581         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26582         (rtld_installed_name): Likwise.
26583         (runit): Remove function.
26584         (run_getconf): New variable,  Use it for running getconf binary.
26585
26586 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26587
26588         [BZ #14716]
26589         * string/test-memmem.c (check_result): New function.
26590         (do_one_test): Use it.
26591         (check1): New function.
26592         (test_main): Use it.
26593
26594 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26595
26596         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26597
26598 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26599
26600         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26601         (_G_LSEEK64): Likewise.
26602         (_G_MMAP64): Likewise.
26603         (_G_FSTAT64): Likewise.
26604         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26605         (_G_LSEEK64): Likewise.
26606         (_G_MMAP64): Likewise.
26607         (_G_FSTAT64): Likewise.
26608         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26609         unconditional.  Call __mmap64 directly.
26610         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26611         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26612         __lseek64 directly.
26613         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26614         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26615         __mmap64 directly.
26616         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26617         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26618         __lseek64 directly.
26619         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26620         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26621         __lseek64 directly.
26622         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26623         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26624         __lseek64 directly.
26625         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26626         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26627         __fxstat64 directly.
26628         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26629         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26630         unconditional.
26631         (freopen64) [!_G_OPEN64]: Remove conditional code.
26632         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26633         unconditional.
26634         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26635         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26636         unconditional.
26637         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26638         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26639         unconditional.
26640         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26641         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26642         unconditional.
26643         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26644         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26645         unconditional.
26646         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26647         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26648         unconditional.
26649         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26650         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26651         unconditional.
26652         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26653
26654 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26655
26656         [BZ #12140]
26657         * manual/memory.texi (Malloc Tunable Parameters): Add note
26658         about free list pointers overwriting some perturb bytes.
26659         Wording suggested by Roland McGrath.
26660
26661 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26662
26663         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26664         (lgamma_test): Likewise.
26665         (tgamma_test): Likewise.
26666
26667 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26668
26669         [BZ #14700]
26670         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26671         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26672
26673 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26674
26675         * NEWS: Mention BZ #14716.
26676         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26677         when removing AVAILABLE1_USES_J macro.
26678
26679 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26680
26681         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26682         (__bswap_64): __uint64_t for unsigned 64-bit int.
26683
26684 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26685
26686         * include/string.h (memmem): Declare libc hidden alias.
26687         * string/memmem.c (memmem): Define libc hidden alias.
26688         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26689         __read, __close instead of open, read, close.
26690
26691 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26692
26693         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26694         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26695         global and hidden.
26696         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26697         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26698         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26699         Likewise.
26700         (__rawmemchr_sse2): Likewise.
26701         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26702         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26703         (__strchr_sse2): Likewise.
26704         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26705         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
26706         (__strcasecmp_sse2): Likewise.
26707         (__strncasecmp_sse2): Likewise.
26708         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26709         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
26710         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
26711         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
26712         (__strrchr_sse2): Likewise.
26713         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
26714         ifunc-impl-list.c.
26715         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26716         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26717         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26718         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26719         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26720         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26721         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26722         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26723         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
26724         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
26725         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
26726         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
26727         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
26728         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26729         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26730         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26731         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26732         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26733         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
26734         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
26735         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
26736         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
26737         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
26738         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26739         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
26740         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
26741         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
26742         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26743         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
26744         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
26745
26746         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
26747         global and hidden.
26748         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
26749         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
26750         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
26751         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
26752         Likewise.
26753         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
26754         Likewise.
26755         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
26756         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
26757         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
26758         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
26759         ifunc-impl-list.c.
26760         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26761         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26762         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26763         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26764         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26765         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26766         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26767         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26768         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26769         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26770         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26771         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26772         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26773         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
26774         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
26775         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26776         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
26777         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
26778         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26779         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26780         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26781         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26782         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26783         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26784         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26785         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
26786         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
26787         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
26788         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
26789         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26790         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
26791         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26792         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26793         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
26794         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26795         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26796         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26797         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26798         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26799         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26800         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
26801
26802         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
26803         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
26804         * include/ifunc-impl-list.h: New file.
26805         * misc/ifunc-impl-list.c: Likewise.
26806         * misc/Makefile (routines): Add ifunc-impl-list.
26807         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
26808         * string/test-string.h: Include <ifunc-impl-list.h>.
26809         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
26810         TEST_NAME]: New variables.
26811         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
26812         are defined.
26813         (test_init): Call __libc_ifunc_impl_list to initialize
26814         func_list if TEST_IFUNC and TEST_NAME are defined.
26815
26816         * string/Makefile (strop-tests): Add bcopy and bzero.
26817         * string/test-bcopy.c: New file.
26818         * string/test-bzero.c: Likewise.
26819         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
26820         defined.
26821         * string/test-memset.c: Support bzero test if TEST_BZERO is
26822         defined.
26823         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
26824         __libc_memmove.
26825         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
26826         __libc_memset.
26827         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
26828         of memset.
26829
26830 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
26831
26832         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
26833         * configure: Regenerated.
26834
26835         * Makeconfig (+link-static-before-libc): Don't include
26836         $(link-static-libc).
26837
26838         * libio/libio.h (_IO_pos_t): Remove.
26839
26840 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26841
26842         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
26843         McGrath.
26844
26845 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26846
26847         * crypt/crypt-entry.c: Include fips-private.h.
26848         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
26849         * crypt/md5c-test.c (main): Tolerate disabled MD5.
26850         * sysdeps/unix/sysv/linux/fips-private.h: New file.
26851         * sysdeps/generic/fips-private.h: New file, dummy fallback.
26852
26853 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26854
26855         * crypt/crypt-private.h: Include stdbool.h.
26856         (_ufc_setup_salt_r): Return bool.
26857         * crypt/crypt-entry.c: Include errno.h.
26858         (__crypt_r): Return NULL with EINVAL for bad salt.
26859         * crypt/crypt_util.c (bad_for_salt): New.
26860         (_ufc_setup_salt_r): Check that salt is long enough and within
26861         the specified alphabet.
26862         * crypt/badsalttest.c: New file.
26863         * crypt/Makefile (tests): Add it.
26864         ($(objpfx)badsalttest): New.
26865
26866 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
26867
26868         * NEWS: Add entry for BZ #14602.
26869
26870 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26871
26872         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
26873         type-generic.
26874         * math/libm-test.inc: Update comment listing what functions and
26875         macros are tested.
26876         (isgreater_test): New function.
26877         (isgreaterequal_test): Likewise.
26878         (isless_test): Likewise.
26879         (islessequal_test): Likewise.
26880         (islessgreater_test): Likewise.
26881         (isunordered_test): Likewise.
26882         (main): Call the new functions.
26883
26884 2012-10-09  Roland McGrath  <roland@hack.frob.com>
26885
26886         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
26887         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
26888         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
26889         * sysdeps/i386/configure: Regenerated.
26890         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
26891         * sysdeps/mach/configure: Regenerated.
26892         * sysdeps/mach/hurd/configure: Regenerated.
26893         * sysdeps/powerpc/configure: Regenerated.
26894         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26895         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26896         * sysdeps/s390/s390-32/configure: Regenerated.
26897         * sysdeps/s390/s390-64/configure: Regenerated.
26898         * sysdeps/sh/configure: Regenerated.
26899         * sysdeps/sparc/configure: Regenerated.
26900         * sysdeps/unix/sysv/linux/configure: Regenerated.
26901         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
26902         * sysdeps/x86_64/configure: Regenerated.
26903
26904         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
26905         defined.  Don't check if MAP is NULL.
26906
26907 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26908
26909         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
26910         (_G_stat64): Likewise.
26911         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
26912         (_G_stat64): Likewise.
26913         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
26914         instead of struct _G_stat64.
26915         * libio/fileops.c (mmap_remap_check): Likewise.
26916         (decide_maybe_mmap): Likewise.
26917         (_IO_new_file_seekoff): Likewise.
26918         (_IO_file_stat): Likewise.
26919         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
26920         _G_off64_t.
26921         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
26922         instead of struct _G_stat64.
26923         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26924
26925 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
26926
26927         [BZ #14602]
26928         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26929         Replace with ...
26930         (CHECK_EOL): New macro.
26931         (two_way_short_needle): Check beginning of haystack for EOL.  Use
26932         CHECK_EOL.
26933         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26934         Replace with CHECK_EOL.
26935         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26936         Replace with CHECK_EOL.
26937
26938 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
26939
26940         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
26941         type-generic.
26942         * math/libm-test.inc: Update comment listing what functions and
26943         macros are tested.
26944         (finite_test): New function.
26945         (isinf_test): Likewise.
26946         (isnan_test): Likewise.
26947         (fpclassify_test): Test subnormal input.
26948         (isfinite_test): Likewise.
26949         (isnormal_test): Likewise.
26950         (main): Call the new functions.
26951
26952 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
26953
26954         [BZ #14660]
26955         * Makerules (%.dynsym): Force C locale when running
26956         $(OBJDUMP) --dynamic-syms.
26957
26958 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
26959
26960         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
26961         <stdint.h>.
26962
26963 2012-10-06  David S. Miller  <davem@davemloft.net>
26964
26965         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
26966         upper 32-bits of the length value in %o2 since we use branch-on-register
26967         tests which consider the entire 64-bit register.
26968
26969 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
26970
26971         * string/test-strstr.c (check2): Add a test for page boundary.
26972
26973 2012-10-05  David S. Miller  <davem@davemloft.net>
26974
26975         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
26976         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
26977         file.
26978         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26979         sysdep_routines.
26980         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26981         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
26982         and bzero when HWCAP_SPARC_CRYPTO is present.
26983
26984 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
26985
26986         [BZ #14602]
26987         * string/test-strstr.c (check2): New function.
26988         (test_main): Call check2.
26989
26990         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
26991         and bug-strchr1.
26992         * string/bug-strcasestr1.c (do_test): Moved to ...
26993         * string/test-strcasestr.c (check1): Here.  New function.
26994         (do_one_test): Break out result checking code into ...
26995         (check_result): This.  New function.
26996         (do_one_test): Call check_result.
26997         (test_main): Call check1.
26998         * string/bug-strchr1.c (do_test): Moved to ...
26999         * string/test-strchr.c (check1): Here.  New function.
27000         (do_one_test): Break out result checking code into ...
27001         (check_result): This.  New function.
27002         (do_one_test): Call check_result.
27003         (test_main): Call check1.
27004         * string/bug-strstr1.c (main): Moved to ...
27005         * string/test-strstr.c (check1): Here.  New function.
27006         (do_one_test): Break out result checking code into ...
27007         (check_result): This.  New function.
27008         (do_one_test): Call check_result.
27009         (test_main): Call check1.
27010         * string/bug-strcasestr1.c: Removed.
27011         * string/bug-strchr1.c: Likewise.
27012         * string/bug-strstr1.c: Likewise.
27013
27014         * elf/Makefile (dl-routines): Add hwcaps.
27015         * elf/dl-support.c (_dl_important_hwcaps): Removed.
27016         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
27017         (_dl_important_hwcaps): Moved to ...
27018         * elf/dl-hwcaps.c: Here.  New file.
27019         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
27020
27021         [BZ #14557]
27022         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
27023         if IS_IN_rtld isn't defined.
27024
27025         * elf/dl-support.c (_dl_sysinfo_map): New.
27026         Include "get-dynamic-info.h" and "setup-vdso.h".
27027         (_dl_non_dynamic_init): Call setup_vdso.
27028         * elf/dynamic-link.h: Don't include <assert.h>.
27029         (elf_get_dynamic_info): Moved to ...
27030         * elf/get-dynamic-info.h: Here.  New file.
27031         * elf/dynamic-link.h: Include "get-dynamic-info.h".
27032         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
27033         * elf/setup-vdso.h: Here.  New file.
27034         * elf/rtld.c: Include "setup-vdso.h".
27035         (dl_main): Call setup_vdso.
27036
27037 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
27038
27039         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
27040         creal in comment listing functions tested.  List finite, isinf,
27041         isnan, isless, islessequal, isgreater, isgreaterequal,
27042         islessgreater, isunordered, lgamma_r and pow10 as functions and
27043         macros not tested.  Mention which functions not tested are aliases
27044         for other functions.  Fix typo.  Note that signs of NaNs are not
27045         tested.
27046
27047         * scripts/config.guess: Update from config.git.
27048         * scripts/config.sub: Likewise.
27049
27050 2012-10-04  Roland McGrath  <roland@hack.frob.com>
27051
27052         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
27053         * misc/madvise.c (madvise): Renamed to __madvise.
27054         Make madvise a weak alias.
27055         * include/sys/mman.h: Declare __madvise.
27056         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
27057         * sysdeps/unix/syscalls.list
27058         (madvise): Make __madvise the strong name, and madvise a weak alias.
27059         * sysdeps/unix/sysv/linux/syscalls.list
27060         (madvise, mmap): Remove redundant entries.
27061         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
27062         * malloc/malloc.c (mtrim): Likewise.
27063         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
27064
27065 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27066
27067         * sysdeps/mach/hurd/dl-cache.c: File removed.
27068         * config.h.in (USE_LDCONFIG): New #undef.
27069         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
27070         * configure: Regenerated.
27071         * elf/Makefile (dl-routines): Add dl-cache only under
27072         [$(use-ldconfig) = yes].
27073         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
27074         cache on [USE_LDCONFIG].
27075         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
27076         [USE_LDCONFIG].
27077         * elf/rtld.c (dl_main): Likewise.
27078
27079 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
27080
27081         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
27082         _SC_LEVEL4_CACHE_LINESIZE.
27083
27084 2012-10-03  Roland McGrath  <roland@hack.frob.com>
27085
27086         * sysdeps/unix/bsd/confstr.h: File removed.
27087
27088 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
27089
27090         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
27091         sys/sdt-config.h.
27092
27093 2012-10-02  Roland McGrath  <roland@hack.frob.com>
27094
27095         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
27096         Make 'mapoff' field ElfW(Off) rather than off_t.
27097
27098 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
27099
27100         * nscd/Makefile: Remove nscd-cflags and all its users.
27101         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
27102         (CFLAGS-nonlib): Add compiler flags for nscd modules.
27103
27104         [BZ #10631]
27105         * malloc.c (malloc_printerr): Clarify error message.
27106
27107 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
27108
27109         [BZ #14648]
27110         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27111         Set bit_FMA_Usable if FMA is supported.
27112         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
27113         macro.
27114         (bit_FMA4_Usable): Updated.
27115         (index_FMA_Usable): New macro.
27116         (CPUID_FMA): Likewise
27117         (HAS_FMA): Defined with bit_FMA_Usable.
27118
27119 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27120
27121         * bits/types.h (__swblk_t): Type removed.
27122         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
27123         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
27124         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
27125         (__SWBLK_T_TYPE): Likewise.
27126         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
27127         (__SWBLK_T_TYPE): Likewise.
27128         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
27129         (__SWBLK_T_TYPE): Likewise.
27130         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
27131         (__SWBLK_T_TYPE): Likewise.
27132
27133 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
27134             Honza Horak <hhorak@redhat.com>
27135
27136         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
27137         (xdr_mapname): Use YPMAXMAP as maxsize.
27138         (xdr_peername): Use YPMAXPEER as maxsize.
27139         (xdr_keydat): Use YPAXRECORD as maxsize.
27140         (xdr_valdat): Use YPMAXRECORD as maxsize.
27141
27142 2012-10-01  Roland McGrath  <roland@hack.frob.com>
27143
27144         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
27145
27146         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
27147         * csu/init-first.c: ... here.
27148         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
27149         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
27150         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
27151         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
27152         * sysdeps/i386/init-first.c: File removed.
27153         * sysdeps/sh/init-first.c: File removed.
27154
27155 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
27156
27157         [BZ #14645]
27158         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
27159         if x * y might underflow to zero and z is zero.
27160         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27161         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27162         * math/libm-test.inc (min_subnorm_value): New variable.
27163         (fma_test): Add more tests.
27164         (fma_test_towardzero): Likewise.
27165         (fma_test_downward): Likewise
27166         (fma_test_upward): Likewise.
27167         (initialize): Set min_subnorm_value.
27168
27169 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
27170
27171         [BZ #14638]
27172         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
27173         0 + 0.
27174         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
27175         mode for addition resulting in exact zero.
27176         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
27177         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
27178         exact 0 + 0.
27179         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27180         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27181         * math/libm-test.inc (fma_test): Add more tests.
27182         (fma_test_towardzero): New function.
27183         (fma_test_downward): Likewise.
27184         (fma_test_upward): Likewise.
27185         (main): Call the new functions.
27186
27187 2012-09-28  David S. Miller  <davem@davemloft.net>
27188
27189         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
27190
27191 2012-09-28  Roland McGrath  <roland@hack.frob.com>
27192
27193         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
27194         instead of SIGALRM.
27195
27196         * sysdeps/gnu/_G_config.h: Moved to ...
27197         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
27198         * sysdeps/mach/hurd/_G_config.h: Moved to ...
27199         * sysdeps/generic/_G_config.h: ... here.
27200
27201         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
27202
27203         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
27204
27205         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
27206         Conditionalize target on [libnss_test1.so-version].
27207
27208         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
27209
27210         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
27211         (elfobjdir): Move out of conditionals.
27212
27213         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
27214         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
27215         (__nss_lookup_function): Conditionalize label remove_from_tree on
27216         [!DO_STATIC_NSS || SHARED], matching its only use.
27217
27218 2012-09-28  David S. Miller  <davem@davemloft.net>
27219
27220         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
27221         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
27222         file.
27223         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27224         sysdep_routines.
27225         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27226         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
27227         when HWCAP_SPARC_CRYPTO is present.
27228
27229 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27230
27231         * io/tst-mknodat.c: Create a FIFO instead of a socket.
27232
27233 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
27234
27235         [BZ #6530]
27236         * stdio-common/vfprintf.c (process_string_arg): Revert
27237         2000-07-22 change.
27238
27239 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
27240
27241         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
27242         for testcase.
27243         * stdio-common/tst-sprintf.c: Include <locale.h>
27244         (main): Test sprintf's handling of incomplete multibyte
27245         characters.
27246
27247 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
27248
27249         * elf/dl-runtime.c (VERSYMIDX): Removed.
27250         * elf/dl-version.c (VERSYMIDX): Likewise.
27251         * elf/do-rel.h (VERSYMIDX): Likewise.
27252         (VALIDX): Likewise.
27253         * elf/dynamic-link.h (VERSYMIDX): Likewise.
27254         * elf/rtld.c (VALIDX): Likewise.
27255         (ADDRIDX): Likewise.
27256         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
27257         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
27258         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
27259         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
27260         (VALIDX): Likewise.
27261         (ADDRIDX): Likewise.
27262
27263 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27264
27265         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
27266
27267 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
27268
27269         [BZ #11438]
27270         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
27271         to global scope.
27272         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
27273         addresses are in the same scope as 192.0.2/24.
27274         * posix/gai.conf: Document new scope table defaults.
27275
27276 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27277
27278         [BZ #5298]
27279         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
27280         for ftell.  Compute offsets from write pointers instead.
27281         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27282
27283 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27284
27285         [BZ #14543]
27286         * libio/Makefile (tests): New test case tst-fseek.
27287         * libio/tst-fseek.c: New test case to verify that fseek/ftell
27288         combination works in wide mode.
27289         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
27290         state when the external buffer state changes.
27291
27292 2012-09-27  David S. Miller  <davem@davemloft.net>
27293
27294         [BZ #14376]
27295         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
27296         pass reloc->r_addend in as the 'high' argument to
27297         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
27298
27299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27300
27301 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
27302
27303         * rt/tst-aio2.c: Include <pthread.h>.
27304         * rt/tst-aio3.c: Likewise.
27305
27306 2012-09-27  Steve Ellcey  <sellcey@mips.com>
27307
27308         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
27309
27310 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
27311
27312         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
27313         contents on [SHARED].
27314
27315 2012-09-26  Marek Polacek  <polacek@redhat.com>
27316
27317         [BZ #14530]
27318         [BZ #13741]
27319         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
27320         for C++ and GCC <4.3 as well as for non GCC compilers.
27321
27322 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
27323
27324         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27325
27326 2012-09-25  Roland McGrath  <roland@hack.frob.com>
27327
27328         * Makefile.in (all, install): Declare with .PHONY.
27329         Reported by Michael Hope <michael.hope@linaro.org>.
27330
27331 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27332
27333         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
27334         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
27335         system header.
27336         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
27337         Likewise.
27338         (sydep_routines): Add the new and the internal functions.
27339         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
27340         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
27341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
27342         (GLIBC_2.17): Add the new function.
27343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
27344         (GLIBC_2.17): Likewise.
27345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
27346         (GLIBC_2.17): Likewise.
27347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
27348         (GLIBC_2.17): Likewise.
27349         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
27350
27351 2012-09-25  Alan Modra  <amodra@gmail.com>
27352
27353         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
27354         Add release barrier before setting once_control to say
27355         initialisation is done.  Add hints on lwarx.  Use macro in
27356         place of isync.
27357         (clear_once_control): Add release barrier.
27358
27359 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27360
27361         [BZ #13629]
27362         * math/s_clog.c (__clog): Handle more values close to |z| = 1
27363         specially.
27364         * math/s_clog10.c (__clog10): Likewise.
27365         * math/s_clog10f.c (__clog10f): Likewise.
27366         * math/s_clog10l.c (__clog10l): Likewise.
27367         * math/s_clogf.c (__clogf): Likewise.
27368         * math/s_clogl.c (__clogl): Likewise.
27369         * math/Makefile (libm-calls): Add x2y2m1.
27370         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
27371         (__x2y2m1): Likewise.
27372         (__x2y2m1l): Likewise.
27373         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
27374         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
27375         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
27376         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
27377         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
27378         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
27379         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
27380         * sysdeps/i386/fpu/libm-test-ulps: Update.
27381         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27382
27383         [BZ #14621]
27384         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27385         int as type of variable DEPTH.
27386         (glob): Use size_t instead of int as type of variables NEWCOUNT
27387         and OLD_PATHC.
27388
27389 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27390
27391         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27392         Add s_sincosf-sse2.
27393         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27394         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27395         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27396         macros for using routine as __sincosf_ia32.
27397         Use macro for function declaration and weak_alias.
27398         * sysdeps/i386/fpu/libm-test-ulps: Update.
27399
27400         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27401         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27402
27403         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27404         subnormal argument.
27405         * math/s_cexpf.c (__cexpf): Likewise.
27406         * math/s_csinf.c (__csinf): Likewise.
27407         * math/s_csinhf.c (__csinhf): Likewise.
27408         * math/s_ctanf.c (__ctanf): Likewise.
27409         * math/s_ctanhf.c (__ctanhf): Likewise.
27410         * math/s_ccosh.c (__ccoshf): Likewise.
27411         * math/s_cexp.c (__cexpl): Likewise.
27412         * math/s_csin.c (__csin): Likewise.
27413         * math/s_csinh.c (__csinh): Likewise.
27414         * math/s_ctan.c (__ctan): Likewise.
27415         * math/s_ctanh.c (ctanh): Likewise.
27416         * math/s_ccoshl.c (__ccoshl): Likewise.
27417         * math/s_cexpl.c (__cexpl): Likewise.
27418         * math/s_csinl.c (__csinl): Likewise.
27419         * math/s_csinhl.c (__csinhl): Likewise.
27420         * math/s_ctanl.c (__ctanl): Likewise.
27421         * math/s_ctanhl.c (__ctanhl): Likewise.
27422
27423 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27424
27425         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27426         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27427         (_IO_off_t): Define to __off_t, not _G_off_t.
27428         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27429         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27430         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27431         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27432         type of __dummy and __dummy2 fields.
27433         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27434         (_G_ssize_t): Likewise.
27435         (_G_off_t): Likewise.
27436         (_G_pid_t): Likewise.
27437         (_G_uid_t): Likewise.
27438         (_G_wchar_t): Likewise.
27439         (_G_wint_t): Likewise.
27440         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27441         (_G_ssize_t): Likewise.
27442         (_G_off_t): Likewise.
27443         (_G_pid_t): Likewise.
27444         (_G_uid_t): Likewise.
27445         (_G_wchar_t): Likewise.
27446         (_G_wint_t): Likewise.
27447         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27448         (_G_ssize_t): Likewise.
27449         (_G_off_t): Likewise.
27450         (_G_pid_t): Likewise.
27451         (_G_uid_t): Likewise.
27452         (_G_wchar_t): Likewise.
27453         (_G_wint_t): Likewise.
27454
27455 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27456
27457         * malloc/arena.c: Include malloc-sysdep.h.
27458         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27459         is sufficient to shrink the heap or an unmap is needed.
27460         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27461         new function check_may_shrink_heap.
27462         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27463         new function check_may_shrink_heap.
27464
27465 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27466
27467         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27468         comments.
27469
27470 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27471
27472         * catgets/test-gencat.sh: Add "set -e".
27473         * elf/tst-pathopt.sh: Likewise.
27474         * grp/tst_fgetgrent.sh: Likewise.
27475         * iconvdata/run-iconv-test.sh: Likewise.
27476         * intl/tst-gettext.sh: Likewise.
27477         * intl/tst-gettext2.sh: Likewise.
27478         * intl/tst-gettext4.sh: Likewise.
27479         * intl/tst-gettext6.sh: Likewise.
27480         * intl/tst-translit.sh: Likewise.
27481         * io/ftwtest-sh: Likewise.
27482         * libio/test-freopen.sh: Likewise.
27483         * malloc/tst-mtrace.sh: Likewise.
27484         * posix/globtest.sh: Likewise.
27485         * posix/tst-getconf.sh: Likewise.
27486         * posix/wordexp-tst.sh: Likewise.
27487         * stdio-common/tst-printf.sh: Likewise.
27488         * stdio-common/tst-unbputc.sh: Likewise.
27489         * stdlib/tst-fmtmsg.sh: Likewise.
27490         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27491         * catgets/Makefile: Do not specify -e option when running
27492         testsuite shell scripts.
27493         * elf/Makefile: Likewise.
27494         * grp/Makefile: Likewise.
27495         * iconvdata/Makefile: Likewise.
27496         * intl/Makefile: Likewise.
27497         * io/Makefile: Likewise.
27498         * libio/Makefile: Likewise.
27499         * malloc/Makefile: Likewise.
27500         * posix/Makefile: Likewise.
27501         * stdio-common/Makefile: Likewise.
27502         * stdlib/Makefile: Likewise.
27503         * sysdeps/x86_64/Makefile: Likewise.
27504
27505         * io/ftwtest-sh: Add copyright header.
27506         * posix/globtest.sh: Likewise.
27507         * posix/tst-getconf.sh: Likewise.
27508         * posix/wordexp-tst.sh: Likewise.
27509         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27510
27511 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27512
27513         [BZ #13679]
27514         * Makeconfig (+link): Defined as $(+link-static) if
27515         $(build-shared) isn't yes.
27516         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27517         isn't yes.
27518         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27519
27520         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27521
27522         [BZ #14562]
27523         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27524         new chunk size with MALLOC_ALIGN_MASK.
27525
27526 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27527
27528         [BZ #5044]
27529         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27530         <rounding-mode.h>.
27531         (__printf_fphex): Determine rounding using get_rounding_mode and
27532         round_away.
27533         * stdio-common/tst-printf-round.c (struct hex_test): New
27534         structure.
27535         (hex_tests): New variable.
27536         (test_hex_in_one_mode): New function.
27537         (do_test): Also run tests for hex float output.
27538
27539 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27540
27541         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27542         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27543         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27544         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27545         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27546         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27547         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27548         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27549
27550 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27551
27552         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27553         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27554         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27555         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27556
27557 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27558
27559         [BZ #14579]
27560         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27561         mode only.
27562         * elf/tst-rtld-load-self.sh: New test.
27563         * elf/Makefile: Run it.
27564
27565 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27566
27567         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27568         (tst-writev-ENV): Remove.
27569         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27570
27571 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27572
27573         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27574
27575 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27576
27577         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27578         unconditional.
27579         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27580         Likewise.
27581         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27582         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27583         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27584         Likewise.
27585
27586 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27587
27588         [BZ #14587]
27589         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27590         * config.make.in (have-cpp-asm-debuginfo): Removed.
27591         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27592         * configure: Regenerated.
27593
27594 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27595
27596         [BZ #5044]
27597         * stdio-common/printf_fp.c: Include <stdbool.h> and
27598         <rounding-mode.h>.
27599         (___printf_fp): Determine rounding using get_rounding_mode and
27600         round_away.
27601         * stdio-common/tst-printf-round.c: New file.
27602         * stdio-common/Makefile (tests): Add tst-printf-round.
27603         (link-libm): New variable.
27604         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27605
27606 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27607
27608         [BZ #14576]
27609         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27610         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27611         Likewise.
27612         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27613         Likewise.
27614
27615 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27616
27617         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27618         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27619         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27620         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27621
27622 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27623
27624         [BZ #14518]
27625         * include/rounding-mode.h: New file.
27626         * sysdeps/generic/get-rounding-mode.h: Likewise.
27627         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27628         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27629         (MAX_VALUE): New macro.
27630         (MIN_VALUE): Likewise.
27631         (overflow_value): New function.
27632         (underflow_value): Likewise.
27633         (round_and_return): Use overflow_value and underflow_value to
27634         determine return values in overflow and underflow cases.  Use
27635         round_away to determine rounding depending on rounding mode.
27636         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27637         determine return values in overflow and underflow cases.
27638         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27639         (struct test_results): New structure.
27640         (struct test): Use struct test_results to store expected results
27641         for all rounding modes.
27642         (TEST): Include expected results for all rounding modes.
27643         (test_in_one_mode): New function.
27644         (do_test): Use test_in_one_mode to compute and check results.
27645         Check results for all rounding modes.
27646         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27647         $(link-libm).
27648
27649 2012-12-09  Allan McRae  <allan@archlinux.org>
27650
27651         * sysdeps/i386/fpu/libm-test-ulps: Update
27652
27653 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27654
27655         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27656         (_G_int32_t): Likewise.
27657         (_G_uint16_t): Likewise.
27658         (_G_uint32_t): Likewise.
27659         (_G_HAVE_BOOL): Likewise.
27660         (_G_HAVE_ATEXIT): Likewise.
27661         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27662         (_G_HAVE_IO_FILE_OPEN): Likewise.
27663         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27664         (_G_int32_t): Likewise.
27665         (_G_uint16_t): Likewise.
27666         (_G_uint32_t): Likewise.
27667         (_G_HAVE_BOOL): Likewise.
27668         (_G_HAVE_ATEXIT): Likewise.
27669         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27670         (_G_HAVE_IO_FILE_OPEN): Likewise.
27671         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27672         (_G_int32_t): Likewise.
27673         (_G_uint16_t): Likewise.
27674         (_G_uint32_t): Likewise.
27675         (_G_HAVE_BOOL): Likewise.
27676         (_G_HAVE_ATEXIT): Likewise.
27677         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27678         (_G_HAVE_IO_FILE_OPEN): Likewise.
27679
27680 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27681
27682         * csu/libc-tls.c: Update copyright years.
27683
27684 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27685
27686         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27687         [!_G_USING_THUNKS]: Remove conditional code.
27688         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27689         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27690
27691         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27692         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27693         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27694         (_G_VTABLE_LABEL_PREFIX): Likewise.
27695         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27696         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27697         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27698         (_G_VTABLE_LABEL_PREFIX): Likewise.
27699         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27700         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27701         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27702         (_G_VTABLE_LABEL_PREFIX): Likewise.
27703         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27704
27705 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
27706
27707         * libio/Makefile: Include ../Makeconfig before tests.
27708         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
27709         only if $(build-shared) is yes.
27710
27711         * iconv/gconv_db.c: Update copyright years.
27712
27713 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27714
27715         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
27716         unwind info if defined PIC. Fix special cases description.
27717         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
27718
27719         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
27720         DP_HI_MASK entry.
27721         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
27722
27723 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
27724
27725         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
27726
27727         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
27728         is NULL.
27729
27730         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
27731         (LDLIBS-tst-chk4): This.
27732         (LDFLAGS-tst-chk5): Renamed to ...
27733         (LDLIBS-tst-chk5): This.
27734         (LDFLAGS-tst-chk6): Renamed to ...
27735         (LDLIBS-tst-chk6): This.
27736         (LDFLAGS-tst-lfschk4): Renamed to ...
27737         (LDLIBS-tst-lfschk4): This.
27738         (LDFLAGS-tst-lfschk5): Renamed to ...
27739         (LDLIBS-tst-lfschk5): This.
27740         (LDFLAGS-tst-lfschk6): Renamed to ...
27741         (LDLIBS-tst-lfschk6): This.
27742
27743         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
27744         on $(common-objpfx)soversions.mk.
27745
27746 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
27747
27748         [BZ #10014]
27749         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
27750         example host name.
27751
27752 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
27753
27754         * malloc/arena.c (arena_get_retry): New function that gets
27755         another arena for the caller to try its request on.
27756         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
27757         current arena cannot fulfill the request.
27758         (__libc_memalign): Likewise.
27759         (__libc_memalign): Likewise.
27760         (__libc_pvalloc): Likewise.
27761         (__libc_calloc): Likewise.
27762
27763 2012-09-05  John Tobey  <john.tobey@gmail.com>
27764
27765         [BZ #13542]
27766         * manual/arith.texi (Operations on Complex): Fix description
27767         of carg branch cut.
27768
27769 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27770
27771         [BZ #10014]
27772         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
27773         host name.
27774
27775         [BZ #10038]
27776         * manual/memory.texi (Memory): Make order of menu items match
27777         order of sections.
27778
27779 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27780
27781         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
27782         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
27783         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
27784
27785 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27786
27787         * csu/libc-tls.c (static_dtv): Renamed to ...
27788         (_dl_static_dtv): This.  Make it global.
27789         (_dl_initial_dtv): Removed.
27790         (__libc_setup_tls): Updated.
27791         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
27792         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
27793         DL_INITIAL_DTV.
27794
27795 2012-09-06  Petr Machata  <pmachata@redhat.com>
27796
27797         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
27798         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
27799         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
27800         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
27801
27802 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27803
27804         [BZ #14545]
27805         * csu/libc-tls.c (_dl_initial_dtv): New variable.
27806         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
27807         freeing dtv[-1].
27808
27809 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27810
27811         [BZ #14544]
27812         * Makeconfig (link-static-before-libc): Replace $(+prector)
27813         with $(+prectorT).
27814         (link-static-after-libc): Replace $(+postctor) with
27815         $(+postctorT).
27816         (link-bounded): Replace $(+prector)/$(+postctor) with
27817         $(+prectorT)/$(+postctorT).
27818         (+prectorT): New macro.
27819         (+postctorT): Likewise.
27820
27821 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27822
27823         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
27824         (round_str): Handle values above the maximum for IBM long double
27825         as inexact.
27826         * stdlib/tst-strtod-round.c (tests): Regenerated.
27827
27828 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27829
27830         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
27831         assembler flag.
27832         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
27833         zarch_nohighgprs around the zarch optimized routines.
27834         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
27835         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
27836         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
27837         for zarch.
27838
27839 2012-09-05  David S. Miller  <davem@davemloft.net>
27840
27841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27842
27843         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
27844         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
27845         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
27846         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
27847         entries.
27848
27849 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27850
27851         * malloc/arena.c: Fold copyright years.
27852         * malloc/mcheck.c, malloc/memusage.c: Likewise.
27853
27854 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27855
27856         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
27857
27858 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27859
27860         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
27861
27862 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27863
27864         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
27865         change internal state upon failure.
27866
27867 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27868
27869         * malloc/mcheck.c (mcheck_check_all): Fix typo.
27870         * malloc/memusage.c (mmap): Likewise.
27871         (mmap64, mremap): Likewise.  Adjust name in comment.
27872
27873 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27874
27875         * libio/fileops.c: Fix typos in comments.
27876         * libio/oldfileops.c: Likewise.
27877         * libio/wfileops.c: Likewise.
27878
27879 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27880
27881         [BZ #1349]
27882         * malloc/Makefile (tests): Add tst-malloc-usable test case.
27883         (tst-malloc-usable-ENV): Set environment for test case.
27884         * malloc/hooks.c (malloc_check_get_size): New function to get
27885         requested size.
27886         * malloc/malloc.c (musable): Use malloc_check_get_size.
27887         * malloc/tst-malloc-usable.c: New test case.
27888
27889 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27890
27891         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
27892
27893 2012-09-05  Allan McRae  <allan@archlinux.org>
27894
27895         [BZ #13966]
27896         * configure.in (CXX_SYSINCLUDES): Use compiler output to
27897         determine header location.
27898         * configure: Regenerated.
27899
27900 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27901
27902         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
27903         float format.
27904         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
27905         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
27906         format.
27907         (test): Regenerate.
27908
27909 2012-09-04  David S. Miller  <davem@davemloft.net>
27910
27911         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
27912         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
27913         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
27914
27915 2012-09-04  Florian Weimer  <fweimer@redhat.com>
27916
27917         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
27918         failures.
27919
27920         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
27921
27922 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
27923
27924         [BZ #9914]
27925         * libio/iogetdelim.c: Include <limits.h>.
27926         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
27927         + len + 1 would overflow.
27928
27929 2012-09-03  Andreas Jaeger  <aj@suse.de>
27930
27931         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27932         * sysdeps/i386/fpu/libm-test-ulps: Update.
27933
27934 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27935
27936         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27937         Add s_sinf-sse2, s_conf-sse2.
27938
27939         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
27940         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
27941         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
27942         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
27943
27944         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
27945         for using routine as __sinf_ia32.
27946         Use macro for function declaration and weak_alias.
27947         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
27948         for using routine as __cosf_ia32.
27949         Use macro for function declaration and weak_alias.
27950
27951         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
27952         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
27953
27954         * sysdeps/x86_64/fpu/s_sinf.S: New file.
27955         * sysdeps/x86_64/fpu/s_cosf.S: New file.
27956         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27957
27958         * math/libm-test.inc (cos_test): Add more test cases.
27959         (sin_test): Likewise.
27960         (sincos_test): Likewise.
27961
27962 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27963
27964         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27965         (IFUNC_RESOLVE): Make pointers to the specialized implementations
27966         hidden.
27967         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27968
27969 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
27970
27971         [BZ #14538]
27972         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
27973         first element of the GOT.
27974         (elf_machine_load_address): Return the difference between
27975         the runtime address of _DYNAMIC and elf_machine_dynamic ().
27976
27977 2012-09-01  Allan McRae  <allan@archlinux.org>
27978
27979         [BZ #13412]
27980         * configure.in (AWK): Require gawk version 3.0 or later.
27981         * configure: Regenerated.
27982
27983 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
27984
27985         * sysdeps/unix/sysv/linux/kernel-features.h
27986         (__ASSUME_POSIX_CPU_TIMERS): Remove.
27987         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
27988         [__NR_clock_getres]: Make code unconditional.
27989         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
27990         (clock_getcpuclockid): Remove code left unreachable by removal of
27991         conditionals.
27992         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
27993         code unconditional.
27994         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27995         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27996         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
27997         Make code unconditional.
27998         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27999         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28000         * sysdeps/unix/sysv/linux/clock_settime.c
28001         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28002         conditional code.
28003         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28004         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28005
28006 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28007
28008         [BZ #14476]
28009         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28010         scripts/test-installation.pl.
28011
28012         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28013         and $ld_so_version if it is set.
28014
28015 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
28016
28017         [BZ #14516]
28018         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
28019         failure if reading from procfs failed.
28020         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
28021
28022 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28023
28024         * sysdeps/unix/sysv/linux/kernel-features.h
28025         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
28026         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28027         Remove conditional code.
28028         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28029         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
28030         Remove conditional code.
28031         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28032         * sysdeps/unix/sysv/linux/i386/fxstat.c
28033         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28034         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28035         * sysdeps/unix/sysv/linux/i386/fxstatat.c
28036         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28037         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28038         * sysdeps/unix/sysv/linux/i386/lxstat.c
28039         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
28040         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28041         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
28042         Remove conditional code.
28043         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28044         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
28045         Remove conditional code.
28046         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28047         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
28048         <kernel-features.h>.
28049         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
28050         Remove.
28051         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
28052         Remove conditional code.
28053         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
28054         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
28055         Remove conditional.
28056
28057 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
28058
28059         [BZ #5400]
28060         * NEWS: Add fixed bug number.
28061
28062 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
28063
28064         [BZ #14519]
28065         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
28066         underflowing exponent in case of negative sign.
28067         * stdlib/tst-strtod-round-data: Add more tests.
28068         * stdlib/tst-strtod-round.c (tests): Regenerated.
28069
28070         [BZ #3479]
28071         * stdlib/strtod_l.c (NDIG): Remove.
28072         (HEXNDIG): Likewise.
28073         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
28074         smallest representable value.
28075         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
28076         lie within an exact representation of 1/2 ulp of the result.
28077         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
28078         unconditionally.
28079         (TENS_P9_IDX): Define unconditionally.
28080         (TENS_P9_SIZE): Likewise.
28081         (TENS_P10_IDX): Likewise.
28082         (TENS_P10_SIZE): Likewise.
28083         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
28084         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
28085         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
28086         entries for 10^2^13 and 10^2^14.
28087         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
28088         (TENS_P13_IDX): Define.
28089         (TENS_P13_SIZE): Likewise.
28090         (TENS_P14_IDX): Likewise.
28091         (TENS_P14_SIZE): Likewise.
28092         (_fpioconst_pow10): Change array size to
28093         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
28094         unconditional.
28095         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
28096         1024]: Add entries for 10^2^13 and 10^2^14.
28097         [LAST_POW10 > _LAST_POW10]: Remove #error.
28098         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
28099         (_fpioconst_pow10): Change array size to
28100         FPIOCONST_POW10_ARRAY_SIZE.
28101         * stdlib/gen-fpioconst.c: New file.
28102         * stdlib/gen-tst-strtod-round.c: Likewise.
28103         * stdlib/tst-strtod-round-data: Likewise.
28104         * stdlib/tst-strtod-round.c: Likewise.
28105         * stdlib/Makefile (tests): Add tst-strtod-round.
28106
28107         [BZ #14459]
28108         * stdlib/strtod_l.c: Include <stdint.h>.
28109         (NDEBUG): Do not define.
28110         (round_and_return): Change EXPONENT parameter to type intmax_t.
28111         Rearrange calculations to avoid internal overflow possibilities.
28112         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
28113         Rearrange calculations to avoid internal overflow possibilities.
28114         Assert that number fits inside MPNSIZE limbs.
28115         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
28116         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
28117         calculations and add assertions to avoid internal overflow
28118         possibilities.  Add casts to avoid signed/unsigned operations.
28119         * stdlib/tst-strtod-overflow.c: New file.
28120         * stdlib/Makefile (tests): Add tst-strtod-overflow.
28121
28122 2012-08-25  Marek Polacek  <polacek@redhat.com>
28123
28124         * time/time.h: Fix some typos in comments.
28125
28126 2012-08-23  Roland McGrath  <roland@hack.frob.com>
28127
28128         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
28129         * posix/tst-rfc3484-2.c: Likewise.
28130         * posix/tst-rfc3484-3.c: Likewise.
28131
28132 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
28133
28134         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
28135         (EF_ARM_ABI_FLOAT_HARD): Likewise.
28136
28137 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
28138
28139         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
28140         #include of fxstatat64.c.
28141
28142 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28143
28144         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
28145         * shadow/getspent_r.c: Likewise.
28146         * shadow/getspnam.c: Likewise.
28147         * shadow/getspnam_r.c: Likewise.
28148         * gshadow/getsgent.c: Likewise.
28149         * gshadow/getsgent_r.c: Likewise.
28150         * gshadow/getsgnam.c: Likewise.
28151         * gshadow/getsgnam_r.c: Likewise.
28152         * inet/getnetbyad.c: Likewise.
28153         * inet/getnetbyad_r.c: Likewise.
28154         * inet/getnetbynm.c: Likewise.
28155         * inet/getnetbynm_r.c: Likewise.
28156         * inet/getnetent.c: Likewise.
28157         * inet/getnetent_r.c: Likewise.
28158         * inet/getproto.c: Likewise.
28159         * inet/getproto_r.c: Likewise.
28160         * inet/getprtent.c: Likewise.
28161         * inet/getprtent_r.c: Likewise.
28162         * inet/getprtname.c: Likewise.
28163         * inet/getprtname_r.c: Likewise.
28164         * inet/getrpcbyname.c: Likewise.
28165         * inet/getrpcbyname_r.c: Likewise.
28166         * inet/getrpcbynumber.c: Likewise.
28167         * inet/getrpcbynumber_r.c: Likewise.
28168         * inet/getrpcent.c: Likewise.
28169         * inet/getrpcent_r.c: Likewise.
28170         * inet/getaliasent.c: Likewise.
28171         * inet/getaliasent_r.c: Likewise.
28172         * inet/getaliasname.c: Likewise.
28173         * inet/getaliasname_r.c: Likewise.
28174         * nscd/getgrgid_r.c: Likewise.
28175         * nscd/getgrnam_r.c: Likewise.
28176         * nscd/gethstbyad_r.c: Likewise.
28177         * nscd/gethstbynm3_r.c: Likewise.
28178         * nscd/getpwnam_r.c: Likewise.
28179         * nscd/getpwuid_r.c: Likewise.
28180         * nscd/getsrvbynm_r.c: Likewise.
28181         * nscd/getsrvbypt_r.c: Likewise.
28182         * nscd/gai.c: Likewise.
28183
28184         * configure.in (build_nscd): New substituted variable, set
28185         by --disable-build-nscd and defaults to $use_nscd.
28186         * configure: Regenerated.
28187         * config.make.in (build-nscd): New substituted variable.
28188         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
28189         Change conditional to require [$(build-nscd) = yes] as well.
28190         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
28191
28192         [BZ# 13696]
28193         * configure.in (use_nscd): New substituted variable, set by
28194         --disable-nscd.  If enabled, define USE_NSCD.
28195         * configure: Regenerated.
28196         * config.h.in: Add USE_NSCD.
28197         * config.make.in (use-nscd): New substituted variable.
28198         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
28199         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
28200         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
28201         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
28202         (CFLAGS-getgrnam_r.c): Likewise.
28203         (CFLAGS-initgroups.c): Likewise.
28204         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
28205         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
28206         Variables removed.
28207         * inet/getnetgrent_r.c
28208         (nscd_setnetgrent): New function, broken out of ...
28209         (setnetgrent): ... here.  Call it.
28210         (innetgr): Conditionalize nscd bits on [USE_NSCD].
28211         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
28212         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
28213         * nscd/Makefile (routines, aux): Move definitions after include of
28214         Makeconfig.  Conditionalize on [$(use-nscd) != no].
28215         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
28216         Conditionalize on [USE_NSCD].
28217         (is_nscd, nscd_init_cb): Likewise.
28218         (nss_load_library): Conditionalize init callback on [USE_NSCD].
28219         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
28220         * nss/nss_db/db-init.c: Likewise.
28221         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
28222         [USE_NSCD].
28223         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
28224         (make_request): Use it.
28225         (cache_valid_p): New function.
28226         (__check_pf): Use it.
28227         * NEWS: Add item for --disable-nscd.
28228
28229 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
28230
28231         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
28232         to support sed >= 4.2.1-20-ga9bf076.
28233         * configure: Regenerated.
28234
28235 2012-08-22  Roland McGrath  <roland@hack.frob.com>
28236
28237         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
28238         Conditionalize whole body on [IREL].
28239
28240 2012-08-22  Jeff Law <law@redhat.com>
28241
28242         [BZ #14505]
28243         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
28244         if the family is PF_UNSPEC.
28245
28246 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
28247
28248         * Makerules (lib-version): Rename from V.
28249         (install-lib-nosubdir): Change V to lib-version.
28250
28251 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
28252
28253         [BZ #14252]
28254         * powerpc32/power6/wcschr.c: New file.
28255         * powerpc32/power6/wcscpy.c: New file.
28256         * powerpc32/power6/wcsrchr.c: New file.
28257         * powerpc64/power6/wcschr.c: New file.
28258         * powerpc64/power6/wcscpy.c: New file.
28259         * powerpc64/power6/wcsrchr.c: New file.
28260
28261 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28262
28263         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
28264         (two_way_short_needle): Use it.
28265         * string/strstr.c (AVAILABLE1_USES_J): Define.
28266         * string/strcasestr.c: Likewise.
28267
28268         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
28269         array references.
28270         * string/strcasestr.c (TOLOWER): Make side-effect safe.
28271
28272         [BZ #11607]
28273         * NEWS: Add an entry.
28274         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
28275         define their defaults.
28276         (two_way_short_needle): Detect end-of-string on-the-fly.
28277         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
28278         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
28279         * string/bug-strcasestr1.c: New test.
28280         * string/Makefile: Run it.
28281
28282 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
28283
28284         [BZ #11607]
28285         * string/str-two-way.h (two_way_short_needle): Optimize matching of
28286         the first character.
28287
28288 2012-08-21  Roland McGrath  <roland@hack.frob.com>
28289
28290         * csu/elf-init.c (__libc_csu_irel): Function removed.
28291         * csu/libc-start.c (apply_irel): New function.
28292         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
28293
28294 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
28295
28296         * sysdeps/unix/sysv/linux/kernel-features.h
28297         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
28298         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28299         <kernel-features.h>.
28300         [__NR_fadvise64_64]: Make code unconditional.
28301         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
28302         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28303         !__NR_fadvise64_64)]: Likewise.
28304         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
28305         !__NR_fadvise64_64))]: Likewise.
28306         [__NR_fadvise64]: Make code unconditional.
28307         [!__NR_fadvise64]: Remove conditional code.
28308         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
28309         <kernel-features.h>.
28310         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28311         unconditional.
28312         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28313         conditional code.
28314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
28315         not include <kernel-features.h>.
28316         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28317         unconditional.
28318         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28319         conditional code.
28320         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
28321         include <kernel-features.h>.
28322         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
28323         unconditional.
28324         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
28325         conditional code.
28326
28327 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28328
28329         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
28330         slight instruction rearrangements per scrollpipe analysis.
28331         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
28332
28333 2012-08-20  Roland McGrath  <roland@hack.frob.com>
28334
28335         * manual/syslog.texi (syslog; vsyslog, closelog):
28336         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
28337         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
28338
28339         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
28340         DSOCAPS to match condition on defining it.
28341
28342 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
28343
28344         * sysdeps/unix/sysv/linux/kernel-features.h
28345         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
28346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
28347         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28348         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
28350         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28351         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
28353         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
28354         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
28355
28356         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
28357         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
28358
28359         * sysdeps/unix/sysv/linux/kernel-features.h
28360         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
28361         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
28362         unconditional.
28363         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28364         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
28365         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28366         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28367         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
28368         Make code unconditional.
28369         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28370         (__mmap64) [!__NR_mmap2]: Likewise.
28371         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
28372         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
28373         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28374         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
28375         [__NR_mmap2]: Make code unconditional.
28376         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
28377         (__mmap64) [!__NR_mmap2]: Likewise.
28378
28379 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28380
28381         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28382
28383 2012-08-18  Andreas Jaeger  <aj@suse.de>
28384
28385         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28386
28387 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28388
28389         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28390         * include/unistd.h (__have_sock_cloexec): Likewise.
28391         (__have_pipe2): Likewise.
28392         (__have_dup3): Likewise.
28393
28394 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28395
28396         [BZ #9685]
28397         * include/unistd.h (__have_pipe2): Change define into an extern int.
28398         (__have_dup3): Likewise.
28399         * socket/have_sock_cloexec.c: Include fcntl.h.
28400         (__have_pipe2): New variable.
28401         (__have_dup3): Likewise.
28402
28403 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28404
28405         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28406
28407 2012-08-17  Marek Polacek  <polacek@redhat.com>
28408
28409         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28410         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28411
28412 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28413
28414         * configure.in: Add AC_SUBST for sysheaders.
28415         * configure: Regenerated.
28416         * config.make.in (sysheaders): New substituted variable.
28417
28418         * sysdeps/unix/mkfifo.c: Moved ...
28419         * sysdeps/posix/mkfifo.c: ... here.
28420         * sysdeps/unix/mkfifoat.c: Moved ...
28421         * sysdeps/posix/mkfifoat.c: ... here.
28422
28423         * sysdeps/unix/utime.c: Moved ...
28424         * sysdeps/posix/utime.c: ... here.
28425
28426         * sysdeps/unix/time.c: Moved ...
28427         * sysdeps/posix/time.c: ... here.
28428         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28429         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28430
28431         * sysdeps/unix/nice.c: Moved ...
28432         * sysdeps/posix/nice.c: ... here.
28433
28434         * sysdeps/unix/alarm.c: Moved ...
28435         * sysdeps/posix/alarm.c: ... here.
28436
28437         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28438
28439 2012-08-17  Jeff Law <law@redhat.com>
28440
28441         * intl/Makefile (codeset_mo): New variable.
28442         ($(codeset_mo)): New target.
28443         (tst-codeset.out): Depend on that.  Remove explicit rule.
28444         (tst-gettext3.out, tst-gettext5.out): Likewise.
28445         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28446         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28447         * intl/tst-codeset.sh: Remove.
28448         * intl/tst-gettext3.sh: Likewise.
28449         * intl/tst-gettext5.sh: Likewise.
28450
28451 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28452
28453         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28454         * sysdeps/unix/syscalls.list: ... here.
28455
28456         * sysdeps/posix/getaddrinfo.c
28457         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28458         (gaiconf_init, gaiconf_reload): Use them.
28459         [!_STATBUF_ST_NSEC]
28460         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28461         Define using time_t rather than struct timespec.
28462
28463         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28464         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28465         Macros removed.
28466         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28467         [!NO_THREADS].
28468         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28469         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28470         Likewise.
28471
28472         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28473         __libc_cleanup_push argument.
28474
28475         * bits/param.h: New file.
28476         * misc/sys/param.h: New file.
28477         * include/sys/param.h: New file.
28478         * misc/Makefile (headers): Add bits/param.h.
28479         * sysdeps/generic/sys/param.h: File removed.
28480         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28481         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28482         * sysdeps/mach/hurd/bits/param.h: New file.
28483         * sysdeps/mach/hurd/sys/param.h: File removed.
28484
28485         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28486         last change.
28487
28488         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28489         [_IO_MTSAFE_IO].
28490         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28491         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28492         New macros.
28493
28494         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28495         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28496         rather than -D_IO_MTSAFE_IO conditionally.
28497         * stdio-common/Makefile (CPPFLAGS): Likewise.
28498         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28499         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28500         Use $(libio-mtsafe).
28501         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28502         of -D_IO_MTSAFE_IO.
28503         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28504         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28505         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28506         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28507         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28508         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28509         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28510         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28511         (CFLAGS-fread_u_chk.c): Likewise.
28512         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28513         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28514         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28515         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28516         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28517         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28518         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28519         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28520         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28521
28522         * libio/Makefile: Test [$(libc-reentrant) = yes]
28523         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28524
28525         * Makeconfig
28526         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28527         * sysdeps/pthread/configure: File removed.
28528         * sysdeps/pthread/Makeconfig: New file.
28529         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28530         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28531
28532 2012-08-16  Gary Benson  <gbenson@redhat.com>
28533
28534         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28535         unmapping the first object in a namespace.
28536
28537 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28538
28539         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28540         (__internal_setnetgrent): ... this.  Add internal_function to
28541         definition.  Add libc_hidden_def.
28542         (setnetgrent): Update caller.
28543         (internal_endnetgrent): Renamed to ...
28544         (__internal_endnetgrent): ... this.  Add internal_function to
28545         definition.  Add libc_hidden_def.
28546         (endnetgrent): Update caller.
28547         (internal_getnetgrent_r): Renamed to ...
28548         (__internal_getnetgrent_r): ... this.  Add internal_function to
28549         definition.  Add libc_hidden_def.
28550         (__getnetgrent_r): Update caller.
28551         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28552
28553 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28554
28555         * stdlib/longlong.h: Update from GCC.
28556
28557 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28558
28559         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28560         on _QL, which is set by umul_ppmm but never used.
28561         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28562         variables, which are set by GMP macros but never used.
28563         * stdio-common/_itowa.c (_itowa): Likewise.
28564         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28565         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28566
28567 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28568
28569         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28570         struct La_sh_regs is not constant.
28571         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28572         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28573         and struct La_sparc64_regs are not constant.
28574
28575 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28576
28577         * sysdeps/unix/sysv/linux/kernel-features.h
28578         (__ASSUME_POSIX_TIMERS): Remove.
28579         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28580         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28581         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28582         Make code unconditional.
28583         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28584         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28585         Make code unconditional.
28586         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28587         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28588         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28589         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28590         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28591         Make code unconditional.
28592         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28593         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28594         (__libc_missing_posix_timers): Remove.
28595
28596 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28597
28598         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28599         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28600
28601         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28602
28603         * elf/dl-sym.c: Include <stdlib.h>.
28604
28605         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28606         constants, which avoids warnings in 32-bit builds.
28607
28608         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28609         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28610
28611         * misc/lseek.c: File moved to ...
28612         * io/lseek.c: ... here.
28613
28614         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28615
28616         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28617         shifting LEN more than 31 bits at once.
28618
28619 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28620
28621         [BZ #14195]
28622         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28623         segmentation fault for a case of two empty input strings.
28624         * string/test-strncasecmp.c (check1): Renamed to...
28625         (bz12205): ...this.
28626         (bz14195): Add new testcase for two empty input strings and N > 0.
28627         (test_main): Call new testcase, adapt for renamed function.
28628
28629 2012-08-15  Andreas Jaeger  <aj@suse.de>
28630
28631         [BZ #14090]
28632         * crypt/md5test2.c: New test, based on test supplied by Serge
28633         Belyshev <belyshev@depni.sinp.msu.ru>.
28634         * crypt/Makefile (xtests): Add md5test-giant..
28635         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28636
28637 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28638
28639         [BZ #14090]
28640         * crypt/md5.c (md5_process_block): Don't assume the buffer
28641         length is less than 2**32.
28642         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28643         length is less than 2**64.
28644
28645 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28646
28647         * string/str-two-way.h: Include <sys/param.h>.
28648         (MAX): Macro removed.
28649
28650         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28651         Move #define and #undef of memmove to just before and after
28652         including <string.h>.
28653
28654         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28655         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28656         and after including <string.h>.  Move declarations of
28657         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28658         to before #include "string/memmove.c".
28659
28660         * include/dirent.h: Declare __getdirentries.
28661
28662         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28663         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28664
28665 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28666
28667         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28668         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28669         * sysdeps/i386/configure: Regenerated.
28670         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28671         STABS_CURRENT_FILE, and STABS_FUN.
28672         (END): Remove call to STABS_FUN_END.
28673         (STABS_CURRENT_FILE1): Delete.
28674         (STABS_CURRENT_FILE): Likewise.
28675         (STABS_FUN): Likewise.
28676         (STABS_FUN_END): Likewise.
28677         (STABS_FUN2): Likewise.
28678         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28679         * sysdeps/x86_64/configure: Regenerated.
28680
28681 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28682
28683         * elf/dl-open.c: Include <atomic.h>.
28684         * elf/dl-lookup.c: Likewise.
28685
28686 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28687
28688         * sysdeps/unix/sysv/linux/kernel-features.h
28689         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28690         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28691         unconditionally.
28692         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28693         unconditionally.
28694         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28695         condition on __ASSUME_CLONE_THREAD_FLAGS.
28696
28697 2012-08-14  Andreas Jaeger  <aj@suse.de>
28698
28699         * sysdeps/i386/fpu/libm-test-ulps: Update.
28700
28701 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28702
28703         * include/atomic.h (atomic_exchange_and_add): Split into ...
28704         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28705         New atomic macros.
28706
28707 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
28708
28709         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28710
28711 2012-08-13  Jeff Law <law@redhat.com>
28712
28713         * manual/stdio.texi (snprintf): Clarify handling of the trailing
28714         null byte in the output string.
28715
28716 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
28717
28718         * sysdeps/unix/sysv/linux/kernel-features.h
28719         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
28720         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
28721         (__ASSUME_ARG_MAX_STACK_BASED): Define.
28722         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
28723         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
28724         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
28725         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
28726
28727 2012-08-09  Jeff Law <law@redhat.com>
28728
28729         [BZ #13939]
28730         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
28731         When avoid_arena is set, don't retry in the that arena.  Pick the
28732         next one, whatever it might be.
28733         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
28734         (arena_lock): Pass in new parameter to arena_get2.
28735         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
28736         arena_get2.
28737         (__libc_malloc): Unify retrying after main arena failure with
28738         __libc_memalign version.
28739         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
28740
28741 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
28742
28743         [BZ #14166]
28744         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
28745         to __redirect_strstr.
28746         (__strstr_sse42): Use typeof __redirect_strstr.
28747         (__strstr_ia32): Likewise.
28748         (__libc_strstr): New prototype.
28749         (strstr): Renamed to ...
28750         (__libc_strstr): This.
28751         (strstr): New strong alias of __libc_strstr.
28752         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
28753         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
28754         __redirect_time.
28755         Include <time.h>.
28756         (__libc_time): New prototype.
28757         (time_ifunc): Replace time with __libc_time.
28758         (time): New strong alias and hidden definition of __libc_time.
28759         (__GI_time): Remove strong alias.
28760         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
28761         Include <stddef.h>.
28762         (memmove): Redefined to __redirect_memmove.
28763         (__memmove_sse2): Use typeof __redirect_memmove.
28764         (__memmove_ssse3): Likewise.
28765         (__memmove_ssse3_back): Likewise.
28766         (__libc_memmove): New prototype.
28767         (memmove): Renamed to ...
28768         (__libc_memmove): This.
28769         (memmove): New strong alias of __libc_memmove.
28770
28771 2012-08-08  Mark Salter  <msalter@redhat.com>
28772
28773         * elf/elf.h
28774         (R_MN10300_TLS_GD): Define.
28775         (R_MN10300_TLS_LD): Likewise.
28776         (R_MN10300_TLS_LDO): Likewise.
28777         (R_MN10300_TLS_GOTIE): Likewise.
28778         (R_MN10300_TLS_IE): Likewise.
28779         (R_MN10300_TLS_LE): Likewise.
28780         (R_MN10300_TLS_DTPMOD): Likewise.
28781         (R_MN10300_TLS_DTPOFF): Likewise.
28782         (R_MN10300_TLS_TPOFF): Likewise.
28783         (R_MN10300_SYM_DIFF): Likewise.
28784         (R_MN10300_ALIGN): Likewise.
28785         (R_MN10300_NUM): Update.
28786
28787 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
28788
28789         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
28790         Remove.
28791
28792 2012-08-08  Roland McGrath  <roland@hack.frob.com>
28793
28794         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
28795
28796         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
28797         sysdeps/unix -> sysdeps/posix move.
28798         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28799
28800 2012-08-07      Allan McRae     <allan@archlinux.org>
28801
28802         [BZ #14303]
28803         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
28804         (SUNOS_CPP): Likewise.
28805         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
28806         not found.
28807         (open_input): Call CPP using execvp.
28808
28809 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28810
28811         * sysdeps/unix/sysv/linux/kernel-features.h
28812         (__ASSUME_PROT_GROWSUPDOWN): Remove.
28813         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28814         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28815         (__ASSUME_WAITID_SYSCALL): Likewise.
28816         * sysdeps/unix/sysv/linux/dl-execstack.c
28817         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
28818         code unconditional.
28819         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
28820         conditional code.
28821         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
28822         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
28823         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
28824         code.
28825         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
28826         unconditional.
28827         [__ASSUME_WAITID_SYSCALL]: Likewise.
28828         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
28829
28830 2012-08-07  Roland McGrath  <roland@hack.frob.com>
28831
28832         * sysdeps/unix/closedir.c: Renamed to ...
28833         * sysdeps/posix/closedir.c: ... here.
28834         * sysdeps/unix/dirfd.c: Renamed to ...
28835         * sysdeps/posix/dirfd.c: ... here.
28836         * sysdeps/unix/dirstream.h: Renamed to ...
28837         * sysdeps/posix/dirstream.h: ... here.
28838         * sysdeps/unix/fdopendir.c: Renamed to ...
28839         * sysdeps/posix/fdopendir.c: ... here.
28840         * sysdeps/unix/opendir.c: Renamed to ...
28841         * sysdeps/posix/opendir.c: ... here.
28842         * sysdeps/unix/readdir.c: Renamed to ...
28843         * sysdeps/posix/readdir.c: ... here.
28844         * sysdeps/unix/readdir_r.c: Renamed to ...
28845         * sysdeps/posix/readdir_r.c: ... here.
28846         * sysdeps/unix/rewinddir.c: Renamed to ...
28847         * sysdeps/posix/rewinddir.c: ... here.
28848         * sysdeps/unix/seekdir.c: Renamed to ...
28849         * sysdeps/posix/seekdir.c: ... here.
28850         * sysdeps/unix/telldir.c: Renamed to ...
28851         * sysdeps/posix/telldir.c: ... here.
28852         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
28853         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
28854         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28855         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
28856
28857         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
28858         * bits/fcntl.h: ... here.
28859
28860         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
28861         not 0.
28862         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
28863         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
28864         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
28865         (struct flock): Move l_start, l_len to the beginning.
28866         Use __pid_t for l_pid.
28867         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
28868         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
28869         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
28870         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
28871         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
28872         [__USE_LARGEFILE64] (struct flock64): New type.
28873         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
28874
28875         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
28876         * bits/dirent.h: ... here.
28877
28878         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
28879         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
28880
28881 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28882
28883         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28884         Change from 2.6.0 to 2.6.16.
28885         * sysdeps/unix/sysv/linux/configure: Regenerated.
28886         * sysdeps/unix/sysv/linux/kernel-features.h
28887         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
28888         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
28889         version.
28890         (__ASSUME_UTIMES): Likewise.
28891         (__ASSUME_CLONE_STOPPED): Remove.
28892         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
28893         architectures, not kernel version.
28894         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
28895         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28896         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28897         (__ASSUME_WAITID_SYSCALL): Likewise.
28898         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
28899         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
28900         * README: State 2.6.16 as minimum Linux kernel version.  Do not
28901         refer to older versions.
28902
28903 2012-08-06  Roland McGrath  <roland@hack.frob.com>
28904
28905         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
28906         Define alphasort64 as an alias.
28907         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
28908         Define versionsort64 as an alias.
28909         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
28910         Define scandir64 as an alias.
28911         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
28912         Define scandirat64 as an alias.
28913         * dirent/alphasort64.c (alphasort64):
28914         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
28915         * dirent/versionsort64.c: Likewise.
28916         * dirent/scandir64.c: Likewise.
28917         * dirent/scandirat64.c: Likewise.
28918         * sysdeps/wordsize-64/alphasort.c: File removed.
28919         * sysdeps/wordsize-64/alphasort64.c: File removed.
28920         * sysdeps/wordsize-64/scandir.c: File removed.
28921         * sysdeps/wordsize-64/scandir64.c: File removed.
28922         * sysdeps/wordsize-64/scandirat.c: File removed.
28923         * sysdeps/wordsize-64/scandirat64.c: File removed.
28924         * sysdeps/wordsize-64/versionsort.c: File removed.
28925         * sysdeps/wordsize-64/versionsort64.c: File removed.
28926         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
28927         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
28928         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
28929         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
28930         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
28931         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
28932         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
28933         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
28934
28935         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
28936         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28937         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
28938         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28939         [defined __arch64__ || defined __sparcv9]
28940         (__INO_T_MATCHES_INO64_T): New macro.
28941         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28942         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
28943         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
28944         * sysdeps/unix/sysv/linux/bits/dirent.h
28945         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
28946         (_DIRENT_MATCHES_DIRENT64): New macro.
28947
28948         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
28949         Define lockf64 as an alias.
28950         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
28951         Define fseeko64 as an alias.
28952         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
28953         Define ftello64 as an alias.
28954         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
28955         Define _IO_fgetpos64 and fgetpos64 as aliases.
28956         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
28957         Define _IO_fsetpos64 and fsetpos64 as aliases.
28958         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
28959         Conditionalize body on this.
28960         * libio/fseeko64.c: Likewise.
28961         * libio/ftello64.c: Likewise.
28962         * libio/iofgetpos64.c: Likewise.
28963         * libio/iofsetpos64.c: Likewise.
28964         * sysdeps/wordsize-64/lockf.c: File removed.
28965         * sysdeps/wordsize-64/lockf64.c: File removed.
28966         * sysdeps/wordsize-64/fseeko.c: File removed.
28967         * sysdeps/wordsize-64/fseeko64.c: File removed.
28968         * sysdeps/wordsize-64/ftello.c: File removed.
28969         * sysdeps/wordsize-64/ftello64.c: File removed.
28970         * sysdeps/wordsize-64/iofgetpos.c: File removed.
28971         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
28972         * sysdeps/wordsize-64/iofsetpos.c: File removed.
28973         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
28974         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
28975         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
28976         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
28977         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
28978         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
28979         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
28980         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
28981         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
28982         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
28983         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
28984
28985         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28986         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28987         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
28988         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28989         [defined __arch64__ || defined __sparcv9]
28990         (__OFF_T_MATCHES_OFF64_T): New macro.
28991         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28992         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28993         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28994         (__OFF_T_MATCHES_OFF64_T): New macro.
28995
28996 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28997
28998         * stdlib/secure-getenv.c (__secure_getenv): Replace
28999         GLIBC_2_16 with GLIBC_2_17.
29000
29001 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29002
29003         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29004         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29005
29006 2012-08-03  David S. Miller  <davem@davemloft.net>
29007
29008         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29009
29010 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29011
29012         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29013         Remove.
29014         (__ASSUME_CORRECT_SI_PID): Likewise.
29015         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
29016         (__ASSUME_TMPFS_NAME): Likewise.
29017         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
29018         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
29019         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
29020         (HAVE_AUX_SECURE): Make definition unconditional.
29021         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
29022         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
29023
29024 2012-08-03  Roland McGrath  <roland@hack.frob.com>
29025
29026         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
29027         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
29028         * sysdeps/mach/hurd/eloop-threshold.h: New file.
29029         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
29030         __eloop_threshold instead of SYMLOOP_MAX.
29031
29032         * sysdeps/generic/eloop-threshold.h: New file.
29033         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
29034         of MAXSYMLINKS.
29035         * elf/chroot_canon.c (chroot_canon): Likewise.
29036
29037 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29038
29039         [BZ #13717]
29040         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29041         Change to 2.6.0 everywhere.
29042         * sysdeps/unix/sysv/linux/configure: Regenerated.
29043         * sysdeps/unix/sysv/linux/kernel-features.h
29044         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
29045         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
29046         kernel versions.
29047         (__ASSUME_POSIX_TIMERS): Define unconditionally.
29048         (__ASSUME_FUTEX_REQUEUE): Remove.
29049         (__ASSUME_STATFS64): Define unconditionally.
29050         (__ASSUME_AT_SECURE): Likewise.
29051         (__ASSUME_CORRECT_SI_PID): Likewise.
29052         (__ASSUME_TGKILL): Define without depending on kernel version for
29053         i386.
29054         (__ASSUME_UTIMES): Likewise.
29055         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
29056         kernel version.
29057         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
29058         (__ASSUME_TMPFS_NAME): Likewise.
29059         * README: Update reference to Linux kernel versions.
29060
29061 2012-08-02  Marek Polacek  <polacek@redhat.com>
29062
29063         [BZ# 14150]
29064         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
29065         libc_cv_asm_type_prefix with %.
29066         * configure: Regenerated.
29067         * include/libc-symbols.h: Remove comment about
29068         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29069         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
29070         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
29071         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
29072         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
29073         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
29074         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
29075         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
29076         * elf/tst-unique2mod1.c: Likewise.
29077         * elf/tst-unique1mod2.c: Likewise.
29078         * elf/tst-unique1mod1.c: Likewise.
29079         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
29080         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
29081         Replace ASM_TYPE_DIRECTIVE with .type.
29082         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29083         * sysdeps/i386/sysdep.h: Likewise.
29084         * sysdeps/x86_64/sysdep.h: Likewise.
29085         * sysdeps/sh/sysdep.h: Likewise.
29086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
29087         Do not define ASM_TYPE_DIRECTIVE.
29088         * sysdeps/powerpc/sysdep.h: Likewise.
29089         * sysdeps/powerpc/powerpc32/sysdep.h:
29090         Replace ASM_TYPE_DIRECTIVE with .type.
29091         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29092         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29093         * sysdeps/i386/fpu/e_powf.S: Likewise.
29094         * sysdeps/i386/fpu/e_expl.S: Likewise.
29095         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29096         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29097         * sysdeps/i386/fpu/e_pow.S: Likewise.
29098         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
29099         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29100         * sysdeps/i386/fpu/s_expm1.S: Likewise.
29101         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
29102         * sysdeps/i386/fpu/e_log2.S: Likewise.
29103         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29104         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29105         * sysdeps/i386/fpu/e_powl.S: Likewise.
29106         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29107         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
29108         * sysdeps/i386/fpu/e_logl.S: Likewise.
29109         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
29110         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
29111         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
29112         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29113         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29114         * sysdeps/i386/fpu/e_log.S: Likewise.
29115         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29116         * sysdeps/i386/fpu/e_logf.S: Likewise.
29117         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29118         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29119         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
29120         * sysdeps/i386/fpu/e_log10.S: Likewise.
29121         * sysdeps/i386/fpu/s_frexp.S: Likewise.
29122         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29123         * sysdeps/i386/fpu/s_asinh.S: Likewise.
29124         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
29125         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29126         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
29127         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
29128         * sysdeps/i386/i686/strtok.S: Likewise.
29129         * sysdeps/i386/i386-mcount.S: Likewise.
29130         * sysdeps/i386/strtok.S: Likewise.
29131         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
29132         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29133         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29134         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29135         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
29136         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29137         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
29138         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
29139         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29140         * sysdeps/x86_64/_mcount.S: Likewise.
29141         * sysdeps/x86_64/strtok.S: Likewise.
29142         * sysdeps/sh/_mcount.S: Likewise.
29143
29144 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29145
29146         * libio/iofopen.c: Include <fcntl.h>.
29147         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
29148         (_IO_fopen64, fopen64): Define as aliases.
29149         * libio/iofopen64.c: Include <fcntl.h>.
29150         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
29151         Conditionalize body on this.
29152         * sysdeps/wordsize-64/iofopen.c: File removed.
29153         * sysdeps/wordsize-64/iofopen64.c: File removed.
29154
29155 2012-08-01  Marek Polacek  <polacek@redhat.com>
29156
29157         * libc/Makeconfig: Use elf in place of binfmt-subdir.
29158         Use dlfcn directly instead of a variable.
29159         (binfmt-subdir): Do not define.
29160         (dlfcn): Likewise.
29161
29162 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
29163
29164         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
29165         Remove all definitions.
29166         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
29167         <kernel-features.h>.
29168         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29169         (miss_F_GETOWN_EX): Remove all definitions.
29170         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
29171         macro definition.
29172         [!__ASSUME_FCNTL64]: Remove conditional code.
29173         [__ASSUME_FCNTL64]: Make code unconditional.
29174         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
29175         <kernel-features.h>.
29176         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
29177         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
29178         (lockf64) [__NR_fcntl64]: Make code unconditional.
29179         (lockf64) [__ASSUME_FCNTL64]: Likewise.
29180
29181         * sysdeps/unix/sysv/linux/kernel-features.h
29182         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
29183         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
29184         Make code unconditional.
29185         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29186         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29187         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
29188         [__NR_vfork]: Make code unconditional.
29189         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29190         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29191         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
29192         [__NR_vfork]: Make code unconditional.
29193         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
29194         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
29195
29196 2012-08-01  Roland McGrath  <roland@hack.frob.com>
29197
29198         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
29199         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
29200
29201         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29202         Define mkstemp64 as an alias.
29203         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29204         Define mkstemps64 as an alias.
29205         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29206         Define mkostemp64 as an alias.
29207         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
29208         Define mkostemps64 as an alias.
29209         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
29210         Conditionalize body on this.
29211         * misc/mkostemp64.c: Likewise.
29212         * misc/mkostemps64.c: Likewise.
29213         * misc/mkstemps64.c: Likewise.
29214         * sysdeps/wordsize-64/mkstemp64.c: File removed.
29215         * sysdeps/wordsize-64/mkostemp64.c: File removed.
29216         * sysdeps/wordsize-64/mkostemp.c: File removed.
29217         * sysdeps/wordsize-64/mkstemp.c: File removed.
29218         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
29219         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
29220         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
29221         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
29222
29223         [BZ #14138]
29224         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
29225         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
29226         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
29227         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
29228
29229         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
29230         compat_symbol macros from <shlib-compat.h> rather than the underlying
29231         default_symbol_version and symbol_version macros, so that DEFAULT
29232         lines in shlib-versions are respected.
29233         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
29234
29235 2012-08-01  Florian Weimer  <fweimer@redhat.com>
29236
29237         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
29238         Declare with warn_unused_result.
29239         (setgid, setregid, setegid, setresgid): Likewise.
29240         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
29241         Likewise.
29242         * WUR-REPORT: Remove set*id functions.
29243
29244 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
29245
29246         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
29247
29248 2012-07-31  Roland McGrath  <roland@hack.frob.com>
29249
29250         [BZ #10191]
29251         * include/sys/socket.h (__libc_accept, __libc_accept4):
29252         Add attribute_hidden.
29253         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
29254
29255         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
29256         use of PTR_MANGLE.
29257         * inet/getnetgrent_r.c (setup): Likewise.
29258
29259         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
29260
29261 2012-07-31  David S. Miller  <davem@davemloft.net>
29262
29263         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29264
29265 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
29266
29267         [BZ #13629]
29268         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
29269         value between 1.0 and 2.0 and smaller part has absolute value less
29270         than 1.0.
29271         * math/s_clog10.c (__clog10): Likewise.
29272         * math/s_clog10f.c (__clog10f): Likewise.
29273         * math/s_clog10l.c (__clog10l): Likewise.
29274         * math/s_clogf.c (__clogf): Likewise.
29275         * math/s_clogl.c (__clogl): Likewise.
29276         * math/libm-test.inc (clog_test): Add more tests.
29277         (clog10_test): Likewise.
29278         * sysdeps/i386/fpu/libm-test-ulps: Update.
29279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29280
29281 2012-07-31  Florian Weimer  <fweimer@redhat.com>
29282
29283         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
29284         Exit with zero in case no suitable GID is found, and write a
29285         message to standard error.
29286
29287 2012-07-30  Roland McGrath  <roland@hack.frob.com>
29288
29289         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
29290         rather than to 1.
29291         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
29292         (MAXPATHLEN): Removed.
29293         (NOGROUP, NODEV): New macros.
29294         (setbit, clrbit, isset, isclr): New macros.
29295         (howmany, roundup, powerof2): New macros.
29296         (DEV_BSIZE): New macro.
29297
29298         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
29299         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
29300
29301         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
29302         definition on [!__NO_LONG_DOUBLE_MATH].
29303
29304         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
29305         PTR_MANGLE and PTR_DEMANGLE.
29306
29307         * socket/accept4.c (accept4): Rename to __libc_accept4.
29308         Define accept4 as a weak alias.
29309
29310         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
29311         on [_DIRENT_HAVE_D_TYPE].
29312         * io/ftw.c (ftw_dir): Likewise.
29313
29314         * io/xmknod.c (__xmknod): Don't check PATH for being null.
29315
29316         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
29317
29318         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
29319         Use the BSD numbers rather than the arbitrary ones we had.
29320         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
29321         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
29322         (SIGXCPU, SIGXFSZ): New macros.
29323         (_NSIG): Now 32.
29324
29325         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
29326         initializer on [_LIBC_REENTRANT].
29327
29328         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
29329         definitions inside [_POSIX_MAPPED_FILES].
29330
29331         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
29332
29333         * dirent/opendir.c: Include <fcntl.h>.
29334
29335         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
29336         (__libc_getspecific): Likewise.
29337         (__libc_key_create): Likewise.
29338
29339         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
29340         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
29341         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
29342         (tmpfile64): Define as alias.
29343         * sysdeps/wordsize-64/tmpfile.c: File removed.
29344         * sysdeps/wordsize-64/tmpfile64.c: File removed.
29345         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
29346         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
29347
29348         * stdio-common/vfscanf.c: Include <stdbool.h>.
29349         * nss/makedb.c: Likewise.
29350         * stdio-common/_i18n_number.h: Likewise.
29351         * argp/argp-help.c: Likewise.
29352         * posix/wordexp.c: Likewise.
29353         * sysdeps/posix/spawni.c: Likewise.
29354         * nss/nss_files/files-initgroups.c: Likewise.
29355         * stdio-common/reg-modifier.c: Include <stdlib.h>.
29356         * nss/nss_files/files-initgroups.c: Likewise.
29357         * nss/nss_db/db-netgrp.c: Likewise.
29358         * nss/nss_db/db-initgroups.c: Likewise.
29359         * io/fchmodat.c: Include <sys/stat.h>.
29360
29361         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
29362         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
29363
29364         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
29365         [HAVE_MMAP].
29366
29367         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
29368         Add multiple inclusion protection.
29369
29370 2012-07-27  David S. Miller  <davem@davemloft.net>
29371
29372         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29373
29374 2012-07-27  Gary Benson  <gbenson@redhat.com>
29375
29376         [BZ #14298]
29377         * elf/rtld.c: Include <stap-probe.h>.
29378         (dl_main): Added static probes "init_start" and "init_complete".
29379         * elf/dl-load.c: Include <stap-probe.h>.
29380         (lose): Take new parameter "nsid".
29381         Added static probe "map_failed".
29382         (_dl_map_object_from_fd): Pass namespace id to lose.
29383         Added static probe "map_start".
29384         (open_verify): Pass namespace id to lose.
29385         * elf/dl-open.c: Include <stap-probe.h>.
29386         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29387         and "reloc_complete".
29388         * elf/dl-close.c: Include <stap-probe.h>.
29389         (_dl_close_worker): Added static probes "unmap_start" and
29390         "unmap_complete".
29391         * elf/rtld-debugger-interface.txt: New file documenting the above.
29392
29393 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29394
29395         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29396         rather than a string variable.
29397         * sunrpc/rpc_main.c (h_output): Likewise.
29398         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29399
29400 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29401
29402         * inet/check_native.c: New file.
29403
29404 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29405
29406         [BZ #13629]
29407         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29408         if larger part has absolute value 1.0.
29409         * math/s_clog10.c (__clog10): Likewise.
29410         * math/s_clog10f.c (__clog10f): Likewise.
29411         * math/s_clog10l.c (__clog10l): Likewise.
29412         * math/s_clogf.c (__clogf): Likewise.
29413         * math/s_clogl.c (__clogl): Likewise.
29414         * math/libm-test.inc (clog_test): Add more tests.
29415         (clog10_test): Likewise.
29416         * sysdeps/i386/fpu/libm-test-ulps: Update.
29417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29418
29419         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29420         (pltexit): Likewise.
29421         (La_regs): Likewise.
29422         (La_retval): Likewise.
29423         (int_retval): Likewise.
29424         Update #error for removed macros to refer only to definitions in
29425         tst-audit.h.
29426         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29427         macro.
29428         (pltexit): Likewise.
29429         (La_regs): Likewise.
29430         (La_retval): Likewise.
29431         (int_retval): Likewise.
29432         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29433         macro.
29434         (pltexit): Likewise.
29435         (La_regs): Likewise.
29436         (La_retval): Likewise.
29437         (int_retval): Likewise.
29438         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29439         macro.
29440         (pltexit): Likewise.
29441         (La_regs): Likewise.
29442         (La_retval): Likewise.
29443         (int_retval): Likewise.
29444         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29445         macro.
29446         (pltexit): Likewise.
29447         (La_regs): Likewise.
29448         (La_retval): Likewise.
29449         (int_retval): Likewise.
29450         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29451         macro.
29452         (pltexit): Likewise.
29453         (La_regs): Likewise.
29454         (La_retval): Likewise.
29455         (int_retval): Likewise.
29456         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29457         macro.
29458         (pltexit): Likewise.
29459         (La_regs): Likewise.
29460         (La_retval): Likewise.
29461         (int_retval): Likewise.
29462         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29463         macro definitions in tst-audit.h.
29464         * sysdeps/i386/tst-audit.h: New file.
29465         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29466         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29467         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29468         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29469         * sysdeps/sh/tst-audit.h: Likewise.
29470         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29471         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29472         * sysdeps/x86_64/tst-audit.h: Likewise.
29473
29474 2012-07-26  Andreas Jaeger  <aj@suse.de>
29475
29476         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29477         ptrace.
29478
29479         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29480         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29481         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29482         PTRACE_O_MASK.
29483         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29484         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29485         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29486
29487         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29488         value.
29489
29490         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29491         _sigsys.
29492         (si_call_addr, si_syscall, si_arch): Define new macro.
29493         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29494         _sigsys.
29495         (si_call_addr, si_syscall, si_arch): Define new marcro.
29496         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29497         _sigsys.
29498         (si_call_addr, si_syscall, si_arch): Define new macro.
29499         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29500         _sigsys.
29501         (si_call_addr, si_syscall, si_arch): Define new macro.
29502
29503 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29504
29505         [BZ #13717]
29506         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29507         Change to 2.4.21 where previously 2.4.1.
29508         * sysdeps/unix/sysv/linux/configure: Regenerated.
29509         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29510         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29511         Linux kernel version.
29512         (__ASSUME_STD_AUXV): Remove.
29513         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29514         kernel version.
29515         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29516         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29517         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29518         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29519         (__ASSUME_NETLINK_SUPPORT): Likewise.
29520         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29521         (__no_netlink_support): Remove conditional definition.
29522         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29523         Remove.
29524         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29525         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29526         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29527         (if_nameindex_ioctl): Remove.
29528         (if_nameindex_netlink): Do not handle __no_netlink_support.
29529         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29530         code.
29531         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29532         Remove conditional code.
29533         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29534         code.
29535         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29536         unconditional.
29537         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29538         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29539         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29540         Remove.
29541         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29542         [!__ASSUME_STD_AUXV]: Remove conditional code.
29543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29544         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29545         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29546         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29547         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29548         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29549         code.
29550         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29552         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29553         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29554         conditional code.
29555         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29557         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29558         code.
29559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29560         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29561         conditional code.
29562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29563         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29564         code unconditional.
29565         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29566         conditional code.
29567         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29568         unconditional.
29569         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29570         conditional code.
29571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29572         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29573         unconditional.
29574         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29575         conditional code.
29576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29577         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29578         code unconditional.
29579         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29580         conditional code.
29581         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29582         unconditional.
29583         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29584         conditional code.
29585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29586         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29587         code unconditional.
29588         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29589         conditional code.
29590         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29591         unconditional.
29592         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29593         conditional code.
29594
29595 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29596
29597         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29598         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29599         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29600         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29601         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29602         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29603         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29604         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29605         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29606         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29607         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29608         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29609         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29610         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29611         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29612         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29613         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29614         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29615         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29616         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29617         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29618         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29619         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29620
29621 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29622
29623         * Versions.def: Add GLIBC_2.17.
29624         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29625         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29626         Introduce __libc_secure_getenv.
29627         * stdlib/Versions (2.17): Add secure_getenv
29628         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29629         * stdlib/secure-getenv.c: Rename __secure_getenv to
29630         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29631         symbol __secure_getenv for GLIBC_2.0.
29632         * stdlib/tst-secure-getenv.c: New.
29633         * stdlib/Makefile (tests): Add testcase.
29634         * manual/startup.texi (Environment Access): Document
29635         secure_getenv.
29636         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29637         __libc_secure_getenv.
29638         * inet/ruserpass.c (ruserpass): Likewise.
29639         * malloc/mtrace.c (mtrace): Likewise.
29640         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29641         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29642         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29643         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29644         HAVE_SECURE_GETENV.
29645         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29646         __secure_getenv to __libc_secure_getenv.
29647         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29649         Likewise.
29650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29651         Likewise.
29652         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29653         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29654         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29655         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29656         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29657         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29658         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29659
29660 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29661
29662         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29663         (struct La_i86_retval): Likewise.
29664         (struct La_x86_64_regs): Likewise.
29665         (struct La_x86_64_retval): Likewise.
29666         (struct La_x32_regs): Likewise.
29667         (struct La_x32_retval): Likewise.
29668         (struct La_ppc32_regs): Likewise.
29669         (struct La_ppc32_retval): Likewise.
29670         (struct La_ppc64_regs): Likewise.
29671         (struct La_ppc64_retval): Likewise.
29672         (struct La_sh_regs): Likewise.
29673         (struct La_sh_retval): Likewise.
29674         (struct La_s390_32_regs): Likewise.
29675         (struct La_s390_32_retval): Likewise.
29676         (struct La_s390_64_regs): Likewise.
29677         (struct La_s390_64_retval): Likewise.
29678         (struct La_sparc32_regs): Likewise.
29679         (struct La_sparc32_retval): Likewise.
29680         (struct La_sparc64_regs): Likewise.
29681         (struct La_sparc64_retval): Likewise.
29682         (struct audit_ifaces): Remove architecture-specific pltenter and
29683         pltexit members.
29684         * sysdeps/i386/ldsodefs.h: New file.
29685         * sysdeps/powerpc/ldsodefs.h: Likewise.
29686         * sysdeps/s390/ldsodefs.h: Likewise.
29687         * sysdeps/sh/ldsodefs.h: Likewise.
29688         * sysdeps/sparc/ldsodefs.h: Likewise.
29689         * sysdeps/x86_64/ldsodefs.h: Likewise.
29690
29691 2012-07-25  Marek Polacek  <polacek@redhat.com>
29692
29693         [BZ #6808]
29694         * math/libm-test.inc (yn_test): Add another test.
29695         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29696         to ERANGE when the result is +-Inf.
29697         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29698         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29699         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29700         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29701
29702 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29703
29704         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29705         equal to 0.
29706         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
29707         clock_t.
29708         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
29709
29710 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
29711
29712         * configure.in <sysdeps resolving>: Correct printing
29713         Implies_before.
29714         * configure: Regenerate.
29715
29716 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
29717
29718         * math/w_ilogb.c: Include <limits.h>.
29719         * math/w_ilogbl.c: Likewise.
29720
29721 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29722
29723         * manual/lang.texi (__va_copy): Document primarily as ISO C99
29724         va_copy.  Document allowing for unavailable va_copy only as
29725         pre-C99 compatibility.
29726         * manual/string.texi (Copying and Concatenation): Use va_copy
29727         instead of __va_copy in concat example.
29728
29729 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
29730
29731         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
29732         (__sendto): Use create_address_port.  Initialize APORT and deallocate
29733         it if not null.
29734
29735         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
29736         with O_NOLINK passed to __file_name_lookup.
29737
29738         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
29739         with O_NOLINK passed to __file_name_lookup.
29740
29741         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
29742         negative N or less than NGIDS.
29743
29744         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
29745         type to string_t.  Set ERANGE as errno and return it if NAME is not big
29746         enough.  Use memcpy instead of strncpy.
29747
29748 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29749
29750         * elf/Makefile (check-data): Remove.
29751         (localplt.data): New vpath directive.
29752         ($(objpfx)check-localplt.out): Use localplt.data from vpath
29753         instead of $(check-data).
29754         * scripts/data/localplt-generic.data: Move to ...
29755         * sysdeps/generic/localplt.data: ... here.
29756         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
29757         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
29758         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
29759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29760         ... here.
29761         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
29762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29763         ... here.
29764         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
29765         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
29766         ... here.
29767         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
29768         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29769         ... here.
29770         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
29771         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
29772         ... here.
29773         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
29774         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
29775         ... here.
29776
29777 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29778
29779         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
29780         PPC32 and PPC64 files.
29781         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
29782         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
29783
29784 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29785
29786         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
29787         __makecontext_ret to ...
29788         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
29789         ... here and call exit if uc_link is NULL.  New file.
29790         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
29791         __makecontext_ret.S.
29792         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
29793         __makecontext_ret to ...
29794         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
29795         ... here and call exit if uc_link is NULL.  New file.
29796         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
29797         __makecontext_ret.S.
29798
29799 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29800
29801         * elf/elf.h (R_390_IRELATIVE): New definition.
29802         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
29803         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
29804         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
29805         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
29806         (elf_machine_lazy_rel): Likewise.
29807         * sysdeps/s390/dl-irel.h: New file.
29808         * sysdeps/s390/s390-64/memcpy.S: New asm code.
29809         * sysdeps/s390/s390-64/memset.S: New asm code.
29810         * sysdeps/s390/s390-64/memcmp.S: New asm code.
29811         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
29812         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
29813         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
29814         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
29815         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
29816         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
29817         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
29818         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
29819         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
29820         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
29821         * sysdeps/s390/s390-32/memcpy.S: New asm code.
29822         * sysdeps/s390/s390-32/memset.S: New asm code.
29823         * sysdeps/s390/s390-32/memcmp.S: New asm code.
29824
29825 2012-07-17  Marek Polacek  <polacek@redhat.com>
29826
29827         [BZ #14349]
29828         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
29829         * sysdeps/s390/s390-64/configure.in: Likewise.
29830         * sysdeps/sparc/configure.in: Likewise.
29831         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
29832         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
29833         * sysdeps/i386/configure.in: Likewise.
29834         * sysdeps/x86_64/configure.in: Likewise.
29835         * sysdeps/sh/configure.in: Likewise.
29836         * sysdeps/s390/s390-32/configure: Regenerated.
29837         * sysdeps/s390/s390-64/configure: Likewise.
29838         * sysdeps/x86_64/configure: Likewise.
29839         * sysdeps/sh/configure: Likewise.
29840         * sysdeps/powerpc/powerpc64/configure: Likewise.
29841         * sysdeps/powerpc/powerpc32/configure: Likewise.
29842         * sysdeps/sparc/configure: Likwise.
29843         * sysdeps/i386/configure: Likewise.
29844
29845         * elf/dl-open.c: Comment fixes.
29846
29847 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
29848
29849         * Makefile [CXX] (check-data): Remove.
29850         [CXX] (c++-types.data): New vpath directive.
29851         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
29852         vpath.  Do not allow for C++ type data being missing.
29853         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
29854         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
29855         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
29856         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
29857         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
29858         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
29859         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
29860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29861         ... here.
29862         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
29863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29864         ... here.
29865         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
29866         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
29867         ... here.
29868         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
29869         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
29870         ... here.
29871         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
29872         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
29873         ... here.
29874         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
29875         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
29876         ... here.
29877         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
29878         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
29879         ... here.
29880         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
29881         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
29882
29883         * elf/tls-macros.h (TLS_LE): Move architecture-specific
29884         definitions to architecture-specific files.
29885         (TLS_IE): Likewise.
29886         (TLS_LD): Likewise.
29887         (TLS_GD): Likewise.
29888         * sysdeps/i386/tls-macros.h: New file.
29889         * sysdeps/powerpc/tls-macros.h: Likewise.
29890         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
29891         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
29892         * sysdeps/sh/tls-macros.h: Likewise.
29893         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
29894         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
29895         * sysdeps/x86_64/tls-macros.h: Likewise.
29896
29897 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29898
29899         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
29900         zero value for regular exit case.
29901
29902         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
29903         (__start_context): Preserve zero value for regular exit case.
29904
29905 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29906             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29907
29908         * manual/setjmp.texi (setcontext): Clarify normal process
29909         termination when uc_link is the null pointer.
29910         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
29911         exit call.
29912
29913 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
29914
29915         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
29916         preprocessor.  Test for each exception mask separately.
29917
29918 2012-07-16  Andreas Jaeger  <aj@suse.de>
29919
29920         * po/ru.po: Update from translation team.
29921
29922 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
29923
29924         * conform/data/string.h-data (NULL): Use macro-constant.  Require
29925         equal to 0.
29926         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29927         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29928         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
29929         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
29930         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29931
29932 2012-07-13  Andreas Jaeger  <aj@suse.de>
29933
29934         * po/fr.po: Update from translation team.
29935
29936 2012-07-12  Marek Polacek  <polacek@redhat.com>
29937
29938         [BZ #14173]
29939         * math/libm-test.inc (yn_test): Add test for BZ #14173.
29940         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
29941         loop condition.
29942
29943 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
29944
29945         [BZ #13717]
29946         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29947         Change to 2.4.1 where previously 2.4.0.
29948         * sysdeps/unix/sysv/linux/configure: Regenerated.
29949         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
29950         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
29951         version.
29952         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
29953         (__ASSUME_AT_CLKTCK): Remove.
29954         (__ASSUME_AT_PAGESIZE): Likewise.
29955         (__ASSUME_AT_XID): Likewise.
29956         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
29957         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
29958         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
29959         unconditionally.
29960         (HAVE_AUX_PAGESIZE): Likewise.
29961         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
29962         [__ASSUME_AT_CLKTCK]: Make code unconditional.
29963         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
29964
29965 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
29966
29967         [BZ #14307]
29968         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
29969         the temporary buffer used to invoke __gethostbyname2_r,
29970         __gethostbyaddr_r and gethostbyname4_r to make room for struct
29971         host_data / struct gaih_addrtuple.
29972         * resolv/nss_dns/dns-host.c (global scope): Move definition of
29973         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
29974         header file nss/nsswitch.h.
29975         * nss/nsswitch.h (global scope): Add definition of implementation
29976         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
29977         resolv/nss_dns/dns-host.c).
29978
29979 2012-07-11  Andreas Jaeger  <aj@suse.de>
29980
29981         * po/fr.po: Update from translation team.
29982
29983         * po/sv.po: Update from translation team
29984         * po/fr.po: Another update from translation team.
29985
29986 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29987
29988         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
29989         for subnormals or multiply small sinh result by itself.
29990         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29991         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29992
29993 2012-07-11  David S. Miller  <davem@davemloft.net>
29994
29995         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29996
29997 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
29998
29999         [BZ #14347]
30000         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30001         (INTERNAL_MARK): Shift it here.
30002
30003 2012-07-10  Marek Polacek  <polacek@redhat.com>
30004
30005         [BZ #14151]
30006         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30007         libc_cv_asm_global_directive with .globl.
30008         * configure: Regenerated.
30009         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30010         with .globl.
30011         * sysdeps/i386/configure: Regenerated.
30012         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30013         with .globl.
30014         * sysdeps/x86_64/configure: Regenerated.
30015         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
30016         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
30017         * elf/tst-unique2mod2.c: Likewise.
30018         * elf/tst-unique2mod1.c: Likewise.
30019         * elf/tst-unique1mod2.c: Likewise.
30020         * elf/tst-unique1mod1.c: Likewise.
30021         * sysdeps/s390/s390-32/sysdep.h: Likewise.
30022         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30023         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30024         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30025         * sysdeps/mach/sysdep.h: Likewise.
30026         * sysdeps/i386/sysdep.h: Likewise.
30027         * sysdeps/i386/i386-mcount.S: Likewise.
30028         * sysdeps/x86_64/_mcount.S: Likewise.
30029         * sysdeps/x86_64/sysdep.h: Likewise.
30030         * sysdeps/sh/_mcount.S: Likewise.
30031         * sysdeps/sh/sysdep.h: Likewise.
30032         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
30033         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
30034         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
30035         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30036         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
30037         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
30038         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
30039         * locale/localeinfo.h: Likewise.
30040         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
30041         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
30042
30043 2012-07-09  Roland McGrath  <roland@hack.frob.com>
30044
30045         [BZ #14336]
30046         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
30047         system".
30048         * manual/message.texi (The Uniforum approach): Likewise.
30049         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
30050         (glibc iconv Implementation): Likewise.
30051
30052 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
30053
30054         [BZ #14337]
30055         * math/s_clog.c (__clog): Avoid scaling a value down where that
30056         could result in underflow.
30057         * math/s_clog10.c (__clog10): Likewise.
30058         * math/s_clog10f.c (__clog10f): Likewise.
30059         * math/s_clog10l.c (__clog10l): Likewise.
30060         * math/s_clogf.c (__clogf): Likewise.
30061         * math/s_clogl.c (__clogl): Likewise.
30062         * math/libm-test.inc (clog_test): Add more tests.
30063         (clog10_test): Likewise.
30064         * sysdeps/i386/fpu/libm-test-ulps: Update.
30065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30066
30067 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
30068
30069         [BZ #14283]
30070         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
30071         by 7 not 8 to examine high bit of fractional part.
30072
30073         [BZ #14042]
30074         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
30075         for call to __mcount_internal.
30076         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
30077         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
30078         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
30079
30080 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
30081
30082         [BZ #14154]
30083         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
30084         approximation for values within 0x1p-13f of an odd multiple of
30085         pi/4.
30086         * math/libm-test.inc (tan_test): Do not allow spurious underflow
30087         exception.  Add more tests.
30088         * sysdeps/i386/fpu/libm-test-ulps: Update.
30089
30090         [BZ #6778]
30091         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
30092         inputs and return -1 for them.  Do not check for +Inf in case not
30093         reachable for +Inf.
30094         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
30095         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
30096         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30097         and return -1 for them.  Do not check for +Inf in case not
30098         reachable for +Inf.
30099         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
30100         define.
30101         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
30102         and return -1 for them.  Do not check for +Inf in case not
30103         reachable for +Inf.
30104         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
30105         spurious underflow.
30106         * sysdeps/i386/fpu/libm-test-ulps: Update.
30107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30108
30109 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
30110
30111         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
30112
30113 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
30114
30115         [BZ #14157]
30116         [BZ #14331]
30117         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
30118         could result in spurious underflow.  Scale down values above
30119         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
30120         * math/s_csqrtf.c (__csqrtf): Likewise.
30121         * math/s_csqrtl.c (__csqrtl): Likewise.
30122         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
30123         spurious underflow.
30124         * sysdeps/i386/fpu/libm-test-ulps: Update.
30125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30126
30127 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
30128
30129         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
30130         xopen-msg.sed.
30131         * catgets/xopen-msg.awk: New file.
30132         * catgets/xopen-msg.sed: Removed.
30133
30134         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
30135         po2text.sed.
30136         * intl/po2test.awk: New file.
30137         * intl/po2test.sed: Removed.
30138
30139 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
30140
30141         [BZ #14328]
30142         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
30143         or multiply small sinh result by itself.
30144         * math/s_ctanf.c (__ctanf): Likewise.
30145         * math/s_ctanh.c (__ctanh): Likewise.
30146         * math/s_ctanhf.c (__ctanhf): Likewise.
30147         * math/s_ctanhl.c (__ctanhl): Likewise.
30148         * math/s_ctanl.c (__ctanl): Likewise.
30149         * math/libm-test.inc (ctan_test_tonearest): New function.
30150         (ctan_test_towardzero): Likewise.
30151         (ctan_test_downward): Likewise.
30152         (ctan_test_upward): Likewise.
30153         (ctanh_test_tonearest): Likewise.
30154         (ctanh_test_towardzero): Likewise.
30155         (ctanh_test_downward): Likewise.
30156         (ctanh_test_upward): Likewise.
30157         (main): Call these new functions.
30158         * sysdeps/i386/fpu/libm-test-ulps: Update.
30159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30160
30161 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
30162
30163         * .gitignore: Delete /ports entry.
30164
30165 2012-07-03  Andreas Jaeger  <aj@suse.de>
30166
30167         * po/bg.po: Update from translation team.
30168         * po/cs.po: Likewise.
30169         * po/de.po: Likewise.
30170         * po/hr.po: Likewise.
30171         * po/nl.pl: Likewise.
30172         * po/pl.po: Likewise.
30173         * po/vi.po: Likewise.
30174
30175 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
30176
30177         * Makeconfig [!+link] (+link-before-libc): New variable.
30178         [!+link] (+link-after-libc): Likewise.
30179         [!+link] (+link-tests): Likewise.
30180         [!+link] (+link): Define in terms of $(+link-before-libc) and
30181         $(+link-after-libc).
30182         [!+link-static] (+link-static-before-libc): New variable.
30183         [!+link-static] (+link-static-after-libc): Likewise.
30184         [!+link-static] (+link-static-tests): Likewise.
30185         [!+link-static] (+link-static): Define in terms of
30186         $(+link-static-before-libc) and $(+link-static-after-libc).
30187         [build-shared] (link-libc-before-gnulib): New variable.
30188         [build-shared] (link-libc-tests): Likewise.
30189         [build-shared] (link-libc): Define in terms of
30190         $(link-libc-before-gnulib).
30191         [!build-shared] (link-libc-tests): New variable.
30192         (link-libc-static-tests): New variable.
30193         [!gnulib] (gnulib-arch): New variable.
30194         [!gnulib] (gnulib-tests): Likewise.
30195         [!gnulib] (static-gnulib-arch): Likewise.
30196         [!gnulib] (static-gnulib-tests): Likewise.
30197         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
30198         Define with "=" instead of ":=".
30199         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
30200         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
30201         * Rules (binaries-all-notests): New variable.
30202         (binaries-all-tests): Likewise.
30203         (binaries-static-notests): Likewise.
30204         (binaries-static-tests): Likewise.
30205         (binaries-all): Define using $(binaries-all-notests) and
30206         $(binaries-all-tests).
30207         (binaries-static): Define using $(binaries-static-notests) and
30208         $(binaries-static-tests).
30209         (binaries-shared-tests): New variable.
30210         (binaries-shared-notests): Likewise.
30211         (binaries-shared): Remove variable.
30212         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
30213         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
30214         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
30215         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
30216         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
30217         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
30218         * elf/Makefile (sln-modules): New variable.
30219         (extra-objs): Add $(sln-modules:=.o).
30220         (ldconfig-modules): Add static-stubs.
30221         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
30222         * elf/static-stubs.c: New file.
30223
30224         [BZ #14283]
30225         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
30226         by 7 not 8 to examine high bit of fractional part.  Use volatile
30227         variables when splitting into final array of floats if
30228         __FLT_EVAL_METHOD__ != 0.
30229         * math/libm-test.inc (cos_test): Add another test.
30230         (sin_test): Likewise.
30231         * sysdeps/i386/fpu/libm-test-ulps: Update.
30232
30233         [BZ #14273]
30234         * math/libm-test.inc (cosh_test): Add more tests.
30235
30236         * version.h (RELEASE): Set to "development".
30237         (VERSION): Set to "2.16.90".
30238
30239 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
30240
30241         * NEWS: Update copyright. Remove last-updated date.
30242         Mention math library bug fixes and timezone data changes.
30243         * README: Mention GNU/Hurd, x32, and HPPA support status.
30244
30245 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
30246
30247         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
30248
30249 2012-06-27  Andreas Jaeger  <aj@suse.de>
30250
30251         * manual/contrib.texi (Contributors): Add Samuel Thibault.
30252
30253 2012-06-25  Andreas Jaeger  <aj@suse.de>
30254
30255         * sysdeps/s390/fpu/libm-test-ulps: Update.
30256
30257 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
30258             Thomas Schwinge  <thomas@codesourcery.com>
30259
30260         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
30261         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
30262         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
30263         fanotify_mark.
30264
30265 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
30266
30267         * sysdeps/mach/start.c: Remove file.
30268         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
30269         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
30270         * sysdeps/sh/init-first.c: Likewise.
30271
30272         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
30273         registers for frame unwinding purposes, add CFI directives.
30274         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30275         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
30276         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
30277         Likewise.
30278
30279         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
30280         __fortify_fail returning.
30281         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
30282
30283         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
30284         sysdeps/sh/____longjmp_chk.S.
30285         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
30286         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
30287         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
30288         (gen-as-const-headers): Append sigaltstack-offsets.sym.
30289
30290         * sysdeps/sh/abort-instr.h: New file.
30291         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
30292         process in case exit returns.
30293
30294         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
30295         initialize the GOT register before use.
30296
30297         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
30298         calculation of ARGC > 4.
30299
30300         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
30301         meaningful names to some local labels.
30302
30303 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
30304             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30305
30306         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
30307         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
30308         (__arch_compare_and_exchange_val_16_acq): Likewise.
30309         (__arch_compare_and_exchange_val_32_acq): Likewise.
30310         (atomic_exchange_and_add): Fix gUSA sequence.
30311         (atomic_add): Likewise.
30312         (atomic_add_negative): Likewise.
30313         (atomic_add_zero): Likewise.
30314         (atomic_bit_test_set): Likewise.
30315
30316 2012-06-22  Andreas Schwab  <schwab@redhat.com>
30317
30318         [BZ #13579]
30319         * include/link.h (struct link_map): Add l_free_initfini.
30320         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
30321         l_initfini.
30322         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
30323         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
30324         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
30325         set.
30326
30327 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
30328
30329         * configure.in: Use AC_LANG_SOURCE.
30330         * configure: Regenerate.
30331
30332 2012-06-22  Roland McGrath  <roland@hack.frob.com>
30333
30334         * configure.in (libc_cv_localstatedir): New substituted variable.
30335         * configure: Regenerated.
30336         * config.make.in (localstatedir): New variable, substituted from
30337         libc_cv_localstatedir.
30338         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
30339         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
30340         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
30341         * sysdeps/gnu/configure: Regenerated.
30342
30343 2012-06-21  Jeff Law  <law@redhat.com>
30344
30345         [BZ #14277]
30346         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
30347         free.  Simplify list management for _LIBC case.
30348
30349 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
30350
30351         [BZ #14273]
30352         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
30353         Clear sign bit of 64-bit integer value before comparing against
30354         overflow value.
30355
30356         * sysdeps/mach/configure: Regenerated.
30357
30358 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
30359
30360         [BZ #14278]
30361         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
30362
30363 2012-06-21  Jeff Law  <law@redhat.com>
30364
30365         [BZ #13882]
30366         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
30367         uint16_t for elements in the "seen" array to avoid char overflows.
30368         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30369         * elf/dl-open.c (dl_open_worker): Likewise.
30370
30371 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
30372
30373         * scripts/list-sources.sh: Scan PORTS for translations.
30374         * po/libc.pot: Regenerated.
30375
30376 2012-06-21  Andreas Jaeger  <aj@suse.de>
30377
30378         [BZ #12194]
30379         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
30380         warning.
30381         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30382         * bits/byteswap-16.h (__bswap_16): Likewise.
30383         * bits/byteswap.h (__bswap_constant_16): Likewise.
30384
30385 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30386
30387         [BZ #14117]
30388         * sysdeps/i386/fpu_control.h: Removed.
30389         * sysdeps/x86_64/fpu_control.h: Moved to ...
30390         * sysdeps/x86/fpu_control.h: Here.
30391
30392         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30393         (_FPU_SETCW): Likewise.
30394
30395 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30396
30397         [BZ #14117]
30398         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30399         * sysdeps/x86/fpu/bits/mathinline.h: This.
30400         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30401
30402         [BZ #14050]
30403         [BZ #14117]
30404         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30405         functions if __x86_64__ is defined.
30406
30407 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30408
30409         * string/endian.h: Add !__ASSEMBLER__ condition for including
30410         conversion interfaces.
30411
30412 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30413
30414         [BZ #14241]
30415         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30416         of ABS(x) in calculating zero to negative powers other than odd
30417         integers.
30418         * math/libm-test.inc (pow_test): Add more tests.
30419
30420 2012-06-15  Andreas Jaeger  <aj@suse.de>
30421
30422         * manual/contrib.texi (Contributors): Update entry of Liubov
30423         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30424         Machado Filho.
30425
30426 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30427
30428         * string/string.h: Add __wur to GNU version of strerror_r.
30429
30430 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30431
30432         [BZ #14229]
30433         * string/Makefile (tests): Add tst-strtok_r.
30434         * string/tst-strtok_r.c: New file.
30435         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30436         RAX_LP/RDX_LP on SAVE_PTR.
30437
30438 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30439
30440         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30441
30442 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30443
30444         * libm_test.inc (csqrt_test): Allow more spurious underflow
30445         exceptions.
30446         (j0_test): Likewise.
30447         (j1_test): Likewise.
30448         (y0_test): Likewise.
30449         (y1_test): Likewise.
30450
30451 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30452
30453         * po/Makefile (libc.pot): Use UTF-8 charset.
30454
30455 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30456
30457         [BZ #14210]
30458         Suppress sign-conversion warning from FD_SET.
30459         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30460         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30461         not unsigned long int.
30462         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30463
30464 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30465
30466         [BZ #14050]
30467         [BZ #14117]
30468         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30469         __extern_always_inline instead of __extern_inline.
30470         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30471         (__signbit): Likewise.
30472         (__signbitl): Support C++ namespace.
30473         (lrintf): New inline function.
30474         (lrint): Likewise.
30475         (llrintf): Likewise.
30476         (llrint): Likewise.
30477         (fmaxf): Likewise.
30478         (fmax): Likewise.
30479         (fminf): Likewise.
30480         (fmin): Likewise.
30481         (rint): Likewise.
30482         (rintf): Likewise.
30483         (ceil): Likewise.
30484         (ceilf): Likewise.
30485         (floor): Likewise.
30486         (floorf): Likewise.
30487         (nearbyint): Likewise.
30488         (nearbyintf): Likewise.
30489
30490 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30491
30492         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30493         non-default versions.
30494
30495 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30496
30497         [BZ #14218]
30498         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30499
30500 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30501
30502         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30503         (FE_UPWARD, FE_DOWNWARD): Don't define.
30504         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30505         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30506
30507         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30508         reading it.
30509         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30510         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30511
30512 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30513
30514         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30515         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30516         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30517         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30518
30519 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30520
30521         [BZ #14117]
30522         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30523         * sysdeps/i386/fpu/Implies: New file.
30524         * sysdeps/x86_64/fpu/Implies: Likewise.
30525         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30526         * sysdeps/x86/fpu/bits/fenv.h: This.
30527
30528         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30529         __SSE_MATH__.
30530
30531 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30532
30533         [BZ #14134]
30534         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30535         character 0xffff that matches the last element of the
30536         conversion table.
30537
30538 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30539
30540         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30541         fmodl commit.
30542
30543 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30544
30545         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30546         values higher than 25.6283.
30547
30548 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30549
30550         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30551         subnormal exponent extraction and add some __builtin_expect.
30552         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30553         Fix for subnormal mantissa calculation.
30554
30555 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30556
30557         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30558         cpu2 is -1 and errno is not ENOSYS.
30559
30560 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30561
30562         [BZ #14117]
30563         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30564         * sysdeps/x86/bits/string.h: This.
30565         * sysdeps/x86_64/bits/string.h: Removed.
30566
30567         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30568         if not compiling for x86-64, but compiling for >= i486.
30569
30570         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30571         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30572
30573         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30574         New macro from Linux kernel 3.4.0.
30575         (FP_XSTATE_MAGIC2): Likewise.
30576         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30577         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30578         (struct _fpx_sw_bytes): New struct.
30579         (struct _xsave_hdr): Likewise.
30580         (struct _ymmh_state): Likewise.
30581         (struct _xstate): Likewise.
30582
30583         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30584         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30585         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30586         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30587         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30588         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30589
30590         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30591         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30592         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30593         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30594         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30595         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30596
30597 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30598
30599         [BZ #13743]
30600         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30601         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30602         (sysdep_headers): Include sys/platform/ppc.h.
30603         * sysdeps/powerpc/test-gettimebase.c: Test for
30604         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30605         * manual/Makefile (appendices): Include platform.texi.
30606         * manual/contrib.texi (Contributors): Update @node pointers.
30607         * manual/maint.texi (Maintenance): Likewise.
30608         (Platform): New node.
30609         * manual/platform.texi: New file.  Document the new features.
30610
30611 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30612             Jakub Jelinek  <jakub@redhat.com>
30613
30614         [BZ #14188]
30615         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30616         where __builtin_expect is unavailable.
30617
30618 2012-06-03  David S. Miller  <davem@davemloft.net>
30619
30620         * stdlib/longlong.h: Updated from GCC.
30621
30622 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30623
30624         [BZ #14042]
30625         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30626         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30627         __mcount_internal.
30628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30629         (GLIBC_2.16): Likewise.
30630
30631 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30632
30633         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30634
30635 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30636
30637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30638         (default-abi): New variable.
30639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30640         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30641         variable.
30642         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30643         Likewise.
30644         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30645         Likewise.
30646         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30647         Likewise.
30648
30649         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30650         definition.  Document in comment.
30651
30652 2012-06-01  David S. Miller  <davem@davemloft.net>
30653
30654         * stdlib/longlong.h: Updated from GCC.
30655
30656 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30657
30658         [BZ #14117]
30659         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30660         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30661         sys/debugreg.h sys/io.h here.
30662         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30663         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30664         sys/io.h.
30665         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30666         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30667         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30668         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30669         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30670         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30671
30672         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30673         Define only if __x86_64__ is defined.
30674
30675 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30676
30677         [BZ #14048]
30678         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30679         Use int64_t for variable i.
30680         * math/libm-test.inc (fmod_test): Add more tests.
30681
30682         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30683         z computation is not scheduled after fetestexcept.
30684         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30685         Use math_force_eval instead of asm to ensure calculation scheduled
30686         before exception test.
30687         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30688         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30689
30690 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30691
30692         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30693         computation is not scheduled after fetestexcept.
30694
30695 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30696
30697         [BZ #14117]
30698         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30699         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30700
30701 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30702
30703         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30704         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30705
30706 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30707
30708         [BZ #14117]
30709         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
30710         <bits/wordsize.h>.
30711         (__WCHAR_MIN): Support __WORDSIZE == 64.
30712         (__WCHAR_MAX): Likewise.
30713
30714         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
30715         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
30716
30717         [BZ #14183]
30718         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
30719         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
30720
30721         [BZ #14117]
30722         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
30723         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
30724
30725         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
30726         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
30727
30728         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
30729         Defined to 1 if __x86_64__ isn't defined.
30730         (_STAT_VER_LINUX_OLD): New.
30731         (st_atime): Remove duplicate.
30732         (st_mtime): Likewise.
30733         (st_ctime): Likewise.
30734
30735 2012-05-31  David S. Miller  <davem@davemloft.net>
30736
30737         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
30738         entries.
30739
30740 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
30741
30742         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
30743         gen-libm-test.pl.
30744
30745         [BZ #14132]
30746         * elf/dl-reloc.c: Include <_itoa.h>.
30747         (_dl_reloc_bad_type): Remove use of INTUSE.
30748         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
30749         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
30750         * stdio-common/psiginfo.c (psiginfo): Likewise.
30751         * stdio-common/psignal.c (psignal): Likewise.
30752         * string/strsignal.c (strsignal): Likewise.
30753         * include/signal.h (_sys_siglist): Declare hidden proto.
30754         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
30755         INTVARDEF with libc_hidden_data_def.
30756         * stdio-common/itoa-udigits.c: Likewise.
30757         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
30758         (_itoa_lower_digits_internal): Remove declaration.
30759         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
30760         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
30761         (_sys_sigabbrev_internal): Remove aliases.
30762         (_sys_siglist): Define hidden alias.
30763
30764 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
30765
30766         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30767         bits/sysctl.h.
30768
30769 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30770
30771         [BZ #14117]
30772         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
30773         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
30774
30775         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
30776         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
30777         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
30778         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
30779         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
30780         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
30781
30782         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
30783         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
30784         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
30785
30786         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
30787         with __addr.
30788         (insw): Likewise.
30789         (insl): Likewise.
30790         (outsb): Likewise.
30791         (outsw): Likewise.
30792         (outsl): Likewise.
30793
30794         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
30795         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
30796         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
30797
30798         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
30799         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
30800         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
30801         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
30802         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
30803         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
30804
30805         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
30806         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
30807
30808         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
30809         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
30810
30811         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
30812         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
30813         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
30814
30815         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
30816         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
30817         to ...
30818         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
30819
30820         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
30821         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
30822         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
30823
30824         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
30825         for x86-64.
30826         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
30827
30828 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
30829
30830         * math/math.h (M_El): Use two more decimal places.
30831         (M_LOG2El): Likewise.
30832         (M_LOG10El): Likewise.
30833         (M_LN2l): Likewise.
30834         (M_LN10l): Likewise.
30835         (M_PIl): Likewise.
30836         (M_PI_2l): Likewise.
30837         (M_PI_4l): Likewise.
30838         (M_1_PIl): Likewise.
30839         (M_2_PIl): Likewise.
30840         (M_2_SQRTPIl): Likewise.
30841         (M_SQRT2l): Likewise.
30842         (M_SQRT1_2l): Likewise.
30843
30844 2012-05-31  David S. Miller  <davem@davemloft.net>
30845
30846         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
30847         values between float registers.
30848         * sysdeps/sparc/sparc64/memset.S: Likewise.
30849         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30850
30851 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
30852
30853         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
30854         -D_FORTIFY_SOURCE=1.
30855         (CPPFLAGS-tst-longjmp_chk.c): Define.
30856         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
30857         (CPPFLAGS-tst-longjmp_chk2.c): Define.
30858         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
30859         CFLAGS-tst-wchar-h.c.
30860
30861 2012-05-31  Marek Polacek  <polacek@redhat.com>
30862
30863         [BZ #14132]
30864         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
30865         __endmntent_internal): Remove declaration.
30866         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
30867         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
30868         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
30869
30870 2012-05-30  David S. Miller  <davem@davemloft.net>
30871
30872         * sysdeps/sparc/sparc32/soft-fp/q_util.c
30873         (___Q_simulate_exceptions): Use real FP ops rather than writing
30874         into the %fsr.
30875         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
30876         Likewise.
30877
30878 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30879
30880         [BZ #14117]
30881         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
30882         * sysdeps/x86/bits/xtitypes.h: This.
30883
30884         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
30885         * sysdeps/x86/bits/wordsize.h: This.
30886
30887         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
30888         * sysdeps/x86/bits/huge_vall.h: This.
30889
30890         * sysdeps/i386/bits/select.h: Removed.
30891         * sysdeps/x86_64/bits/select.h: Renamed to ...
30892         * sysdeps/x86/bits/select.h: This.
30893
30894         * sysdeps/i386/bits/setjmp.h: Removed.
30895         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
30896         * sysdeps/x86/bits/setjmp.h: This.
30897
30898         * sysdeps/i386/bits/mathdef.h: Removed.
30899         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
30900         * sysdeps/x86/bits/mathdef.h: This.
30901
30902 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
30903
30904         [BZ #14132]
30905         * include/sys/socket.h (__connect_internal)
30906         (__libc_sa_len_internal): Remove declaration.
30907         (__connect, __libc_sa_len): Declare hidden_proto.
30908         (SA_LEN): Remove use of INTUSE.
30909         * socket/connect.c: Add libc_hidden_def.
30910         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
30911         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
30912         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
30913         alias.
30914         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
30915         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
30916         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
30917         of adding _internal alias.
30918
30919 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30920
30921         [BZ #14117]
30922         * sysdeps/i386/bits/link.h: Removed.
30923         * sysdeps/i386/bits/linkmap.h: Likewise.
30924         * sysdeps/x86_64/bits/link.h: Renamed to ...
30925         * sysdeps/x86/bits/link.h: This.
30926         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
30927         * sysdeps/x86/bits/linkmap.h: This.
30928
30929         * sysdeps/i386/bits/endian.h: Removed.
30930         * sysdeps/x86_64/bits/endian.h: Renamed to ...
30931         * sysdeps/x86/bits/endian.h: This.
30932
30933         * sysdeps/i386/bits/byteswap.h: Removed.
30934         * sysdeps/i386/bits/byteswap-16.h: Likewise.
30935         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
30936         * sysdeps/x86/bits/byteswap.h: This.
30937         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
30938         * sysdeps/x86/bits/byteswap-16.h: This.
30939         * sysdeps/i386/Implies: Add x86.
30940         * sysdeps/x86_64/Implies: Likewise.
30941
30942 2012-05-30  David S. Miller  <davem@davemloft.net>
30943
30944         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
30945         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
30946         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
30947         (FP_TRAPPING_EXCEPTIONS): Define.
30948         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
30949         (FP_TRAPPING_EXCEPTIONS): Define.
30950         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
30951         subnormals only when inexact has been signalled or underflow
30952         exceptions are enabled.
30953         (_FP_PACK_CANONICAL): Likewise.
30954
30955 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30956
30957         [BZ #14183]
30958         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
30959         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
30960
30961 2012-05-30  Richard Henderson  <rth@twiddle.net>
30962
30963         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
30964         with #ifndef NOT_IN_libc.
30965
30966         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
30967         marked to avoid plt entry.
30968
30969 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30970
30971         [BZ #14112]
30972         * Makeconfig (default-abi): New macro.
30973         (abi-includes): Likewise.
30974         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
30975         $(abi-$(default-abi)-lib-soname) for soname if defined.
30976         ($(common-objpfx)gnu/lib-names.stmp): Generate from
30977         abi-variants.
30978         * Makefile (installed-stubs): Likewise.
30979         * include/stubs-biarch.h: Removed.
30980         * scripts/lib-names.awk: Only handle one library at a time.
30981         * scripts/soversions.awk: Remove WORDSIZE support.
30982         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
30983         entries.
30984         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
30985         Removed.
30986         (syscall-list-default-condition): Likewise.
30987         (syscall-list-default-condition): Likewise.
30988         (syscall-list-includes): Likewise.
30989         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
30990         syscall-list-* with abi-*.  Handle undefined abi-variants.
30991         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
30992         * sysdeps/unix/sysv/linux/i386/Implies: New file.
30993         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
30994         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
30995         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
30996         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
30997         Removed.
30998         (syscall-list-32-options): Likewise.
30999         (syscall-list-32-condition): Likewise.
31000         (syscall-list-64-options): Likewise.
31001         (syscall-list-64-condition): Likewise.
31002         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31003         macro.
31004         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31005         Renamed to ...
31006         (abi-*): This.
31007         (abi-64-ld-soname): New macro.
31008         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31009         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31010         Renamed to ...
31011         (abi-*): This.
31012         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31013         * sysdeps/x86_64/x32/shlib-versions: Likewise.
31014
31015 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
31016
31017         * sysdeps/unix/sysv/linux/kernel-features.h
31018         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
31019         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
31020         include <kernel-features.h>.
31021         [!__NR_ftruncate64]: Remove conditional code.
31022         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31023         [__NR_ftruncate64]: Make code unconditional.
31024         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31025         * sysdeps/unix/sysv/linux/truncate64.c: Do not
31026         include <kernel-features.h>.
31027         [!__NR_ftruncate64]: Remove conditional code.
31028         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31029         [__NR_ftruncate64]: Make code unconditional.
31030         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
31032         include <kernel-features.h>.
31033         [!__NR_ftruncate64]: Remove conditional code.
31034         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31035         [__NR_ftruncate64]: Make code unconditional.
31036         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
31038         include <kernel-features.h>.
31039         [!__NR_ftruncate64]: Remove conditional code.
31040         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31041         [__NR_ftruncate64]: Make code unconditional.
31042         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
31043
31044         * configure.in (libc_cv_fpie): Weaken to a compile test using
31045         LIBC_TRY_CC_OPTION.
31046         * configure: Regenerated.
31047
31048 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31049
31050         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
31051         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
31052         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
31053         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
31054         Refreshed.
31055         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
31056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
31057         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
31058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
31059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
31060         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
31061         Refreshed.
31062
31063 2012-05-27  David S. Miller  <davem@davemloft.net>
31064
31065         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
31066         (___Q_zero): New.
31067         (__Q_simulate_exceptions): Return void.  Change to simulate
31068         exceptions by writing into the %fsr.
31069         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
31070         (__Qp_handle_exceptions): Likewise.
31071         (numbers): Delete.
31072         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
31073         __Qp_handle_exceptions.
31074         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
31075         __Qp_handle_exceptions.
31076         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31077         as unused and give dummy FP_RND_NEAREST initializer.
31078         (FP_INHIBIT_RESULTS): Define.
31079         (___Q_simulate_exceptions): Update declaration.
31080         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
31081         formatting.
31082         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
31083         as unused and give dummy FP_RND_NEAREST initializer.
31084         (__Qp_handle_exceptions): Update declaration.
31085         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
31086         formatting.
31087
31088 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
31089
31090         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
31091         the temporary FPU control word.
31092         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
31093         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
31094         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
31095         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31096         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
31097         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
31098         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
31099         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31100         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
31101         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
31102         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31103
31104 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31105
31106         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
31107         fields.
31108
31109 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
31110
31111         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
31112         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
31113         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
31114         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
31115         Likewise.
31116         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
31117         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
31118         Likewise.
31119
31120 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
31121
31122         * po/h.po: Update from translation team.
31123
31124 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
31125
31126         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
31127
31128         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
31129         handling of denormals.
31130         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
31131         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
31132         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
31133         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
31134         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
31135         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
31136         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
31137         Likewise.
31138
31139 2012-05-26  Marek Polacek  <polacek@redhat.com>
31140
31141         [BZ #14152]
31142         * math/libm-test.inc (fma_test): Don't always expect underflow
31143         exception.
31144
31145 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
31146
31147         [BZ #12416]
31148         * elf/tst-execstack.c: Include stackinfo.h.
31149         (do_test): Adjust test case to ensure that pthread_getattr_np
31150         behaviour remains the same after marking stack executable.
31151
31152 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31153
31154         * sysdeps/unix/sysv/linux/kernel-features.h
31155         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
31156         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
31157         kernel-features.h.
31158         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31159         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31160         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
31161         kernel-features.h.
31162         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
31163         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
31164
31165 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
31166
31167         * configure.in: Define the default includes to being none.
31168         * configure: Regenerated.
31169
31170 2012-05-25  Roland McGrath  <roland@hack.frob.com>
31171
31172         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
31173         * sysdeps/x86_64/setjmp.S: Likewise.
31174         * sysdeps/i386/bsd-setjmp.S: Likewise.
31175         * sysdeps/i386/bsd-_setjmp.S: Likewise.
31176         * sysdeps/i386/setjmp.S: Likewise.
31177         * sysdeps/i386/__longjmp.S: Likewise.
31178         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31179         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
31180
31181         * include/stap-probe.h: New file.
31182         * configure.in: Handle --enable-systemtap.
31183         * configure: Regenerated.
31184         * config.h.in (USE_STAP_PROBE): New #undef.
31185         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
31186         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
31187         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
31188
31189 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
31190
31191         [BZ #13717]
31192         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
31193         to 2.4.0 where earlier.
31194         * sysdeps/unix/sysv/linux/configure: Regenerated.
31195         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
31196         <kernel-features.h>.
31197         [__ASSUME_32BITUIDS]: Make code unconditional.
31198         [!__ASSUME_32BITUIDS]: Remove conditional code.
31199         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
31200         <kernel-features.h>.
31201         [__ASSUME_32BITUIDS]: Make code unconditional.
31202         [!__ASSUME_32BITUIDS]: Remove conditional code.
31203         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
31204         [__ASSUME_32BITUIDS]: Make code unconditional.
31205         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
31206         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
31207         <kernel-features.h>.
31208         [__ASSUME_32BITUIDS]: Make code unconditional.
31209         [!__ASSUME_32BITUIDS]: Remove conditional code.
31210         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
31211         <kernel-features.h>.
31212         [__ASSUME_32BITUIDS]: Make code unconditional.
31213         [!__ASSUME_32BITUIDS]: Remove conditional code.
31214         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
31215         <kernel-features.h>.
31216         [__ASSUME_32BITUIDS]: Make code unconditional.
31217         [!__ASSUME_32BITUIDS]: Remove conditional code.
31218         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
31219         <kernel-features.h>.
31220         [__ASSUME_32BITUIDS]: Make code unconditional.
31221         [!__ASSUME_32BITUIDS]: Remove conditional code.
31222         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
31223         <kernel-features.h>.
31224         [__ASSUME_32BITUIDS]: Make code unconditional.
31225         [!__ASSUME_32BITUIDS]: Remove conditional code.
31226         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
31227         <kernel-features.h>.
31228         [__ASSUME_32BITUIDS]: Make code unconditional.
31229         [!__ASSUME_32BITUIDS]: Remove conditional code.
31230         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
31231         <kernel-features.h>.
31232         [__ASSUME_32BITUIDS]: Make code unconditional.
31233         [!__ASSUME_32BITUIDS]: Remove conditional code.
31234         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
31235         <kernel-features.h>.
31236         [__ASSUME_32BITUIDS]: Make code unconditional.
31237         [!__ASSUME_32BITUIDS]: Remove conditional code.
31238         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
31239         <kernel-features.h>.
31240         [__ASSUME_32BITUIDS]: Make code unconditional.
31241         [!__ASSUME_32BITUIDS]: Remove conditional code.
31242         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
31243         <kernel-features.h>.
31244         [__ASSUME_32BITUIDS]: Make code unconditional.
31245         [!__ASSUME_32BITUIDS]: Remove conditional code.
31246         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
31247         <kernel-features.h>.
31248         [__NR_setresgid] (__setresgid): Do not declare.
31249         [__ASSUME_32BITUIDS]: Make code unconditional.
31250         [!__ASSUME_32BITUIDS]: Remove conditional code.
31251         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
31252         <kernel-features.h>.
31253         [__NR_setresuid] (__setresuid): Do not declare.
31254         [__ASSUME_32BITUIDS]: Make code unconditional.
31255         [!__ASSUME_32BITUIDS]: Remove conditional code.
31256         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
31257         <kernel-features.h>.
31258         [__ASSUME_32BITUIDS]: Make code unconditional.
31259         [!__ASSUME_32BITUIDS]: Remove conditional code.
31260         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
31261         <kernel-features.h>.
31262         [__ASSUME_32BITUIDS]: Make code unconditional.
31263         [!__ASSUME_32BITUIDS]: Remove conditional code.
31264         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
31265         <kernel-features.h>.
31266         [__ASSUME_32BITUIDS]: Make code unconditional.
31267         [!__ASSUME_32BITUIDS]: Remove conditional code.
31268         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
31269         <kernel-features.h>.
31270         [__ASSUME_32BITUIDS]: Make code unconditional.
31271         [!__ASSUME_32BITUIDS]: Remove conditional code.
31272         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
31273         <kernel-features.h>.
31274         [__ASSUME_32BITUIDS]: Make code unconditional.
31275         [!__ASSUME_32BITUIDS]: Remove conditional code.
31276         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
31277         <kernel-features.h>.
31278         [__ASSUME_32BITUIDS]: Make code unconditional.
31279         [!__ASSUME_32BITUIDS]: Remove conditional code.
31280         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
31281         <kernel-features.h>.
31282         [__ASSUME_32BITUIDS]: Make code unconditional.
31283         [!__ASSUME_32BITUIDS]: Remove conditional code.
31284         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
31285         <kernel-features.h>.
31286         [__ASSUME_32BITUIDS]: Make code unconditional.
31287         [!__ASSUME_32BITUIDS]: Remove conditional code.
31288         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
31289         <kernel-features.h>.
31290         [__ASSUME_32BITUIDS]: Make code unconditional.
31291         [!__ASSUME_32BITUIDS]: Remove conditional code.
31292         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
31293         <kernel-features.h>.
31294         [__ASSUME_32BITUIDS]: Make code unconditional.
31295         [!__ASSUME_32BITUIDS]: Remove conditional code.
31296         * sysdeps/unix/sysv/linux/kernel-features.h
31297         (__ASSUME_SETRESUID_SYSCALL): Remove.
31298         (__ASSUME_SETRESGID_SYSCALL): Likewise.
31299         (__ASSUME_32BITUIDS): Likewise.
31300         (__ASSUME_LDT_WORKS): Likewise.
31301         (__ASSUME_O_DIRECTORY): Likewise.
31302         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
31303         architecture but not kernel version.
31304         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
31305         (__ASSUME_MMAP2_SYSCALL): Likewise.
31306         (__ASSUME_STAT64_SYSCALL): Likewise.
31307         (__ASSUME_IPC64): Likewise.
31308         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
31309         <kernel-features.h>.
31310         [__ASSUME_32BITUIDS]: Make code unconditional.
31311         [!__ASSUME_32BITUIDS]: Remove conditional code.
31312         * sysdeps/unix/sysv/linux/opendir.c: Do not include
31313         <kernel-features.h>.
31314         [__ASSUME_O_DIRECTORY]: Make code unconditional.
31315         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
31316         132096]: Remove conditional code.
31317         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
31318         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
31319         <kernel-features.h>.
31320         [__ASSUME_32BITUIDS]: Make code unconditional.
31321         [!__ASSUME_32BITUIDS]: Remove conditional code.
31322         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
31323         <kernel-features.h>.
31324         [__ASSUME_32BITUIDS]: Make code unconditional.
31325         [!__ASSUME_32BITUIDS]: Remove conditional code.
31326         * sysdeps/unix/sysv/linux/setegid.c: Do not include
31327         <kernel-features.h>.
31328         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
31329         unconditional.
31330         (__setresgid): Do not declare.
31331         [__ASSUME_32BITUIDS]: Make code unconditional.
31332         [!__ASSUME_32BITUIDS]: Remove conditional code.
31333         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
31334         <kernel-features.h>.
31335         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
31336         unconditional.
31337         (__setresuid): Do not declare.
31338         [__ASSUME_32BITUIDS]: Make code unconditional.
31339         [!__ASSUME_32BITUIDS]: Remove conditional code.
31340         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
31341         <kernel-features.h>.
31342         [__ASSUME_32BITUIDS]: Make code unconditional.
31343         [!__ASSUME_32BITUIDS]: Remove conditional code.
31344         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
31345         <kernel-features.h>.
31346         [__ASSUME_32BITUIDS]: Make code unconditional.
31347         [!__ASSUME_32BITUIDS]: Remove conditional code.
31348
31349 2012-05-25  Richard Henderson  <rth@twiddle.net>
31350
31351         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
31352         dl_hwcap to ifunc resolver.
31353         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
31354         elf_ifunc_invoke.
31355         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
31356         dl_hwcap to ifunc resolver.
31357         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
31358
31359 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31360
31361         [BZ #14153]
31362         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
31363         for |x| <= 2**-26, not 2**-57.
31364         * math/libm-test.inc (acos_test): Do not allow spurious underflow
31365         exception.
31366
31367 2012-05-24  Jeff Law  <law@redhat.com>
31368
31369         * stdio-common/Makefile (tests): Add bug25.
31370         * stdio-common/bug25.c: New test.
31371
31372 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31373
31374         [BZ #13576]
31375         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
31376         multiple of MALLOC_ALIGNMENT in size.
31377         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
31378
31379 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31380
31381         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31382         Require >= 256.
31383         (FILENAME_MAX): Use macro-int-constant.
31384         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31385         (_IOFBF): Use macro-int-constant.
31386         (_IOLBF): Likewise.
31387         (_IONBF): Likewise.
31388         (SEEK_CUR): Likewise.
31389         (SEEK_END): Likewise.
31390         (SEEK_SET): Likewise.
31391         (TMP_MAX): Likewise.
31392         (EOF): Use macro-int-constant.  Require < 0.
31393         (NULL): Use macro-constant.  Require == 0.
31394         (stdin): Require type to be FILE *.
31395         (stdout): Likewise.
31396         (stderr): Likewise.
31397         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31398         macro-int-constant.
31399         (EXIT_SUCCESS): Likewise.
31400         (NULL): Use macro-constant.  Require == 0.
31401         (RAND_MAX): Use macro-int-constant.
31402         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31403         [C99-based standards] (strtof): Require function.
31404         [C99-based standards] (strtold): Likewise.
31405         [C99-based standards] (strtoll): Likewise.
31406         [C99-based standards] (strtoull): Likewise.
31407         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31408         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31409         [ISO || ISO99 || ISO11] (math.h): Likewise.
31410         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31411         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31412         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31413
31414 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31415
31416         [BZ #14132]
31417         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31418         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31419         * intl/dgettext.c (DCGETTEXT): Likewise.
31420         * intl/gettext.c (DCGETTEXT): Likewise.
31421         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31422         * posix/regex_internal.h (gettext): Likewise.
31423         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31424         Remove declaration.
31425         * include/argz.h (__argz_count_internal)
31426         (__argz_stringify_internal): Remove declaration.
31427         (__argz_count, __argz_stringify): Declare hidden proto.
31428         * intl/dcgettext.c: Remove use of INTDEF.
31429         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31430         * string/argz-stringify.c: Likewise.
31431         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31432         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31433         Declare hidden proto.
31434         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31435         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31436         Declare hidden proto.
31437         * include/stdio.h (__asprintf_internal): Don't declare.
31438         (__asprintf): Don't define as macro.  Declare hidden proto.
31439         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31440         (__fsetlocking): Declare hidden proto.
31441         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31442         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31443         hidden proto.
31444         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31445         (_IO_setlinebuf): Remove use of INTUSE.
31446         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31447         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31448         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31449         Remove declaration.
31450         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31451         (_IO_do_flush): Remove use of INTUSE.
31452         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31453         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31454         (_IO_adjust_column, _IO_least_wmarker)
31455         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31456         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31457         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31458         (_IO_default_doallocate, _IO_wdefault_doallocate)
31459         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31460         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31461         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31462         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31463         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31464         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31465         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31466         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31467         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31468         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31469         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31470         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31471         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31472         proto.
31473         (_IO_flush_all_internal, _IO_adjust_column_internal)
31474         (_IO_default_uflow_internal, _IO_default_finish_internal)
31475         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31476         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31477         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31478         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31479         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31480         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31481         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31482         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31483         (_IO_file_close_internal, _IO_file_close_it_internal)
31484         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31485         (_IO_file_init_internal, _IO_file_attach_internal)
31486         (_IO_file_fopen_internal, _IO_file_read_internal)
31487         (_IO_file_sync_internal, _IO_file_seek_internal)
31488         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31489         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31490         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31491         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31492         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31493         (_IO_list_all_internal, _IO_link_in_internal)
31494         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31495         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31496         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31497         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31498         (_IO_do_write_internal, _IO_padn_internal)
31499         (_IO_getline_info_internal, _IO_getline_internal)
31500         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31501         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31502         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31503         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31504         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31505         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31506         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31507         with libc_hidden_ver, remove use of INTUSE.
31508         * libio/genops.c: Likewise.
31509         * libio/freopen.c: Likewise.
31510         * libio/freopen64.c: Likewise.
31511         * libio/iofclose.c: Likewise.
31512         * libio/iofdopen.c: Likewise.
31513         * libio/iofflush.c: Likewise.
31514         * libio/iofflush_u.c: Likewise.
31515         * libio/iofgets.c: Likewise.
31516         * libio/iofgets_u.c: Likewise.
31517         * libio/iofopen.c: Likewise.
31518         * libio/iofopncook.c: Likewise.
31519         * libio/iofread.c: Likewise.
31520         * libio/iofread_u.c: Likewise.
31521         * libio/ioftell.c: Likewise.
31522         * libio/iofwrite.c: Likewise.
31523         * libio/iogetline.c: Likewise.
31524         * libio/iogets.c: Likewise.
31525         * libio/iogetwline.c: Likewise.
31526         * libio/iopadn.c: Likewise.
31527         * libio/iopopen.c: Likewise.
31528         * libio/ioseekoff.c: Likewise.
31529         * libio/ioseekpos.c: Likewise.
31530         * libio/iosetbuffer.c: Likewise.
31531         * libio/iosetvbuf.c: Likewise.
31532         * libio/ioungetc.c: Likewise.
31533         * libio/ioungetwc.c: Likewise.
31534         * libio/iovdprintf.c: Likewise.
31535         * libio/iovsprintf.c: Likewise.
31536         * libio/iovsscanf.c: Likewise.
31537         * libio/memstream.c: Likewise.
31538         * libio/obprintf.c: Likewise.
31539         * libio/oldfileops.c: Likewise.
31540         * libio/oldiofclose.c: Likewise.
31541         * libio/oldiofdopen.c: Likewise.
31542         * libio/oldiofopen.c: Likewise.
31543         * libio/oldiopopen.c: Likewise.
31544         * libio/oldstdfiles.c: Likewise.
31545         * libio/putc.c: Likewise.
31546         * libio/setbuf.c: Likewise.
31547         * libio/setlinebuf.c: Likewise.
31548         * libio/stdfiles.c: Likewise.
31549         * libio/strops.c: Likewise.
31550         * libio/vasprintf.c: Likewise.
31551         * libio/vscanf.c: Likewise.
31552         * libio/vsnprintf.c: Likewise.
31553         * libio/vswprintf.c: Likewise.
31554         * libio/wfiledoalloc.c: Likewise.
31555         * libio/wfileops.c: Likewise.
31556         * libio/wgenops.c: Likewise.
31557         * libio/wmemstream.c: Likewise.
31558         * libio/wstrops.c: Likewise.
31559         * libio/__fpurge.c: Likewise.
31560         * libio/__fsetlocking.c: Likewise.
31561         * assert/assert.c: Likewise.
31562         * debug/fgets_chk.c: Likewise.
31563         * debug/fgets_u_chk.c: Likewise.
31564         * debug/fread_chk.c: Likewise.
31565         * debug/fread_u_chk.c: Likewise.
31566         * debug/gets_chk.c: Likewise.
31567         * debug/obprintf_chk.c: Likewise.
31568         * debug/vasprintf_chk.c: Likewise.
31569         * debug/vdprintf_chk.c: Likewise.
31570         * debug/vsnprintf_chk.c: Likewise.
31571         * debug/vsprintf_chk.c: Likewise.
31572         * malloc/mtrace.c: Likewise.
31573         * misc/error.c: Likewise.
31574         * misc/syslog.c: Likewise.
31575         * stdio-common/asprintf.c: Likewise.
31576         * stdio-common/fxprintf.c: Likewise.
31577         * stdio-common/getw.c: Likewise.
31578         * stdio-common/isoc99_fscanf.c: Likewise.
31579         * stdio-common/isoc99_scanf.c: Likewise.
31580         * stdio-common/isoc99_vfscanf.c: Likewise.
31581         * stdio-common/isoc99_vscanf.c: Likewise.
31582         * stdio-common/isoc99_vsscanf.c: Likewise.
31583         * stdio-common/printf-prs.c: Likewise.
31584         * stdio-common/printf_fp.c: Likewise.
31585         * stdio-common/printf_fphex.c: Likewise.
31586         * stdio-common/printf_size.c: Likewise.
31587         * stdio-common/putw.c: Likewise.
31588         * stdio-common/scanf.c: Likewise.
31589         * stdio-common/sprintf.c: Likewise.
31590         * stdio-common/tmpfile.c: Likewise.
31591         * stdio-common/vfprintf.c: Likewise.
31592         * stdio-common/vfscanf.c: Likewise.
31593         * stdlib/strfmon_l.c: Likewise.
31594         * sunrpc/openchild.c: Likewise.
31595         * sunrpc/xdr_stdio.c: Likewise.
31596         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31597         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31598
31599 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31600
31601         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31602
31603         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31604         in the third column, to generate for the shared library an IFUNC
31605         that uses _dl_vdso_vsym.
31606         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31607         * Makeconfig (object-suffixes-noshared): New variable.
31608
31609         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31610         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31611         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31612         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31613
31614         [BZ #14132]
31615         * include/sys/time.h (__gettimeofday): Remove macro.
31616         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31617         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31618         Remove INTDEF.
31619         (__gettimeofday): Add libc_hidden_def.
31620         (gettimeofday): Add libc_hidden_weak.
31621         * sysdeps/mach/gettimeofday.c: Likewise.
31622         * sysdeps/posix/gettimeofday.c: Likewise.
31623         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31624         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31625         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31626         (__gettimeofday_internal): Remove strong_alias.
31627         (__gettimeofday): Add libc_hidden_def.
31628         (gettimeofday): Add libc_hidden_weak.
31629         * sysdeps/unix/syscalls.list (gettimeofday):
31630         Remove __gettimeofday_internal alias.
31631
31632 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31633             H.J. Lu  <hongjiu.lu@intel.com>
31634
31635         [BZ #12495]
31636         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31637         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31638         (largebin_index_32_big): New.
31639         (largebin_index): Use it for 16-byte alignment.
31640         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31641         correction with front_misalign.
31642
31643 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31644
31645         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31646         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31647         Likewise.
31648         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31649         Likewise.
31650         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31651         Likewise.
31652         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31653         Likewise.
31654         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31655         Likewise.
31656         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31657         Likewise.
31658         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31659         Likewise.
31660         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31661         Likewise.
31662         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31663         Likewise.
31664         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31665         Likewise.
31666         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31667         Likewise.
31668         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31669         Likewise.
31670
31671         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31672         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31673
31674 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31675
31676         [BZ #10846]
31677         [BZ #14036]
31678         * math/libm-test.inc (exp_test): Add test from bug 14036.
31679         (pow_test): Add test from bug 10846.
31680
31681         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31682         and other flags.
31683         (special_function): Do not include flags in test name.
31684         (parse_args): Likewise.
31685         * sysdeps/i386/fpu/libm-test-ulps: Update.
31686         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31687         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31688         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31690
31691         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31692         exceptions.
31693         * math/libm-test.inc ("Philosophy"): Update comment about
31694         exception testing.
31695         (UNDERFLOW_EXCEPTION): New macro.
31696         (UNDERFLOW_EXCEPTION_OK): Likewise.
31697         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31698         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31699         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31700         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31701         (INVALID_EXCEPTION_OK): Update value.
31702         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31703         (OVERFLOW_EXCEPTION_OK): Likewise.
31704         (IGNORE_ZERO_INF_SIGN): Likewise.
31705         (test_exceptions): Handle underflow exceptions.
31706         (acos_test): Update for underflow exception expectations.
31707         (cexp_test): Likewise.
31708         (clog_test): Likewise.
31709         (clog10_test): Likewise.
31710         (csqrt_test): Likewise.
31711         (ctan_test): Likewise.
31712         (ctanh_test): Likewise.
31713         (exp_test): Likewise.
31714         (exp10_test): Likewise.
31715         (exp2_test): Likewise.
31716         (expm1_test): Likewise.
31717         (fma_test): Likewise.
31718         (j0_test): Likewise.
31719         (jn_test): Likewise.
31720         (nexttoward_test): Likewise.
31721         (pow_test): Likewise.
31722         (scalbn_test): Likewise.
31723         (scalbln_test): Likewise.
31724         (tan_test): Likewise.
31725         (y1_test): Likewise.
31726         * sysdeps/i386/fpu/libm-test-ulps: Update.
31727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31728
31729 2012-05-23  David S. Miller  <davem@davemloft.net>
31730
31731         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31732         (__libc_sigaction): Remove unused local variables.
31733
31734 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31735
31736         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
31737
31738 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31739
31740         mktime: avoid signed integer overflow
31741         * time/mktime.c (__mktime_internal): Do not mishandle the case
31742         where diff == INT_MIN.
31743
31744         mktime: simplify computation of average
31745         * time/mktime.c (ranged_convert): Use new time_t_avg function
31746         instead of rolling our own (probably-slower) code.
31747
31748         mktime: do not assume signed right shift propagates sign bit
31749         * time/mktime.c (isdst_differ): New static function.
31750         (__mktime_internal): No need to normalize tm_isdst now.
31751         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
31752         tm_isdst values.
31753
31754         mktime: merge another wrapv change from gnulib
31755         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
31756         from some compilers.
31757
31758         mktime: remove incorrect attempt at unusual arithmetics
31759         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
31760         The code didn't really work on such machines anyway.
31761         (TYPE_MINIMUM): Assume two's complement.
31762         (twos_complement_arithmetic): Verify that long_int and time_t
31763         are two's complement (or unsigned, in the latter case).
31764
31765         mktime: check signed shifts on long_int and time_t, too
31766         * time/mktime.c (SHR): Check that shifts work as desired
31767         on the types long_int and time_t too, as SHR is used on
31768         such types.
31769
31770         mktime: do not assume 'long' is wide enough
31771         * time/mktime.c (verify): Move decl up.
31772         (long_int): New type.
31773         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
31774         to remove assumption in the code that 'long' is wide enough to
31775         store year values.  This assumption is not true on x32 and on
31776         some non-glibc platforms.
31777
31778         mktime: merge wrapv change from gnulib
31779         * time/mktime.c (WRAPV): New macro.
31780         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
31781         (guess_time_tm, __mktime_internal): Do not assume that signed
31782         integer overflow wraps around; modern compilers generate code
31783         where this assumption is no longer valid.
31784
31785 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31786
31787         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31788         Replace "jmp L(pseudo_end)" with "ret".
31789         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
31790         Likewise.
31791
31792 2012-05-23  Andreas Jaeger  <aj@suse.de>
31793
31794         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
31795         * sysdeps/unix/sysv/linux/poll.c: Remove file.
31796
31797 2012-05-23  Andreas Jaeger  <aj@suse.de>
31798             Maximilian Attems  <max@stro.at>
31799
31800         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
31801         New macros.
31802
31803 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31804
31805         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
31806         code so that pseudo_end is just ret and the stack pointer is
31807         correct also for static library in error case.
31808
31809 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
31810
31811         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
31812         move to syscalls.list.
31813         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
31814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31817
31818         * manual/install.texi (Running make install): Do not mention Linux
31819         kernel version for which pt_chown is not needed.
31820         (Linux): Do not mention problems with nscd with 2.0 kernels.
31821         * INSTALL: Regenerated.
31822
31823 2012-05-23  Andreas Jaeger  <aj@suse.de>
31824
31825         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
31826         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
31827         macro.
31828         * sysdeps/unix/sysv/linux/s390/bits/mman.h
31829         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31830         * sysdeps/unix/sysv/linux/sh/bits/mman.h
31831         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31832         * sysdeps/unix/sysv/linux/i386/bits/mman.h
31833         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31834         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
31835         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31836         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
31837         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31838         * sysdeps/unix/sysv/linux/bits/in.h
31839         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
31840
31841 2012-05-22  Roland McGrath  <roland@hack.frob.com>
31842
31843         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
31844         (PREPARE_VERSION): Just use assert instead, it will be elided
31845         under [NDEBUG] anyway.
31846
31847 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31848
31849         * sysdeps/unix/sysv/linux/Makefile: Include
31850         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
31851         (sysdep_routines): Remove sysctl.
31852         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
31853         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
31854         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
31855         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
31856         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
31857
31858 2012-05-22  Andreas Jaeger  <aj@suse.de>
31859
31860         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
31861         that pseudo_end is just ret and the stack pointer is correct also
31862         for static library in error case.
31863
31864 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
31865
31866         [BZ #14122]
31867         * nss/nsswitch.c (defconfig_entries): New variable.
31868         (__nss_database_lookup): Don't leak defconfig entries.
31869         (nss_parse_service_list): Don't leak on error paths.
31870         (free_database_entries): New function.
31871         (free_defconfig): New function.
31872         (free_mem): Move common code to free_database_entries.
31873
31874 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31875
31876         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
31877         Add arch_prctl.
31878         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
31879
31880         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
31881         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
31882         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
31883         New macro.
31884         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
31885         (INTERNAL_SYSCALL_TYPES): Likewise.
31886         (LOAD_ARGS_TYPES_[1-6]): Likewise.
31887         (LOAD_REGS_TYPES_[1-6]): Likewise.
31888         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
31889         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
31890
31891 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31892
31893         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
31894         copysignl for GLIBC_2_0.
31895         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
31896         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
31897         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
31898         logbl for GLIBC_2_0.
31899         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
31900         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
31901
31902 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31903
31904         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
31905         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31906
31907         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31908         Use "neg %eax".
31909
31910         * time/mktime.c: Update copyright years.
31911
31912 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31913
31914         mktime: merge comment-quoting-style change from gnulib
31915         * time/mktime.c: Quote 'like this' in comments.
31916         The GNU coding standards suggest that we no longer quote `like this',
31917         as "`" and "'" are typically rendered asymmetrically nowadays.
31918         The typical gnulib style is to quote 'like this' when quoting
31919         code, and "like this" when quoting English.
31920
31921         * time/mktime.c (compile-command): Add "-I.".
31922
31923         mktime: merge mktime-internal.h change from gnulib
31924         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
31925
31926         mktime: merge time_r change from gnulib
31927         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
31928
31929         mktime: merge DEBUG change from gnulib
31930         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
31931         case system <time.h> has a #define.
31932
31933         mktime: merge <sys/types.h> change from gnulib
31934         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
31935         since <time.t> is now guaranteed to define time_t.
31936
31937         mktime: merge HAVE_CONFIG_H change from gnulib
31938         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
31939
31940 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31941
31942         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31943         Use "neg %eax".
31944
31945         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
31946         __rlim_t cast.
31947         (struct rusage): Use anonymous union to pad each field to
31948         __syscall_slong_t.
31949
31950 2012-05-21  David S. Miller  <davem@davemloft.net>
31951
31952         * Makefules (o-iterator): Remove .s cases.
31953         (compile-command.s): Delete.
31954         (COMPILE.s): Delete.
31955         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
31956
31957 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
31958
31959         * configure.in (libc_cv_predef_stack_protector): Only consider
31960         "foobar" and "__stack_chk_fail" lines in libc_undefs.
31961         * configure: Regenerated.
31962
31963 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31964
31965         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31966         New macro.  Use R*LP on int and pointer.
31967         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
31968         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
31969         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
31970         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
31971
31972         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
31973         [__WORDSIZE_TIME64_COMPAT32] instead of
31974         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
31975         (struct utmp): Likewise.
31976         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
31977         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
31978         Renamed to ...
31979         (__WORDSIZE_TIME64_COMPAT32): This.
31980         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
31981         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
31982         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
31983         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
31984         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
31985         (__WORDSIZE_TIME64_COMPAT32): New macro.
31986
31987 2012-05-21  Andreas Jaeger  <aj@suse.de>
31988
31989         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
31990         only if [SHARED]. Add prototype for __wcschr_ia32.
31991
31992 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31993
31994         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
31995         of %rbp unmolested in the jmp_buf while mangling the low bits.
31996         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
31997         unmolested high bits of %rbp while demangling the low bits.
31998         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31999
32000 2012-05-21  Andreas Jaeger  <aj@suse.de>
32001
32002         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32003         * sunrpc/svc_simple.c: Use it for registerrpc.
32004         * sunrpc/xcrypt.c: Use it for passwd2des.
32005
32006         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32007
32008 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32009
32010         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32011         Don't define if [__SYSCALL_WORDSIZE != 32].
32012         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32013         New macro.
32014
32015 2012-05-21  Bruno Haible  <bruno@clisp.org>
32016             Andreas Jaeger  <aj@suse.de>
32017
32018         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
32019         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
32020         inptr and inend for must_buffer_ch.
32021         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
32022         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
32023         * stdio-common/Makefile (tests): Remove bug15.
32024         (bug15-ENV): Remove macro.
32025         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
32026         anymore.
32027
32028 2012-05-19  Andreas Jaeger  <aj@suse.de>
32029             Roland McGrath  <roland@hack.frob.com>
32030
32031         * manual/contrib.texi: Completely rewritten. It contains now an
32032         alphabetical list of contributors and their contributions.
32033
32034 2012-05-21  Richard Henderson  <rth@twiddle.net>
32035
32036         * misc/getauxval.c (__getauxval): Use unsigned long int.
32037         * misc/sys/auxv.h: Include <sys/cdefs.h>.
32038         (getauxval): Use unsigned long int.
32039
32040 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32041
32042         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32043
32044 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32045
32046         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
32047         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
32048         __alignof__ (long double).
32049
32050 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32051
32052         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32053
32054 2012-05-20  Richard Henderson  <rth@twiddle.net>
32055
32056         * misc/getauxval.c: New file.
32057         * misc/sys/auxv.h: New file.
32058         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
32059         (routines): Add getauxval.
32060         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
32061         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
32062         * elf/dl-sysdep.c (_dl_auxv): Remove.
32063         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
32064         * elf/dl-support.c (_dl_auxv): New variable.
32065         (_dl_aux_init): Initialize it.
32066         * manual/startup.texi (Auxiliary Vector): New node.
32067         * sysdeps/generic/bits/hwcap.h: New file.
32068         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
32069         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
32070         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
32071         * sysdeps/sparc/sysdep.h: ... here.  Include it.
32072         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
32073         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
32074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
32075         Update.
32076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
32077         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
32078         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
32079         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
32080         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32081         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
32082         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
32083         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
32084
32085 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32086
32087         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32088
32089 2012-05-19  David S. Miller  <davem@davemloft.net>
32090
32091         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32092
32093 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32094
32095         [BZ #14123]
32096         * math/s_ccosh.c: Include <float.h>
32097         (__ccosh): Avoid internal overflow calculating sinh and cosh
32098         values before multiplying by sin and cos values.
32099         * math/s_ccoshf.c: Likewise.
32100         * math/s_ccoshl.c: Likewise.
32101         * math/s_csin.c: Likewise.
32102         * math/s_csinf.c: Likewise.
32103         * math/s_csinl.c: Likewise.
32104         * math/s_csinh.c: Likewise.
32105         * math/s_csinhf.c: Likewise.
32106         * math/s_csinhl.c: Likewise.
32107         * math/libm-test.inc (ccos_test): Add more tests.
32108         (ccosh_test): Likewise.
32109         (csin_test): Likewise.
32110         (csinh_test): Likewise.
32111         * sysdeps/i386/fpu/libm-test-ulps: Update.
32112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32113
32114 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
32115
32116         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
32117         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
32118
32119         * sysdeps/x86_64/x32/_itoa.h: Add comment.
32120
32121 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
32122
32123         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
32124         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
32125         * sysdeps/powerpc/soft-fp/Versions: Likewise.
32126         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
32127         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
32128         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
32129         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
32130         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
32131         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
32132         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
32133         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
32134         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
32135         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
32136         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
32137         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
32138         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
32139         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
32140         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
32141         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
32142         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
32143         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
32144         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
32145         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
32146         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
32147         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
32148         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
32149         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
32150         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
32151         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
32152         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
32153         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
32154
32155 2012-05-18  Andreas Jaeger  <aj@suse.de>
32156
32157         * csu/.gitignore: Delete.
32158
32159 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32160
32161         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
32162         (timex): Use __syscall_slong_t.
32163
32164 2012-05-18  Andreas Jaeger  <aj@suse.de>
32165             Carlos O'Donell  <carlos_odonell@mentor.com>
32166
32167         * manual/install.texi (Configuring and compiling): Update
32168         description about files modified in the source directory.
32169         * INSTALL: Regenerated.
32170
32171 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32172
32173         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
32174         value.  Use "or" to set return value to -1.
32175         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
32176         negate return value.
32177
32178 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32179
32180         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
32181         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
32182         failure if the compiler has Graphite support disabled.
32183         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
32184         Likewise.
32185         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
32186         (CFLAGS-memmove.c): Likewise.
32187         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
32188         Likewise.
32189
32190 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
32191
32192         * sysdeps/x86_64/x32/_itoa.h: New file.
32193
32194         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
32195         getdents system call only if kernel and user dirents have the
32196         same d_ino and d_off.
32197
32198         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
32199         LLONG_MAX != LONG_MAX.
32200         (_itoa_word): Use _ITOA_WORD_TYPE on value.
32201         (_fitoa_word): Likewise.
32202
32203         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
32204         years.
32205         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
32206         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
32207         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
32208
32209         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
32210         include <bits/wordsize.h>.  Check __x86_64__ instead of
32211         __WORDSIZE.
32212         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
32213         if __x86_64__ is defined.  Use anonymous union on fpstate.
32214
32215         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
32216         anonymous union.
32217
32218 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
32219
32220         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
32221         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
32222         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
32223         Refer to _rtld_local_ro instead of _rtld_global_ro.
32224         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
32225         Likewise.
32226         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
32227         Likewise.
32228         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
32229         Likewise.
32230         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
32231         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
32232         of _rtld_global, and rtld_progname instead of _dl_argv[0].
32233
32234         * sysdeps/powerpc/powerpc32/dl-machine.c
32235         (__elf_machine_runtime_setup) [PROF]: Don't reference
32236         _dl_prof_resolve.
32237
32238 2012-05-18  Andreas Jaeger  <aj@suse.de>
32239
32240         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
32241         function only available for GCCs before 3.4 since GCC 3.4
32242         introduced a builtin.
32243         (lrint): Likewise.
32244         (llrintf): Likewise.
32245         (llrint): Likewise.
32246         (fmaxf): Likewise.
32247         (fmax): Likewise.
32248         (fminf): Likewise.
32249         (fmin): Likewise.
32250         (rint): Likewise.
32251         (rintf): Likewise.
32252         (nearbyint): Likewise.
32253         (nearbyintf): Likewise.
32254         (ceil): Likewise.
32255         (ceilf): Likewise.
32256         (floor): Likewise.
32257         (floorf): Likewise.
32258
32259 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32260
32261         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
32262         on both fields and cast pointer to __syscall_ulong_t.
32263
32264         * bits/types.h (__fsword_t): New type.
32265         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
32266         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
32267         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32268         (__FSWORD_T_TYPE): Likewise.
32269         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32270         (__FSWORD_T_TYPE): Likewise.
32271         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32272         (__FSWORD_T_TYPE): Likewise.
32273         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
32274         (__FSWORD_T_TYPE): Likewise.
32275         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
32276         __SWORD_TYPE with __fsword_t.
32277         (statfs64): Likewise.
32278
32279 2012-05-17  David S. Miller  <davem@davemloft.net>
32280
32281         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
32282
32283 2012-05-17  Andreas Jaeger  <aj@suse.de>
32284
32285         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
32286         warning.
32287
32288 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32289
32290         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
32291
32292 2012-05-17  Andreas Jaeger  <aj@suse.de>
32293
32294         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
32295         when it is used.
32296
32297 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32298
32299         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
32300
32301 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32302
32303         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
32304         * sysdeps/x86_64/tst-mallocalign1.c: New file.
32305
32306 2012-05-17  Andreas Jaeger  <aj@suse.de>
32307             Carlos O'Donell  <carlos_odonell@mentor.com>
32308
32309         [BZ #14059]
32310         * sysdeps/x86_64/multiarch/init-arch.h
32311         (bit_YMM_Usable): Rename to...
32312         (bit_AVX_Usable): ... this.
32313         (bit_FMA4_Usable): New macro.
32314         (bit_XMM_state): New macro.
32315         (bit_YMM_state): New macro.
32316         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
32317         [__ASSEMBLER__] (index_AVX_Usable): ... this.
32318         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
32319         (CPUID_OSXSAVE): New macro.
32320         (CPUID_AVX): New macro.
32321         (CPUID_FMA4): New macro.
32322         (index_YMM_Usable): Rename to...
32323         (index_AVX_Usable): ... this.
32324         (HAS_AVX): Use HAS_ARCH_FEATURE.
32325         (HAS_FMA4): Likewise.
32326         (HAS_YMM_USABLE): Remove.
32327         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32328         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
32329         are present.
32330         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
32331         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
32332         * sysdeps/x86_64/multiarch/Makefile: Likewise.
32333         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
32334         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
32335
32336 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
32337
32338         * math/libm-test.c: Support platforms without multiple rounding modes.
32339         * math/bug-nextafter.c: Support platforms without FP exceptions.
32340         * math/bug-nexttoward.c: Likewise.
32341         * math/test-fenv.c: Likewise.
32342         * math/test-misc.c: Likewise.
32343         * stdlib/bug-getcontext.c: Likewise.
32344
32345 2012-05-17  Andreas Jaeger  <aj@suse.de>
32346
32347         * manual/examples/search.c (critter_cmp): Change signature to
32348         avoid warnings.
32349         * manual/string.texi (Collation Functions): Likewise.
32350
32351 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32352
32353         * bits/types.h: Fold copyright years.
32354         * bits/typesizes.h: Likewise.
32355         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
32356         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
32357         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
32358         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
32359         * time/time.h: Likewise.
32360
32361 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
32362
32363         [BZ #208]
32364         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
32365         in instead of returning them.  Return void.
32366         (__libc_mallinfo): Accumulate over all arenas.
32367         (__malloc_stats): Adjust for change in int_mallinfo interface.
32368
32369 2012-05-16  Roland McGrath  <roland@hack.frob.com>
32370
32371         [BZ #10375]
32372         * configure.in (NM): Add AC_CHECK_TOOL for it.
32373         (libc_extra_cflags): New substituted variable.
32374         Check for -fstack-protector being used implicitly.
32375         * configure: Regenerated.
32376         * config.make.in (config-extra-cflags): New variable,
32377         gets @libc_extra_cflags@.
32378         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
32379
32380         [BZ #10375]
32381         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32382         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32383         * configure: Regenerated.
32384         * config.make.in (CPPUNDEFS): New substituted variable.
32385         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32386         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32387         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32388
32389 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32390
32391         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32392         (mq_attr): Use __syscall_slong_t.
32393
32394 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32395
32396         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32397         Check __x86_64__ instead of __WORDSIZE.
32398         (_STAT_VER_LINUX): Likewise.
32399         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32400         __syscall_ulong_t and __syscall_slong_t.
32401         (stat64): Likewise.
32402
32403 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32404
32405         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32406
32407 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32408
32409         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32410
32411 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32412
32413         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32414         __syscall_ulong_t.
32415
32416         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32417         include <bits/wordsize.h>.  Check __x86_64__ instead of
32418         __WORDSIZE.
32419         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32420         defined.
32421         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32422
32423         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32424         include <bits/wordsize.h>.  Check __x86_64__ instead of
32425         __WORDSIZE.
32426         (user_regs_struct): Use "__extension__ unsigned long long"
32427         instead of "unsigned long" if __x86_64__ is defined.
32428         (user): Likewise.  Pad after pointer field if __ILP32__ is
32429         defined.
32430
32431 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32432
32433         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32434         versions 5 to 9.
32435         * configure: Regenerated.
32436         * manual/install.texi (texinfo): Increase version requirement to
32437         4.5 or later.
32438         * INSTALL: Regenerated.
32439
32440         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32441
32442 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32443
32444         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32445
32446         * sysdeps/x86_64/x32/ffs.c: New file.
32447
32448         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32449         __syscall_ulong_t.
32450         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32451         defined.  Use __syscall_ulong_t.
32452         (shminfo): Use __syscall_ulong_t.
32453         (shm_info): Likewise.
32454
32455         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32456         __syscall_ulong_t.
32457
32458         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32459         <bits/wordsize.h>.
32460         (msgqnum_t): Use __syscall_ulong_t.
32461         (msglen_t): Likewise.
32462         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32463         __syscall_ulong_t.
32464
32465         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32466         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32467
32468         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32469
32470         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32471         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32472
32473         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32474         __syscall_slong_t.
32475
32476         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32477         include <bits/wordsize.h>.  Check __x86_64__ instead of
32478         __WORDSIZE.
32479
32480         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32481         "unsigned long long int" if __x86_64__ is defined.
32482         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32483
32484         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32485         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32486         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32487
32488         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32489         <stdint.h>.
32490         (GET_PC): Cast to uintptr_t first.
32491         (GET_FRAME): Likewise.
32492         (GET_STACK): Likewise.
32493
32494         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32495         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32496         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32497         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32498         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32499         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32500         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32501         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32502         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32503         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32504         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32505         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32506         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32507         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32508         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32509         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32510         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32511         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32512         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32513         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32514         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32515         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32516         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32517         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32518         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32519         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32520         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32521         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32522         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32523
32524 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32525
32526         * Makerules (+depfiles): Also collect depfiles from .oS in
32527         $(extra-objs).
32528         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32529         .oS, $(libnldbl-routines)).
32530
32531         * Makerules (native-compile-mkdep-flags): Define.
32532         * sunrpc/Makefile (extra-objs): Add $(addprefix
32533         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32534         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32535         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32536         calling $(make-target-directory).
32537
32538 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32539
32540         * bits/types.h (__snseconds_t): Removed.
32541         * time/time.h (struct timespec): Replace __snseconds_t with
32542         __syscall_slong_t.
32543         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32544         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32545         Likewise.
32546         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32547         (__SNSECONDS_T_TYPE): Likewise.
32548         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32549         (__SNSECONDS_T_TYPE): Likewise.
32550         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32551         (__SNSECONDS_T_TYPE): Likewise.
32552
32553 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32554
32555         * sysdeps/mach/hurd/bits/typesizes.h
32556         (__SYSCALL_SLONG_TYPE): New macro.
32557         (__SYSCALL_ULONG_TYPE): Likewise.
32558
32559 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32560
32561         * bits/types.h (__syscall_slong_t): New type.
32562         (__syscall_ulong_t): Likewise.
32563
32564         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32565         (__SYSCALL_ULONG_TYPE): Likewise.
32566         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32567         (__SYSCALL_SLONG_TYPE): Likewise.
32568         (__SYSCALL_ULONG_TYPE): Likewise.
32569         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32570         (__SYSCALL_SLONG_TYPE): Likewise.
32571         (__SYSCALL_ULONG_TYPE): Likewise.
32572         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32573         (__SYSCALL_SLONG_TYPE): Likewise.
32574         (__SYSCALL_ULONG_TYPE): Likewise.
32575
32576 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32577
32578         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32579         Add sigaltstack-offsets.sym.
32580         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32581         <sigaltstack-offsets.h>.
32582         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32583         longjmp_msg pointer.
32584         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32585         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32586         signal stack.
32587         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32588
32589 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32590
32591         * elf/stackguard-macros.h: Remove file.
32592         * sysdeps/generic/stackguard-macros.h: New file.
32593         * sysdeps/i386/stackguard-macros.h: Likewise.
32594         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32595         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32596         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32597         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32598         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32599         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32600         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32601         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32602         <elf/stackguard-macros.h>.
32603
32604         [BZ #14109]
32605         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32606         __aligned__ in attribute.
32607         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32608         (gregset_t): Likewise.
32609
32610 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32611
32612         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32613         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32614         * sysdeps/x86_64/x32/Implies-after: New file.
32615
32616 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32617
32618         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32619         and access return value for _dl_profile_fixup.  Use R10_LP to
32620         load frame size.
32621
32622 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32623
32624         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32625
32626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32627
32628         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32629         * sysdeps/x86_64/x32/sysdep.h: New file.
32630
32631 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32632
32633         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32634         * sysdeps/x86_64/setjmp.S: Likewise.
32635
32636 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32637
32638         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32639         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32640         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32641         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32642         remove unused global constant.
32643
32644 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32645
32646         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32647         include of <not-cancel.h>.
32648
32649 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32650
32651         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32652
32653 2012-05-15  Jeff Law  <law@redhat.com>
32654             Andreas Jaeger  <aj@suse.de>
32655
32656         [BZ #13594]
32657         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32658         out from...
32659         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32660         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32661         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32662         code changing __hst_map_handle.map.
32663
32664 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32665
32666         * configure.in (sysnames): Look for Implies-before and Implies-after
32667         files.
32668         * configure: Regenerated.
32669
32670 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32671
32672         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32673         8-byte data alignment with LP_SIZE alignment.
32674
32675 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32676
32677         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32678         into R10_LP.
32679
32680 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32681
32682         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32683
32684 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32685
32686         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32687         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32688         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32689         Likewise.
32690         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32691
32692 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32693
32694         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32695         (stackinfo_sub_sp): Likewise.
32696
32697 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32698
32699         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32700         RAX_LP.
32701
32702 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32703
32704         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32705         into R*_LP.
32706
32707 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32708
32709         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
32710         sizes into R*_LP.
32711
32712 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32713
32714         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
32715
32716 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32717
32718         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
32719         into R11_LP and load __x86_64_shared_cache_size_half into
32720         R8_LP.
32721
32722 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32723
32724         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
32725         R8_LP.
32726
32727 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32728
32729         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
32730         logb for POWER7.
32731         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
32732         logbf for POWER7.
32733         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
32734         logbl for POWER7.
32735         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
32736         powerpc32/power7/fpu/s_logb.c via #include.
32737         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
32738         powerpc32/power7/fpu/s_logbf.c via #include.
32739         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
32740         powerpc32/power7/fpu/s_logbl.c via #include.
32741
32742 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32743
32744         * README.libm: Remove file.
32745
32746 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32747
32748         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
32749         count for x32.  Use R*_LP and omit operand-size suffix.
32750
32751 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32752
32753         * shlib-versions: Move x86_64-.*-linux.* entries to ...
32754         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
32755         * sysdeps/x86_64/x32/shlib-versions: New file.
32756
32757 2012-05-14  Roland McGrath  <roland@hack.frob.com>
32758
32759         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
32760         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
32761         Use _dl_fatal_printf instead.
32762
32763 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32764
32765         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
32766         set if not set by the user.  Do not allow for being unset.
32767         * sysdeps/unix/sysv/linux/configure: Regenerated.
32768
32769 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32770
32771         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
32772         the `q' suffix from lea and replace .quad with ASM_ADDR.
32773
32774 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32775
32776         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
32777         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
32778         instead of $17.
32779         (PTR_DEMANGLE): Likewise.
32780
32781 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32782
32783         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
32784         (LP_OP): Likewise.
32785         (ASM_ADDR): Likewise.
32786         (RAX_LP): Likewise.
32787         (RBP_LP): Likewise.
32788         (RBX_LP): Likewise.
32789         (RCX_LP): Likewise.
32790         (RDI_LP): Likewise.
32791         (RSI_LP): Likewise.
32792         (RSP_LP): Likewise.
32793         (R8_LP): Likewise.
32794         (R9_LP): Likewise.
32795         (R10_LP): Likewise.
32796         (R10_LP): Likewise.
32797         (R11_LP): Likewise.
32798         (R12_LP): Likewise.
32799         (R13_LP): Likewise.
32800         (R14_LP): Likewise.
32801         (R15_LP): Likewise.
32802
32803 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32804
32805         * sysdeps/x86_64/x32/dl-machine.h: New file.
32806
32807 2012-05-14  Andreas Jaeger  <aj@suse.de>
32808
32809         * manual/Makefile (subdir): Remove export of subdir.
32810         (all): Remove target.
32811         (.PHONY): Remove all from list.
32812         (mkinstalldirs): Remove.
32813         (.PHONY): Remove installdirs from list.
32814         ($(inst_infodir)/libc.info): Use make-target-directory.
32815         (installdirs): Remove.
32816         (subdir_%): Remove.
32817         (glibc-targets): Remove.
32818         (lib): Remove.
32819         (stubs): Remove.
32820         ($(objpfx)stubs ../po/manual.pot): Remove.
32821         ($(objpfx)stamp%): Remove.
32822         (make-target-directory): Remove.
32823         (subdir_install): Remove.
32824         (routines): Remove.
32825         (aux): Remove.
32826         (sources): Remove.
32827         (objects): Remove.
32828         (headers): Remove.
32829
32830         [BZ #13750]
32831         * manual/.gitignore: Remove, it's not needed anymore.
32832         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
32833         all files in it.
32834         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
32835         directory.
32836         (texis): Renamed to $(objpfx)texis.
32837         (texis-path): New, contains path to generated files.
32838         (chapters.%): Use texis-path for complete path, add extra argument
32839         libc-texinfo.sh.
32840         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
32841         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
32842         (summary,texi, stamp-summary): Use complete path of
32843         files. Generate files in build dir.
32844         (dir-add.texi): Build in build dir.
32845         (libm-err.texi,stamp-libm-err): Likewise.
32846         (version.texi, stamp-version): Likewise.
32847         (.%c.texi): Likewise.
32848         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
32849         (mostlyclean): Remove target.
32850         (realclean): Remove target.
32851         (generated): Add new variable with contents from mostlyclean and
32852         realclean, remove entries duplicated in common-mostlyclean, add
32853         stamp-libm-err and stamp-version.
32854         (generated-dirs): Add libc directory.
32855         ($(inst_infodir)/libc.info): Install files from build dir.
32856
32857         * manual/install.texi (Configuring and compiling): Adjust since
32858         the info files are not part of the tar ball anymore.
32859
32860 2012-05-14  Andreas Jaeger  <aj@suse.de>
32861
32862         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
32863         variable.
32864
32865 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32866
32867         [BZ #13717]
32868         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32869         to 2.2.0 where earlier.
32870         * sysdeps/unix/sysv/linux/configure: Regenerated.
32871         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
32872         Remove conditional code.
32873         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
32874         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
32875         Remove conditional code.
32876         [!__NR_lchown]: Likewise.
32877         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32878         [__NR_lchown]: Likewise.
32879         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
32880         comment referencing __ASSUME_LCHOWN_SYSCALL.
32881         * sysdeps/unix/sysv/linux/i386/sigaction.c
32882         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32883         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32884         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
32885         Remove conditional code.
32886         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
32887         (__protocol_available): Remove #if 0 code.
32888         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
32889         conditional code.
32890         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
32891         * sysdeps/unix/sysv/linux/kernel-features.h
32892         (__ASSUME_GETCWD_SYSCALL): Don't define.
32893         (__ASSUME_REALTIME_SIGNALS): Likewise.
32894         (__ASSUME_PREAD_SYSCALL): Likewise.
32895         (__ASSUME_PWRITE_SYSCALL): Likewise.
32896         (__ASSUME_POLL_SYSCALL): Likewise.
32897         (__ASSUME_LCHOWN_SYSCALL): Likewise.
32898         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
32899         non-SPARC.
32900         (__ASSUME_SIOCGIFNAME): Don't define.
32901         (__ASSUME_MSG_NOSIGNAL): Likewise.
32902         (__ASSUME_SENDFILE): Define unconditionally.
32903         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
32904         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
32905         conditional code.
32906         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
32907         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
32908         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32909         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32910         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
32911         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32912         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
32914         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32915         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
32917         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32918         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
32920         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32921         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
32923         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32924         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
32926         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32927         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
32929         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32930         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
32932         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32933         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
32935         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32936         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32937         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
32938         Remove conditional code.
32939         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32940         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32941         Remove conditional code.
32942         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32943         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
32944         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
32945         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32946         Remove conditional code.
32947         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32948         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
32949         Remove conditional code.
32950         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32951         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
32952         Remove conditional code.
32953         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32954         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32955         Remove conditional code.
32956         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32957         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32958         Remove conditional code.
32959         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32960         * sysdeps/unix/sysv/linux/sh/pwrite64.c
32961         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32962         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32963         * sysdeps/unix/sysv/linux/sigaction.c
32964         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32965         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32966         * sysdeps/unix/sysv/linux/sigpending.c
32967         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32968         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32969         * sysdeps/unix/sysv/linux/sigprocmask.c
32970         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32971         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32972         * sysdeps/unix/sysv/linux/sigsuspend.c
32973         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32974         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32975         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32976         (__libc_missing_rt_sigs): Remove.
32977         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
32978         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
32979         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
32980         Remove conditional code.
32981         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
32982         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
32983         return 1.
32984         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
32985         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
32986         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
32987         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
32988
32989 2012-05-14  Andreas Jaeger  <aj@suse.de>
32990
32991         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
32992         it's not used in glibc.
32993         (__coshm1): Likewise.
32994         (__acosh1p): Likewise.
32995         (__sgn): Likewise.
32996
32997         * manual/string.texi (Copying and Concatenation): Add missing
32998         variable in concat example.
32999         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33000
33001 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33002
33003         [BZ #14103]
33004         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33005         __builtin_clzl with __builtin_clzll.
33006
33007 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33008
33009         [BZ #14104]
33010         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33011         libc_freeres_ptr.
33012
33013 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
33014
33015         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
33016         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
33017         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
33018         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
33019
33020 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
33021
33022         * NEWS: Update ia64 info.
33023
33024 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
33025
33026         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
33027         used as bcopy.
33028
33029 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
33030
33031         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
33032         * sysdeps/unix/syscalls.list (dup3): Likewise.
33033         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
33034         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
33035
33036 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33037
33038         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
33039         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
33040
33041 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
33042
33043         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
33044         thread pointer.
33045         (TLS_IE): Use mov/add instead of movq/addq to load thread
33046         pointer.
33047         (TLS_GD_PREFIX): New.
33048         (TLS_GD): Use it.
33049
33050 2012-05-11  David S. Miller  <davem@davemloft.net>
33051
33052         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
33053         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
33054         (_FPU_SETCW): Likewise.
33055
33056 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33057
33058         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
33059         is 32-byte aligned.
33060
33061 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
33062
33063         [BZ #11837]
33064         * iconvdata/gb18030.c: Update tables.
33065         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
33066         characters specially.
33067         (BODY for TO_LOOP): Add encoding of missing ranges.
33068
33069 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
33070
33071         [BZ #13673]
33072         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
33073         * sysdeps/mach/hurd/dup3.c: Likewise.
33074         * sysdeps/mach/hurd/readlinkat.c: Likewise.
33075         * sysdeps/powerpc/memmove.c:: Likewise.
33076
33077 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33078
33079         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
33080         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
33081
33082 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33083
33084         * elf/elf.h (R_X86_64_RELATIVE64): New.
33085         (R_X86_64_NUM): Updated.
33086         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
33087         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
33088         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
33089         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
33090         tst-quad1pie tst-quad2pie
33091         (modules-names): Add tst-quadmod1 tst-quadmod2.
33092         ($(objpfx)tst-quad1): New dependency.
33093         ($(objpfx)tst-quad2): Likewise.
33094         ($(objpfx)tst-quad1pie): Likewise.
33095         ($(objpfx)tst-quad2pie): Likewise.
33096         * sysdeps/x86_64/tst-quad1.c: New file.
33097         * sysdeps/x86_64/tst-quad1pie.c: New file.
33098         * sysdeps/x86_64/tst-quad2.c: Likewise.
33099         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
33100         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
33101         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
33102         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
33103         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
33104
33105 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33106
33107         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
33108         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
33109         * streams/stropts.h (t_scalar_t): Define type.
33110
33111         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
33112         (_PATH_PRESERVE): Set to "/var/lib".
33113         (_PATH_RWHODIR): Set to "/var/spool/rwho".
33114
33115         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
33116         instead of int.
33117
33118         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
33119         if __dir_mkfile succeeded.
33120
33121         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
33122         checking for _hurd_dtablesize.  Unlock it right after having
33123         finished _hurd_dtable allocation.
33124
33125 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33126
33127         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
33128         * sysdeps/mach/hurd/configure: Regenerated.
33129         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
33130         special-casing to...
33131         * sysdeps/gnu/configure.in: ... this new file.
33132         * sysdeps/unix/sysv/linux/configure: Regenerated.
33133         * sysdeps/gnu/configure: New generated file.
33134
33135         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
33136         for Linux: use nsec instead of usec, as well as:
33137         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
33138         members of type struct timespec.
33139         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
33140         New macros.
33141         (struct stat64): Likewise.
33142         (_STATBUF_ST_NSEC): New macro.
33143         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
33144
33145         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
33146         __strtoul_internal rather than strtoul.
33147
33148 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33149
33150         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
33151         and reject them.
33152
33153 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33154
33155         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
33156         which preserves existing values.
33157         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
33158
33159 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33160
33161         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
33162         TIMEOUT values.  Return EINVAL for NFDS values either negative or
33163         greater than FD_SETSIZE.
33164
33165 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33166
33167         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
33168         allocated, call __vm_protect to finish enabling the existing space, and
33169         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
33170         allocate the remainder.
33171
33172 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33173
33174         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
33175         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
33176
33177 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33178
33179         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
33180         sysdeps/mach/hurd/readlink.c.
33181
33182         * posix/tst-sysconf.c (posix_options): Only use
33183         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
33184         _POSIX_SYNCHRONIZED_IO when they are defined
33185         * sysdeps/mach/hurd/bits/posix_opt.h:
33186         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
33187         (_XOPEN_REALTIME): Undefine macro.
33188         (_XOPEN_REALTIME_THREADS): Undefine macro.
33189         (_XOPEN_SHM): Undefine macro.
33190         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
33191         macro to -1.
33192         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
33193         macro to -1.
33194         (_POSIX_ASYNC_IO): Undefine macro.
33195         (_POSIX_PRIORITIZED_IO): Undefine macro.
33196         (_POSIX_SPIN_LOCKS): Define macro to -1.
33197
33198         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
33199         SA_NODEFER, SA_RESETHAND.
33200         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
33201         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
33202         F_DUPFD_CLOEXEC.
33203
33204 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33205
33206         * elf/Makefile (pldd-modules): Define unconditionally.
33207
33208 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33209
33210         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
33211
33212 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33213
33214         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
33215         Return ENOENT when name is empty.
33216         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
33217
33218 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33219
33220         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
33221
33222         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
33223
33224 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33225
33226         Fix mlock in all cases except non-readable pages.
33227         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
33228         instead of VM_PROT_ALL as parameter to __vm_wire function.
33229
33230         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
33231         (__mkdir): When path is `/', just fail with EEXIST.
33232         * sysdeps/mach/hurd/mkdirat.c: Likewise.
33233
33234 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33235
33236         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
33237         <sys/uio.h> (for writev).
33238         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
33239         and <sys/param.h> (for MIN).
33240
33241 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
33242
33243         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
33244         REQUESTED_TIME.  Properly set the remaining time and return EINTR
33245         if interrupted.
33246
33247 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33248
33249         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
33250         Depend on against $(link-rpcuserlibs).
33251
33252 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33253
33254         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
33255         (__libc_stack_end): Do not use attribute_relro.
33256         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
33257         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
33258         to libthread-provided value.
33259         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
33260         attribute_relro.
33261
33262 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33263
33264         [BZ #3748]
33265         * bits/libc-lock.h (__libc_once_get): New macro.
33266         * sysdeps/mach/bits/libc-lock.h: Likewise.
33267         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
33268         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
33269         instead of using implementation details.
33270
33271         * libio/fileops.c: Unconditionally include <kernel-features.h>.
33272         * libio/freopen.c: Likewise.
33273         * libio/freopen64.c: Likewise.
33274         * misc/syslog.c: Likewise.
33275         * nscd/connections.c: Likewise.
33276         * nscd/netgroupcache.c: Likewise.
33277         * sysdeps/posix/getcwd.c: Likewise.
33278
33279 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33280
33281         * math/w_ilogbf.c: Add #include <limits.h>.
33282
33283 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33284
33285         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
33286         path instead of returning without unlocking.
33287
33288         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
33289         immediate-write ioctls.
33290         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
33291
33292 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33293
33294         * sysdeps/mach/hurd/i386/init-first.c (init): Use
33295         __builtin_frame_address instead of making assumptions about the
33296         location of the return address relative to DATA.  Force early load of
33297         the return address.
33298         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
33299         __builtin_frame_address.
33300
33301         dup3 for GNU Hurd.
33302         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
33303         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
33304         implement dup3 and do some further code clean-ups.
33305         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
33306         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
33307
33308 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33309
33310         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
33311
33312         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
33313         HURD_CRITICAL_END around holding _hurd_dtable_lock.
33314         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
33315         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
33316         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
33317         d->port.lock.
33318
33319         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
33320         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
33321         when handler == SIG_ERR, not when handler != SIG_ERR.
33322
33323 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33324
33325         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
33326         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
33327         definitions.
33328
33329         accept4 for GNU Hurd.
33330         * include/sys/socket.h (__libc_accept4): New prototype.
33331         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
33332         to implement __libc_accept4.
33333         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
33334         __libc_accept4.
33335         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
33336
33337         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
33338         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
33339         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
33340         signal-defines.sym.
33341
33342 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33343
33344         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
33345
33346 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
33347
33348         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
33349         assertion on O_CLOEXEC flag.
33350         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
33351         * hurd/intern-fd.c: Likewise.
33352         * hurd/port2fd.c: Likewise.
33353
33354 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33355
33356         [BZ #3906]
33357         * bits/in.h (IPV6_PKTINFO): Define new macro.
33358         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
33359
33360 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33361
33362         [BZ #13954]
33363         [BZ #13955]
33364         [BZ #13956]
33365         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
33366         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
33367         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
33368         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
33369         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
33370         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
33371         * math/libm-test.inc (logb_test) : Additional logb tests.
33372
33373 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
33374             Andreas Jaeger  <aj@suse.de>
33375
33376         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
33377         * configure: Regenerated.
33378         * config.h.in (LINK_OBSOLETE_RPC): New macro.
33379         * config.make.in (link-obsolete-rpc): New substituted variable.
33380         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33381         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33382         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33383         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33384         so that libc.a contains the symbols.
33385         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33386         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33387         * sunrpc/auth_none.c: Likewise.
33388         * sunrpc/auth_unix.c: Likewise.
33389         * sunrpc/authdes_prot.c: Likewise.
33390         * sunrpc/authuxprot.c: Likewise.
33391         * sunrpc/clnt_gen.c: Likewise.
33392         * sunrpc/clnt_perr.c: Likewise.
33393         * sunrpc/clnt_raw.c: Likewise.
33394         * sunrpc/clnt_simp.c: Likewise.
33395         * sunrpc/clnt_tcp.c: Likewise.
33396         * sunrpc/clnt_udp.c: Likewise.
33397         * sunrpc/clnt_unix.c: Likewise.
33398         * sunrpc/des_crypt.c: Likewise.
33399         * sunrpc/des_soft.c: Likewise.
33400         * sunrpc/get_myaddr.c: Likewise.
33401         * sunrpc/key_call.c: Likewise.
33402         * sunrpc/key_prot.c: Likewise.
33403         * sunrpc/netname.c: Likewise.
33404         * sunrpc/pm_getmaps.c: Likewise.
33405         * sunrpc/pm_getport.c: Likewise.
33406         * sunrpc/pmap_clnt.c: Likewise.
33407         * sunrpc/pmap_prot.c: Likewise.
33408         * sunrpc/pmap_prot2.c: Likewise.
33409         * sunrpc/pmap_rmt.c: Likewise.
33410         * sunrpc/publickey.c: Likewise.
33411         * sunrpc/rpc_cmsg.c: Likewise.
33412         * sunrpc/rpc_common.c: Likewise.
33413         * sunrpc/rpc_dtable.c: Likewise.
33414         * sunrpc/rpc_prot.c: Likewise.
33415         * sunrpc/rpc_thread.c: Likewise.
33416         * sunrpc/rtime.c: Likewise.
33417         * sunrpc/svc.c: Likewise.
33418         * sunrpc/svc_auth.c: Likewise.
33419         * sunrpc/svc_raw.c: Likewise.
33420         * sunrpc/svc_run.c: Likewise.
33421         * sunrpc/svc_tcp.c: Likewise.
33422         * sunrpc/svc_udp.c: Likewise.
33423         * sunrpc/svc_unix.c: Likewise.
33424         * sunrpc/svcauth_des.c: Likewise.
33425         * sunrpc/xcrypt.c: Likewise.
33426         * sunrpc/xdr.c: Likewise.
33427         * sunrpc/xdr_array.c: Likewise.
33428         * sunrpc/xdr_float.c: Likewise.
33429         * sunrpc/xdr_intXX_t.c: Likewise.
33430         * sunrpc/xdr_mem.c: Likewise.
33431         * sunrpc/xdr_rec.c: Likewise.
33432         * sunrpc/xdr_ref.c: Likewise.
33433         * sunrpc/xdr_sizeof.c: Likewise.
33434         * sunrpc/xdr_stdio.c: Likewise.
33435
33436 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33437
33438         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33439         change.  Update copyright years.
33440
33441 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33442
33443         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33444
33445 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33446             Joseph Myers  <joseph@codesourcery.com>
33447             Paul Pluzhnikov  <ppluzhnikov@google.com>
33448
33449         [BZ #14012]
33450         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33451         requiring rpcgen.
33452         [cross-compiling] (extra-libs): Likewise.
33453         [cross-compiling] (extra-libs-others): Likewise.
33454         [cross-compiling] (librpcsvc-routines): Likewise.
33455         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33456         [cross-compiling] (omit-deps): Likewise.
33457         (sunrpc-CPPFLAGS): New variable.
33458         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33459         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33460         (cross-rpcgen-objs): New variable.
33461         (extra-objs): Append $(cross-rpcgen-objs).
33462         ($(cross-rpcgen-objs)): New rule.
33463         ($(objpfx)cross-rpcgen): Likewise.
33464         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33465         comment.
33466         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33467         ($(objpfx)x%.stmp): Likewise.
33468         * sunrpc/proto.h [IS_IN_build] (_): Define.
33469         [IS_IN_build] (_libc_intl_domainname): Likewise.
33470
33471 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33472
33473         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33474         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33475         and R_X86_64_TPOFF64.
33476
33477 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33478
33479         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33480         sysdeps/unix/sysv/syscalls.list.
33481         (stime): Likewise.
33482         (utime): Likewise.
33483         * sysdeps/unix/sysv/syscalls.list: Remove file.
33484
33485 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33486
33487         [BZ #3440]
33488         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33489         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33490         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33491         (__LC_IDENTIFICATION): Make these macros useful in #if
33492         expressions, as required by C99.
33493
33494 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33495
33496         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33497         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33498         after this.
33499
33500 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33501
33502         * stdlib/longlong.h: Updated from GCC.
33503
33504 2012-05-09  Andreas Jaeger  <aj@suse.de>
33505
33506         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33507         default is first entry.
33508         (run_mode): Set type.
33509         (main): Remove informal message about syslog.
33510         (options): Fix typo.
33511
33512         [BZ #14053]
33513         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33514         to asm.
33515         (lrint): Likewise.
33516         (llrintf): Likewise.
33517         (llrint): Likewise.
33518         (rint): Likewise.
33519         (rintf): Likewise.
33520         (nearbyint): Likewise.
33521         (nearbyintf): Likewise.
33522
33523 2012-05-09  Andreas Jaeger  <aj@suse.de>
33524             Pedro Alves  <palves@redhat.com>
33525
33526         * nscd/nscd.c (run_mode): Use enum.
33527         (main): Cleanup coding style issue.
33528
33529 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33530             Andreas Jaeger  <aj@suse.de>
33531
33532         * nscd/nscd.c (go_background): Replaced with...
33533         (run_mode): ... this.
33534         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33535         (options): Add -F --foreground.
33536         (main): Implement it.
33537         (parse_opt): Parse it.
33538
33539 2012-05-09  Andreas Jaeger  <aj@suse.de>
33540
33541         [BZ #14083]
33542         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33543         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33544         -Wconversion warning.
33545         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33546         Likewise.
33547
33548 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33549
33550         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33551         == 0.
33552         (LC_ALL): Use macro-int-constant.
33553         (LC_COLLATE): Likewise.
33554         (LC_CTYPE): Likewise.
33555         (LC_MESSAGES): Likewise.
33556         (LC_MONETARY): Likewise.
33557         (LC_NUMERIC): Likewise.
33558         (LC_TIME): Likewise.
33559         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33560         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33561         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33562         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33563         Specify type.
33564         [C99-based standards] (float_t): Expect type.
33565         [C99-based standards] (double_t): Expect type.
33566         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33567         type.
33568         [C99-based standards] (HUGE_VALL): Likewise.
33569         [C99-based standards] (INFINITY): Likewise.
33570         [C99-based standards] (NAN): Likewise.
33571         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33572         [C99-based standards] (FP_NAN): Likewise.
33573         [C99-based standards] (FP_NORMAL): Likewise.
33574         [C99-based standards] (FP_SUBNORMAL): Likewise.
33575         [C99-based standards] (FP_ZERO): Likewise.
33576         [C99-based standards] (FP_FAST_FMA): Use
33577         optional-macro-int-constant.  Specify type.  Require == 1.
33578         [C99-based standards] (FP_FAST_FMAF): Likewise.
33579         [C99-based standards] (FP_FAST_FMAL): Likewise.
33580         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33581         [C99-based standards] (FP_ILOGBNAN): Likewise.
33582         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33583         Specify type.
33584         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33585         [C99-based standards] (math_errhandling): Specify type.
33586         [ISO99 || ISO11] (signgam): Do not allow.
33587         [non-C99-based standards] (copysignf): Do not allow.
33588         [non-C99-based standards] (exp2f): Likewise.
33589         [non-C99-based standards] (log2f): Likewise.
33590         [non-C99-based standards] (modff): Allow.
33591         [non-C99-based standards] (erff): Do not allow.
33592         [non-C99-based standards] (erfcf): Likewise.
33593         [non-C99-based standards] (gammaf): Likewise.
33594         [non-C99-based standards] (hypotf): Likewise.
33595         [non-C99-based standards] (j0f): Likewise.
33596         [non-C99-based standards] (j1f): Likewise.
33597         [non-C99-based standards] (jnf): Likewise.
33598         [non-C99-based standards] (lgammaf): Likewise.
33599         [non-C99-based standards] (tgammaf): Likewise.
33600         [non-C99-based standards] (y0f): Likewise.
33601         [non-C99-based standards] (y1f): Likewise.
33602         [non-C99-based standards] (ynf): Likewise.
33603         [non-C99-based standards] (isnanf): Likewise.
33604         [non-C99-based standards] (acoshf): Likewise.
33605         [non-C99-based standards] (asinhf): Likewise.
33606         [non-C99-based standards] (atanhf): Likewise.
33607         [non-C99-based standards] (cbrtf): Likewise.
33608         [non-C99-based standards] (expm1f): Likewise.
33609         [non-C99-based standards] (ilogbf): Likewise.
33610         [non-C99-based standards] (log1pf): Likewise.
33611         [non-C99-based standards] (logbf): Likewise.
33612         [non-C99-based standards] (nextafterf): Likewise.
33613         [non-C99-based standards] (remainderf): Likewise.
33614         [non-C99-based standards] (rintf): Likewise.
33615         [non-C99-based standards] (scalbf): Likewise.
33616         [non-C99-based standards] (copysignl): Likewise.
33617         [non-C99-based standards] (exp2l): Likewise.
33618         [non-C99-based standards] (log2l): Likewise.
33619         [non-C99-based standards] (modfl): Allow.
33620         [non-C99-based standards] (erfl): Do not allow.
33621         [non-C99-based standards] (erfcl): Likewise.
33622         [non-C99-based standards] (gammal): Likewise.
33623         [non-C99-based standards] (hypotl): Likewise.
33624         [non-C99-based standards] (j0l): Likewise.
33625         [non-C99-based standards] (j1l): Likewise.
33626         [non-C99-based standards] (jnl): Likewise.
33627         [non-C99-based standards] (lgammal): Likewise.
33628         [non-C99-based standards] (tgammal): Likewise.
33629         [non-C99-based standards] (y0l): Likewise.
33630         [non-C99-based standards] (y1l): Likewise.
33631         [non-C99-based standards] (ynl): Likewise.
33632         [non-C99-based standards] (isnanl): Likewise.
33633         [non-C99-based standards] (acoshl): Likewise.
33634         [non-C99-based standards] (asinhl): Likewise.
33635         [non-C99-based standards] (atanhl): Likewise.
33636         [non-C99-based standards] (cbrtl): Likewise.
33637         [non-C99-based standards] (expm1l): Likewise.
33638         [non-C99-based standards] (ilogbl): Likewise.
33639         [non-C99-based standards] (log1pl): Likewise.
33640         [non-C99-based standards] (logbl): Likewise.
33641         [non-C99-based standards] (nextafterl): Likewise.
33642         [non-C99-based standards] (remainderl): Likewise.
33643         [non-C99-based standards] (rintl): Likewise.
33644         [non-C99-based standards] (scalbl): Likewise.
33645         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33646         [non-C99-based standards] (FP_*): Do not allow.
33647         [C99-based standards] (FP_*): Change to
33648         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33649         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33650         allow.
33651         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33652         (SIG_ERR): Likewise.
33653         [X/Open-based standards] (SIG_HOLD): Likewise.
33654         (SIG_IGN): Likewise.
33655         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33656         positive value.
33657         (SIGFPE): Likewise.
33658         (SIGILL): Likewise.
33659         (SIGINT): Likewise.
33660         (SIGSEGV): Likewise.
33661         (SIGTER): Likewise.
33662         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33663         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33664         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33665         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33666         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33667         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33668         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33669         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33670         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33671         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33672         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33673         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33674         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33675         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33676         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33677         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33678         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33679         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33680         [X/Open-based standards] (SIGTRAP): Likewise.
33681         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33682         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33683         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33684         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33685         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33686         allow.
33687
33688 2012-05-08  Ian Wienand  <ianw@vmware.com>
33689
33690         [BZ #14080]
33691         * time/tzset.c (__tzset_parse_tz): Update default rules for
33692         daylight time changes in the Energy Policy Act of 2005.
33693
33694 2012-05-09  Andreas Jaeger  <aj@suse.de>
33695
33696         [BZ #13983]
33697         * elf/ldconfig.c (parse_conf): Change string to make clear that
33698         ldconfig only issued a warning if ld.so.conf does not exist.
33699
33700 2012-05-08  David S. Miller  <davem@davemloft.net>
33701
33702         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33703         movxtod instead of popping the value on the stack.
33704
33705         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33706
33707 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
33708
33709         * config.h.in: Add HAVE_ARM_PCS_VFP.
33710
33711 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
33712
33713         [BZ #13979]
33714         * include/features.h: Warn if user requests __FORTIFY_SOURCE
33715         checking but the checks are disabled for any reason.
33716
33717 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33718
33719         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
33720         and ELF64_R_TYPE with ELFW(R_TYPE).
33721
33722 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
33723
33724         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
33725         (ulimit): Likewise.
33726
33727         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
33728         (settimeofday): Likewise.
33729
33730 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
33731
33732         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
33733         a struct th_u2 inside the union, and move tu_block/tu_code into
33734         a new th_u3 union of tu_block/tu_code inside of that.  Move
33735         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
33736         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
33737         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
33738         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
33739         (th_stuff): Change to th_u1.tu_stuff.
33740         (th_data): Define.
33741         (th_msg): Change to th_u1.th_u2.tu_data.
33742
33743 2012-05-07  David S. Miller  <davem@davemloft.net>
33744
33745         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33746
33747         [BZ #14074]
33748         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
33749         (SETUP_PIC_REG): Use it.
33750         (SETUP_PIC_REG_LEAF): Use it.
33751
33752 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
33753
33754         [BZ #13885]
33755         [BZ #13923]
33756         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33757         USE_AS_EXPM1L.
33758         (EXPL_FINITE): Likewise.
33759         (FLDLOG): Likewise.
33760         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33761         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33762         e_expl.S.
33763         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33764         USE_AS_EXPM1L.
33765         (EXPL_FINITE): Likewise.
33766         (FLDLOG): Likewise.
33767         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33768         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33769         e_expl.S.
33770         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
33771         test of -max_value argument for long double.
33772         * sysdeps/i386/fpu/libm-test-ulps: Update.
33773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33774
33775 2012-05-06  David S. Miller  <davem@davemloft.net>
33776
33777         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
33778         quad soft-float symbols whose references which are compiler
33779         generated.
33780         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33781
33782 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
33783
33784         [BZ #13884]
33785         [BZ #13914]
33786         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33787         USE_AS_EXP10L.
33788         (EXPL_FINITE): Likewise.
33789         (FLDLOG): Likewise.
33790         (c0): Likewise.
33791         (c1): Likewise.
33792         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33793         Adjust comments for base varying.
33794         (__expl_finite): Change alias to EXPL_FINITE.
33795         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
33796         e_expl.S.
33797         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
33798         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
33799         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
33800         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
33801         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33802         USE_AS_EXP10L.
33803         (EXPL_FINITE): Likewise.
33804         (FLDLOG): Likewise.
33805         (c0): Likewise.
33806         (c1): Likewise.
33807         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33808         Adjust comments for base varying.
33809         (__expl_finite): Change alias to EXPL_FINITE.
33810         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
33811         tests for bugs.
33812         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33813
33814         [BZ #14064]
33815         * math/libm-test.inc (check_float_internal): Correct ulp
33816         calculation for subnormal expected results.
33817
33818 2012-05-06  Andreas Jaeger  <aj@suse.de>
33819
33820         * Makeconfig (+math-flags): New, set to -frounding-math.
33821         (+cflags): Add +math-flags so that all of glibc gets compiled with
33822         it.
33823
33824         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
33825
33826 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
33827
33828         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
33829         Disable one test.
33830
33831         [BZ #13787]
33832         [BZ #13922]
33833         [BZ #14036]
33834         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
33835         (__ieee754_expl): Allow for and saturate large arguments.
33836         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
33837         (u_threshold): Likewise.
33838         (__exp): Call __ieee754_exp before checking for overflow and
33839         underflow.
33840         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
33841         (u_threshold): Likewise.
33842         (__expf): Call __ieee754_expf before checking for overflow and
33843         underflow.
33844         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
33845         (u_threshold): Likewise.
33846         (__expl): Call __ieee754_expl before checking for overflow and
33847         underflow.
33848         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
33849         (__ieee754_expl): Allow for and saturate large arguments.
33850         * math/libm-test.inc (exp_test): Add another test.  Do not allow
33851         missing overflow exception on overflow.
33852         (expm1_test): Do not allow missing overflow exception on overflow.
33853
33854         * sysdeps/i386/fpu/e_expl.c: Move to ...
33855         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
33856         rather than using inline asm.
33857         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
33858         * sysdeps/x86_64/fpu/e_expl.S: Copy from
33859         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
33860
33861         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
33862         (nice): Likewise.
33863         (poll): Likewise.
33864         (signal): Likewise.
33865         (time): Likewise.
33866         (times): Likewise.
33867
33868 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33869
33870         * sysdeps/unix/syscalls.list (adjtime): Add entry from
33871         sysdeps/unix/common/syscalls.list.
33872         (fchmod): Likewise.
33873         (fchown): Likewise.
33874         (ftruncate): Likewise.
33875         (getrusage): Likewise.
33876         (gettimeofday): Likewise.
33877         (setpgid): Likewise.
33878         (setregid): Likewise.
33879         (setreuid): Likewise.
33880         (sigaction): Likewise.
33881         (truncate): Likewise.
33882         (vhangup): Likewise.
33883         * sysdeps/unix/common/syscalls.list: Remove file.
33884         * sysdeps/unix/bsd/Implies: Don't include unix/common.
33885         * sysdeps/unix/sysv/linux/Implies: Likewise.
33886
33887 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
33888
33889         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
33890         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
33891         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
33892         Moved to ...
33893         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33894         Here.
33895         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
33896         to ...
33897         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
33898         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
33899         to ...
33900         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
33901         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
33902         to ...
33903         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
33904         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
33905         to ...
33906         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
33907         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
33908         to ...
33909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
33910         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
33911         to ...
33912         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
33913         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
33914         to ...
33915         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
33916         Here.
33917         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
33918         to ...
33919         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
33920         Here.
33921         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
33922         to ...
33923         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
33924         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
33925         Moved to ...
33926         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
33927         Here.
33928         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
33929         to ...
33930         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
33931
33932 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33933
33934         * sysdeps/unix/common/bits/dirent.h: Remove file.
33935         * sysdeps/unix/common/bits/fcntl.h: Likewise.
33936
33937         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
33938         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
33939         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
33940         * sysdeps/unix/bsd/isatty.c: Likewise.
33941         * sysdeps/unix/bsd/tcdrain.c: Likewise.
33942         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
33943         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
33944
33945 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33946
33947         [BZ #13563]
33948         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
33949         long double comparison inaccuracies.
33950         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
33951         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33952
33953 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
33954
33955         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
33956         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
33957
33958 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33959
33960         [BZ #14049]
33961         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
33962         nonzero digits before rounding a hex value.
33963         * stdlib/tst-strtod.c (tests): Add another test.
33964
33965 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33966
33967         * sysdeps/s390/fpu/libm-test-ulps: Update.
33968
33969 2012-05-03  Andreas Jaeger  <aj@suse.de>
33970
33971         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
33972         does not get optimized out.
33973         (malloc_opt_barrier): New.
33974
33975 2012-05-03  Andreas Jaeger  <aj@suse.de>
33976             Roland McGrath  <roland@hack.frob.com>
33977
33978         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
33979         intermediate file deletion.
33980         (generated): Add .symlist files.
33981
33982 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
33983
33984         [BZ #13775]
33985         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
33986         Redirect under this condition.
33987         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33988         [__USE_GNU] (__dprintf_chk): Not under this condition.
33989         [__USE_GNU] (__vdprintf_chk): Likewise.
33990         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
33991         under this condition.
33992         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33993         [__USE_XOPEN2K8] (dprintf): Define under this condition.
33994         [__USE_XOPEN2K8] (vdprintf): Likewise.
33995         [__USE_GNU] (__dprintf_chk): Not under this condition.
33996         [__USE_GNU] (__vdprintf_chk): Likewise.
33997         [__USE_GNU] (dprintf): Likewise.
33998         [__USE_GNU] (vdprintf): Likewise.
33999
34000 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34001
34002         * elf/Makefile (common-generated): Set this instead of generated for
34003         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34004         $(all-built-dso)-derived lists.
34005
34006 2012-05-03  Andreas Jaeger  <aj@suse.de>
34007
34008         * sysdeps/i386/fpu/libm-test-ulps: Update.
34009
34010         * FAQ: Removed.
34011         * FAQ.in: Likewise.
34012         * scripts/gen-FAQ.pl: Likewise.
34013         * manual/install.texi (Installation): Point to online location of
34014         FAQ.
34015         * Makefile (files-for-dist): Remove FAQ.
34016         (FAQ): Remove.
34017
34018 2012-05-02  Allan McRae  <allan@archlinux.org>
34019
34020         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
34021         (LDFLAGS-reldepmod5.so): Likewise.
34022         (LDFLAGS-reldep6mod1.so): Likewise.
34023         (LDFLAGS-reldep6mod4.so): Likewise.
34024         (LDFLAGS-reldep8mod3.so): Likewise.
34025         (LDFLAGS-unload4mod1.so): Likewise.
34026         (LDFLAGS-unload4mod2.so): Likewise.
34027         (LDFLAGS-tst-initorder): Likewise.
34028         (LDFLAGS-tst-initordera2.so): Likewise.
34029         (LDFLAGS-tst-initordera3.so): Likewise.
34030         (LDFLAGS-tst-initordera4.so): Likewise.
34031         (LDFLAGS-tst-initorderb2.so): Likewise.
34032         (LDFLAGS-noload): Likewise.
34033         (LDFLAGS-next): Likewise.
34034         (LDFLAGS-order2mod1.so): Likewise.
34035         (LDFLAGS-order2mod2.so): Likewise.
34036         (LDFLAGS-tst-initorder2): Likewise.
34037         (LDFLAGS-tst-initorder2a.so): Likewise.
34038         (LDFLAGS-tst-initorder2b.so): Likewise.
34039         (LDFLAGS-tst-initorder2c.so): Likewise.
34040         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
34041
34042 2012-05-02  David S. Miller  <davem@davemloft.net>
34043
34044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34045
34046 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
34047
34048         [BZ #14055]
34049         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
34050
34051 2012-05-02  Andreas Jaeger  <aj@suse.de>
34052
34053         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
34054         since we manipulate rounding mode.
34055         (CPPFLAGS-test-idouble.c): Likewise.
34056         (CPPFLAGS-test-ifloat.c): Likewise.
34057         (CFLAGS-test-ldouble.c): Likewise.
34058         (CFLAGS-test-double.c): Likewise.
34059         (CFLAGS-test-float.c): Likewise.
34060         (CFLAGS-test-misc.c): Likewise.
34061         (CFLAGS-test-test-fenv.c): Likewise.
34062
34063 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34064
34065         [BZ #2550]
34066         [BZ #2570]
34067         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
34068         comparisons to determine direction to adjust input.
34069
34070 2012-05-01  Roland McGrath  <roland@hack.frob.com>
34071
34072         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
34073         output to the target.
34074
34075         * scripts/localplt.awk: New file.
34076         * elf/Makefile ($(objpfx)check-localplt): Target removed.
34077         (check-localplt-CFLAGS): Variable removed.
34078         ($(all-built-dso:=.jmprel)): New static pattern rule.
34079         (generated): Add those targets.
34080         (localplt-built-dso): New variable.
34081         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
34082
34083         * elf/check-localplt.c: File removed.
34084
34085         * scripts/check-execstack.awk: New file.
34086         * elf/Makefile ($(objpfx)check-execstack): Target removed.
34087         (check-execstack-CFLAGS): Variable removed.
34088         ($(objpfx)check-execstack.h): Target removed.
34089         ($(objpfx)execstack-default): New target.
34090         (generated): Add that instead of check-execstack.h.
34091         ($(all-built-dso:=.phdr)): New static pattern rule.
34092         (generated): Add those targets.
34093         * elf/check-execstack.c: File removed.
34094
34095         * scripts/check-textrel.awk: New file.
34096         * elf/Makefile ($(objpfx)check-textrel): Target removed.
34097         (check-textrel-CFLAGS): Variable removed.
34098         (all-built-dso): Use := to define.o
34099         ($(all-built-dso:=.dyn)): New static pattern rule.
34100         (generated): Add those targets.
34101         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
34102         * config.make.in (READELF): New substituted variable.
34103         * elf/check-textrel.c: File removed.
34104
34105 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34106
34107         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34108         allow.
34109         * conform/data/ctype.h-data [C99-based standards] (isblank):
34110         Expect function.
34111         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
34112         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
34113         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34114         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
34115         Specify type.  Require positive value.
34116         (EILSEQ): Likewise.
34117         (ERANGE): Likewise.
34118         [ISO || POSIX] (EILSEQ): Do not expect.
34119         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
34120         Specify type.  Require positive value.
34121         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
34122         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
34123         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
34124         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
34125         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
34126         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
34127         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
34128         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
34129         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
34130         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
34131         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
34132         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
34133         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
34134         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
34135         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
34136         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
34137         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
34138         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
34139         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
34140         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
34141         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
34142         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
34143         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
34144         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
34145         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
34146         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
34147         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
34148         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
34149         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
34150         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
34151         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
34152         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
34153         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
34154         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
34155         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
34156         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
34157         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
34158         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
34159         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
34160         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
34161         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
34162         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
34163         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
34164         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
34165         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
34166         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
34167         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
34168         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
34169         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
34170         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
34171         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
34172         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
34173         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
34174         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
34175         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
34176         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
34177         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
34178         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
34179         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
34180         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
34181         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
34182         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
34183         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
34184         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
34185         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
34186         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
34187         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
34188         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
34189         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
34190         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
34191         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
34192         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
34193         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
34194         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
34195         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
34196         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
34197         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
34198         Require >= 2.
34199         (FLT_ROUNDS): Expect as macro, not constant.
34200         (FLT_MANT_DIG): Use macro-int-constant.
34201         (DBL_MANT_DIG): Likewise.
34202         (LDBL_MANT_DIG): Likewise.
34203         (FLT_DIG): Likewise.
34204         (DBL_DIG): Likewise.
34205         (LDBL_DIG): Likewise.
34206         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
34207         (DBL_MIN_EXP): Likewise.
34208         (LDBL_MIN_EXP): Likewise.
34209         (FLT_MAX_EXP): Use macro-int-constant.
34210         (DBL_MAX_EXP): Likewise.
34211         (LDBL_MAX_EXP): Likewise.
34212         (FLT_MAX_10_EXP): Likewise.
34213         (DBL_MAX_10_EXP): Likewise.
34214         (LDBL_MAX_10_EXP): Likewise.
34215         (FLT_MAX): Use macro-constant.
34216         (DBL_MAX): Likewise.
34217         (LDBL_MAX): Likewise.
34218         (FLT_EPSILON): Use macro-constant.  Give upper bound.
34219         (DBL_EPSILON): Likewise.
34220         (LDBL_EPSILON): Likewise.
34221         (FLT_MIN): Likewise.
34222         (DBL_MIN): Likewise.
34223         (LDBL_MIN): Likewise.
34224         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
34225         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
34226         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
34227         [ISO11] (FLT_HAS_SUBNORM): Likewise.
34228         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
34229         [ISO11] (DBL_DECIMAL_DIG): Likewise.
34230         [ISO11] (FLT_DECIMAL_DIG): Likewise.
34231         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
34232         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
34233         [ISO11] (FLT_TRUE_MIN): Likewise.
34234         [ISO11] (LDBL_TRUE_MIN): Likewise.
34235         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34236         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
34237         (SCHAR_MIN): Use macro-int-constant.  Specify type.
34238         (SCHAR_MAX): Likewise.
34239         (UCHAR_MAX): Likewise.
34240         (CHAR_MIN): Likewise.
34241         (CHAR_MAX): Likewise.
34242         (MB_LEN_MAX): Use macro-int-constant.
34243         (SHRT_MIN): Use macro-int-constant.  Specify type.
34244         (SHRT_MAX): Likewise.
34245         (USHRT_MAX): Likewise.
34246         (INT_MAX): Likewise.
34247         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
34248         bound negative.
34249         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34250         bound with "U".
34251         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34252         bound with "L".
34253         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
34254         bound negative.  Suffix upper bound with "L".
34255         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
34256         bound with "UL".
34257         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
34258         Specify type.
34259         [C99-based standards] (LLONG_MAX): Likewise.
34260         [C99-based standards] (ULLONG_MAX): Likewise.
34261         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
34262         == 0.
34263         [ISO11] (max_align_t): Require type.
34264         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34265
34266         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
34267         from $CFLAGS, without defining away __attribute__ calls.
34268         (checknamespace): Use $CFLAGS_namespace.
34269
34270         * conform/conformtest.pl (@keywords): Only include C99 keywords
34271         for standards based on C99 or C11.
34272
34273         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
34274         Disable tests.
34275         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
34276         UNIX98]: Likewise.
34277
34278         * conform/conformtest.pl: Handle "macro-int-constant" and test for
34279         usability of symbols in #if.
34280
34281         * conform/conformtest.pl: If macro or constant types start
34282         "promoted:", expect the symbol to be of the following type
34283         promoted by the integer promotions.
34284
34285         * conform/conformtest.pl: Parse all "constant" and "macro" lines
34286         in one place.  Also handle "macro-constant".
34287
34288         * conform/conformtest.pl: Only accept expected macro values with
34289         "==".  Parse all "macro" lines in one place.
34290         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
34291
34292         * conform/conformtest.pl: Handle braced types on "constant" lines
34293         instead of handling "typed-constant".
34294         * conform/data/signal.h-data: Use "constant" instead of
34295         "typed-constant".
34296
34297         * conform/conformtest.pl: Handle "optional-" at start of lines in
34298         one place rather than duplicating several cases.  Handle each
34299         format of "macro" line with initial "optional-".
34300
34301         * conform/conformtest.pl: Only accept expected constant or
34302         optional-constant values with "==".  Parse all "constant" lines in
34303         one place.  Parse all "optional-constant" lines in one place.
34304         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
34305         * conform/data/fmtmsg.h-data: Likewise.
34306         * conform/data/netinet/in.h-data: Likewise.
34307         * conform/data/tar.h-data: Likewise.
34308         * conform/data/limits.h-data: Use "==" form on "constant" and
34309         "optional-constant" lines.
34310
34311         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
34312         Use -std=c99 for XOPEN2K.
34313         (@knownproblems): Remove.
34314         (newtoken): Don't check %isknown.
34315
34316         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
34317         Do not expect macro.
34318         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
34319         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
34320         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
34321         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
34322         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
34323         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
34324         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
34325         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
34326         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
34327         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
34328         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
34329         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
34330         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
34331         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
34332         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
34333         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
34334         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
34335         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
34336         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
34337         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
34338         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
34339         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
34340         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
34341         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
34342         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
34343         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
34344         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
34345         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
34346         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
34347         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
34348         [XPG3] (acosh): Likewise.
34349         [XPG3] (asinh): Likewise.
34350         [XPG3] (atanh): Likewise.
34351         [XPG3] (cbrt): Likewise.
34352         [XPG3] (expm1): Likewise.
34353         [XPG3] (ilogb): Likewise.
34354         [XPG3] (log1p): Likewise.
34355         [XPG3] (logb): Likewise.
34356         [XPG3] (nextafter): Likewise.
34357         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
34358         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
34359         [XPG3] (remainder): Likewise.
34360         [XPG3] (rint): Likewise.
34361         [XPG3 || XPG4 || UNIX98] (round): Likewise.
34362         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
34363         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
34364         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
34365         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
34366         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
34367         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
34368         [UNIX98 || XOPEN2K] (scalb): Expect.
34369         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
34370         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
34371         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
34372         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
34373         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
34374         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
34375         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
34376         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
34377         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
34378         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
34379         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
34380         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34381         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34382         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34383         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34384         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34385         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34386         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34387         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34388         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34389         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34390         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34391         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34392         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34393         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34394         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34395         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34396         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34397         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34398         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34399         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34400         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34401         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34402         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34403         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34404         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34405         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34406         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34407         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34408         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34409         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34410         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34411         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34412         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34413         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34414         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34415         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34416         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34417         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34418         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34419         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34420         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34421         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34422         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34423         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34424         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34425         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34426         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34427         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34428         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34429         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34430         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34431         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34432         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34433         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34434         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34435         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34436         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34437         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34438         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34439         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34440         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34441         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34442         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34443         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34444         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34445         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34446         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34447         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34448         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34449         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34450         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34451         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34452         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34453         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34454         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34455         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34456         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34457         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34458         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34459         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34460         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34461         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34462         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34463         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34464         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34465         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34466         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34467         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34468         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34469         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34470         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34471         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34472         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34473         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34474         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34475         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34476         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34477         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34478         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34479         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34480         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34481         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34482         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34483         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34484         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34485         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34486         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34487         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34488         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34489         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34490         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34491         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34492         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34493         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34494         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34495         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34496         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34497         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34498         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34499         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34500         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34501         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34502         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34503         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34504         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34505         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34506
34507         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34508         _XOPEN_SOURCE_EXTENDED for XPG4.
34509
34510         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34511
34512         * Makeconfig (localtime): Remove variable.
34513         (inst_localtime-file): Likewise.
34514
34515 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34516
34517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34518         Update.
34519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34520         Update.
34521         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34522         Update.
34523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34524         Update.
34525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34526         Update.
34527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34528         Update.
34529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34530         Update.
34531         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34532         Update.
34533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34534         Update.
34535
34536 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34537
34538         [BZ #2550]
34539         [BZ #2570]
34540         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34541         comparisons to determine direction to adjust input.
34542         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34543         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34544         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34545         Likewise.
34546         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34547         Likewise.
34548         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34549         Likewise.
34550         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34551         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34552         Likewise.
34553         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34554         Likewise.
34555         * math/libm-test.inc (nexttoward_test): Add more tests.
34556
34557 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34558
34559         [BZ #14040]
34560         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34561         in version GLIBC_2.1, not GLIBC_2.0.
34562         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34563         Likewise.
34564
34565 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34566
34567         [BZ #13942]
34568         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34569         (1 - x) * (1 + x).
34570         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34571         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34572         * math/libm-test.inc (acos_test): Add more tests.
34573         (asin_test): Likewise.
34574         * sysdeps/i386/fpu/libm-test-ulps: Update.
34575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34576
34577         [BZ #14034]
34578         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34579         of square root.
34580         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34581         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34582         * math/libm-test.inc (acos_test_tonearest): New function.
34583         (acos_test_towardzero): Likewise.
34584         (acos_test_downward): Likewise.
34585         (acos_test_upward): Likewise.
34586         (asin_test_tonearest): Likewise.
34587         (asin_test_towardzero): Likewise.
34588         (asin_test_downward): Likewise.
34589         (asin_test_upward): Likewise.
34590         (main): Call the new functions.
34591         * sysdeps/i386/fpu/libm-test-ulps: Update.
34592         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34593
34594         [BZ #13884]
34595         [BZ #13924]
34596         * math/e_exp10.c: Include <float.h>.
34597         (__ieee754_exp10): Handle underflow here rather than multiplying
34598         large negative argument by M_LN10.
34599         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34600         of __ieee754_expf.
34601         * math/e_exp10l.c: Include <float.h>.
34602         (__ieee754_exp10l): Handle underflow here rather than multiplying
34603         large negative argument by M_LN10l.
34604         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34605         spurious overflow exception on underflow.
34606
34607 2012-04-29  Marek Polacek  <polacek@redhat.com>
34608
34609         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34610         (__fortify_function): New macro.
34611         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34612         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34613         __extern_always_inline.
34614         * libio/bits/stdio2.h: Likewise.
34615         * libio/bits/stdio.h: Likewise.
34616         * string/string.h: Likewise.
34617         * string/bits/string3.h: Likewise.
34618         * include/stdio.h: Likewise.
34619         * stdlib/bits/stdlib.h: Likewise.
34620         * stdlib/stdlib.h: Likewise.
34621         * rt/bits/mqueue2.h: Likewise.
34622         * rt/mqueue.h: Likewise.
34623         * posix/bits/unistd.h: Likewise.
34624         * posix/unistd.h: Likewise.
34625         * io/bits/poll2.h: Likewise.
34626         * io/bits/fcntl2.h: Likewise.
34627         * io/fcntl.h: Likewise.
34628         * io/sys/poll.h: Likewise.
34629         * misc/bits/syslog.h: Likewise.
34630         * misc/bits/syslog-ldbl.h: Likewise.
34631         * misc/sys/syslog.h: Likewise.
34632         * socket/bits/socket2.h: Likewise.
34633         * socket/sys/socket.h: Likewise.
34634         * debug/tst-chk1.c: Likewise.
34635         * wcsmbs/bits/wchar2.h: Likewise.
34636         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34637         * wcsmbs/wchar.h: Likewise.
34638
34639 2012-04-29  Andreas Jaeger  <aj@suse.de>
34640
34641         * Makerules (tests): Remove enable-check-abi protection.
34642         (check-abi-warn): Remove.
34643         (check-abi-%): Remove check-abi-warn usage.
34644
34645         * configure.in: Remove check-abi configure option.
34646         * configure: Regenerated.
34647         * config.make.in (enable-check-abi): Remove.
34648
34649 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34650
34651         [BZ #14033]
34652         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34653         double functions to double *_finite functions.
34654
34655         [BZ #13941]
34656         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34657         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34658         LDBL_MIN_EXP.
34659         * stdio-common/Makefile (tests): Add tst-sprintf3.
34660         * stdio-common/tst-sprintf3.c: New file.
34661
34662         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34663         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34664
34665 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34666
34667         * conform/conformtest.pl: Remove duplicate typed-constant
34668         handling.
34669
34670 2012-04-28  David S. Miller  <davem@davemloft.net>
34671
34672         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34673         (check-abi-%): Remove AWK script prerequisite and explicit
34674         abilist directory.
34675         (check-abi): Rewrite to just diff the symlist with the abilist.
34676         (config-tls, config-abi-config): Delete, no longer used.
34677         (update-abi-%): Remove AWK script and explicit abilist directory.
34678         (update-abi): Rewrite to simply compare and conditionally copy the
34679         symlist and the sysdep abilist file.  Remove update-abi-config
34680         checks.
34681         * abilist/ld.abilist: Remove.
34682         * abilist/libBrokenLocale.abilist: Remove.
34683         * abilist/libanl.abilist: Remove.
34684         * abilist/libcrypt.abilist: Remove.
34685         * abilist/libdl.abilist: Remove.
34686         * abilist/librt.abilist: Remove.
34687         * abilist/libthread_db.abilist: Remove.
34688         * abilist/libutil.abilist: Remove.
34689         * scripts/extract-abilist.awk: Remove.
34690         * scripts/merge-abilist.awk: Remove.
34691         * sysdeps/generic/libcidn.abilist: New file.
34692         * sysdeps/generic/libnss_compat.abilist: New file.
34693         * sysdeps/generic/libnss_db.abilist: New file.
34694         * sysdeps/generic/libnss_dns.abilist: New file.
34695         * sysdeps/generic/libnss_files.abilist: New file.
34696         * sysdeps/generic/libnss_hesiod.abilist: New file.
34697         * sysdeps/generic/libnss_nis.abilist: New file.
34698         * sysdeps/generic/libnss_nisplus.abilist: New file.
34699         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34700         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34701         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34702         file.
34703         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34704         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34705         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
34706         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
34707         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
34708         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
34709         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
34710         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
34711         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
34712         file.
34713         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
34714         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
34715         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
34716         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
34717         file.
34718         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
34719         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
34720         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
34721         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
34722         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
34723         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
34724         file.
34725         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
34726         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
34727         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
34728         file.
34729         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
34730         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
34731         New file.
34732         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
34733         New file.
34734         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
34735         New file.
34736         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
34737         New file.
34738         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
34739         New file.
34740         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
34741         New file.
34742         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
34743         New file.
34744         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
34745         New file.
34746         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
34747         New file.
34748         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
34749         New file.
34750         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
34751         New file.
34752         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
34753         New file.
34754         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
34755         New file.
34756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
34757         file.
34758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
34759         New file.
34760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
34761         New file.
34762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
34763         file.
34764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
34765         New file.
34766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
34767         New file.
34768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
34769         file.
34770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
34771         New file.
34772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34773         New file.
34774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
34775         New file.
34776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
34777         New file.
34778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
34779         New file.
34780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
34781         New file.
34782         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
34783         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
34784         file.
34785         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
34786         New file.
34787         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
34788         file.
34789         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
34790         file.
34791         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
34792         file.
34793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
34794         file.
34795         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
34796         file.
34797         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
34798         New file.
34799         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
34800         file.
34801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
34802         file.
34803         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
34804         New file.
34805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
34806         file.
34807         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
34808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
34809         file.
34810         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
34811         New file.
34812         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
34813         file.
34814         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
34815         file.
34816         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
34817         file.
34818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
34819         file.
34820         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
34821         file.
34822         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
34823         New file.
34824         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
34825         file.
34826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
34827         file.
34828         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
34829         New file.
34830         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
34831         file.
34832         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
34833         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
34834         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
34835         file.
34836         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
34837         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
34838         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
34839         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
34840         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
34841         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
34842         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
34843         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
34844         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
34845         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
34846         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
34847         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
34848         file.
34849         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
34850         New file.
34851         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
34852         file.
34853         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
34854         file.
34855         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
34856         file.
34857         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
34858         file.
34859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
34860         file.
34861         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
34862         New file.
34863         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
34864         New file.
34865         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
34866         file.
34867         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
34868         New file.
34869         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
34870         file.
34871         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
34872         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
34873         file.
34874         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
34875         New file.
34876         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
34877         file.
34878         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
34879         file.
34880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
34881         file.
34882         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
34883         file.
34884         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
34885         file.
34886         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
34887         New file.
34888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
34889         New file.
34890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
34891         file.
34892         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
34893         New file.
34894         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
34895         file.
34896
34897 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34898
34899         * conform/conformtest.pl: Fix typo in handling typed-constant from
34900         allow-header.
34901
34902 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34903
34904         * README: Cut down references to pre-2.6 Linux kernels and
34905         Linuxthreads.  Update lists of configurations in libc and ports
34906         and sort alphabetically.  Say "or newer" with Linux kernel version
34907         requirements.
34908
34909         * config.h.in [IS_IN_build]: Allow compiling without optimization.
34910
34911 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
34912
34913         [BZ #887]
34914         * math/libm-test.inc (logb_test_downward): New test to expose
34915         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
34916         rounding mode.
34917
34918 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34919
34920         [BZ #14027]
34921         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
34922         to be done.
34923         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
34924         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
34925
34926 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
34927
34928         * sysdeps/unix/i386/brk.S: Remove file.
34929         * sysdeps/unix/i386/dl-brk.S: Likewise.
34930         * sysdeps/unix/i386/pipe.S: Likewise.
34931         * sysdeps/unix/i386/sigreturn.S: Likewise.
34932         * sysdeps/unix/i386/syscall.S: Likewise.
34933         * sysdeps/unix/i386/vfork.S: Likewise.
34934         * sysdeps/unix/i386/wait.S: Likewise.
34935
34936         * sysdeps/unix/common/tcsendbrk.c: Move to ...
34937         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
34938
34939         * configure.in (arm*-none*): Do not allow without
34940         --enable-hacker-mode.
34941         (netbsd*): Remove case setting base_os.
34942         (386bsd*): Likewise.
34943         (freebsd*): Likewise.
34944         (bsdi*): Likewise.
34945         (osf*): Likewise.
34946         (sunos*): Likewise.
34947         (ultrix*): Likewise.
34948         (newsos*): Likewise.
34949         (dynix*): Likewise.
34950         (*bsd*): Likewise.
34951         (sysv*): Likewise.
34952         (isc*): Likewise.
34953         (esix*): Likewise.
34954         (sco*): Likewise.
34955         (minix*): Likewise.
34956         (irix4*): Likewise.
34957         (irix6*): Likewise.
34958         (solaris[2-9]*): Likewise.
34959         (none): Likewise.
34960         * configure: Regenerated.
34961
34962 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34963
34964         [BZ #11521]
34965         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
34966         overflow or cancellation in calculating denominator.
34967         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
34968         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
34969         down expression to avoid unexpected rounding in newer GCCs.
34970         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
34971
34972 2012-04-26  David S. Miller  <davem@davemloft.net>
34973
34974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
34975         long-double compat symbols.
34976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
34977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
34978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
34979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
34980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
34981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
34982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
34983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
34984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
34985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
34986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
34987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
34988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
34989
34990 2012-04-25  David S. Miller  <davem@davemloft.net>
34991
34992         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
34993         HWCAP_* values only after the memory barriers have been defined.
34994         (atomic_full_barrier): Define.
34995         (atomic_read_barrier): Define.
34996         (atomic_write_barrier): Define.
34997
34998 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34999
35000         * shlib-versions: Add libgcc_s version information.
35001         * sysdeps/generic/libgcc_s.h: Remove.
35002         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35003         libgcc_s.h.
35004         * sysdeps/gnu/unwind-resume.c: Likewise.
35005         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35006
35007 2012-04-25  David S. Miller  <davem@davemloft.net>
35008
35009         * sysdeps/unix/sparc/brk.S: Delete.
35010         * sysdeps/unix/sparc/dl-brk.S: Delete.
35011         * sysdeps/unix/sparc/pipe.S: Delete.
35012         * sysdeps/unix/sparc/sysdep.S: Delete.
35013         * sysdeps/unix/sparc/sysdep.h: Delete.
35014         * sysdeps/unix/sparc/vfork.S: Delete.
35015         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
35016         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
35017         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
35018         (ret_ERRVAL, r0, r1, MOVE): Define.
35019         (JUMPTARGET): Remove.
35020         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
35021         sysdeps/unix/sparc/sysdep.h
35022         (ENTRY, END): Remove.
35023         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
35024
35025 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
35026
35027         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
35028         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
35029         -DIS_IN_build.
35030
35031         * timezone/README: Update upstream location and email address for
35032         tzcode and tzdata.
35033         * timezone/zdump.c: Update from tzcode 2012b.
35034         * timezone/zic.c: Likewise.
35035
35036         * configure.in (libc_cv_as_needed): Remove test.
35037         * configure: Regenerated.
35038         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
35039         conditional definition.
35040         [$(have-as-needed) != yes] (no-as-needed): Likewise.
35041         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
35042         * config.make.in (have-as-needed): Remove variable.
35043
35044 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
35045             Paul Pluzhnikov  <ppluzhnikov@google.com>
35046
35047         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
35048         strings correctly.
35049
35050 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
35051
35052         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
35053         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
35054         * sysdeps/sh/strlen.S: Likewise.
35055
35056 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35057
35058         * sysdeps/unix/fork.S: Remove file.
35059         * sysdeps/unix/i386/fork.S: Likewise.
35060         * sysdeps/unix/sparc/fork.S: Likewise.
35061
35062         * sysdeps/unix/system.c: Remove file.
35063         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
35064
35065         * sysdeps/unix/getegid.S: Remove file.
35066         * sysdeps/unix/geteuid.S: Likewise.
35067
35068 2012-04-24  Roland McGrath  <roland@hack.frob.com>
35069
35070         * scripts/check-localplt.awk: New file.
35071         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
35072         of diff.
35073         * scripts/data/localplt-generic.data: Add a comment.
35074
35075         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
35076         NODE when __dir_mkfile failed.
35077         * sysdeps/mach/hurd/symlinkat.c: Likewise.
35078         Reported by Ludovic Courtès <ludo@gnu.org>.
35079
35080 2012-04-24  Andreas Jaeger  <aj@suse.de>
35081
35082         * Makerules (common-clean): Also remove gen-as-const-headers
35083         files.
35084
35085 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35086
35087         * Makerules (native-compile): Do not change working directory for
35088         build.  Use $(OUTPUT_OPTION) in command.
35089         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
35090
35091 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35092
35093         [BZ #13886]
35094         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
35095         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
35096         * math/libm-test.inc (floor_test): Add more tests.
35097         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
35098
35099 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
35100
35101         * sysdeps/unix/getdents.c: Remove file.
35102         * sysdeps/unix/sysv/getdents.c: Likewise.
35103         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
35104
35105         * sysdeps/unix/syscalls.list (madvise): Add syscall from
35106         sysdeps/unix/mman/syscalls.list.
35107         (mmap): Likewise.
35108         (mprotect): Likewise.
35109         (msync): Likewise.
35110         (munmap): Likewise.
35111         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
35112         * sysdeps/unix/mman/syscalls.list: Remove.
35113         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
35114
35115         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
35116         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
35117         * configure: Regenerated.
35118         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
35119         $(libgcc_s_suffix).
35120         * config.make.in (libgcc_s_suffix): Remove variable.
35121
35122 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
35123
35124         * sysdeps/unix/sysv/gethostname.c: Move to ...
35125         * sysdeps/posix/gethostname.c: ... here.
35126
35127         * sysdeps/unix/execve.S: Remove file.
35128
35129         * sysdeps/unix/_exit.S: Remove file.
35130
35131 2012-04-23  Andreas Jaeger  <aj@suse.de>
35132
35133         [BZ #13739]
35134         * manual/Makefile: Remove make dist support, there's no
35135         need for a stand-alone documentation tar ball.
35136         (TEXI2DVI): Define always, it's not in Makeconfig.
35137         (dist): Removed.
35138         (tar-it): Removed.
35139         (edition): Removed.
35140         (glibc-doc-$(edition).tar): Removed
35141         (%.Z): Removed.
35142         (%.gz): Removed.
35143         (%.uu): Removed.
35144         (ETAGS): Remove, it's in Makeconfig.
35145         (move-if-change): Remove, it's in Makeconfig.
35146
35147 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
35148
35149         [BZ #13970]
35150         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
35151         (strtod, strtof, strtold, strtol, strtoul, strtoq)
35152         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
35153         (strtod_l, strtof_l, strtold_l): Remove __wur.
35154         It is not necessarily an error to ignore strtol's return value.
35155         One can reliably look at the stored endptr to decide whether
35156         the number had valid syntax.
35157
35158 2012-04-21  Andreas Jaeger  <aj@suse.de>
35159
35160         [BZ #13739]
35161         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
35162
35163 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
35164
35165         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
35166         * sysdeps/unix/sysv/Versions: Remove file.
35167
35168 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
35169
35170         [BZ #13927]
35171         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35172
35173 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
35174
35175         [BZ #7064]
35176         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
35177         version from __vm86.
35178
35179 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
35180
35181         * sysdeps/unix/common/lxstat.c: Remove file.
35182         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
35183
35184         * sysdeps/unix/sysv/Makefile: Remove file.
35185
35186         * sysdeps/unix/sysv/direct.h: Remove file.
35187
35188         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
35189         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
35190         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
35191         * sysdeps/unix/sysv/bits/signum.h: Likewise.
35192         * sysdeps/unix/sysv/bits/stat.h: Likewise.
35193         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
35194         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
35195
35196         * sysdeps/unix/sysv/setrlimit.c: Remove file.
35197
35198         * sysdeps/unix/xmknod.c: Remove file.
35199         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
35200
35201         * sysdeps/unix/sysv/settimeofday.c: Remove file.
35202
35203         * sysdeps/unix/sysv/i386/time.S: Remove file.
35204
35205         * sysdeps/unix/fxstat.c: Remove file.
35206         * sysdeps/unix/xstat.c: Likewise.
35207         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
35208
35209         * sysdeps/unix/sysv/sigaction.c: Remove file.
35210
35211         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
35212         (sysdep_headers): Remove variable.
35213         [termio.h not in sysdep_headers] (generated): Likewise.
35214         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
35215         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
35216         * sysdeps/unix/sysv/tcdrain.c: Likewise.
35217         * sysdeps/unix/sysv/tcflow.c: Likewise.
35218         * sysdeps/unix/sysv/tcflush.c: Likewise.
35219         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
35220         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
35221         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
35222         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
35223         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
35224
35225         * sysdeps/unix/siglist.c: Remove file.
35226
35227         * sysdeps/unix/getppid.S: Remove file.
35228
35229         * sysdeps/unix/mkdir.c: Remove file.
35230         * sysdeps/unix/rmdir.c: Likewise.
35231
35232 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
35233
35234         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
35235         ERR_MAX value.
35236         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
35237         errlist-compat value.
35238
35239 2012-04-18  David S. Miller  <davem@davemloft.net>
35240
35241         * sysdeps/generic/memcopy.h (reg_char): Delete.
35242         * debug/strcat_chk.c: Use char, not reg_char.
35243         * debug/strcpy_chk.c: Likewise.
35244         * debug/strncat_chk.c: Likewise.
35245         * debug/strncpy_chk.c: Likewise.
35246         * string/memchr.c: Likewise.
35247         * string/memrchr.c: Likewise.
35248         * string/rawmemchr.c: Likewise.
35249         * string/strcat.c: Likewise.
35250         * string/strchr.c: Likewise.
35251         * string/strchrnul.c: Likewise.
35252         * string/strcmp.c: Likewise.
35253         * string/strcpy.c: Likewise.
35254         * string/strncat.c: Likewise.
35255         * string/strncmp.c: Likewise.
35256         * string/strncpy.c: Likewise.
35257
35258 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35259
35260         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
35261         __builtin_memcopy is called when src and dest ranges are known to not
35262         overlap.
35263
35264 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35265
35266         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
35267         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
35268         fwd_align_merge macro call.
35269         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
35270         bwd_align_merge macro call.
35271         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35272
35273 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
35274
35275         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
35276         bwd_align_merge macros.
35277         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
35278         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
35279         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
35280
35281 2012-04-18  David S. Miller  <davem@davemloft.net>
35282
35283         * sysdeps/sparc/sparc64/memcopy.h: Delete.
35284
35285 2012-04-18  Andreas Jaeger  <aj@suse.de>
35286
35287         [BZ# 6794]
35288         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
35289         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
35290         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35291
35292         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
35293         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
35294         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35295
35296         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
35297         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
35298         Adjust for changed ldbl-128 files.
35299
35300         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
35301         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
35302         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
35303
35304 2012-04-17  David S. Miller  <davem@davemloft.net>
35305
35306         * sysdeps/sparc/sparc32/memcopy.h: Delete.
35307
35308 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
35309
35310         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
35311         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
35312         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
35313         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
35314         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
35315         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
35316
35317 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35318
35319         [BZ #6794]
35320         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
35321         * math/libm-test.inc: Add ilogb errno and exception tests.
35322         * math/w_ilogb.c: New file: ilogb wrapper.
35323         * math/w_ilogbf.c: New file: ilogbf wrapper.
35324         * math/w_ilogbl.c: New file: ilogbl wrapper.
35325         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
35326         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
35327         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
35328         exception being thrown with 0.0 as argument.
35329         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
35330         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
35331         exception being thrown with 0.0 as argument.
35332         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
35333         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35334         exception being thrown with 0.0 as argument.
35335         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
35336         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
35337         exception being thrown with 0.0 as argument.
35338         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
35339         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
35340         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
35341         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
35342         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
35343         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
35344         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
35345         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
35346         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
35347
35348 2012-04-17  Petr Baudis  <pasky@ucw.cz>
35349
35350         * include/sys/uio.h: Change __vector to __iovec to avoid clash
35351         with altivec.
35352
35353 2012-04-16  Marek Polacek  <polacek@redhat.com>
35354
35355         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
35356
35357 2012-04-16  Marek Polacek  <polacek@redhat.com>
35358
35359         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
35360         operands of fdivp instruction.
35361
35362 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35363
35364         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
35365         * elf/tst-auditmod3b.c: Likewise.
35366         * elf/tst-auditmod4b.c: Likewise.
35367         * elf/tst-auditmod5b.c: Likewise.
35368         * elf/tst-auditmod6b.c: Likewise.
35369         * elf/tst-auditmod6c.c: Likewise.
35370         * elf/tst-auditmod7b.c: Likewise.
35371         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
35372         * sysdeps/x86_64/preconfigure.in: Likewise.
35373         * sysdeps/x86_64/preconfigure: Regenerated.
35374
35375 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
35376
35377         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
35378         __ILP32__.
35379
35380 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35381
35382         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35383         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35384
35385 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35386
35387         [BZ #13973]
35388         * locale/iso-639.def: Fix gl language name. Spotted by
35389         Yaron Shahrabani.
35390
35391 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35392
35393         [BZ #2074]
35394         * libio/libio.h (__io_write_fn): Update comment.
35395
35396 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35397
35398         [BZ #2074]
35399         * stdio.texi (Hook Functions): The user provided writer function
35400         is not allowed to return -1.
35401
35402 2012-04-11  David S. Miller  <davem@davemloft.net>
35403
35404         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35405
35406 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35407
35408         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35409         Add a leading slash to rtkaio.
35410
35411 2012-04-11  Jim Meyering  <meyering@redhat.com>
35412
35413         [BZ #11959]
35414         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35415         It is not necessarily an error to ignore fwrite's return
35416         value.  One can reliably use ferror to test for errors after
35417         the fact.
35418
35419 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35420
35421         * bits/types.h (__snseconds_t): New type.
35422         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35423
35424         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35425         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35426         (__SNSECONDS_T_TYPE): Likewise.
35427         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35428         (__SNSECONDS_T_TYPE): Likewise.
35429         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35430         (__SNSECONDS_T_TYPE): Likewise.
35431
35432 2012-04-10  Andreas Jaeger  <aj@suse.de>
35433
35434         [BZ #2636]
35435         * manual/time.texi (Processor Time): Return type of times is
35436         elapsed real time since an arbitrary point in the past.
35437         (CPU Time): Move CLK_TCK from here...
35438         (Processor Time): ...to here.  Correct description.
35439         * manual/conf.texi (Constants for Sysconf): Correct description of
35440         _SC_CLK_TCK.
35441
35442 2012-04-10  David S. Miller  <davem@davemloft.net>
35443
35444         [BZ #13967]
35445         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35446         where the is a gap between DT_REL(A) and DT_JMPREL.
35447
35448 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35449
35450         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35451         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35452         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35453
35454 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35455
35456         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35457         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35458         (dl_main): Handle --inhibit-cache.
35459         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35460         _dl_inhibit_cache.
35461         * elf/dl-load.c (_dl_map_object): Use it.
35462         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35463
35464 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35465
35466         [BZ #13872]
35467         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35468         (__ieee754_powl): Saturate large exponents rather than testing for
35469         overflow of y*log2(x).
35470         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35471         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35472         exceptions.
35473
35474         [BZ #11521]
35475         * math/s_ctan.c: Include <float.h>.
35476         (__ctan): Avoid internal overflow or cancellation in calculating
35477         denominator.
35478         * math/s_ctanf.c: Likewise.
35479         * math/s_ctanl.c: Likewise.
35480         * math/s_ctanh.c: Likewise.
35481         * math/s_ctanhf.c: Likewise.
35482         * math/s_ctanhl.c: Likewise.
35483         * math/libm-test.inc (ctan_test): Add more tests.
35484         (ctanh_test): Likewise.
35485         * sysdeps/i386/fpu/libm-test-ulps: Update.
35486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35487
35488 2012-04-09  Andreas Jaeger  <aj@suse.de>
35489
35490         [BZ #6894]
35491         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35492         is an optional BSD extension.
35493
35494         [BZ #10254]
35495         * manual/stdio.texi (Opening Streams): Document additional fopen
35496         parameters.
35497
35498 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35499
35500         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35501         %eax without telling the compiler.
35502
35503 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35504
35505         [BZ # 13963]
35506         * manual/install.texi: Use sourceware.org.
35507
35508 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35509
35510         [BZ #13873]
35511         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35512         (__ieee754_pow): Generate overflow and underflow using huge*huge
35513         and tiny*tiny rather than just returning constant infinity or zero
35514         for large exponents.
35515         * math/libm-test.inc (pow_test): Require overflow exceptions for
35516         applicable cases of large exponents.
35517
35518         [BZ #706]
35519         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35520         (__ieee754_pow): Use iterative multiplication algorithm only for
35521         integer exponents with absolute value below 1024.  Check for odd
35522         integer exponents when using algorithm for real exponents.
35523         * math/libm-test.inc (pow_test): Add more tests.
35524         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35525
35526 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35527
35528         [BZ #13705]
35529         * math/libm-test.inc (exp_test): Do not allow overflow exception
35530         on underflow test.
35531
35532 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35533
35534         [BZ #13705]
35535         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35536         instead of __kernel_standard_f.
35537
35538 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35539
35540         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35541         * sysdeps/x86_64/memset_chk.S: Likewise.
35542
35543 2012-04-08  Andreas Jaeger  <aj@suse.de>
35544
35545         [BZ #10153]
35546         * manual/startup.texi (Environment Access): Describe return value
35547         for putenv and setenv.
35548
35549         [BZ #6895]
35550         * manual/filesys.texi (Directory Entries): Add description for
35551         DT_LNK.
35552
35553         [BZ #6890]
35554         * manual/filesys.texi (Directory Entries): Clarify that it's file
35555         system not operating system in the description of DT_UNKNOWN.
35556
35557         [BZ #6578]
35558         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35559
35560 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35561
35562         [BZ #6649]
35563         * manual/llio.texi (Opening and Closing Files): Add cross
35564         reference to explain mode argument.
35565
35566 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35567
35568         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35569         * sysdeps/x86_64/memset_chk.S: Likewise.
35570
35571 2012-04-07  David S. Miller  <davem@davemloft.net>
35572
35573         * elf/elf.h (R_SPARC_WDISP10): Define.
35574         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35575         R_SPARC_SIZE32.
35576         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35577         R_SPARC_SIZE64 and R_SPARC_H34.
35578
35579 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35580
35581         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35582         conditions and remove no longer applicable assertion.
35583
35584 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35585
35586         * bits/byteswap.h: Include <features.h>.
35587         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35588         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35589
35590 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35591
35592         * bits/byteswap.h (__bswap_16): Removed.
35593         Include <bits/byteswap-16.h> to get __bswap_16.
35594         * sysdeps/i386/bits/byteswap.h: Likewise.
35595         * sysdeps/s390/bits/byteswap.h: Likewise.
35596         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35597         * bits/byteswap-16.h: New file.
35598         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35599         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35600         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35601         * string/Makefile (headers): Add bits/byteswap-16.h.
35602
35603 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35604
35605         [BZ #13895]
35606         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35607         extra indirection.
35608         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35609         * nss/tst-nss-static.c: New.
35610
35611 2012-04-06  Robert Millan  <rmh@gnu.org>
35612
35613         [BZ #6486]
35614         * manual/llio.texi (File Position Primitive): lseek
35615         refers to WHENCE when it really means OFFSET.
35616
35617 2012-04-06  Andreas Jaeger  <aj@suse.de>
35618
35619         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35620         strncmp declarations.
35621
35622         * abilist/libc.abilist: Add __poll and __ppoll.
35623
35624 2012-04-05  David S. Miller  <davem@davemloft.net>
35625
35626         * scripts/check-local-headers.sh: Accept a host triplet in the
35627         path matched by the exclude regexp.
35628
35629         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35630         definition.
35631         * sysdeps/powerpc/powerpc32/dl-machine.h
35632         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35633         * sysdeps/s390/s390-32/dl-machine.h
35634         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35635         * sysdeps/sparc/sparc32/dl-machine.h
35636         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35637         * sysdeps/sparc/sparc64/dl-machine.h
35638         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35639
35640         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35641         lazy binding.
35642         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35643         undefined symbol errors.
35644
35645         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35646         DT_NEEDED entries.
35647
35648 2012-04-05  Michael Matz  <matz@suse.de>
35649
35650         [BZ #13592]
35651         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35652
35653 2012-04-05  Andreas Jaeger  <aj@suse.de>
35654
35655         [BZ #13908]
35656         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35657         comment.
35658
35659 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35660
35661         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35662         which ROUND is no valid rounding mode.
35663
35664 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35665
35666         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35667         read again.
35668         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35669
35670 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35671
35672         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35673         an exception using FPU order intentionally.
35674
35675 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35676
35677         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35678         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35679         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35680         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35681
35682 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35683
35684         [BZ #12340]
35685         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35686         EINVAL when BUFLEN is too smal.
35687
35688 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35689
35690         [BZ #13553]
35691         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35692         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35693
35694 2012-04-03  Andreas Jaeger  <aj@suse.de>
35695
35696         [BZ #13938]
35697         * manual/setjmp.texi (System V contexts): Fix sentence.
35698
35699         [BZ #13926]
35700         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35701         New macro for this case.
35702         [!__GNUC__] (__bswap_64): New inline function for this case.
35703         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35704         * bits/byteswap.h: Likewise.
35705         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
35706         ull, guard with __GLIBC_HAVE_LONG_LONG.
35707
35708         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
35709         __GLIBC_HAVE_LONG_LONG.
35710
35711         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
35712         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
35713
35714 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
35715
35716         [BZ #13691]
35717         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
35718         inptr and inend, rather than using last_ch.
35719
35720 2012-04-02  David S. Miller  <davem@davemloft.net>
35721
35722         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
35723         * stdio-common/printf-parse.h (read_int): Change return type to
35724         'int', return -1 on INT_MAX overflow.
35725         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
35726         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
35727         overflows INT_MAX.  Check for overflow of in-format-string precision
35728         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
35729         SIZE_MAX not INT_MAX for integer overflow test.
35730         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
35731         skip the construct in the format string but do not record anything.
35732         * stdio-common/bug22.c: Adjust to test both width/prevision
35733         INT_MAX overflow as well as total length INT_MAX overflow.  Check
35734         explicitly for proper errno values.
35735
35736 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
35737
35738         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
35739         CHAR_MAX.
35740         * string/test-strcmp.c [! WIDE]: Likewise.
35741         * time/tst-mktime2.c: Likewise for INT_MAX.
35742         * string/test-string.h: #include <sys/param.h> for MIN.
35743
35744         * csu/init-first.c (__libc_init_first): Call __ctype_init.
35745         * sysdeps/i386/init-first.c (init): Likewise.
35746         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
35747         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
35748         * sysdeps/sh/init-first.c (init): Likewise.
35749
35750 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
35751
35752         * po/ru.po: Update from translation team.
35753         * po/vi.po: Likewise.
35754
35755 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35756
35757         * resolv/nss_dns/dns-host.c: Merge copyright years.
35758
35759 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35760
35761         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
35762         Optimize memcpy with prefetch if
35763         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
35764         src, dst pointers have unequal 16 byte alignments.
35765
35766 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35767
35768         [BZ #13928]
35769         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
35770         from a CNAME entry and return the minimum ttl for the query.
35771         (gaih_getanswer_slice): Likewise.
35772
35773 2012-03-30  Jeff Law  <law@redhat.com>
35774
35775         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
35776         due to long keys.
35777         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
35778         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
35779
35780         * resolv/nss_dns/dns-host.c: Update copyright year.
35781
35782 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
35783
35784         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
35785         requests to save a system call.  Fix check that all bytes are sent.
35786
35787         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
35788         comments for sendmmsg.
35789
35790 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
35791
35792         [BZ #13691]
35793         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
35794         with only 1 character between 0x0041 and 0x01b0.
35795         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
35796         * wcsmbs/tst-mbsnrtowcs.c: New file.
35797
35798 2012-03-29  David S. Miller  <davem@davemloft.net>
35799
35800         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
35801         small copies by hand.
35802
35803 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35804
35805         [BZ #13761]
35806         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
35807         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
35808         group memberships.
35809
35810 2012-03-28  David S. Miller  <davem@davemloft.net>
35811
35812         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
35813         that branches into memcpy.
35814         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
35815         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
35816         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
35817         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
35818         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
35819         bits.
35820         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
35821         implementation too.
35822         * sysdeps/sparc/mempcpy.S: New file.
35823
35824         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
35825         the IFUNC routine in the libc case.
35826         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
35827
35828         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
35829         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
35830         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
35831         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
35832         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
35833         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
35834         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
35835         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
35836
35837         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
35838         loop to 256 bytes instead of 64 bytes and fix test signedness.
35839
35840         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
35841         * sysdeps/sparc/sparc32/Makefile: rather than here...
35842         * sysdeps/sparc/sparc64/Makefile: and here.
35843
35844 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
35845
35846         * malloc/mallocbug.c: Avoid warnings about unused variables.
35847
35848 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
35849
35850         [BZ #13760]
35851         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
35852         in the right place. Discard and retry query if response is
35853         larger than input buffer size.
35854
35855 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
35856
35857         [BZ #369]
35858         [BZ #2678]
35859         [BZ #3866]
35860         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
35861         x for large integer exponent.
35862         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
35863         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
35864         sign of result as needed afterwards.
35865         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
35866         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
35867         result for underflowing pow the same as for overflow.
35868         (__kernel_standard_l): Handle powl overflow and underflow here
35869         rather than calling __kernel_standard.
35870         * math/libm-test.inc (pow_test): Add more tests.
35871
35872         [BZ #3868]
35873         [BZ #13879]
35874         [BZ #13910]
35875         [BZ #13911]
35876         [BZ #13912]
35877         [BZ #13913]
35878         [BZ #13915]
35879         [BZ #13916]
35880         [BZ #13917]
35881         [BZ #13918]
35882         [BZ #13919]
35883         [BZ #13920]
35884         [BZ #13921]
35885         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
35886         * sysdeps/ieee754/k_standard.c: Include <float.h>.
35887         (__kernel_standard_l): New function.
35888         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
35889         __kernel_standard.
35890         * math/w_acosl.c (__acosl): Likewise.
35891         * math/w_asinl.c (__asinl): Likewise.
35892         * math/w_atan2l.c (__atan2l): Likewise.
35893         * math/w_atanhl.c (__atanhl): Likewise.
35894         * math/w_coshl.c (__coshl): Likewise.
35895         * math/w_exp10l.c (__exp10l): Likewise.
35896         * math/w_exp2l.c (__exp2l): Likewise.
35897         * math/w_fmodl.c (__fmodl): Likewise.
35898         * math/w_hypotl.c (__hypotl): Likewise.
35899         * math/w_j0l.c (__j0l, __y0l): Likewise.
35900         * math/w_j1l.c (__j1l, __y1l): Likewise.
35901         * math/w_jnl.c (__jnl, __ynl): Likewise.
35902         * math/w_lgammal.c (__lgammal): Likewise.
35903         * math/w_log10l.c (__log10l): Likewise.
35904         * math/w_log2l.c (__log2l): Likewise.
35905         * math/w_logl.c (__logl): Likewise.
35906         * math/w_powl.c (__powl): Likewise.
35907         * math/w_remainderl.c (__remainderl): Likewise.
35908         * math/w_scalbl.c (sysv_scalbl): Likewise.
35909         * math/w_sinhl.c (__sinhl): Likewise.
35910         * math/w_sqrtl.c (__sqrtl): Likewise.
35911         * math/w_tgammal.c (__tgammal): Likewise.
35912         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
35913         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
35914         * math/libm-test.inc (acos_test): Add more tests.
35915         (acosh_test): Likewise.
35916         (asin_test): Likewise.
35917         (atanh_test): Likewise.
35918         (exp_test): Likewise.
35919         (exp10_test): Likewise.
35920         (exp2_test): Likewise.
35921         (expm1_test): Likewise.
35922         (lgamma_test): Likewise.
35923         (log_test): Likewise.
35924         (log10_test): Likewise.
35925         (log1p_test): Likewise.
35926         (log2_test): Likewise.
35927         (pow_test): Do not allow some spurious overflow exceptions.
35928         (sqrt_test): Add more tests.
35929         (tgamma_test): Likewise.
35930         (y0_test): Likewise.
35931         (y1_test): Likewise.
35932         (yn_test): Likewise.
35933
35934 2012-03-27  Anton Blanchard  <anton@samba.org>
35935
35936         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
35937         MAP_HUGETLB.
35938         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
35939         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
35940         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
35941
35942 2012-03-27  David S. Miller  <davem@davemloft.net>
35943
35944         * conform/Makefile: Run run-conformtest.sh using $(BASH).
35945
35946         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
35947         have-as-vis3 check.
35948
35949 2012-03-27  Andreas Jaeger  <aj@suse.de>
35950
35951         * sysdeps/x86_64/elf/configure.in: Moved to ...
35952         * sysdeps/x86_64/configure.in: ... here.
35953         * sysdeps/x86_64/elf/start.S: Moved to ...
35954         * sysdeps/x86_64/start.S: ... here.
35955         * sysdeps/x86_64/elf/configure: Delete.
35956
35957         * sysdeps/x86_64/configure.in: Merge contents from
35958         sysdeps/i386/configure.in (without i686 check).
35959
35960         * sysdeps/i386/elf/Versions: Merge into ...
35961         * sysdeps/i386/Versions: ... this.
35962         * sysdeps/i386/elf/Versions: Delete file.
35963         * sysdeps/i386/elf/start.S: Moved to ...
35964         * sysdeps/i386/start.S: ...here.
35965         * sysdeps/i386/elf/configure.in: Merge into...
35966         * sysdeps/i386/configure.in: ...here.
35967         * sysdeps/i386/elf/configure.in: Delete file.
35968         * sysdeps/i386/elf/configure: Delete file.
35969
35970         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
35971         * debug/backtracesyms.c: ... here.
35972         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
35973         * debug/backtracesymsfd.c: ... here.
35974         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
35975         * sysdeps/generic/ifunc-sel.h: ... here.
35976
35977         * sysdeps/unix/i386/start.c: Delete file.
35978         * sysdeps/unix/sparc/start.c: Delete file.
35979         * sysdeps/unix/start.c: Delete file.
35980
35981         * sysdeps/sh/elf/configure.in: Moved to ...
35982         * sysdeps/sh/configure.in: ... here.
35983         * sysdeps/sh/elf/start.S: Moved to ...
35984         * sysdeps/sh/start.S: ... here.
35985         * sysdeps/sh/elf/configure: Delete file.
35986
35987         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
35988         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
35989         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
35990         * sysdeps/powerpc/powerpc64/entry.h: ... here.
35991         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
35992         * sysdeps/powerpc/powerpc64/start.S: here.
35993         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
35994         * sysdeps/powerpc/powerpc64/Makefile: ... this.
35995         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
35996         * sysdeps/powerpc/powerpc64/configure.in: ... this.
35997         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
35998
35999         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36000         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36001         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36002         * sysdeps/powerpc/powerpc32/start.S: ... here.
36003         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36004         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36005         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36006
36007         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36008         * sysdeps/powerpc/ifunc-sel.h: ... here.
36009         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36010         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36011
36012         * sysdeps/sparc/elf/configure.in: Moved to ...
36013         * sysdeps/sparc/configure.in: ... here.
36014         * sysdeps/sparc/elf/configure: Delete file.
36015         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
36016         * sysdeps/sparc/sparc32/start.S: ... here.
36017         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
36018         * sysdeps/sparc/sparc64/start.S: ... here.
36019         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
36020         * sysdeps/sparc/sparc32/Makefile: ... this.
36021         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
36022         * sysdeps/sparc/sparc64/Makefile: ... this.
36023
36024         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
36025         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
36026         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
36027         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
36028         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
36029         * sysdeps/s390/s390-32/setjmp.S: ... here.
36030         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
36031         * sysdeps/s390/s390-32/configure.in: ... here.
36032         * sysdeps/s390/s390-32/elf/configure: Delete file.
36033         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
36034         * sysdeps/s390/s390-32/start.S: ... here.
36035
36036         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
36037         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
36038         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
36039         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
36040         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
36041         * sysdeps/s390/s390-64/setjmp.S: ... here.
36042         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
36043         * sysdeps/s390/s390-64/configure.in: ... here
36044         * sysdeps/s390/s390-64/elf/configure: Delete file.
36045         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
36046         * sysdeps/s390/s390-64/start.S: ... here.
36047         * sysdeps/s390/s390-64/elf/configure: Delete.
36048
36049         * configure.in: Remove support for elf directories in sysdeps.
36050
36051         * configure: Regenerated.
36052         * sysdeps/i386/configure: Regenerated.
36053         * sysdeps/powerpc/powerpc32/configure: Regenerated.
36054         * sysdeps/powerpc/powerpc64/configure: Regenerated.
36055         * sysdeps/s390/s390-32/configure: Regenerated.
36056         * sysdeps/s390/s390-64/configure: Regenerated.
36057         * sysdeps/sh/configure: Regenerated.
36058         * sysdeps/sparc/configure: Regenerated.
36059         * sysdeps/x86_64/configure: Regenerated.
36060
36061 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
36062
36063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36064
36065         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
36066         denormal result into account.
36067
36068 2012-03-25  Roland McGrath  <roland@hack.frob.com>
36069
36070         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
36071         Reported by Allan McRae <allan@archlinux.org>.
36072
36073 2012-03-23  Jeff Law  <law@redhat.com>
36074
36075         * nss/getnssent.c (__nss_getent): Fix typo.
36076
36077 2012-03-23  David S. Miller  <davem@davemloft.net>
36078
36079         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36080
36081 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
36082
36083         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
36084         to pad to uint64_t for each field.
36085         (dl_tls_index): Replace unsigned long with uint64_t.
36086
36087 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
36088         Paul Pluzhnikov  <ppluzhnikov@google.com>
36089
36090         [BZ #6528]
36091         * grp/Makefile (otherlibs): Don't set it.
36092         * inet/Makefile (otherlibs): Likewise.
36093         * login/Makefile (otherlibs): Likewise.
36094         * nscd/Makefile (otherlibs): Likewise.
36095         * posix/Makefile (otherlibs): Likewise.
36096         * pwd/Makefile (otherlibs): Likewise.
36097         * rt/Makefile (otherlibs): Likewise.
36098         * sunrpc/Makefile (otherlibs): Likewise.
36099         * nss/Makefile (otherlibs): Likewise.
36100         Add libnss_files to routines and static-only-routines.
36101         ($(objpfx)getent): Remove rule.
36102         * resolv/Makefile: Add libnss_dns and libresolv to routines and
36103         static-only-routines.
36104
36105 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36106
36107         [BZ #13892]
36108         * math/s_cexp.c: Include <float.h>.
36109         (__cexp): Handle exp result overflowing not necessarily
36110         overflowing both real and imaginary parts of result.
36111         * math/s_cexpf.c: Likewise.
36112         * math/s_cexpl.c: Likewise.
36113         * math/libm-test.inc (cexp_test): Add more tests.
36114         * sysdeps/i386/fpu/libm-test-ulps: Update.
36115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36116
36117 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36118
36119         * include/link.h (ELFW): New macro.
36120         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
36121         Replace ELF64_R_TYPE with ELFW(R_TYPE).
36122
36123 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36124
36125         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
36126         with uint64_t.
36127
36128 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36129
36130         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
36131         declaration.
36132         (struct La_x32_retval): Likewise.
36133
36134 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36135
36136         * sysdeps/x86_64/preconfigure.in: New file.
36137         * sysdeps/x86_64/preconfigure: New generated file.
36138
36139 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
36140
36141         [BZ #13824]
36142         * math/e_exp2l.c: Include <float.h>.
36143         (__ieee754_exp2l): Handle overflow and underflow cases
36144         separately.  Only pass fractional part of argument to
36145         __ieee754_expl.
36146         * math/libm-test.inc (exp2_test): Add more tests.
36147
36148         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
36149         negating x to take absolute value.
36150         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
36151         Likewise.
36152         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
36153         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
36154         Likewise.
36155         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
36156         computing low part if x was negated.
36157         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
36158
36159 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36160
36161         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
36162         la_x32_gnu_pltexit.
36163         (pltexit): Cast int_retval to ptrdiff_t.
36164         * elf/tst-auditmod3b.c: Likewise.
36165         * elf/tst-auditmod4b.c: Likewise.
36166         * elf/tst-auditmod5b.c: Likewise.
36167         * elf/tst-auditmod6b.c: Likewise.
36168         * elf/tst-auditmod6c.c: Likewise.
36169         * elf/tst-auditmod7b.c: Likewise.
36170
36171         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
36172         and x32_gnu_pltexit.
36173
36174         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
36175         __ELF_NATIVE_CLASS.
36176         (La_x32_regs): New macro.
36177         (La_x32_retval): Likewise.
36178         (la_x32_gnu_pltenter): New function prototype.
36179         (la_x32_gnu_pltexit): Likewise.
36180
36181 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
36182
36183         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
36184         exponent.
36185
36186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36187
36188         * configure.in (libc_cv_cc_nofma): Check for option to disable
36189         generation of FMA instructions.
36190         * configure: Regenerate.
36191         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
36192         * sysdeps/ieee754/dbl-64/Makefile: New file.
36193         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
36194         Remove brandred-fma4.
36195         (CFLAGS-brandred-fma4.c): Remove.
36196         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
36197         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
36198         define.
36199         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
36200         define.
36201
36202 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36203
36204         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
36205         LLONG_MAX != LONG_MAX.
36206         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36207         (_fitoa_word): Likewise.
36208         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
36209         LLONG_MAX != LONG_MAX.
36210         * stdio-common/_itowa.h: Include <_itoa.h>.
36211         (_itowa_word): Use _ITOA_WORD_TYPE on value.
36212         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
36213         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
36214         only if not defined.
36215         (_ITOA_WORD_TYPE): Likewise.
36216         (_itoa_word): Use _ITOA_WORD_TYPE on value.
36217         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
36218
36219 2012-03-21  David S. Miller  <davem@davemloft.net>
36220
36221         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36222
36223 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
36224
36225         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
36226         of x86_64 when setting libc_cv_slibdir, libdir and
36227         libc_cv_localedir.
36228         * sysdeps/unix/sysv/linux/configure: Regenerated.
36229
36230 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36231
36232         * manual/lang.texi (Old Varargs): Remove section.
36233         (How Variadic): Update menu.
36234         (va_start): Do not mention varargs.h.
36235
36236 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36237             Joseph Myers  <joseph@codesourcery.com>
36238
36239         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
36240         link test.
36241         * configure: Regenerated.
36242
36243 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
36244
36245         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
36246         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
36247         conformtest.pl
36248
36249 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36250
36251         * NOTES: Remove.
36252         * Makefile (files-for-dist): Remove NOTES.
36253         (NOTES): Remove rule.
36254         * README: Don't refer to NOTES.
36255         * manual/creature.texi: Don't include macros.texi.
36256         * manual/intro.texi (creature.texi): Remove comment referring to
36257         NOTES.
36258
36259         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
36260         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
36261         * configure: Regenerated.
36262         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
36263         LIBC_TRY_CC_OPTION.
36264         (libc_cv_as_i686): Likewise.
36265         (libc_cv_cc_avx): Likewise.
36266         (libc_cv_cc_sse2avx): Likewise.
36267         (libc_cv_cc_fma4): Likewise.
36268         (libc_cv_cc_novzeroupper): Likewise.
36269         * sysdeps/i386/configure: Regenerated.
36270
36271         [BZ #13883]
36272         * sysdeps/i386/fpu/s_cexp.S: Remove.
36273         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
36274         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
36275         * math/libm-test.inc (cexp_test): Add more tests.
36276         * sysdeps/i386/fpu/libm-test-ulps: Update.
36277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36278
36279 2012-03-21  Allan McRae  <allan@archlinux.org>
36280
36281         * timezone/Makefile: Do not install iso3166.tab and zone.tab
36282
36283 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
36284
36285         [BZ #13871]
36286         * math/w_exp2.c: Do not include <float.h>.
36287         (o_threshold, u_threshold): Remove.
36288         (__exp2): Calculate result before checking finiteness and calling
36289         __kernel_standard.
36290         * math/w_exp2f.c: Likewise.
36291         * math/w_exp2l.c: Likewise.
36292         * math/libm-test.inc (exp2_test): Require overflow exception for
36293         1e6 input.
36294
36295         [BZ #3866]
36296         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
36297         range of signed 64-bit integers before using fistpll.  Remove
36298         checks for whether integers fit in mantissa bits.
36299         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
36300         the range of signed 32-bit integers before using fistpl.  Remove
36301         checks for whether integers fit in mantissa bits.
36302         * sysdeps/i386/fpu/e_powl.S (p64): New object.
36303         (__ieee754_powl): Test for y outside the range of signed 64-bit
36304         integers before using fistpll.  Reduce 64-bit values to 63-bit
36305         ones as needed.
36306         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
36307         divide-by-zero is raised for zero to large negative powers.
36308         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
36309         (__ieee754_powl): Test for y outside the range of signed 64-bit
36310         integers before using fistpll.  Reduce 64-bit values to 63-bit
36311         ones as needed.
36312         * math/libm-test.inc (pow_test): Add more tests.
36313
36314 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36315
36316         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
36317         <stdio-common/_itoa.h>.
36318         * debug/segfault.c: Likewise.
36319         * elf/dl-cache.c: Likewise.
36320         * elf/dl-minimal.c: Likewise.
36321         * elf/dl-misc.c: Likewise.
36322         * elf/dl-sysdep.c: Likewise.
36323         * elf/dl-version.c: Likewise.
36324         * elf/rtld.c: Likewise.
36325         * hurd/hurdsock.c: Likewise.
36326         * hurd/lookup-retry.c: Likewise.
36327         * malloc/malloc.c: Likewise.
36328         * malloc/mtrace.c: Likewise.
36329         * nscd/nscd_getgr_r.c: Likewise.
36330         * nscd/nscd_getpw_r.c: Likewise.
36331         * nscd/nscd_getserv_r.c: Likewise.
36332         * posix/getopt_init.c: Likewise.
36333         * posix/wordexp.c: Likewise.
36334         * stdio-common/_itoa.c: Likewise.
36335         * stdio-common/printf_fphex.c: Likewise.
36336         * stdio-common/vfprintf.c: Likewise.
36337         * string/_strerror.c: Likewise.
36338         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
36339         * sysdeps/i386/i686/hp-timing.h: Likewise.
36340         * sysdeps/mach/_strerror.c: Likewise.
36341         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
36342         * sysdeps/mach/hurd/sethostid.c: Likewise.
36343         * sysdeps/mach/hurd/xmknodat.c: Likewise.
36344         * sysdeps/mach/xpg-strerror.c: Likewise.
36345         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
36346         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
36347         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
36348         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
36349         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
36350         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
36351         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
36352         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
36353         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
36354         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
36355         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
36356         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
36357         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
36358         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
36359         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
36360         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
36361         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
36362         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
36363         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
36364         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
36365         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
36366
36367         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
36368
36369         * stdio-common/_itoa.h: Moved to ...
36370         * sysdeps/generic/_itoa.h: Here.
36371
36372         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
36373
36374         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
36375         instead of "_itoa.h" and "_itowa.h".
36376         * stdio-common/vfprintf.: Likewise.
36377
36378 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36379
36380         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36381         <bits/wordsize.h>.
36382         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36383         (__signbit): Likwise.
36384         (llrintf): Likwise.
36385         (llrint): Likwise.
36386
36387 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36388
36389         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36390         __WORDSIZE != 64.
36391
36392 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36393
36394         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36395         OVERFLOW_EXCEPTION_OK.
36396         * math/libm-test.inc ("Philosophy"): Update comment about
36397         exception testing.
36398         (OVERFLOW_EXCEPTION): Define.
36399         (OVERFLOW_EXCEPTION_OK): Likewise.
36400         (INVALID_EXCEPTION_OK): Renumber.
36401         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36402         (IGNORE_ZERO_INF_SIGN): Likewise.
36403         (test_exceptions): Handle FE_OVERFLOW.
36404         (exp10_test): Expect overflow exceptions.
36405         (exp2_test): Likewise.
36406         (expm1_test): Likewise.
36407         (nextafter_test): Likewise.
36408         (pow_test): Likewise.
36409         (scalbn_test): Likewise.
36410         (scalbln_test): Likewise.
36411
36412 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36413
36414         * sysdeps/x86_64/bits/atomic.h
36415         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36416         64bit integer.
36417         (atomic_exchange_acq): Likewise.
36418         (__arch_exchange_and_add_body): Likewise.
36419         (__arch_add_body): Likewise.
36420         (atomic_add_negative): Likewise.
36421         (atomic_add_zero): Likewise.
36422
36423 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36424
36425         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36426         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36427
36428 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36429
36430         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36431         Check __x86_64__ instead of __WORDSIZE.
36432
36433 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36434
36435         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36436
36437 2012-03-19  David S. Miller  <davem@davemloft.net>
36438
36439         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36440
36441         * sysdeps/sparc/fpu/fenv_private.h: New file.
36442         * sysdeps/sparc/fpu/math_private.h: Use it.
36443         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36444         Remove.
36445         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36446         (libc_feholdexcept_setroundl): Remove.
36447         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36448         Remove.
36449         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36450         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36451
36452 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36453
36454         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36455         int64_t instead of long int.
36456         (INSERT_WORDS64): Likwise.
36457
36458 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36459
36460         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36461         _Unwind_GetCFA return to _Unwind_Ptr first.
36462
36463 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36464
36465         [BZ #13629]
36466         * math/s_clog.c: Include <float.h>.
36467         (__clog): Scale large or subnormal inputs.
36468         * math/s_clogf.c: Likewise.
36469         * math/s_clogl.c: Likewise.
36470         * math/s_clog10.c: Include <float.h>.
36471         (M_LOG10_2): Define.
36472         (__clog10): Scale large or subnormal inputs.
36473         * math/s_clog10f.c: Likewise.
36474         * math/s_clog10l.c: Likewise.
36475         * math/libm-test.inc (clog_test): Add more tests.
36476         (clog10_test): Likewise.
36477         * sysdeps/i386/fpu/libm-test-ulps: Update.
36478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36479
36480         [BZ #11451]
36481         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36482         x and y.
36483         * math/libm-test.inc (atan2_test): Add another test.
36484
36485         * Makerules (common-objdir-compile): Remove.
36486         * sysdeps/unix/Makefile (config-generated): Do not add
36487         $(unix-generated) to variable.
36488         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36489         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36490         Remove rule.
36491         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36492         Likewise.
36493         [generic bits/local_lim.h] (before-compile): Do not append to
36494         variable.
36495         [generic bits/local_lim.h] (common-generated): Likewise.
36496         [generic sys/param.h] (before-compile): Do not append to variable.
36497         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36498         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36499         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36500         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36501         include.
36502         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36503         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36504         [generic sys/param.h] ($(addprefix
36505         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36506         [generic sys/param.h] (common-generated): Do not append to
36507         variable.
36508         [generic sys/param.h] (sysdep_headers): Likewise.
36509         [generic bits/errno.h] (before-compile): Do not append to
36510         variable.
36511         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36512         rule.
36513         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36514         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36515         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36516         [generic bits/errno.h] (common-generated): Do not append to
36517         variable.
36518         [generic bits/ioctls.h] (before-compile): Do not append to
36519         variable.
36520         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36521         rule.
36522         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36523         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36524         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36525         rule.
36526         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36527         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36528         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36529         [generic bits/ioctls.h] (common-generated): Do not append to
36530         variable.
36531         [generic sys/syscall.h] (syscall.h): Remove variable.
36532         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36533         rule.
36534         [generic sys/syscall.h] (before-compile): Do not append to
36535         variable.
36536         [generic sys/syscall.h] (common-generated): Likewise.
36537         * sysdeps/unix/errnos-tmpl.c: Remove file.
36538         * sysdeps/unix/errnos.awk: Likewise.
36539         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36540         * sysdeps/unix/ioctls.awk: Likewise.
36541         * sysdeps/unix/mk-local_lim.c: Likewise.
36542         * sysdeps/unix/snarf-ioctls: Likewise.
36543
36544 2012-03-19  Richard Henderson  <rth@twiddle.net>
36545
36546         * sysdeps/i386/fpu/fenv_private.h: New file.
36547         * sysdeps/i386/fpu/math_private.h: Use it.
36548         (math_opt_barrier, math_force_eval): Remove.
36549         (libc_feholdexcept_setround_53bit): Remove.
36550         (libc_feupdateenv_53bit): Remove.
36551         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36552         (math_opt_barrier, math_force_eval): Remove.
36553         (libc_feholdexcept): Remove.
36554         (libc_feholdexcept_setround): Remove.
36555         (libc_fetestexcept, libc_fesetenv): Remove.
36556         (libc_feupdateenv_test): Remove.
36557         (libc_feupdateenv, libc_feholdsetround): Remove.
36558         (libc_feresetround): Remove.
36559
36560         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36561         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36562
36563         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36564         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36565         (libc_feupdateenv_testl): New.
36566         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36567         (libc_feupdateenv_testf): New.
36568         (libc_feupdateenv): Use libc_feupdateenv_test.
36569         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36570         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36571
36572         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36573         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36574         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36575         (libc_feresetround_noex): New.
36576         (libc_feresetround_noexf): New.
36577         (libc_feresetround_noexl): New.
36578         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36579         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36580         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36581         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36582         SET_RESTORE_ROUND.
36583         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36584         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36585         (__cos): Likewise.
36586         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36587         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36588         SET_RESTORE_ROUND_NOEX.
36589         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36590         SET_RESTORE_ROUND_NOEXF.
36591         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36592         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36593         (libc_feholdsetroundf): New.
36594         (libc_feresetround, libc_feresetroundf): New.
36595
36596         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36597         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36598         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36599
36600         * sysdeps/generic/math_private.h: Include <fenv.h>.
36601         (default_libc_feholdexcept): New.
36602         (default_libc_feholdexcept_setround): New.
36603         (default_libc_fesetenv, default_libc_feupdateenv): New.
36604         (libc_feholdexcept): Only define if undefined.
36605         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36606         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36607         (libc_feholdexcept_setroundl): Likewise.
36608         (libc_feholdexcept_setround_53bit): Likewise.
36609         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36610         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36611         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36612         (libc_feupdateenv_53bit): Likewise.
36613         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36614         (libc_feholdexcept): Convert from macro to inline function.
36615         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36616         (libc_fesetenv, libc_feupdateenv): Likewise.
36617
36618         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36619         not previously defined.
36620         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36621         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36622         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36623         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36624         * sysdeps/ieee754/flt-32/math_private.h: New file.
36625         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36626         math_private.h below SET_FLOAT_WORD.
36627         (__isnan, __isinf_ns, __finite): Remove.
36628         (__isnanf, __isinf_nsf, __finitef): Remove.
36629
36630 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36631
36632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36633
36634 2012-03-17  David S. Miller  <davem@davemloft.net>
36635
36636         [BZ #6471]
36637         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36638         for 2.16.
36639
36640 2012-03-16  David S. Miller  <davem@davemloft.net>
36641
36642         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36643         warnings.
36644
36645         [BZ #6471]
36646         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36647         properly.
36648         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36649         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36650         sysdep_routines when subdir is sysvipc.
36651         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36652         __getshmlba helper.
36653
36654         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36655
36656 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36657
36658         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36659         [__LP64__].
36660
36661 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36662
36663         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36664         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36665         (__lround): Renamed to ...
36666         (__llround): This.  Replace long int with long long int.
36667         Define lround functions as aliases of llround functions.
36668         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36669
36670 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36671
36672         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36673         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36674         adresses to uintptr_t.  Replace "long int" and "unsigned long
36675         int" with "greg_t" on va_arg.
36676
36677 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36678
36679         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36680         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36681
36682         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36683         Move e_machine check before EI_CLASS check.  Handle x32
36684         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36685         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36686         SKIP_EM_IA_64 and include
36687         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36688
36689         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36690         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36691         (add_system_dir): New macro.
36692
36693         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36694         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36695
36696 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36697
36698         [BZ #2551]
36699         [BZ #2552]
36700         [BZ #2553]
36701         [BZ #2554]
36702         [BZ #2562]
36703         [BZ #2563]
36704         [BZ #2565]
36705         [BZ #2566]
36706         [BZ #2576]
36707         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
36708         (y0): Likewise.
36709         * math/w_j0f.c (j0f): Likewise.
36710         (y0f): Likewise.
36711         * math/w_j0l.c (__j0l): Likewise.
36712         (__y0l): Likewise.
36713         * math/w_j1.c (j1): Likewise.
36714         (y1): Likewise.
36715         * math/w_j1f.c (j1f): Likewise.
36716         (y1f): Likewise.
36717         * math/w_j1l.c (__j1l): Likewise.
36718         (__y1l): Likewise.
36719         * math/w_jn.c (jn): Likewise.
36720         (yn): Likewise.
36721         * math/w_jnf.c (jnf): Likewise.
36722         (ynf): Likewise.
36723         * math/w_jnl.c (__jnl): Likewise.
36724         (__ynl): Likewise.
36725         * math/libm-test.inc (j0_test): Add more tests.
36726         (j1_test): Likewise.
36727         (jn_test): Likewise.  Add trailing semicolon to existing test.
36728         (y0_test): Likewise.
36729         (y1_test): Likewise.
36730         * sysdeps/i386/fpu/libm-test-ulps: Update.
36731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36732
36733         [BZ #13851]
36734         [BZ #13854]
36735         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
36736         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
36737         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
36738         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
36739         (__tanl): Set errno for infinite argument.
36740         * sysdeps/i386/fpu/mptan.c: Remove.
36741         * sysdeps/i386/fpu/s_tan.S: Likewise.
36742         * sysdeps/i386/fpu/s_tanl.S: Likewise.
36743         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
36744         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
36745         * math/libm-test.inc (tan_test): Add more tests and enable more
36746         tests for double and long double.
36747         * sysdeps/i386/fpu/libm-test-ulps: Update.
36748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36749
36750 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
36751
36752         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
36753         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
36754
36755 2012-03-16  Roland McGrath  <roland@hack.frob.com>
36756
36757         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
36758         * configure.in: Use it for both main tree and add-ons.
36759         * configure: Regenerated.
36760
36761 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36762
36763         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
36764
36765 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36766
36767         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
36768         in comment.
36769
36770         [BZ #13851]
36771         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
36772         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
36773         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
36774         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
36775         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
36776         infinite argument.
36777         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
36778         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
36779         != 0 for prec == 2.
36780         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
36781         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
36782         * sysdeps/i386/fpu/s_cosl.S: Likewise.
36783         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
36784         * sysdeps/i386/fpu/s_sinl.S: Likewise.
36785         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
36786         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
36787         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
36788         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
36789         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
36790         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
36791         * math/libm-test.inc (cos_test): Add more tests and enable more
36792         tests for long double.
36793         (sin_test): Likewise.
36794         (sincos_test): Likewise.
36795         * sysdeps/i386/fpu/libm-test-ulps: Update.
36796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36797
36798 2012-03-16  David S. Miller  <davem@davemloft.net>
36799
36800         * sysdeps/sparc/fpu/math_private.h: New file.
36801
36802 2012-03-15  David S. Miller  <davem@davemloft.net>
36803
36804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
36805         file.
36806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
36807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
36808         file.
36809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
36810         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
36811         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
36812         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
36813         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
36814         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
36815         sysdep routines.
36816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36817
36818         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
36819         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
36820
36821         * sysdeps/sparc/sparc-ifunc.h: New file.
36822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
36823         sparc-ifunc.h
36824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
36825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
36826         Likewise.
36827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
36828         Likewise.
36829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
36830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
36831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
36832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
36833         Likewise.
36834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
36835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
36836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
36837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
36838         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
36839         Likewise.
36840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
36841         Likewise.
36842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
36843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
36844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
36845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
36846         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
36847         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
36848         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
36849         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
36850         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
36851         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
36852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
36853         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
36854         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
36855         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
36856         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
36857         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
36858         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
36859         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
36860         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
36861         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
36862         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
36863         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
36864         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
36865         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
36866
36867 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36868
36869         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
36870         scaling.
36871         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36872
36873 2012-03-15  Andreas Jaeger  <aj@suse.de>
36874
36875         [BZ #13852]
36876         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
36877         ieee754/flt-32 implementation for sin, cos and sincos.
36878         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
36879         * sysdeps/i386/fpu/s_cosf.S: Likewise.
36880         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
36881         * sysdeps/i386/fpu/s_sinf.S: Likewise.
36882         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
36883         ieee754/flt-32 implementation for tan.
36884
36885         * math/libm-test.inc (cos_test): Enable some large input tests for
36886         float as well
36887         (sin_test): Likewise.
36888         (sincos_test): Likewise.
36889         (tan_test): Add tests for large input.
36890
36891         * sysdeps/i386/fpu/libm-test-ulps: Update.
36892
36893 2012-03-15  Andreas Jaeger  <aj@suse.de>
36894
36895         [BZ #13658]
36896         * math/libm-test.inc (cos_test): Add more test cases.
36897         (sin_test): Likewise.
36898         (sincos_test): Likewise.
36899
36900 2012-03-15  Andreas Jaeger  <aj@suse.de>
36901
36902         [BZ #13837]
36903         * math/libm-test.inc (cos_test): Add a test case for large input
36904         value.
36905         (sin_test): Likewise.
36906         (sincos_test): Likewise.
36907
36908 2012-03-15  Andreas Jaeger  <aj@suse.de>
36909             Joseph Myers  <joseph@codesourcery.com>
36910
36911         [BZ #13658]
36912         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
36913         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
36914         * sysdeps/i386/fpu/branred.c: Likewise.
36915         * sysdeps/i386/fpu/dosincos.c: Likewise.
36916         * sysdeps/i386/fpu/mpa.c: Likewise.
36917         * sysdeps/i386/fpu/s_cos.S: Likewise.
36918         * sysdeps/i386/fpu/s_sin.S: Likewise.
36919         * sysdeps/i386/fpu/s_sincos.S: Likewise.
36920         * sysdeps/i386/fpu/sincos32.c: Likewise.
36921
36922         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
36923         Define.
36924         (libc_feupdateenv_53bit): Define.
36925         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
36926         Define.
36927         (libc_feupdateenv_53bit): Define.
36928
36929         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
36930         53 bit (without extend i386 double precision).
36931
36932         * math/libm-test.inc (sincos_test): Add tests for large input.
36933         (sin): Likewise.
36934         (cos): Likewise.
36935
36936         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
36937
36938 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36939
36940         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36941
36942 2012-03-15  David S. Miller  <davem@davemloft.net>
36943
36944         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
36945         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
36946         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
36947         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
36948         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
36949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
36950         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
36951         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
36952         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
36953         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
36954         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
36955         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
36956         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
36957         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
36958         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
36959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
36960         file.
36961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
36962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
36963         file.
36964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
36965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
36966         file.
36967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
36968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
36969         file.
36970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
36971         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
36972         fmin/fmax sysdep routines.
36973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36974
36975 2012-03-14  David S. Miller  <davem@davemloft.net>
36976
36977         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
36978         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
36979         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
36980         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
36981         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
36982         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
36983         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
36984         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
36985         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
36986         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
36987         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
36988         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
36989         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
36990         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
36991         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
36992         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
36993         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
36994         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
36995         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
36996         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
36997         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
36998         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
36999         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37000         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37001         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37002         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37003         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37004         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37005         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37006         routines.
37007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37008         file.
37009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37011         file.
37012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37013         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
37014         file.
37015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
37016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
37017         file.
37018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
37019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
37020         file.
37021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
37022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
37023         file.
37024         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
37025         file.
37026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
37027         file.
37028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
37029         file.
37030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
37031         New file.
37032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
37033         file.
37034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
37035         file.
37036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
37037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
37038         file.
37039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
37040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
37041         file.
37042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
37043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
37044         file.
37045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
37046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
37047         VIS3 routines.
37048
37049         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
37050         New file.
37051
37052         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37053
37054         * sysdeps/sparc/configure.in: New file.
37055         * sysdeps/sparc/configure: Generate.
37056         * configure.in (libc_cv_sparc_as_vis3): Substitute.
37057         * configure: Regenerate.
37058         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
37059         * config.make.in (have-as-vis3): New.
37060         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
37061         available use -Av9d instead of -Av9a.
37062         * sysdeps/sparc/sparc64/Makefile: Likewise.
37063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
37064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
37065         New file.
37066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
37067         file.
37068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
37069         New file.
37070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
37071         file.
37072         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
37073         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
37074         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
37075         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
37076         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
37077
37078         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
37079         fzeros/fnegs to load 0x80000000 into a float register instead of
37080         using the stack.
37081         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
37082
37083 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37084
37085         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37086         bits/syscall.h.
37087         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
37088         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
37089         ($(inst_includedir)/bits/syscall.h): Remove rule.
37090         ($(objpfx)bits/syscall.d): Include instead of
37091         $(objpfx)syscall-list.d.
37092         (generated): Change syscall-list.h and syscall-list.d to
37093         bits/syscall.h and bits/syscall.d.
37094
37095 2012-03-14  Roland McGrath  <roland@hack.frob.com>
37096
37097         [BZ #13846]
37098         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
37099
37100 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
37101
37102         [BZ #13841]
37103         * math/s_csqrt.c: Include <float.h>.
37104         (__csqrt): Scale large or subnormal inputs.
37105         * math/s_csqrtf.c: Likewise.
37106         * math/s_csqrtl.c: Likewise.
37107         * math/libm-test.inc (csqrt_test): Add more tests.
37108         * sysdeps/i386/fpu/libm-test-ulps: Update.
37109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37110
37111         [BZ #13840]
37112         * math/libm-test.inc (hypot_test): Add more tests.
37113
37114 2012-03-13  David S. Miller  <davem@davemloft.net>
37115
37116         [BZ #13840]
37117         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
37118         double-precision for the calculation instead of scaling.
37119
37120 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
37121
37122         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
37123         manipulate bits before adding and subtracting TWO52[sx].
37124         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
37125         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
37126         Likewise.
37127         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
37128
37129 2012-03-13  David S. Miller  <davem@davemloft.net>
37130
37131         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
37132         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
37133         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
37134         rtld-global-offsets.h
37135         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37136
37137         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
37138         large parameters.
37139
37140         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
37141
37142         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
37143         'err' in the ifdef scope in which it is actually used.
37144
37145         * nss/nss_db/db-init.c: Include string.h
37146
37147 2012-03-12  David S. Miller  <davem@davemloft.net>
37148
37149         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
37150         masking out of the most significant byte of random value used.
37151         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37152         Fix coding style in previous change.
37153
37154         * sysdeps/unix/sysv/linux/kernel-features.h
37155         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
37156         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
37157         expression.
37158         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
37159         later.
37160
37161 2012-03-11  David S. Miller  <davem@davemloft.net>
37162
37163         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
37164         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
37165         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
37166         for 'resultvar' otherwise things get truncated on 64-bit.
37167
37168         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
37169         Fix masking out of the most significant byte of random value used.
37170
37171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37172
37173 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
37174
37175         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37176
37177 2012-03-09  David S. Miller  <davem@davemloft.net>
37178
37179         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
37180         variables with appropriate CPP guards.
37181         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
37182         from the frame pointer, not the stack pointer.  Correct layout
37183         comments.  Fix test on resulting framesize and the management of
37184         the outregs buffer for pltexit.  Preserve floating point return
37185         values across _dl_call_pltexit call.
37186         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
37187         framesize and the management of the outregs buffer for pltexit.
37188         Preserve floating point return values across _dl_call_pltexit
37189         call.
37190         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
37191         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
37192         (la_sparc64_gnu_pltexit): New functions.
37193         (print_exit): Fix format string for return register value.
37194
37195 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
37196
37197         * sunrpc/Makefile (others): Add rpcgen.
37198         ($(objpfx)rpcgen): Remove special build rule and dependency on
37199         libc.
37200         * sunrpc/rpcgen.c: New file.
37201
37202 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
37203
37204         [BZ #13673]
37205         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
37206         * stdio-common/bug-vfprintf-nargs.c: Likewise.
37207         * sysdeps/i386/crti.S: Likewise.
37208         * sysdeps/i386/crtn.S: Likewise.
37209         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
37210         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
37211         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
37212         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
37213         * sysdeps/sh/crti.S: Likewise.
37214         * sysdeps/sh/crtn.S: Likewise.
37215         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
37216
37217         [BZ #13673]
37218         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
37219         with URL.
37220         * locale/programs/locfile-kw.gperf: Likewise.
37221         * locale/programs/charmap-kw.h: Regenerated.
37222         * locale/programs/locfile-kw.h: Likewise.
37223
37224         [BZ #13673]
37225         * intl/plural.y: Replace FSF snail mail address with URL.
37226         * intl/plural.c: Regenerated.
37227
37228 2012-03-09  Richard Henderson  <rth@twiddle.net>
37229
37230         * include/math_private.h: Remove file.
37231         * math/math_private.h: Move file ...
37232         * sysdeps/generic/math_private.h: ... here.
37233
37234         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
37235         * sysdeps/powerpc/fpu/math_private.h: Likewise.
37236         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37237
37238         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
37239         and <math_private.h>.
37240         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
37241         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
37242         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
37243         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
37244         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
37245         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
37246         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
37247         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
37248         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
37249         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
37250         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
37251         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
37252         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
37253         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
37254         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
37255         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
37256         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
37257         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
37258         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
37259         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
37260         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
37261         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
37262         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
37263         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
37264         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
37265         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
37266         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
37267         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
37268         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
37269         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
37270         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
37271         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
37272         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
37273         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
37274         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
37275         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
37276         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
37277         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
37278         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
37279         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
37280         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
37281         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
37282         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
37283         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
37284         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
37285         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
37286         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
37287         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
37288         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
37289         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
37290         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
37291         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
37292         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
37293         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
37294         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
37295         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
37296         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
37297         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
37298         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
37299         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
37300         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
37301         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
37302         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
37303         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
37304         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
37305         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
37306         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
37307         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
37308         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
37309         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
37310         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
37311         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
37312         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
37313         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
37314         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
37315         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
37316         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
37317         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
37318         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
37319         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
37320         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
37321         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
37322         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
37323         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
37324         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
37325         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
37326         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
37327         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
37328         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
37329         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
37330         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
37331         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
37332         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
37333         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
37334         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
37335         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
37336         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
37337         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
37338         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
37339         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
37340         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
37341         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
37342         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
37343         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
37344         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
37345         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
37346         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
37347         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
37348         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
37349         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
37350         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
37351         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
37352         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
37353         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
37354         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
37355         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
37356         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
37357         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
37358         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
37359         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
37360         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
37361         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
37362         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
37363         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
37364         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
37365         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
37366         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
37367         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
37368         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
37369         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
37370         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
37371         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
37372         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
37373         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
37374         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
37375         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
37376         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
37377         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
37378         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
37379         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
37380         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37381         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37382         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37383         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37384         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37385         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37386         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37387         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37388         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37389         * sysdeps/ieee754/k_standard.c: Likewise.
37390         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37391         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37392         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37393         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37394         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37395         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37396         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37397         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37398         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37399         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37400         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37401         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37402         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37403         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37404         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37405         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37406         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37407         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37408         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37409         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37410         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37411         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37412         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37413         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37414         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37415         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37416         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37417         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37418         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37419         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37420         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37421         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37422         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37423         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37424         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37425         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37426         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37427         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37428         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37429         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37430         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37431         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37432         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37433         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37434         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37435         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37436         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37437         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37438         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37439         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37440         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37441         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37442         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37443         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37444         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37445         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37446         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37447         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37448         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37449         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37450         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37451         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37452         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37453         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37454         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37455         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37456         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37457         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37458         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37459         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37460         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37461         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37462         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37463         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37464         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37465         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37466         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37467         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37468         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37469         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37470         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37471         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37472         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37473         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37474         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37475         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37476         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37477         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37478         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37479         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37480         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37481         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37482         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37483         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37484         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37485         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37486         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37487         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37488         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37489         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37490         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37491         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37492         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37493         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37494         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37495         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37496         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37497         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37498         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37499         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37500         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37501         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37502         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37503         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37504         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37505         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37506         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37507         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37508         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37509         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37510         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37511         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37512         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37513         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37514         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37515         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37516         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37517         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37518         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37519         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37520         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37521         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37522         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37523         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37524         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37525         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37526         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37527         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37528         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37529         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37530         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37531         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37532         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37533         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37534         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37535         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37536         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37537         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37538         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37539         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37540         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37541         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37542         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37543         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37544         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37545         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37546         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37547         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37548         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37549         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37550         * sysdeps/ieee754/s_lib_version.c: Likewise.
37551         * sysdeps/ieee754/s_matherr.c: Likewise.
37552         * sysdeps/ieee754/s_signgam.c: Likewise.
37553         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37554         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37555         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37556         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37557         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37558         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37559         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37560         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37561         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37562         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37563         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37564         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37565         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37566         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37567         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37568         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37569         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37570         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37571         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37572         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37573         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37574
37575 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37576
37577         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37578         * sunrpc/rpc_main.c: Likewise.
37579         * sunrpc/rpc_svcout.c: Likewise.
37580
37581 2012-03-09  David S. Miller  <davem@davemloft.net>
37582
37583         * include/math_private.h: New file.
37584
37585 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37586
37587         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37588         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37589         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37590         from <bits/socket_type.h>.
37591         (enum __socket_type): Don't define here.
37592         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37593         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37594         bits/socket_type.h.
37595
37596         [BZ #13566]
37597         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37598         checking __USE_GNU.
37599
37600         * Makerules ($(inst_includedir)/%.h): New rule.
37601         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37602         (install-others): Remove variable setting.
37603         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37604
37605 2012-03-08  Richard Henderson  <rth@twiddle.net>
37606
37607         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37608         from macro to inline function; merge with the
37609         !__LIBC_INTERNAL_MATH_INLINES version.
37610         (__ieee754_sqrtf): Likewise.
37611
37612         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37613         to inline function.
37614         (__rintf, __floor, __floorf): Likewise.
37615
37616         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37617         macro to inline function.
37618         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37619
37620         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37621         not <math/math_private.h>.
37622
37623 2012-03-08  David S. Miller  <davem@davemloft.net>
37624
37625         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37626         copyright year.
37627         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37628
37629 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37630
37631         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37632         normalization.
37633         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37634         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37635
37636 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37637
37638         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37639         be defined individually, they must be defined as a block.  Define
37640         S for printing a string instead of hidint the different by using a
37641         macro for adding the 'l'.
37642         * stdio-common/tst-fphex-wide.c: Adjust.
37643
37644 2012-03-07  Marek Polacek  <polacek@redhat.com>
37645
37646         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37647
37648 2012-03-08  Marek Polacek  <polacek@redhat.com>
37649
37650         [BZ #13806]
37651         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37652         * stdio-common/tst-fphex.c: Define a few macros to make the
37653         test reusable.  Use them.
37654         * stdio-common/tst-fphex-wide.c: New file.
37655
37656 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37657
37658         [BZ #6911]
37659         * manual/macros.texi (gnusystems): New macro.
37660         (nongnusystems): Likewise.
37661         (gnulinuxhurdsystems): Likewise.
37662         (gnuhurdsystems): Likewise..
37663         (gnulinuxsystems): Likewise.
37664         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37665         variants of the GNU system, not "GNU system".
37666         * manual/conf.texi: Likewise.
37667         * manual/errno.texi: Likewise.  Update example of errno macro
37668         expansion.
37669         * manual/filesys.texi: Likewise.
37670         (getumask): Document as specific to GNU/Hurd.
37671         * manual/install.texi: Likewise.  Reword some references to
37672         GNU/Linux.
37673         * manual/intro.texi: Likewise.
37674         * manual/io.texi: Likewise.
37675         (File Name Portability): Detail which constraints are inapplicable
37676         to all GNU systems and which are only inapplicable to GNU/Hurd.
37677         * manual/job.texi: Likewise.
37678         * manual/llio.texi: Likewise.
37679         (O_NOCTTY): Document as present on GNU/Linux.
37680         * manual/maint.texi: Likewise.
37681         * manual/memory.texi: Likewise.
37682         * manual/pattern.texi: Likewise.
37683         * manual/pipe.texi: Likewise.
37684         * manual/process.texi: Likewise.
37685         * manual/resource.texi: Likewise.
37686         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37687         child on GNU/Hurd.
37688         * manual/setjmp.texi: Likewise.
37689         * manual/signal.texi: Likewise.
37690         * manual/startup.texi: Likewise.
37691         * manual/stdio.texi: Likewise.
37692         * manual/terminal.texi: Likewise.
37693         (ONLCR): Document as POSIX.
37694         (OXTABS): Document availability on GNU/Linux as XTABS.
37695         (ONOEOT): Document availability separately from other bits.
37696         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37697         * manual/time.texi: Likewise.
37698         * manual/users.texi: Likewise.
37699         * INSTALL: Regenerated.
37700         * sysdeps/gnu/errlist.c: Regenerated.
37701
37702         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37703         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37704         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37705         puts.
37706         * configure: Regenerated.
37707
37708 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
37709
37710         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
37711         default includes instead of AC_HEADER_CHECK.
37712         * sysdeps/i386/configure: Regenerated.
37713
37714         [BZ #10716]
37715         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
37716         * math/s_cacoshf.c (__cacoshf): Likewise.
37717         * math/s_cacoshl.c (__cacoshl): Likewise.
37718         * math/s_casinh.c (__casinh): Set signs of result from argument.
37719         * math/s_casinhf.c (__casinhf): Likewise.
37720         * math/s_casinhl.c (__casinhl): Likewise.
37721         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
37722         (casinh_test): Add more tests.
37723         * sysdeps/i386/fpu/libm-test-ulps: Update.
37724         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37725
37726 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
37727
37728         * po/zh_TW.po: Update from translation team.
37729
37730         * login/Makefile (distribute): Remove variable.
37731         * catgets/Makefile: Likewise.
37732         * mach/Makefile: Likewise.
37733         * malloc/Makefile: Likewise.
37734         * misc/Makefile: Likewise.
37735         * iconv/Makefile: Likewise.
37736         * nscd/Makefile: Likewise.
37737         * hurd/Makefile: Likewise.
37738         * manual/Makefile: Likewise.
37739         * locale/Makefile: Likewise.
37740         * intl/Makefile: Likewise.
37741         * conform/Makefile: Likewise.
37742         * nss/Makefile: Likewise.
37743         * time/Makefile: Likewise.
37744         * soft-fp/Makefile: Likewise.
37745         * dirent/Makefile: Likewise.
37746         * gmon/Makefile: Likewise.
37747         * po/Makefile: Likewise.
37748         * rt/Makefile: Likewise.
37749         * socket/Makefile: Likewise.
37750         * math/Makefile: Likewise.
37751         * signal/Makefile: Likewise.
37752         * debug/Makefile: Likewise.
37753         * elf/Makefile: Likewise.
37754         * timezone/Makefile: Likewise.
37755         * stdlib/Makefile: Likewise.
37756         * iconvdata/Makefile: Likewise.
37757         * sunrpc/Makefile: Likewise.
37758         * io/Makefile: Likewise.
37759         * argp/Makefile: Likewise.
37760         * inet/Makefile: Likewise.
37761         * hesiod/Makefile: Likewise.
37762         * grp/Makefile: Likewise.
37763         * csu/Makefile: Likewise.
37764         * wctype/Makefile: Likewise.
37765         * crypt/Makefile: Likewise.
37766         * libio/Makefile: Likewise.
37767         * string/Makefile: Likewise.
37768         * nis/Makefile: Likewise.
37769         * resolv/Makefile: Likewise.
37770         * stdio-common/Makefile: Likewise.
37771         * wcsmbs/Makefile: Likewise.
37772         * dlfcn/Makefile: Likewise.
37773         * posix/Makefile: Likewise.
37774
37775         [BZ #6959]
37776         * timezone/Makefile: Don't install timezone files, just the programs
37777         and scripts.
37778
37779 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
37780
37781         * nss/databases.def: Add missing gshadow entry.
37782
37783         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
37784
37785 2012-03-06  Marek Polacek  <polacek@redhat.com>
37786
37787         [BZ #13726]
37788         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
37789         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
37790         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
37791         * stdio-common/tst-long-dbl-fphex.c: New file.
37792
37793 2012-03-06  David S. Miller  <davem@davemloft.net>
37794
37795         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
37796         (set_obp_int): New function.
37797         (get_obp_int): New function.
37798         (__get_clockfreq_via_dev_openprom): Likewise.
37799         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
37800         Avoid unused variable warnings on 'val' and use builtin_expect.
37801         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
37802         __builtin_expect.
37803         (INLINE_CLONE_SYSCALL): Likewise.
37804
37805 2012-03-05  David S. Miller  <davem@davemloft.net>
37806
37807         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37808
37809 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
37810
37811         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37812
37813         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
37814         only for |x| >= 40.
37815         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37816
37817 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
37818
37819         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
37820         Replace gettimeofday with __vdso_gettimeofday.
37821
37822         * sysdeps/unix/sysv/linux/x86_64/init-first.c
37823         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
37824         __vdso_clock_gettime and __vdso_getcpu.
37825
37826         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
37827         time with __vdso_time.
37828
37829 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37830
37831         * manual/lang.texi (size_t): Note types to which size_t may be
37832         equivalent with the GNU C Library, but do not describe when
37833         differences between them are significant.
37834
37835 2012-03-05  Andreas Jaeger  <aj@suse.de>
37836
37837         * sysdeps/i386/fpu/libm-test-ulps: Update.
37838
37839 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37840
37841         [BZ #3976]
37842         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
37843         (__ieee754_pow): Save and restore rounding mode and use
37844         round-to-nearest for main computations.
37845         * math/libm-test.inc (pow_test_tonearest): New function.
37846         (pow_test_towardzero): Likewise.
37847         (pow_test_downward): Likewise.
37848         (pow_test_upward): Likewise.
37849         (main): Call the new functions.
37850         * sysdeps/i386/fpu/libm-test-ulps: Update.
37851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37852
37853         [BZ #3976]
37854         * math/libm-test.inc (cosh_test_tonearest): New function.
37855         (cosh_test_towardzero): Likewise.
37856         (cosh_test_downward): Likewise.
37857         (cosh_test_upward): Likewise.
37858         (sinh_test_tonearest): Likewise.
37859         (sinh_test_towardzero): Likewise.
37860         (sinh_test_downward): Likewise.
37861         (sinh_test_upward): Likewise.
37862         (main): Call the new functions.
37863         * sysdeps/i386/fpu/libm-test-ulps: Update.
37864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37865
37866 2012-03-05  Tom de Vries  <tom@codesourcery.com>
37867
37868         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
37869         default stack guard is set in last bytes.
37870         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
37871
37872 2012-03-05  Kees Cook  <keescook@chromium.org>
37873
37874         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
37875
37876         [BZ #13656]
37877         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
37878         possibly allocate from heap instead of stack.
37879         * stdio-common/bug-vfprintf-nargs.c: New file.
37880         * stdio-common/Makefile (tests): Add nargs overflow test.
37881
37882 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
37883
37884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37885
37886 2012-03-03  Marek Polacek  <polacek@redhat.com>
37887
37888         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
37889         * math/math_private.h: Likewise.
37890         * stdlib/tst-strtod.c: Likewise.
37891         * sysdeps/i386/i486/bits/atomic.h: Likewise.
37892         * sysdeps/x86_64/bits/atomic.h: Likewise.
37893
37894 2012-03-02  David S. Miller  <davem@davemloft.net>
37895
37896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
37897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
37898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
37899         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
37900         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
37901         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
37902         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
37903         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
37904
37905 2012-03-02  Roland McGrath  <roland@hack.frob.com>
37906
37907         [BZ #13792]
37908         * manual/examples/README: New file, says the example source files
37909         can be used under GPL>=2.
37910         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
37911         line containing just "*/".
37912         * manual/examples/add.c: Add copyright header (GPL>=2).
37913         * manual/examples/argp-ex1.c: Likewise.
37914         * manual/examples/argp-ex2.c: Likewise.
37915         * manual/examples/argp-ex3.c: Likewise.
37916         * manual/examples/argp-ex4.c: Likewise.
37917         * manual/examples/atexit.c: Likewise.
37918         * manual/examples/db.c: Likewise.
37919         * manual/examples/dir.c: Likewise.
37920         * manual/examples/dir2.c: Likewise.
37921         * manual/examples/execinfo.c: Likewise.
37922         * manual/examples/filecli.c: Likewise.
37923         * manual/examples/filesrv.c: Likewise.
37924         * manual/examples/fmtmsgexpl.c: Likewise.
37925         * manual/examples/genpass.c: Likewise.
37926         * manual/examples/inetcli.c: Likewise.
37927         * manual/examples/inetsrv.c: Likewise.
37928         * manual/examples/isockad.c: Likewise.
37929         * manual/examples/longopt.c: Likewise.
37930         * manual/examples/memopen.c: Likewise.
37931         * manual/examples/memstrm.c: Likewise.
37932         * manual/examples/mkfsock.c: Likewise.
37933         * manual/examples/mkisock.c: Likewise.
37934         * manual/examples/mygetpass.c: Likewise.
37935         * manual/examples/pipe.c: Likewise.
37936         * manual/examples/popen.c: Likewise.
37937         * manual/examples/rprintf.c: Likewise.
37938         * manual/examples/search.c: Likewise.
37939         * manual/examples/select.c: Likewise.
37940         * manual/examples/setjmp.c: Likewise.
37941         * manual/examples/sigh1.c: Likewise.
37942         * manual/examples/sigusr.c: Likewise.
37943         * manual/examples/stpcpy.c: Likewise.
37944         * manual/examples/strdupa.c: Likewise.
37945         * manual/examples/strftim.c: Likewise.
37946         * manual/examples/strncat.c: Likewise.
37947         * manual/examples/subopt.c: Likewise.
37948         * manual/examples/swapcontext.c: Likewise.
37949         * manual/examples/termios.c: Likewise.
37950         * manual/examples/testopt.c: Likewise.
37951         * manual/examples/testpass.c: Likewise.
37952         * manual/examples/timeval_subtract.c: Likewise.
37953
37954         [BZ #13792]
37955         * manual/time.texi (Elapsed Time): Move timeval_subtract example
37956         function to ...
37957         * manual/timeval_subtract.c.texi: ... here, new file.
37958
37959 2012-03-02  David S. Miller  <davem@davemloft.net>
37960
37961         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
37962
37963 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
37964
37965         [BZ #3976]
37966         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
37967         (__sin): Save and restore rounding mode and use round-to-nearest
37968         for all computations.
37969         (__cos): Save and restore rounding mode and use round-to-nearest
37970         for all computations.
37971         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
37972         <fenv.h>.
37973         (tan): Save and restore rounding mode and use round-to-nearest for
37974         all computations.
37975         * math/libm-test.inc (cos_test_tonearest): New function.
37976         (cos_test_towardzero): Likewise.
37977         (cos_test_downward): Likewise.
37978         (cos_test_upward): Likewise.
37979         (sin_test_tonearest): Likewise.
37980         (sin_test_towardzero): Likewise.
37981         (sin_test_downward): Likewise.
37982         (sin_test_upward): Likewise.
37983         (tan_test_tonearest): Likewise.
37984         (tan_test_towardzero): Likewise.
37985         (tan_test_downward): Likewise.
37986         (tan_test_upward): Likewise.
37987         (main): Call the new functions.
37988         * sysdeps/i386/fpu/libm-test-ulps: Update.
37989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37990
37991         [BZ #10135]
37992         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
37993         small n, then large n, before computing and testing k+n.
37994         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37995         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
37996         Likewise.
37997         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
37998         Likewise.
37999         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38000         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38001         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38002         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38003         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38004         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38005         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38006         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38007         * math/libm-test.inc (scalbn_test): Add more tests.
38008         (scalbln_test): Likewise.
38009
38010         * manual/filesys.texi (mode_t): Describe constraints on size and
38011         signedness, not exact equivalence to a particular type.
38012         (ino_t): Likewise.
38013         (ino64_t): Likewise.
38014         (dev_t): Likewise.
38015         (nlink_t): Likewise.
38016         (blkcnt_t): Likewise.
38017         (blkcnt64_t): Likewise.
38018         * manual/llio.texi (off_t): Likewise.
38019
38020         [BZ #3976]
38021         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
38022         (__ieee754_exp): Save and restore rounding mode and use
38023         round-to-nearest for all computations.
38024         * math/libm-test.inc (exp_test_tonearest): New function.
38025         (exp_test_towardzero): Likewise.
38026         (exp_test_downward): Likewise.
38027         (exp_test_upward): Likewise.
38028         (main): Call the new functions.
38029         * sysdeps/i386/fpu/libm-test-ulps: Update.
38030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38031
38032 2012-03-01  Chris Demetriou  <cgd@google.com>
38033
38034         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
38035         have predictable order.
38036
38037 2012-03-01  David S. Miller  <davem@davemloft.net>
38038
38039         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
38040
38041         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
38042         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
38043         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
38044         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
38045
38046         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
38047         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
38048         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
38049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
38050         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
38051         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
38052         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
38053         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
38054         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
38055
38056         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38057
38058         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
38059         * sysdeps/sparc/fpu/libm-test-ulps: to here.
38060         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
38061
38062         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
38063         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
38064         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38065         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
38066         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
38067         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
38068         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
38069         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
38070         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38071         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
38072         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
38073         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38074         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
38075         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38076         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38077         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38078         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
38079         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
38080         * sysdeps/sparc/elf/configure: Regenerated.
38081
38082 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
38083
38084         * configure.in (AS, LD): Require binutils 2.20 or later.
38085         * configure: Regenerated.
38086         * manual/install.texi (Tools for Compilation): Give binutils 2.20
38087         as required minimum version.
38088         * INSTALL: Regenerated.
38089
38090         [BZ #2541]
38091         [BZ #4108]
38092         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
38093         before squaring exponent.
38094         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
38095         bottom long double and 27 bits of top long double before squaring
38096         exponent.
38097         * math/libm-test.inc (erfc_test): Add more tests.
38098         * sysdeps/i386/fpu/libm-test-ulps: Update.
38099         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38101
38102 2012-03-01  Kai Tietz  <ktietz@redhat.com>
38103
38104         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
38105         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
38106         containing bit-fields.
38107         * soft-fp/extended.h (_FP_UNION_E): Likewise.
38108         * soft-fp/single.h (_FP_UNION_S): Likewise.
38109         * soft-fp/double.h (_FP_UNION_D): Likewise.
38110
38111 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38112
38113         [BZ #13786]
38114         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
38115         not include ../strcmp.S.
38116         [USE_AS_STRNCASECMP_L]: Likewise.
38117         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
38118         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
38119         * sysdeps/i386/i686/multiarch/strncase_l-c.c
38120         (__strncasecmp_l_ia32): Define as alias to
38121         __strncasecmp_l_nonascii.
38122
38123         [BZ #5794]
38124         * math/libm-test.inc (expm1_test): Add test for bug 5794.
38125         * sysdeps/i386/fpu/libm-test-ulps: Update.
38126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38127
38128         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
38129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38130
38131 2012-02-29  Jeff Law  <law@redhat.com>
38132
38133         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
38134         out of bounds read.
38135
38136 2012-02-29  Marek Polacek  <polacek@redhat.com>
38137
38138         [BZ #13706]
38139         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
38140         * elf/Makefile: Add rules to run tst-unused-dep.out.
38141
38142 2012-02-28  David S. Miller  <davem@davemloft.net>
38143
38144         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
38145         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
38146         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
38147         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
38148         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
38149         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
38150
38151 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
38152
38153         * math/libm-test.inc (llround_test): Move one test from
38154         lround_test.  Use TEST_f_L in moved test.
38155         (lround_test): Move misplaced test to llround_test.  Add testcase
38156         from bug 2561.
38157
38158 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
38159
38160         * sysdeps/x86_64/fpu/e_expf.S: New file.
38161         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
38162
38163 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
38164
38165         [BZ #13637]
38166         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
38167         of remain_len that may cause incomplete multi-byte character and
38168         false match.
38169         * posix/bug-regex33.c: New file.
38170         * posix/Makefile (tests): Add bug-regex33.
38171
38172 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
38173
38174         * manual/macros.texi: New file.
38175         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
38176         * manual/libc.texinfo: Include macros.texi.
38177         * manual/creatute.texi: Likewise.
38178         * manual/install.texi: Likewise.
38179         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
38180         @glibcadj{} in references to the GNU C Library.
38181         * manual/charset.texi: Likewise.
38182         * manual/conf.texi: Likewise.
38183         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
38184         when not using those macros.
38185         * manual/creature.texi: Likewise.
38186         * manual/crypt.texi: Likewise.
38187         * manual/errno.texi: Likewise.
38188         * manual/filesys.texi: Likewise.
38189         * manual/header.texi: Likewise.
38190         * manual/install.texi: Likewise.
38191         * manual/intro.texi: Likewise.
38192         * manual/io.texi: Likewise.
38193         * manual/job.texi: Likewise.
38194         * manual/lang.texi: Likewise.
38195         * manual/libc.texiinfo: Likewise.
38196         * manual/llio.texi: Likewise.
38197         * manual/locale.texi: Likewise.
38198         * manual/maint.texi: Likewise.
38199         * manual/math.texi: Likewise.
38200         * manual/memory.texi: Likewise.
38201         * manual/message.texi: Likewise.
38202         * manual/nss.texi: Likewise.
38203         * manual/pattern.texi: Likewise.
38204         * manual/process.texi: Likewise.
38205         * manual/resource.texi: Likewise.
38206         * manual/search.texi: Likewise.
38207         * manual/setjmp.texi: Likewise.
38208         * manual/signal.texi: Likewise.
38209         * manual/socket.texi: Likewise.
38210         * manual/startup.texi: Likewise.
38211         * manual/stdio.texi: Likewise.
38212         * manual/string.texi: Likewise.
38213         * manual/sysinfo.texi: Likewise.
38214         * manual/syslog.texi: Likewise.
38215         * manual/terminal.texi: Likewise.
38216         * manual/time.texi: Likewise.
38217         * manual/users.texi: Likewise.
38218         * INSTALL: Regenerated.
38219         * NOTES: Regenerated.
38220         * sysdeps/gnu/errlist.c: Regenerated.
38221
38222 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
38223
38224         * include/dirent.h: Include <dirstream.h> before
38225         <dirent/dirent.h>.
38226
38227 2012-02-28  David S. Miller  <davem@davemloft.net>
38228
38229         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
38230         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
38231         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
38232         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
38233
38234 2012-02-27  David S. Miller  <davem@davemloft.net>
38235
38236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
38237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
38238         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
38239         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
38240
38241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
38242         frame pointer instead of stack pointer relative arg slot.
38243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38244         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38245         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38246
38247 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
38248
38249         [BZ #3992]
38250         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
38251
38252 2012-02-27  David S. Miller  <davem@davemloft.net>
38253
38254         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
38255         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
38256         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
38257         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
38258         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
38259         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
38260         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
38261         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
38262
38263 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38264
38265         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
38266         later.  Allow versions 5-9.
38267         * configure: Regenerated.
38268         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
38269         required minimum version and 4.6 as recommended version.  Do not
38270         mention bugs in GCC 2.7 and 2.8.
38271         * INSTALL: Regenerated.
38272
38273 2012-02-27  David S. Miller  <davem@davemloft.net>
38274
38275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
38276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
38277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
38278         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
38279         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
38280         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
38281         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
38282         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
38283
38284         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
38285         manipulate bits before adding and subtracting TWO112[sx].
38286         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38287
38288 2012-02-27  Roland McGrath  <roland@hack.frob.com>
38289
38290         [BZ #13775]
38291         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
38292         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
38293         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
38294         being in POSIX, because they are in 1003.1-2008.
38295
38296         * rt/tst-aio.c: Include <fcntl.h>.
38297         * rt/tst-aio7.c: Likewise.
38298         * rt/tst-aio64.c: Likewise.
38299
38300         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
38301
38302 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
38303
38304         * manual/install.texi (--with-headers): Describe headers as
38305         interface headers, not private headers.
38306         (Specific advice for GNU/Linux systems): Describe use of headers
38307         from "make headers_install", not private headers from older
38308         kernels.
38309         * INSTALL: Regenerated.
38310         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
38311         Change to 2.6.19.
38312         * sysdeps/unix/sysv/linux/configure: Regenerated.
38313
38314         * manual/llio.texi (fclean): Remove documentation.
38315
38316         * manual/Makefile (libc-texi-generated): New variable.  Include
38317         version.texi.
38318         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
38319         $(libc-texi-generated), not duplicated list of files.
38320         (version.texi, stamp-version): New rules.
38321         (realclean): Remove $(libc-texi-generated), not individual files
38322         from that list.  Do not remove dir-add.texinfo.
38323         * manual/libc.texinfo: Comment out uses of edition numbers and
38324         references to printed manual.  Remove last-updated dates.
38325         (EDITION): Comment out.
38326         (ISBN): Likewise.
38327         (VERSION, UPDATED): Remove.
38328         (version.texi): Include.
38329
38330 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
38331
38332         * sysdeps/posix/spawni.c: Include <signal.h>.
38333         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
38334         * sysdeps/pthread/aio_fsync.c: Likewise.
38335
38336 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
38337
38338         * conform/Makefile (tests): Run only when not cross-compiling and
38339         when fast-check is not defined.
38340
38341         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
38342         * conform/data/limits.h-data: Fixes for POSIX2008.
38343         * conform/run-conformtest.sh: Run all tests.
38344         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
38345         headers.
38346         * include/bits/dlfcn.h: Likewise.
38347         * include/langinfo.h: Likewise.
38348         * include/monetary.h: Likewise.
38349         * include/sys/poll.h: Likewise.
38350
38351         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
38352         for __USE_GNU.
38353         * posix/spawn.h: Define __need_sigset_t.
38354         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
38355         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
38356         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
38357         to get sigevent_t only.
38358         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
38359         only for __USE_GNU.
38360         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
38361         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
38362         process_vm_writev only for __USE_GNU.
38363         * termios/termios.h: Declare tcgetsid also for POSIX2008.
38364
38365         * conform/Makefile: For now ignore errors from run-conformtest.
38366         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
38367         POSIX to avoid namespace pollution.  Don't prepend headers.
38368         * conform/data/aio.h-data: Fixes for POSIX testing.
38369         * conform/data/fcntl.h-data: Likewise.
38370         * conform/data/glob.h-data: Likewise.
38371         * conform/data/grp.h-data: Likewise.
38372         * conform/data/pthread.h-data: Likewise.
38373         * conform/data/pwd.h-data: Likewise.
38374         * conform/data/signal.h-data: Likewise.
38375         * conform/data/spawn.h-data: Likewise.
38376         * conform/data/stdio.h-data: Likewise.
38377         * conform/data/stdlib.h-data: Likewise.
38378         * conform/data/stropts.h-data: Likewise.
38379         * conform/data/sys/mman.h-data: Likewise.
38380         * conform/data/sys/stat.h-data: Likewise.
38381         * conform/data/sys/types.h-data: Likewise.
38382         * conform/data/sys/wait.h-data: Likewise.
38383         * conform/data/time.h-data: Likewise.
38384         * conform/data/unistd.h-data: Likewise.
38385         * conform/data/utime.h-data: Likewise.
38386
38387         * io/sys/stat.h: fchmod was always in POSIX.
38388         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38389         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38390         * rt/aio.h: Define __need_timespec before including <time.h>.
38391         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38392         struct.  Add forward declaration of pthread_attr_t and use it in
38393         sigevent.
38394         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38395         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38396         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38397         always remove CLK_TCK definition.
38398
38399 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38400
38401         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38402
38403 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38404
38405         * conform/run-conformtest.sh: New file.
38406         * conform/Makefile: Run run-conformtest for tests.
38407         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38408         support.
38409
38410         * conform/data/uchar.h-data: New file.
38411         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38412         * conform/data/arpa/inet.h-data: Likewise.
38413         * conform/data/assert.h-data: Likewise.
38414         * conform/data/complex.h-data: Likewise.
38415         * conform/data/cpio.h-data: Likewise.
38416         * conform/data/ctype.h-data: Likewise.
38417         * conform/data/dirent.h-data: Likewise.
38418         * conform/data/dlfcn.h-data: Likewise.
38419         * conform/data/errno.h-data: Likewise.
38420         * conform/data/fcntl.h-data: Likewise.
38421         * conform/data/float.h-data: Likewise.
38422         * conform/data/fmtmsg.h-data: Likewise.
38423         * conform/data/fnmatch.h-data: Likewise.
38424         * conform/data/ftw.h-data: Likewise.
38425         * conform/data/glob.h-data: Likewise.
38426         * conform/data/grp.h-data: Likewise.
38427         * conform/data/iconv.h-data: Likewise.
38428         * conform/data/inttypes.h-data: Likewise.
38429         * conform/data/langinfo.h-data: Likewise.
38430         * conform/data/libgen.h-data: Likewise.
38431         * conform/data/limits.h-data: Likewise.
38432         * conform/data/locale.h-data: Likewise.
38433         * conform/data/math.h-data: Likewise.
38434         * conform/data/monetary.h-data: Likewise.
38435         * conform/data/mqueue.h-data: Likewise.
38436         * conform/data/ndbm.h-data: Likewise.
38437         * conform/data/net/if.h-data: Likewise.
38438         * conform/data/netdb.h-data: Likewise.
38439         * conform/data/netinet/in.h-data: Likewise.
38440         * conform/data/nl_types.h-data: Likewise.
38441         * conform/data/poll.h-data: Likewise.
38442         * conform/data/pthread.h-data: Likewise.
38443         * conform/data/pwd.h-data: Likewise.
38444         * conform/data/regex.h-data: Likewise.
38445         * conform/data/sched.h-data: Likewise.
38446         * conform/data/search.h-data: Likewise.
38447         * conform/data/semaphore.h-data: Likewise.
38448         * conform/data/setjmp.h-data: Likewise.
38449         * conform/data/signal.h-data: Likewise.
38450         * conform/data/spawn.h-data: Likewise.
38451         * conform/data/stdarg.h-data: Likewise.
38452         * conform/data/stdio.h-data: Likewise.
38453         * conform/data/stdlib.h-data: Likewise.
38454         * conform/data/string.h-data: Likewise.
38455         * conform/data/strings.h-data: Likewise.
38456         * conform/data/stropts.h-data: Likewise.
38457         * conform/data/sys/ipc.h-data: Likewise.
38458         * conform/data/sys/mman.h-data: Likewise.
38459         * conform/data/sys/msg.h-data: Likewise.
38460         * conform/data/sys/resource.h-data: Likewise.
38461         * conform/data/sys/select.h-data: Likewise.
38462         * conform/data/sys/sem.h-data: Likewise.
38463         * conform/data/sys/shm.h-data: Likewise.
38464         * conform/data/sys/socket.h-data: Likewise.
38465         * conform/data/sys/stat.h-data: Likewise.
38466         * conform/data/sys/statvfs.h-data: Likewise.
38467         * conform/data/sys/time.h-data: Likewise.
38468         * conform/data/sys/timeb.h-data: Likewise.
38469         * conform/data/sys/times.h-data: Likewise.
38470         * conform/data/sys/types.h-data: Likewise.
38471         * conform/data/sys/uio.h-data: Likewise.
38472         * conform/data/sys/un.h-data: Likewise.
38473         * conform/data/sys/utsname.h-data: Likewise.
38474         * conform/data/sys/wait.h-data: Likewise.
38475         * conform/data/syslog.h-data: Likewise.
38476         * conform/data/tar.h-data: Likewise.
38477         * conform/data/termios.h-data: Likewise.
38478         * conform/data/utime.h-data: Likewise.
38479         * conform/data/utmpx.h-data: Likewise.
38480         * conform/data/varargs.h-data: Likewise.
38481         * conform/data/wchar.h-data: Likewise.
38482         * conform/data/wctype.h-data: Likewise.
38483         * conform/data/wordexp.h-data: Likewise.
38484
38485         * include/stropts.h: New file.
38486         * include/uchar.h: New file.
38487         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38488         * include/assert.h: Likewise.
38489         * include/ctype.h: Likewise.
38490         * include/dirent.h: Likewise.
38491         * include/dlfcn.h: Likewise.
38492         * include/fcntl.h: Likewise.
38493         * include/fnmatch.h: Likewise.
38494         * include/glob.h: Likewise.
38495         * include/grp.h: Likewise.
38496         * include/libio.h: Likewise.
38497         * include/locale.h: Likewise.
38498         * include/math.h: Likewise.
38499         * include/net/if.h: Likewise.
38500         * include/netdb.h: Likewise.
38501         * include/netinet/in.h: Likewise.
38502         * include/pthread.h: Likewise.
38503         * include/pwd.h: Likewise.
38504         * include/regex.h: Likewise.
38505         * include/sched.h: Likewise.
38506         * include/search.h: Likewise.
38507         * include/setjmp.h: Likewise.
38508         * include/signal.h: Likewise.
38509         * include/stdio.h: Likewise.
38510         * include/stdlib.h: Likewise.
38511         * include/string.h: Likewise.
38512         * include/sys/cdefs.h: Likewise.
38513         * include/sys/mman.h: Likewise.
38514         * include/sys/msg.h: Likewise.
38515         * include/sys/resource.h: Likewise.
38516         * include/sys/select.h: Likewise.
38517         * include/sys/socket.h: Likewise.
38518         * include/sys/stat.h: Likewise.
38519         * include/sys/statvfs.h: Likewise.
38520         * include/sys/time.h: Likewise.
38521         * include/sys/times.h: Likewise.
38522         * include/sys/uio.h: Likewise.
38523         * include/sys/utsname.h: Likewise.
38524         * include/sys/wait.h: Likewise.
38525         * include/termios.h: Likewise.
38526         * include/time.h: Likewise.
38527         * include/ulimit.h: Likewise.
38528         * include/unistd.h: Likewise.
38529         * include/utime.h: Likewise.
38530         * include/wchar.h: Likewise.
38531         * include/wctype.h: Likewise.
38532         * include/wordexp.h: Likewise.
38533
38534         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38535
38536         * time/time.h: TIME_UTC must be a macro.
38537         Make timespec_get available for ISO C11 only as well.
38538
38539 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38540
38541         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38542         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38543
38544 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38545
38546         * configure.in: Use -o not -a in test for unsupported multi-arch.
38547
38548 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38549
38550         * manual/texinfo.tex: Update to version 2012-01-19.16.
38551
38552 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38553
38554         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38555
38556 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38557
38558         [BZ #13738]
38559         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38560         * manual/fdl-1.3.texi: New file.
38561         * manual/fdl-1.1.texi: File removed.
38562
38563         [BZ #13738]
38564         * manual/libc.texinfo (FDL_VERSION): New @set.
38565         Use it for mention of FDL in cover text.
38566         (Documentation License): Use it in @include file name.
38567
38568 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38569             Roland McGrath  <roland@hack.frob.com>
38570
38571         [BZ #5461]
38572         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38573         (not LONG_LONG_MAX and LONG_LONG_MIN.
38574         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38575         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38576         name.
38577         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38578
38579 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38580
38581         [BZ #2547]
38582         [BZ #11365]
38583         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38584         manipulate bits before adding and subtracting TWO23[sx].
38585         * math/libm-test.inc (nearbyint_test): Add more tests.
38586
38587 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38588
38589         [BZ #2548]
38590         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38591         bits before adding and subtracting TWO23[sx].
38592         * math/libm-test.inc (rint_test): Add more tests.
38593         (rint_test_tonearest): Likewise.
38594         (rint_test_towardzero): Likewise.
38595         (rint_test_downward): Likewise.
38596         (rint_test_upward: Likewise.
38597
38598 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38599
38600         [BZ #10110]
38601         * include/stdc-predef.h: New file.  Extracted from features.h.
38602         * include/features.h: Include stdc-predef.h.
38603         * Makefile (headers): Add stdc-predef.h.
38604         * CONFORMANCE (Compiler limitations): Update.
38605
38606 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38607
38608         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38609
38610 2012-02-21  David S. Miller  <davem@davemloft.net>
38611
38612         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38613         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38614
38615 2012-02-20  David S. Miller  <davem@davemloft.net>
38616
38617         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38618         using a normal save/restore sequence, rather than allocating a
38619         dummy stack frame just to store a frame pointer and restore.
38620         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38621
38622 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38623
38624         * manual/install.texi: Fix stray word in line-wrapped comment.
38625
38626 2012-02-20  David S. Miller  <davem@davemloft.net>
38627
38628         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38629         both binutils and gcc support GOTDATA.
38630
38631         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38632         "rd %pc" in the PIC register setup sequences.
38633
38634         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38635         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38636         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38637         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38638         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38639         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38640         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38641         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38642         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38643         (SYSCALL_ERROR_HANDLER): Likewise.
38644         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38645         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38646         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38647         (SYSCALL_ERROR_HANDLER): Likewise.
38648
38649         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38650         (HAVE_GCC_GOTDATA): New.
38651         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38652         relocation support in both binutils and gcc.
38653         * sysdeps/sparc/elf/configure: Regenerate.
38654
38655         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38656         * sysdeps/sparc/sparc32/elf/configure: Delete.
38657         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38658         * sysdeps/sparc/sparc64/elf/configure: Delete.
38659         * sysdeps/sparc/elf/configure.in: New file.
38660         * sysdeps/sparc/elf/configure: Generate.
38661
38662         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38663         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38664         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38665         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38666         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38667
38668 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38669
38670         * manual/install.texi: Do not mention specific glibc version
38671         numbers.
38672         * manual/libc.texinfo (VERSION, UPDATED): Update.
38673         (@copying): Use @copyright{} and range of years.
38674
38675 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38676
38677         [BZ #13695]
38678         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38679         [crti.S not in sysdirs] (generated): Do not append.
38680         [crti.S not in sysdirs] (omit-deps): Likewise.
38681         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38682         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38683         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38684         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38685         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38686         Likewise.
38687         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38688         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38689         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38690         * csu/defs.awk: Remove file.
38691         * sysdeps/generic/initfini.c: Likewise.
38692         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38693         variable.
38694         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38695         Likewise.
38696
38697 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38698
38699         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38700         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38701         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38702         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38703         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38704         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38705         <bits/epoll.h>.
38706         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
38707         (__EPOLL_PACKED): Define to empty if not defined by
38708         <bits/epoll.h>.
38709         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
38710         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38711         bits/epoll.h.
38712
38713 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38714
38715         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
38716         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
38717         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
38718         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
38719         <bits/timerfd.h>.
38720         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
38721         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38722         bits/timerfd.h.
38723
38724 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38725
38726         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
38727         in C locale.
38728         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38729         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
38730         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
38731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38732
38733 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
38734
38735         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38736         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38737
38738 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38739
38740         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
38741         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
38742         defined.
38743         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
38744         Likewise.
38745         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
38746         entry for 2.16.
38747
38748 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
38749
38750         * math/w_acos.c: Use non-signaling floating-point comparisons.
38751         * math/w_acosf.c: Likewise.
38752         * math/w_acosh.c: Likewise.
38753         * math/w_acoshf.c: Likewise.
38754         * math/w_acoshl.c: Likewise.
38755         * math/w_acosl.c: Likewise.
38756         * math/w_asin.c: Likewise.
38757         * math/w_asinf.c: Likewise.
38758         * math/w_asinl.c: Likewise.
38759         * math/w_atanh.c: Likewise.
38760         * math/w_atanhf.c: Likewise.
38761         * math/w_atanhl.c: Likewise.
38762         * math/w_exp2.c: Likewise.
38763         * math/w_exp2f.c: Likewise.
38764         * math/w_exp2l.c: Likewise.
38765         * math/w_j0.c: Likewise.
38766         * math/w_j0f.c: Likewise.
38767         * math/w_j0l.c: Likewise.
38768         * math/w_j1.c: Likewise.
38769         * math/w_j1f.c: Likewise.
38770         * math/w_j1l.c: Likewise.
38771         * math/w_jn.c: Likewise.
38772         * math/w_jnf.c: Likewise.
38773         * math/w_log.c: Likewise.
38774         * math/w_log10.c: Likewise.
38775         * math/w_log10f.c: Likewise.
38776         * math/w_log10l.c: Likewise.
38777         * math/w_log2.c: Likewise.
38778         * math/w_log2f.c: Likewise.
38779         * math/w_log2l.c: Likewise.
38780         * math/w_logf.c: Likewise.
38781         * math/w_logl.c: Likewise.
38782         * math/w_sqrt.c: Likewise.
38783         * math/w_sqrtf.c: Likewise.
38784         * math/w_sqrtl.c: Likewise.
38785         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38786         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
38787         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38788         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
38789         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
38790
38791 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38792
38793         [BZ #9739]
38794         * manual/string.texi (strnlen): Use correct parameter name in
38795         equivalent expression.
38796
38797 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38798
38799         [BZ #11174]
38800         * manual/users.texi (seteuid): Consistently use neweuid for
38801         argument name.
38802
38803 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38804
38805         [BZ #13704]
38806         * manual/nss.texi (Services in the NSS configuration): Correct
38807         list of services in example configuration file.
38808
38809 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
38810
38811         [BZ #11322]
38812         * manual/arith.texi: Remove statements about negative zero
38813         behaving identically to zero.
38814
38815 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38816
38817         [BZ #5993]
38818         * manual/install.texi: Do not document upgrading from libc5.
38819
38820 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38821
38822         [BZ #4596]
38823         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
38824
38825 2012-02-18  David S. Miller  <davem@davemloft.net>
38826
38827         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
38828         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
38829         %o7 across the call.
38830         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
38831         instead.
38832         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
38833         SETUP_PIC_REG_LEAF.
38834         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38835         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
38836         * sysdeps/sparc/crtn.S: Likewise.
38837
38838 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
38839
38840         * aout/Makefile: Remove.
38841
38842 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
38843
38844         [BZ #13058]
38845         * manual/examples/argp-ex1.c (main): Format definition in GNU
38846         style.
38847         * manual/examples/argp-ex2.c (main): Likewise.
38848         * manual/examples/argp-ex3.c (main): Likewise.
38849         * manual/examples/argp-ex4.c (main): Likewise.
38850         * manual/examples/longopt.c (main): Use new-style prototype
38851         definition.
38852         * manual/examples/strncat.c (main): Specify return type and use
38853         (void) for arguments.
38854         * manual/examples/subopt.c (main): Use char **argv argument.
38855
38856 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38857
38858         [BZ #5077]
38859         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
38860         rounding modes.
38861
38862 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
38863
38864         [BZ #6907]
38865         * manual/string.texi (strchr): Change when strchrnul is
38866         recommended.
38867
38868 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
38869
38870         [BZ #174]
38871         * manual/locale.texi (setlocale): Document LOCPATH.
38872
38873 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38874
38875         [BZ #10210]
38876         * manual/process.texi (execle): Move @dots{} before last argument.
38877
38878 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
38879
38880         [BZ #12047]
38881         * manual/charset.texi (Generic Charset Conversion): Fix typo
38882         (LC_TYPE -> LC_CTYPE).
38883
38884 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
38885
38886         [BZ #5805]
38887         * manual/arith.texi (scalbn): Use @var{} on parameter names.
38888         (scalbnf): Likewise.
38889         (scalbnl): Likewise.
38890         (scalbln): Likewise.
38891         (scalblnf): Likewise.
38892         (scalblnl): Likewise.
38893         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
38894         (vwarnx): Likewise.
38895         (verr): Likewise.
38896         (verrx): Likewise.
38897         * manual/filesys.texi (telldir): Use braces around return type.
38898         * manual/llio.texi (mmap): Add space after comma.
38899         (mmap64): Likewise.
38900         * manual/math.texi (jn): Use @var{} on parameter names.
38901         (jnf): Likewise.
38902         (jnl): Likewise.
38903         (yn): Likewise.
38904         (ynf): Likewise.
38905         (ynl): Likewise.
38906         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
38907         line.
38908         * manual/resource.texi (ulimit): Use @dots{} instead of literal
38909         "...".
38910         (sched_get_priority_min): Remove semicolon on @deftypefun line.
38911         (sched_get_priority_max): Likewise.
38912         * manual/signal.texi (sigvec): Add space after comma.
38913         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
38914         names.
38915         (if_indextoname): Likewise.
38916         (if_freenameindex): Likewise.
38917         (sendto): Use ',' instead of '.' in prototype.
38918         * manual/startup.texi (syscall): Use @dots{} instead of literal
38919         "...".
38920         * manual/stdio.texi (__fpending): Separate initial words of
38921         paragraph from @deftypefun line.
38922         * manual/syslog.texi (syslog): Use @dots{} instead of literal
38923         "...".
38924         (vsyslog): Use @var{} on parameter names.
38925         * manual/terminal.texi (stty): Use @var{} on parameter names.
38926         * manual/users.texi (getutmp): Use @var{} on parameter names.
38927         (getutmpx): Likewise.
38928
38929 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38930
38931         [BZ #6884]
38932         * manual/stdio.texi (fopen): Fix typos in description of
38933         ",ccs=STRING".
38934
38935 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
38936
38937         [BZ #4026]
38938         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
38939         get clock_id definition.
38940
38941 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
38942
38943         [BZ #4822]
38944         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
38945         (madvise): Cast every argument to void on its own.
38946
38947 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38948
38949         [BZ #9902]
38950         * manual/startup.texi (Exit Status): Fix typo.
38951
38952 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38953
38954         [BZ #10140]
38955         * manual/examples/argp-ex1.c: Include <stdlib.h>.
38956         * manual/examples/argp-ex2.c: Likewise.
38957         * manual/examples/argp-ex3.c: Likewise.
38958
38959 2012-02-16  Richard Henderson  <rth@redhat.com>
38960
38961         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
38962         * sysdeps/s390/s390-32/initfini.c: Remove.
38963         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
38964         * sysdeps/s390/s390-64/initfini.c: Remove.
38965
38966 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38967
38968         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
38969         compiler output for sysdeps/generic/initfini.c.
38970         * sysdeps/sh/elf/initfini.c: Remove file.
38971
38972 2012-02-16  David S. Miller  <davem@davemloft.net>
38973
38974         [BZ #11494]
38975         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
38976
38977         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
38978         * sysdeps/sparc/crti.S: New file.
38979         * sysdeps/sparc/crtn.S: New file.
38980         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
38981         * sysdeps/sparc/sparc64/Makefile: Likewise.
38982
38983 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
38984
38985         [BZ #3335]
38986         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
38987
38988 2012-02-15  Roland McGrath  <roland@hack.frob.com>
38989
38990         [BZ #4822]
38991         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
38992
38993         * mach/devstream.c (cookie_io_functions_t): Macro removed.
38994         (write, read, close): Likewise.
38995         Patch by Aurelien Jarno <aurelien@aurel32.net>.
38996
38997 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
38998
38999         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39000         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39001         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39002         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39003         <bits/signalfd.h>.
39004         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39005         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39006         bits/signalfd.h.
39007
39008 2012-02-14  Marek Polacek  <polacek@redhat.com>
39009
39010         * sysdeps/x86_64/crti.S: New file.
39011         * sysdeps/x86_64/crtn.S: New file.
39012         * sysdeps/x86_64/elf/initfini.c: Remove file.
39013
39014 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39015
39016         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
39017         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
39018         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
39019         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
39020         <bits/inotify.h>.
39021         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
39022         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39023         bits/inotify.h.
39024
39025 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
39026
39027         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
39028         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
39029         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
39030         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
39031         <bits/eventfd.h>.
39032         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
39033         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39034         bits/eventfd.h.
39035
39036 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
39037
39038         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
39039         __feraiseexcept instead of feraiseexcept.
39040
39041         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
39042         nanosleep invocations.
39043         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
39044         strings, and add error checking for a nanosleep invocations.
39045
39046 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39047
39048         Replace FSF snail mail address with URLs, as per GNU coding standards.
39049         Most of the snail mail addresses were wrong anyway, and omitting
39050         them makes the source code easier to maintain.  Almost all of the
39051         changes are to license notices and to locale LC_IDENTIFICATION
39052         addresses, except for this one:
39053         * manual/libc.texinfo: In "Published by", give the FSF's URL,
39054         not its snail mail address.
39055
39056 2012-02-09  Richard Henderson  <rth@twiddle.net>
39057
39058         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
39059         of kernel-features.h.
39060
39061         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
39062
39063 2012-02-08  Marek Polacek  <polacek@redhat.com>
39064
39065         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
39066         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
39067         * sysdeps/gnu/_G_config.h: Likewise.
39068         * sysdeps/generic/_G_config.h: Likewise.
39069
39070 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
39071
39072         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
39073         tests.
39074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39075
39076         * sysdeps/powerpc/powerpc32/crti.S: New file.
39077         * sysdeps/powerpc/powerpc32/crtn.S: New file.
39078         * sysdeps/powerpc/powerpc64/crti.S: New file.
39079         * sysdeps/powerpc/powerpc64/crtn.S: New file.
39080
39081         * Makeconfig (have-initfini): Don't set.
39082         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
39083         * configure.in (nopic_initfini): Don't substitute.
39084         * config.h.in (HAVE_INITFINI): Don't #undef.
39085         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
39086         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
39087
39088 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
39089
39090         Support crti.S and crtn.S provided directly by architectures.
39091         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
39092         [crti.S in sysdirs] (omit-deps): Likewise.
39093         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
39094         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
39095         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
39096         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
39097         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
39098         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
39099         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
39100         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
39101         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
39102         compiler output for sysdeps/generic/initfini.c.
39103         * sysdeps/i386/elf/Makefile: Remove file.
39104         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
39105
39106 2012-02-07  Marek Polacek  <polacek@redhat.com>
39107
39108         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
39109         * sysdeps/gnu/_G_config.h: Likewise.
39110         * sysdeps/mach/hurd/_G_config.h: Likewise.
39111
39112 2012-02-07  Marek Polacek  <polacek@redhat.com>
39113
39114         * math/Makefile (tests): Add tst-CMPLX2.
39115         * math/tst-CMPLX2.c: New file.
39116
39117 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
39118
39119         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39120
39121         * math/libm-test.inc (jn_test): Add missing L suffix.
39122
39123 2012-02-06  Marek Polacek  <polacek@redhat.com>
39124
39125         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
39126         * sysdeps/i386/fpu/e_powf.S: Likewise.
39127         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
39128         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
39129         * sysdeps/i386/fpu/e_acosh.S: Likewise.
39130         * sysdeps/i386/fpu/e_pow.S: Likewise.
39131         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
39132         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
39133         * sysdeps/i386/fpu/s_expm1.S: Likewise.
39134         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
39135         * sysdeps/i386/fpu/e_log2.S: Likewise.
39136         * sysdeps/i386/fpu/e_log2l.S: Likewise.
39137         * sysdeps/i386/fpu/e_scalb.S: Likewise.
39138         * sysdeps/i386/fpu/e_powl.S: Likewise.
39139         * sysdeps/i386/fpu/s_log1p.S: Likewise.
39140         * sysdeps/i386/fpu/e_log10f.S: Likewise.
39141         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
39142         * sysdeps/i386/fpu/e_logl.S: Likewise.
39143         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
39144         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
39145         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
39146         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
39147         * sysdeps/i386/fpu/e_log2f.S: Likewise.
39148         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
39149         * sysdeps/i386/fpu/e_log.S: Likewise.
39150         * sysdeps/i386/fpu/s_cexp.S: Likewise.
39151         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
39152         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
39153         * sysdeps/i386/fpu/e_logf.S: Likewise.
39154         * sysdeps/i386/fpu/e_log10l.S: Likewise.
39155         * sysdeps/i386/fpu/e_atanh.S: Likewise.
39156         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
39157         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
39158         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
39159         * sysdeps/i386/fpu/e_log10.S: Likewise.
39160         * sysdeps/i386/fpu/s_frexp.S: Likewise.
39161         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
39162         * sysdeps/i386/fpu/s_asinh.S: Likewise.
39163         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
39164         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
39165         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
39166         * sysdeps/i386/asm-syntax.h: Likewise.
39167         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
39168         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
39169         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
39170         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
39171         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
39172         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
39173         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
39174         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
39175         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
39176         * sysdeps/powerpc/sysdep.h: Likewise.
39177         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
39178         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
39179
39180 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39181
39182         [BZ #411]
39183         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
39184
39185 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
39186
39187         * sysdeps/i386/sysdep.h: Include <features.h>.
39188         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
39189         version.
39190
39191 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
39192
39193         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
39194         Define.
39195         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
39196         LOAD_PIC_REG_STR.
39197
39198 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39199
39200         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
39201         (SETUP_PIC_REG): Use GET_PC_THUNK.
39202         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
39203         macro.
39204
39205 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39206
39207         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
39208         for non-PIC compilation.
39209         (SETUP_PIC_REG): Add .p2align directive.
39210         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
39211         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
39212         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
39213         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
39214         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
39215         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
39216         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
39217         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
39218         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
39219         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
39220         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
39221         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
39222         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
39223         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
39224         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
39225         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
39226         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
39227         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
39228         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
39229         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
39230         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
39231         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
39232         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
39233         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
39234         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
39235         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
39236         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
39237         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
39238         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
39239         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
39240         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
39241         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
39242         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
39243         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
39244         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
39245         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
39246         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
39247         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
39248         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
39249         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
39250         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
39251
39252 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
39253
39254         * math/tst-CMPLX.c: Include <stdio.h>.
39255
39256 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
39257
39258         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
39259         float.
39260         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39261         * sysdeps/sparc/bits/mathdef.h: Likewise.
39262
39263 2012-01-31  Marek Polacek  <polacek@redhat.com>
39264
39265         * libio/libio.h: Don't define _PARAMS.
39266         * locale/programs/config.h: Don't define PARAMS.
39267         * stdlib/strtol_l.c: Likewise.
39268         (__strtol_l): Remove PARAMS from the prototype.
39269
39270 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
39271
39272         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
39273         names.  Just use the correct names.  Remove unnecessary wrapper
39274         functions.
39275         * malloc/arena.c: Likewise.
39276         * malloc/hooks.c: Likewise.
39277
39278         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
39279         ARENA_TEST says not to.  Simplify test for creation of a new arena.
39280         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
39281
39282 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
39283
39284         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
39285         into tail calls.
39286         (update_get_addr): New function.
39287         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
39288         GET_ADDR_MODULE parameter.
39289
39290 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39291
39292         * crypt/cert.c: Remove __STDC__ conditionals.
39293         * crypt/crypt-entry.c: Likewise.
39294         * crypt/crypt_util.c: Likewise.
39295         * libio/filedoalloc.c: Likewise.
39296         * libio/fileops.c: Likewise.
39297         * libio/genops.c: Likewise.
39298         * libio/iofclose.c: Likewise.
39299         * libio/iofdopen.c: Likewise.
39300         * libio/iofopen.c: Likewise.
39301         * libio/iofopen64.c: Likewise.
39302         * libio/iogetdelim.c: Likewise.
39303         * libio/iopopen.c: Likewise.
39304         * libio/obprintf.c: Likewise.
39305         * libio/oldfileops.c: Likewise.
39306         * libio/oldiofclose.c: Likewise.
39307         * libio/oldiofdopen.c: Likewise.
39308         * libio/oldiofopen.c: Likewise.
39309         * libio/oldiopopen.c: Likewise.
39310         * libio/wfiledoalloc.c: Likewise.
39311         * libio/wgenops.c: Likewise.
39312         * locale/programs/xmalloc.c: Likewise.
39313         * misc/syslog.c: Likewise.
39314         * stdio-common/xbug.c: Likewise.
39315         * string/memchr.c: Likewise.
39316         * string/memcmp.c: Likewise.
39317         * string/memrchr.c: Likewise.
39318         * string/rawmemchr.c: Likewise.
39319         * sysdeps/posix/getcwd.c: Likewise.
39320         * time/strftime_l.c: Likewise.
39321
39322 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
39323
39324         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
39325         * config.make.in (config-cflags-sse2avx): Define.
39326         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
39327         Fix typo.
39328
39329 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
39330
39331         * scripts/config.guess: Update from upstream config git repository.
39332         * scripts/config.sub: Likewise.
39333
39334 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
39335
39336         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
39337         (EM_NUM): Update.
39338         (R_TILEPRO_*, R_TILEGX_*): New macros.
39339
39340         * scripts/firstversions.awk: Fix bug in version range handling.
39341
39342         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
39343
39344         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
39345
39346         * include/sys/epoll.h: New file.
39347         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
39348         libc_hidden_def.
39349
39350 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
39351
39352         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
39353         Avoid unnecessary __WORDSIZE == 64 test.
39354         (fmaxf): Use VEX format if possible.
39355         (fmax): Likewise.
39356         (fminf): Likewise.
39357         (fmin): Likewise.
39358
39359         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
39360         * math/math_private.h: Remove libc_fegetround* and
39361         libc_fesetround*.
39362         * sysdeps/i386/configure.in: Check for -msse2avx.
39363         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
39364         also if SSE2AVX is defined.
39365         Remove libc_fegetround* and libc_fesetround*.
39366         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
39367         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
39368         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
39369         of HAS_YMM_USABLE.
39370         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39371         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39372         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39373         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39374         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39375
39376         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
39377
39378 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39379
39380         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39381         size is not set.
39382         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39383
39384 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39385
39386         [BZ #13618]
39387         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39388         relocation.
39389         * Makeconfig (libm): Define.
39390         * elf/Makefile: Add rules to build and run tst-relsort1.
39391         * elf/tst-relsort1.c: New file.
39392         * elf/tst-relsort1mod1.c: New file.
39393         * elf/tst-relsort1mod2.c: New file.
39394
39395 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39396
39397         * math/s_ldexp.c: Remove __STDC__ conditionals.
39398         * math/s_ldexpf.c: Likewise.
39399         * math/s_ldexpl.c: Likewise.
39400         * math/s_nextafter.c: Likewise.
39401         * math/s_nexttowardf.c: Likewise.
39402         * math/s_significand.c: Likewise.
39403         * math/s_significandf.c: Likewise.
39404         * math/s_significandl.c: Likewise.
39405         * math/w_jnl.c: Likewise.
39406         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39407         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39408         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39409         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39410         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39411         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39412         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39413         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39414         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39415         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39416         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39417         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39418         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39419         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39420         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39421         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39422         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39423         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39424         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39425         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39426         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39427         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39428         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39429         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39430         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39431         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39432         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39433         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39434         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39435         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39436         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39437         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39438         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39439         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39440         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39441         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39442         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39443         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39444         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39445         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39446         * sysdeps/ieee754/k_standard.c: Likewise.
39447         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39448         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39449         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39450         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39451         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39452         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39453         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39454         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39455         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39456         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39457         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39458         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39459         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39460         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39461         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39462         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39463         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39464         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39465         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39466         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39467         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39468         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39469         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39470         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39471         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39472         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39473         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39474         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39475         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39476         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39477         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39478         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39479         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39480         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39481         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39482         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39483         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39484         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39485         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39486         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39487         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39488         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39489         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39490         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39491         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39492         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39493         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39494         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39495         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39496         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39497         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39498         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39499         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39500         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39501         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39502         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39503         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39504         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39505         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39506         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39507         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39508         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39509         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39510         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39511         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39512         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39513         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39514         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39515         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39516         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39517         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39518         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39519         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39520         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39521         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39522         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39523         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39524         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39525         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39526         * sysdeps/ieee754/s_matherr.c: Likewise.
39527         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39528         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39529         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39530         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39531
39532 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39533
39534         * crypt/md5.h: Remove __STDC__ conditionals.
39535         * libio/libioP.h: Likewise.
39536         * locale/programs/config.h: Likewise.
39537         * sysdeps/generic/sysdep.h: Likewise.
39538         * sysdeps/i386/asm-syntax.h: Likewise.
39539         * sysdeps/s390/asm-syntax.h: Likewise.
39540         * sysdeps/unix/sysdep.h: Likewise.
39541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39543
39544 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39545
39546         * libio/libio.h: Remove __STDC__ conditionals.
39547         * malloc/obstack.h: Likewise.
39548         * math/complex.h: Likewise.
39549         * math/math.h: Likewise.
39550         * sysdeps/generic/_G_config.h: Likewise.
39551         * sysdeps/gnu/_G_config.h: Likewise.
39552         * sysdeps/mach/hurd/_G_config.h: Likewise.
39553         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39554         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39555         * sysdeps/sparc/bits/mathdef.h: Likewise.
39556
39557 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39558
39559         [BZ #13583]
39560         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39561         Clean up HAS_* macros.
39562         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39563         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39564         possible.
39565         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39566         HAS_AVX.
39567         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39568         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39569         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39570         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39571         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39572
39573 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39574
39575         * elf/tst-unique3.cc (gets): Remove declaration.
39576         * elf/tst-unique3lib.cc (gets): Likewise.
39577         * elf/tst-unique3lib2.cc (gets): Likewise.
39578         * elf/tst-unique4.cc (gets): Likewise.
39579
39580 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39581
39582         * include/stdio.h: Add C++ protection.  Add gets declarations and
39583         definitions.
39584         * debug/tst-chk1.c: Don't declare gets here.
39585         * stdio-common/tst-gets.c: Likewise.
39586
39587 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39588
39589         * posix/glob: Remove directory.
39590
39591 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39592
39593         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39594
39595 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39596
39597         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39598         of the non-standard EPFNOSUPPORT.
39599
39600 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39601
39602         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39603         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39604         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39605
39606 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39607
39608         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39609
39610 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39611
39612         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39613         transient errors.
39614         * nscd/grpcache.c (cache_addgr): Likewise.
39615         * nscd/hstcache.c (cache_addhst): Likewise.
39616         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39617         * nscd/pwdcache.c (cache_addpw): Likewise.
39618         * nscd/servicescache.c (cache_addserv): Likewise.
39619
39620 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39621
39622         * malloc/malloc.c: Various cleanups.
39623         * malloc/hooks.c: Likewise.
39624
39625         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39626         * stdlib/bug-fmtmsg1.c: New file.
39627
39628         * stdlib/fmtmsg.c (init): Add missing unlock.
39629         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39630
39631 2012-01-12  Marek Polacek  <polacek@redhat.com>
39632
39633         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39634         and _GNU_SOURCE.
39635
39636 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39637
39638         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39639         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39640         macro to ensure uniqueness of label name.
39641         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39642         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39643
39644 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39645
39646         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39647
39648         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39649         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39650         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39651         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39652
39653 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39654
39655         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39656
39657         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39658         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39659         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39660
39661         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39662
39663         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39664         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39665         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39666         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39667
39668         * math/bits/math-finite.h: Add ldexp support.
39669
39670 2012-01-10  Marek Polacek  <polacek@redhat.com>
39671
39672         * locale/programs/localedef.h (show_archive_content): Add noreturn
39673         attribute.
39674
39675 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39676
39677         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39678
39679 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39680
39681         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39682
39683         * io/Makefile (headers): Add bits/poll2.h.
39684
39685 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39686
39687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39688         typo #include statement.
39689
39690 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39691
39692         * include/sys/cdefs.h: Define __attribute_alloc_size.
39693         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39694         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39695         * elf/pldd.c: Likewise.
39696         * iconv/iconv_charmap.c: Likewise.
39697         * iconv/iconvconfig.c: Likewise.
39698         * iconv/strtab.c: Likewise.
39699         * locale/programs/locale.c: Likewise.
39700         * locale/programs/localedef.h: Likewise.
39701         * locale/programs/simple-hash.c: Likewise.
39702         * nscd/nscd.h: Likewise.
39703         * nss/makedb.c: Likewise.
39704         * sysdeps/generic/ldconfig.h: Likewise.
39705         * locale/programs/localedef.c: Remove xmalloc prototype.
39706         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
39707
39708 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
39709
39710         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
39711         appropriate.
39712
39713 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39714
39715         * math/Makefile (tests): Add tst-CMPLX.
39716         * math/tst-CMPLX.c: New file.
39717
39718         * math/complex.h (CMPLXL): Fix typo.
39719
39720         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
39721         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
39722         GLIBC_2.16.
39723         * debug/tst-chk1.c: Add poll and ppoll tests.
39724         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
39725         * include/sys/poll.h: Add hidden proto for ppoll.
39726         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
39727         * sysdeps/mach/hurd/ppoll.c: Likewise.
39728         * io/ppoll.c: Likewise.
39729         * debug/poll_chk.c: New file.
39730         * debug/ppoll_chk.c: New file.
39731         * include/bits/poll2.h: New file.
39732         * io/bits/poll2.h: New file.
39733
39734         [BZ #1350]
39735         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
39736
39737         * configure.in: static is always set to yes.  Remove.
39738         * config.make.in: Don't set build-static.
39739         * Makeconfig: Remove use of build-static.
39740         * dlfcn/Makefile: Likewise.
39741         * elf/Makefile: Likewise.
39742         * math/Makefile: Likewise.
39743         * misc/Makefile: Likewise.
39744         * nptl/Makefile: Likewise.
39745         * sysdeps/mach/hurd/Makefile: Likewise.
39746
39747         * configure.in: PWD_P is not used anymore.
39748         * config.make.in: Remove PWD_P entry.
39749
39750         * configure.in: Remove last remnants of RANLIB.
39751         No need to check for signed size_t anymore.
39752         Don't set libc_commonpagesize and libc_relro_required here for Alpha
39753         and IA-64.
39754         Remove __builtin_expect test because we require at least gcc 3.4.
39755         * aclocal.m4: Likewise.
39756
39757         * wcsmbs/mbrtoc16.c: Implement using towc function.
39758         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
39759         * wcsmbs/wcsmbsload.c: Likewise.
39760         * iconv/gconv_simple.c: Likewise.
39761         * iconv/gconv_int.h: Likewise.
39762         * iconv/gconv_builtin.h: Likewise.
39763         * iconv/iconv_prog.c: Remove CHAR16 handling.
39764
39765         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
39766
39767         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
39768
39769         * configure.in: Remove --with-elf and --enable-bounded options.
39770         Dont set base_machine for ia64.  More non-ELF conditions removed.
39771         Remove testing and setting of leading underscore information.
39772         * config.make.in (build-bounded): Set to no.
39773         * config.h.in: Remove NO_UNDERSCORES entry.
39774         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
39775         them.
39776         * csu/start.c: Remove !NO_UNDERSCORE code.
39777         * locale/localeinfo.h: Likewise.
39778         * sysdeps/generic/machine-gmon.h: Likewise.
39779         * sysdeps/generic/sysdep.h: Likewise.
39780         * sysdeps/i386/sysdep.h: Likewise.
39781         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39782         * sysdeps/mach/sysdep.h: Likewise.
39783         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39784         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39785         * sysdeps/sh/sysdep.h: Likewise.
39786         * sysdeps/sparc/sparc32/alloca.S: Likewise.
39787         * sysdeps/unix/i386/sysdep.S: Likewise.
39788         * sysdeps/unix/sparc/start.c: Likewise.
39789         * sysdeps/unix/sparc/sysdep.S: Likewise.
39790         * sysdeps/unix/sparc/sysdep.h: Likewise.
39791         * sysdeps/unix/start.c: Likewise.
39792         * sysdeps/unix/x86_64/sysdep.S: Likewise.
39793         * sysdeps/x86_64/sysdep.h: Likewise.
39794
39795 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
39796
39797         [BZ #13553]
39798         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
39799         for non-gcc.
39800         * argp/argp-fmtstream.h: Use const instead __const.
39801         * argp/argp.h: Likewise.
39802         * assert/assert.h: Likewise.
39803         * bits/fenv.h: Likewise.
39804         * bits/sched.h: Likewise.
39805         * bits/sigset.h: Likewise.
39806         * bits/sigthread.h: Likewise.
39807         * catgets/nl_types.h: Likewise.
39808         * conform/data/pthread.h-data: Likewise.
39809         * crypt/crypt-private.h: Likewise.
39810         * crypt/crypt.h: Likewise.
39811         * crypt/crypt_util.c: Likewise.
39812         * ctype/ctype.h: Likewise.
39813         * debug/execinfo.h: Likewise.
39814         * debug/mbsnrtowcs_chk.c: Likewise.
39815         * debug/mbsrtowcs_chk.c: Likewise.
39816         * debug/wcsnrtombs_chk.c: Likewise.
39817         * debug/wcsrtombs_chk.c: Likewise.
39818         * debug/wcstombs_chk.c: Likewise.
39819         * dirent/dirent.h: Likewise.
39820         * dlfcn/dlfcn.h: Likewise.
39821         * elf/neededtest4.c: Likewise.
39822         * grp/grp.h: Likewise.
39823         * gshadow/gshadow.h: Likewise.
39824         * iconv/gconv.h: Likewise.
39825         * iconv/gconv_int.h: Likewise.
39826         * iconv/gconv_simple.c: Likewise.
39827         * iconv/iconv.h: Likewise.
39828         * iconv/loop.c: Likewise.
39829         * iconv/skeleton.c: Likewise.
39830         * include/aio.h: Likewise.
39831         * include/aliases.h: Likewise.
39832         * include/argz.h: Likewise.
39833         * include/arpa/inet.h: Likewise.
39834         * include/assert.h: Likewise.
39835         * include/dirent.h: Likewise.
39836         * include/dlfcn.h: Likewise.
39837         * include/execinfo.h: Likewise.
39838         * include/fcntl.h: Likewise.
39839         * include/fenv.h: Likewise.
39840         * include/glob.h: Likewise.
39841         * include/grp.h: Likewise.
39842         * include/libintl.h: Likewise.
39843         * include/mntent.h: Likewise.
39844         * include/netdb.h: Likewise.
39845         * include/pwd.h: Likewise.
39846         * include/rpc/netdb.h: Likewise.
39847         * include/sched.h: Likewise.
39848         * include/search.h: Likewise.
39849         * include/shadow.h: Likewise.
39850         * include/signal.h: Likewise.
39851         * include/stdio.h: Likewise.
39852         * include/stdlib.h: Likewise.
39853         * include/string.h: Likewise.
39854         * include/sys/socket.h: Likewise.
39855         * include/sys/stat.h: Likewise.
39856         * include/sys/statfs.h: Likewise.
39857         * include/sys/statvfs.h: Likewise.
39858         * include/sys/syslog.h: Likewise.
39859         * include/sys/time.h: Likewise.
39860         * include/sys/uio.h: Likewise.
39861         * include/time.h: Likewise.
39862         * include/unistd.h: Likewise.
39863         * include/utmp.h: Likewise.
39864         * include/wchar.h: Likewise.
39865         * include/wctype.h: Likewise.
39866         * inet/aliases.h: Likewise.
39867         * inet/arpa/inet.h: Likewise.
39868         * inet/netinet/ether.h: Likewise.
39869         * inet/netinet/in.h: Likewise.
39870         * intl/libintl.h: Likewise.
39871         * io/bits/fcntl2.h: Likewise.
39872         * io/fcntl.h: Likewise.
39873         * io/ftw.h: Likewise.
39874         * io/sys/poll.h: Likewise.
39875         * io/sys/stat.h: Likewise.
39876         * io/sys/statfs.h: Likewise.
39877         * io/sys/statvfs.h: Likewise.
39878         * io/utime.h: Likewise.
39879         * libio/bits/stdio.h: Likewise.
39880         * libio/bits/stdio2.h: Likewise.
39881         * libio/libio.h: Likewise.
39882         * libio/libioP.h: Likewise.
39883         * libio/stdio.h: Likewise.
39884         * locale/lc-ctype.c: Likewise.
39885         * locale/locale.h: Likewise.
39886         * login/utmp.h: Likewise.
39887         * malloc/arena.c: Likewise.
39888         * malloc/malloc.c: Likewise.
39889         * malloc/malloc.h: Likewise.
39890         * malloc/mcheck.c: Likewise.
39891         * malloc/mtrace.c: Likewise.
39892         * math/bits/mathcalls.h: Likewise.
39893         * math/fenv.h: Likewise.
39894         * math/math_private.h: Likewise.
39895         * misc/bits/error.h: Likewise.
39896         * misc/bits/syslog.h: Likewise.
39897         * misc/err.h: Likewise.
39898         * misc/error.h: Likewise.
39899         * misc/fstab.h: Likewise.
39900         * misc/mntent.h: Likewise.
39901         * misc/regexp.h: Likewise.
39902         * misc/search.h: Likewise.
39903         * misc/sgtty.h: Likewise.
39904         * misc/sys/mman.h: Likewise.
39905         * misc/sys/syslog.h: Likewise.
39906         * misc/sys/uio.h: Likewise.
39907         * misc/sys/xattr.h: Likewise.
39908         * misc/ttyent.h: Likewise.
39909         * nis/rpcsvc/ypclnt.h: Likewise.
39910         * nss/nss.h: Likewise.
39911         * posix/bits/unistd.h: Likewise.
39912         * posix/fnmatch.h: Likewise.
39913         * posix/glob.h: Likewise.
39914         * posix/sched.h: Likewise.
39915         * posix/spawn.h: Likewise.
39916         * posix/sys/wait.h: Likewise.
39917         * posix/unistd.h: Likewise.
39918         * posix/wordexp.h: Likewise.
39919         * pwd/pwd.h: Likewise.
39920         * resolv/netdb.h: Likewise.
39921         * resource/sys/resource.h: Likewise.
39922         * rt/aio.h: Likewise.
39923         * rt/bits/mqueue2.h: Likewise.
39924         * rt/mqueue.h: Likewise.
39925         * shadow/shadow.h: Likewise.
39926         * signal/signal.h: Likewise.
39927         * socket/send.c: Likewise.
39928         * socket/sendto.c: Likewise.
39929         * socket/sys/socket.h: Likewise.
39930         * stdio-common/printf.h: Likewise.
39931         * stdlib/bits/stdlib.h: Likewise.
39932         * stdlib/fmtmsg.h: Likewise.
39933         * stdlib/monetary.h: Likewise.
39934         * stdlib/stdlib.h: Likewise.
39935         * stdlib/ucontext.h: Likewise.
39936         * streams/stropts.h: Likewise.
39937         * string/argz.h: Likewise.
39938         * string/bits/string2.h: Likewise.
39939         * string/string.h: Likewise.
39940         * string/strings.h: Likewise.
39941         * sunrpc/rpc/auth.h: Likewise.
39942         * sunrpc/rpc/auth_des.h: Likewise.
39943         * sunrpc/rpc/clnt.h: Likewise.
39944         * sunrpc/rpc/netdb.h: Likewise.
39945         * sunrpc/rpc/pmap_clnt.h: Likewise.
39946         * sunrpc/rpc/xdr.h: Likewise.
39947         * sysdeps/generic/inttypes.h: Likewise.
39948         * sysdeps/generic/net/if.h: Likewise.
39949         * sysdeps/generic/sys/swap.h: Likewise.
39950         * sysdeps/gnu/net/if.h: Likewise.
39951         * sysdeps/gnu/utmpx.h: Likewise.
39952         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
39953         * sysdeps/i386/i486/bits/string.h: Likewise.
39954         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
39955         * sysdeps/s390/bits/string.h: Likewise.
39956         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
39957         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
39958         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
39959         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
39960         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
39961         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
39962         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
39963         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
39964         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
39965         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
39966         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
39967         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
39968         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
39969         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
39970         * sysdeps/unix/sysv/linux/readv.c: Likewise.
39971         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
39972         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
39973         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
39974         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
39975         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
39976         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39977         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
39978         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
39979         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
39980         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
39981         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
39982         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
39983         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39984         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
39985         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
39986         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
39987         * sysvipc/sys/ipc.h: Likewise.
39988         * sysvipc/sys/msg.h: Likewise.
39989         * sysvipc/sys/sem.h: Likewise.
39990         * sysvipc/sys/shm.h: Likewise.
39991         * termios/termios.h: Likewise.
39992         * time/sys/time.h: Likewise.
39993         * time/time.h: Likewise.
39994         * wcsmbs/bits/wchar2.h: Likewise.
39995         * wcsmbs/uchar.h: Likewise.
39996         * wcsmbs/wchar.h: Likewise.
39997         * wctype/wctype.h: Likewise.
39998
39999         [BZ #13551]
40000         * Makeconfig: Remove all but ELF support including AIX support.
40001         * Makerules: Likewise.
40002         * config.h.in: Likewise.
40003         * config.make.in: Likewise.
40004         * configure: Likewise.
40005         * configure.in: Likewise.
40006         * csu/Makefile: Likewise.
40007         * csu/version.c: Likewise.
40008         * debug/Makefile: Likewise.
40009         * dlfcn/Makefile: Likewise.
40010         * elf/Makefile: Likewise.
40011         * extra-lib.mk: Likewise.
40012         * iconv/Makefile: Likewise.
40013         * include/libc-symbols.h: Likewise.
40014         * include/shlib-compat.h: Likewise.
40015         * resolv/Makefile: Likewise.
40016         * resolv/res_libc.c: Likewise.
40017         * rt/Makefile: Likewise.
40018         * sysdeps/i386/asm-syntax.h: Likewise.
40019         * sysdeps/i386/sysdep.h: Likewise.
40020         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40021         * sysdeps/mach/sysdep.h: Likewise.
40022         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
40023         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
40024         * sysdeps/s390/asm-syntax.h: Likewise.
40025         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40026         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40027         * sysdeps/sh/sysdep.h: Likewise.
40028         * sysdeps/unix/sparc/sysdep.h: Likewise.
40029         * sysdeps/wordsize-32/divdi3.c: Likewise.
40030         * sysdeps/x86_64/sysdep.h: Likewise.
40031
40032         * argp/Versions: Remove _argp_unlock_xxx.
40033
40034         [BZ #13559]
40035         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
40036         * abilist/libBrokenLocale.abilist: Likewise.
40037         * abilist/libanl.abilist: Likewise.
40038         * abilist/libc.abilist: Likewise.
40039         * abilist/libcrypt.abilist: Likewise.
40040         * abilist/libdl.abilist: Likewise.
40041         * abilist/libm.abilist: Likewise.
40042         * abilist/libnsl.abilist: Likewise.
40043         * abilist/libpthread.abilist: Likewise.
40044         * abilist/libresolv.abilist: Likewise.
40045         * abilist/librt.abilist: Likewise.
40046         * abilist/libthread_db.abilist: Likewise.
40047         * abilist/libutil.abilist: Likewise.
40048         * abilist/libnss_db.abilist: New file.
40049
40050         * scripts/abilist.awk: Add support for indirect functions.
40051
40052         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
40053
40054         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
40055
40056         * shlib-versions: Remove entries for ports architectures.
40057
40058         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
40059         files in ports.
40060         * elf/stackguard-macros.h: Remove support for IA-64.
40061         * elf/tst-auditmod1.c: Likewise.
40062         * sysdeps/generic/ldsodefs.h: Likewise.
40063
40064         * sysdeps/unix/sysv/linux/configure.in: Ports should define
40065         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
40066         configure files.
40067
40068         [BZ #13552]
40069         * configure.in: Remove --enable-omitfp support.
40070         * FAQ.in: Adjust.
40071         * config.make.in: Likewise.
40072         * Makeconfig: Likewise.
40073         * manual/install.texi: Likewise.
40074
40075         In case anyone cares, the IA-64 architecture could move to ports.
40076         * sysdeps/ia64/*: Removed.
40077         * sysdeps/unix/sysv/linux/ia64/*: Removed.
40078         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
40079
40080         [BZ #13555]
40081         * configure.in: Remove entries for unsupported architectures.
40082
40083         [BZ #13533]
40084         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
40085         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
40086         routines.
40087         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
40088         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
40089         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
40090         fall back to using wcrtomb.
40091         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
40092         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
40093         renaming.
40094         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
40095         * wcsmbs/tst-c16c32-1.c: New file.
40096
40097         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
40098         local variable.
40099
40100         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
40101
40102         * elf/tst-unique3.cc: Add explicit declaration of gets.
40103         * elf/tst-unique3lib.cc: Likewise.
40104         * elf/tst-unique3lib2.cc: Likewise.
40105         * elf/tst-unique4.cc: Likewise.
40106
40107         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
40108
40109 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
40110
40111         [BZ #13566]
40112         * assert/assert.h (static_assert): Don't define for C++.
40113         * libio/stdio.h (gets): Do declare for C++ <= C++11.
40114         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
40115
40116 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
40117
40118         * iconv/loop.c (single loop): Fix assertion in storing of
40119         remaining bytes.
40120
40121         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
40122
40123 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
40124
40125         * posix/getconf.c: Update copyright year.
40126         * nss/getent.c: Likewise.
40127         * nss/makedb.c: Likewise.
40128         * iconv/iconvconfig.c: Likewise.
40129         * iconv/iconv_prog.c: Likewise.
40130         * elf/ldconfig.c: Likewise.
40131         * elf/pldd.c: Likewise.
40132         * elf/sotruss.ksh: Likewise.
40133         * catgets/gencat.c: Likewise.
40134         * csu/version.c: Likewise.
40135         * elf/ldd.bash.in: Likewise.
40136         * elf/sprof.c (print_version): Likewise.
40137         * locale/programs/locale.c: Likewise.
40138         * locale/programs/localedef.c: Likewise.
40139         * login/programs/pt_chown.c: Likewise.
40140         * nscd/nscd.c (print_version): Likewise.
40141         * debug/xtrace.sh: Likewise.
40142         * malloc/memusage.sh: Likewise.
40143         * malloc/mtrace.pl: Likewise.
40144         * debug/catchsegv.sh: Likewise.
40145
40146 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
40147
40148         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
40149         pure attribute.
40150
40151 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
40152
40153         [BZ #13533]
40154         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
40155         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
40156         transformations.
40157         * iconv/gconv_int.h: Likewise.
40158         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
40159         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
40160         from libc for GLIBC_2.16.
40161         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
40162         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
40163         * wcsmbs/uchar.h: Really define mbstate_t.
40164         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
40165         * wcsmbs/c16rtomb.c: New file.
40166         * wcsmbs/mbrtoc16.c: New file.
40167         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
40168         for C/POSIX locale.
40169         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
40170         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
40171
40172         * wcsmbs/wchar.h: Add missing __restrict.
40173
40174 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40175
40176         [BZ #13532]
40177         * time/Makefile (routines): Add timespec_get.
40178         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
40179         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
40180         timespec for ISO C11.
40181         * time/timespec_get.c: New file.
40182         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
40183         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
40184
40185         [BZ #13531]
40186         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
40187         * stdlib/stdlib.h: Declare aligned_alloc.
40188         * Versions.def: Add GLIBC_2.16 for libc.
40189         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
40190
40191         [BZ 13527]
40192         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
40193         ISO C11.
40194
40195         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
40196         code.
40197
40198         [BZ #13528]
40199         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
40200
40201         [BZ #13529]
40202         * assert/assert.h (static_assert): Define.
40203
40204         * version.h: Update for 2.16 development version.
40205
40206         [BZ #13526]
40207         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
40208         _ISOC11_SOURCE.
40209
40210         * version.h (RELEASE): Bump for 2.15 release.
40211         * include/features.h (__GLIBC_MINOR__): Bump to 15.
40212
40213         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
40214         Patch by Marek Polacek <mpolacek@redhat.com>.
40215
40216         * bits/byteswap.h: Protect long long constants with __extension__.
40217         * sysdeps/i386/bits/byteswap.h: Likewise.
40218         * sysdeps/ia64/bits/byteswap.h: Likewise.
40219         * sysdeps/s390/bits/byteswap.h: Likewise.
40220         * sysdeps/x86_64/bits/byteswap.h: Likewise.
40221
40222 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40223
40224         [BZ #13540]
40225         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
40226         destination buffer.
40227         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
40228
40229 2011-12-23  Marek Polacek  <polacek@redhat.com>
40230
40231         * elf/dl-addr.c (determine_info): Add inline keyword.
40232         * elf/tst-auditmod4b.c (check_avx): Likewise.
40233         * elf/tst-auditmod6b.c (check_avx): Likewise.
40234         * elf/tst-auditmod6c.c (check_avx): Likewise.
40235         * elf/tst-auditmod7b.c (check_avx): Likewise.
40236
40237 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
40238
40239         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
40240         !__SSE_MATH__.
40241
40242 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40243
40244         [BZ #13540]
40245         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
40246         processing for last bytes.
40247
40248 2011-08-06  Bruno Haible  <bruno@clisp.org>
40249
40250         [BZ #13061]
40251         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
40252         U+0385, not to U+1FEE.
40253
40254         [BZ #13062]
40255         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
40256         entry for U+00A5 U+0301.
40257
40258 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40259
40260         [BZ #13166]
40261         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
40262         buffer for the output is too small.
40263
40264         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
40265         optimization.
40266
40267         [BZ #13185]
40268         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
40269         SSE flags if possible.
40270
40271 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40272
40273         [BZ #13540]
40274         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
40275         processing for last bytes.
40276
40277 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
40278
40279         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
40280         (syscall-list-default-options, syscall-list-default-condition)
40281         (syscall-list-includes): Define.
40282         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
40283         list of ABIs and options and #if conditions for each ABI.  Do not
40284         handle common syscalls between ABIs specially.
40285         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
40286         Remove.
40287         (syscall-list-variants, syscall-list-32bit-options)
40288         (syscall-list-32bit-condition, syscall-list-64bit-options)
40289         (syscall-list-64bit-condition): Define.
40290         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
40291         (syscall-list-variants, syscall-list-32bit-options)
40292         (syscall-list-32bit-condition, syscall-list-64bit-options)
40293         (syscall-list-64bit-condition): Define.
40294         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
40295         Remove.
40296         (syscall-list-variants, syscall-list-32bit-options)
40297         (syscall-list-32bit-condition, syscall-list-64bit-options)
40298         (syscall-list-64bit-condition): Define.
40299         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
40300         Remove.
40301         (syscall-list-variants, syscall-list-32bit-options)
40302         (syscall-list-32bit-condition, syscall-list-64bit-options)
40303         (syscall-list-64bit-condition): Define.
40304
40305 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
40306
40307         * locale/iso-639.def: Add brx entry.
40308
40309         [BZ #13328]
40310         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
40311         Proposed by Mariusz_Cukr <marcukr@op.pl>.
40312
40313         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
40314         __feraiseexcept_renamed.
40315
40316 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40317
40318         [BZ #13538]
40319         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
40320         EPOLLET with unsigned values.
40321         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40322         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40323
40324         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
40325         to large cancellation.
40326         * math/s_cacoshf.c: Likewise.
40327         * math/s_cacoshl.c: Likewise.
40328
40329 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
40330
40331         [BZ #13305]
40332         [BZ #12786]
40333         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
40334         * math/s_cacoshf.c: Likewise.
40335         * math/s_cacoshl.c: Likewise.
40336
40337 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
40338
40339         [BZ #13439]
40340         * iconv/gconv.h: Define __GCONV_SWAP.
40341         * iconvdata/unicode.c: The swap bit must be stored in __flags.
40342         * iconvdata/utf-16.c: Likewise.
40343         * iconvdata/utf-32.c: Likewise.
40344
40345 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
40346
40347         [BZ #13524]
40348         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
40349         numerator after shifting it by one limb.
40350
40351 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
40352
40353         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
40354         under [__USE_EXTERN_INLINES].
40355
40356 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40357
40358         [BZ #13446]
40359         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
40360
40361 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40362
40363         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
40364         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
40365         optimized code.
40366         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
40367         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
40368         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
40369         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
40370         for strncasecmp/strncasecmp_l compilation.
40371         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
40372         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
40373
40374 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
40375
40376         [BZ #13484]
40377         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
40378         of __asm__.
40379
40380 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40381
40382         [BZ #13506]
40383         * time/tzfile.c (__tzfile_read): Check values from file header.
40384
40385 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40386
40387         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40388         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40389         * powerpc/powerpc32/dl-start.S: Likewise.
40390         * powerpc/powerpc32/elf/start.S: Likewise.
40391         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40392         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40393         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40394         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40395         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40396         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40397         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40398         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40399         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40400         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40401         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40402         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40403         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40404         * powerpc/powerpc32/memset.S: Likewise.
40405         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40406         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40407         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40408         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40409         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40410         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40411         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40412         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40413         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40414         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40415         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40416         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40417         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40418
40419 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40420
40421         * math/libm-test.inc: Added more nearbyint tests.
40422         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40423         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40424         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40425         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40426
40427 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40428
40429         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40430         FD_CLOEXEC.
40431
40432 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40433
40434         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40435         Add wcscpy-ssse3 wcscpy-c.
40436         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40437         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40438         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40439         * sysdeps/x86_64/wcschr.S: New file.
40440         * sysdeps/x86_64/wcsrchr.S: New file.
40441         * string/test-strcmp.c: Remove checking of wcscmp function for
40442         wrong alignments.
40443         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40444         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40445         wcsrchr-sse2 wcsrchr-c.
40446         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40447         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40448         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40449         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40450         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40451         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40452         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40453         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40454         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40455         * wcsmbc/wcschr.c (WCSCHR): New macro.
40456
40457 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40458
40459         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40460         * wcsmbs/test-wcsrchr.c: New file.
40461         * string/test-strrchr.c: Add wcsrchr support.
40462         (WIDE): New macro.
40463         * wcsmbs/test-wcscpy.c: New file.
40464         * string/test-strcpy.c: Add wcscpy support.
40465         (WIDE): New macro.
40466
40467 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40468
40469         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40470         the inner loop.
40471
40472 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40473
40474         [BZ #13472]
40475         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40476
40477 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40478
40479         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40480         Minor optimizations.
40481
40482         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40483         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40484         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40485
40486 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40487
40488         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40489         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40490         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40491         for gcc to avoid warnings.
40492         * inet/Makefile (tests): Add tst-checks.
40493         * inet/tst-checks.c: New file.
40494
40495         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40496         warning.
40497
40498         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40499         __wmemcmp_sse2.
40500
40501         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40502         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40503
40504         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40505
40506 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40507
40508         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40509         problem.
40510
40511         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40512
40513 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40514
40515         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40516         conditional on GCC version.
40517         (__arch_compare_and_exchange_val_8_acq)
40518         (__arch_compare_and_exchange_val_16_acq)
40519         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40520         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40521         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40522
40523 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40524
40525         * sysdeps/sh/backtrace.c: New file.
40526
40527 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40528
40529         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40530         parenthesis.
40531
40532 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40533
40534         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40535         falling back to utime.
40536
40537 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40538
40539         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40540         expectations for float.
40541
40542 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40543
40544         * locale/weight.h (findidx): Add parameter len.
40545         * locale/weightwc.h (findidx): Likewise.
40546         * posix/fnmatch_loop.c (FCT): Adjust caller.
40547         * posix/regcomp.c (build_equiv_class): Likewise.
40548         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40549         * posix/regexec.c (check_node_accept_bytes): Likewise.
40550         * string/strcoll_l.c (STRCOLL): Likewise.
40551         * string/strxfrm_l.c (STRXFRM): Likewise.
40552
40553 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40554
40555         * Makefile.in: Remove CVSOPT handling.
40556         * configure.in: Remove use of AC_REVISION.
40557         * iconvdata/Makefile (distribute): No need to filter out CVS.
40558         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40559         handling.
40560
40561 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40562
40563         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40564         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40565         [USE_AS_STRNCASECMP_L]: Likewise.
40566         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40567         NO_TLS_DIRECT_SEG_REFS.
40568         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40569         Fix argument offsets for non-PIC.
40570         [USE_AS_STRNCASECMP_L]: Likewise.
40571         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40572         NO_TLS_DIRECT_SEG_REFS.
40573
40574 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40575
40576         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40577         O_CLOEXEC.
40578         * locale/loadlocale.c (_nl_load_locale): Likewise.
40579
40580 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40581
40582         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40583         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40584         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40585         (SYSCALL_GETTIME): Set errno on error.
40586
40587         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40588         count references to noai6ai_cached.
40589
40590 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40591
40592         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40593
40594         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40595         FD_CLOEXEC for /proc/self/maps.
40596
40597         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40598         FD_CLOEXEC for /proc/meminfo.
40599
40600         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40601         gai.conf.
40602
40603         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40604         FD_CLOEXEC for given file.
40605
40606         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40607
40608         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40609         FD_CLOEXEC for /etc/hosts.
40610         (_gethtent): Likewise.
40611
40612         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40613
40614         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40615         cancellation and set FD_CLOEXEC for /etc/netgroup.
40616
40617         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40618         reading /etc/publickey.
40619
40620         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40621         allow cancellation when reading /etc/group.
40622
40623         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40624         cancellation.
40625         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40626
40627         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40628         when using data file.
40629
40630         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40631
40632         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40633         (write_nis_obj): Use "c" and "e" in fopen.
40634
40635         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40636
40637         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40638
40639         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40640
40641         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40642
40643         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40644         locale.alias.
40645
40646         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40647
40648         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40649
40650         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40651
40652         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40653         file parsing and set FD_CLOEXEC.
40654
40655 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40656
40657         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40658
40659 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40660
40661         * malloc/arena.c (arena_get2): Don't call reused_arena when
40662         _int_new_arena failed.
40663
40664 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40665
40666         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40667         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40668         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40669         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40670         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40671         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40672         to compile strcasecmp and strncasecmp.
40673         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40674         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40675
40676         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40677
40678 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40679
40680         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40681         locale-defines.sym to gen-as-const-headers.
40682         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40683         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40684         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40685         to compile strcasecmp and strncasecmp.
40686         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40687         strcasecmp_l and strncasecmp_l.
40688         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40689         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40690         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40691         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40692         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40693         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40694         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40695         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40696         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40697         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40698         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40699
40700 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40701
40702         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40703         result of SYSDEP_GETTIME_CPU to retval.
40704         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40705         parameter list to macro.  Remove trailing semicolon.  Adjust users.
40706
40707         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
40708         variable.
40709
40710         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
40711         mantissa words.
40712         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
40713
40714         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
40715         from unused variable.
40716
40717         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
40718         DWARF definitions.
40719         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
40720         for assembling.
40721
40722         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
40723         over namespaces.
40724
40725         * sunrpc/rpc_prot.c (rejected): Fix case value.
40726
40727         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
40728         unsigned long long int to avoid warnings in shift.
40729
40730         * posix/regex_internal.c (re_string_reconstruct): Actually use result
40731         of use of trans.
40732         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
40733         variable tmp.
40734
40735         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
40736         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
40737         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
40738
40739         * nis/nis_table.c (nis_list): Use variable of correct type for
40740         result of __follow_path call.
40741
40742 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40743
40744         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
40745         of math functions ceil, trunc, floor, round, and sqrt, when
40746         avaliable on the platform.
40747         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
40748         name clash.
40749         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
40750         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
40751         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
40752
40753 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
40754
40755         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
40756         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
40757
40758 2011-11-11  Roland McGrath  <roland@hack.frob.com>
40759
40760         * include/unistd.h: Fix __readlink return type.
40761         Reported by Chris Metcalf <cmetcalf@tilera.com>.
40762
40763 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
40764
40765         * stdlib/ucontext.h: Undo last change for makecontext.
40766
40767 2011-11-11  Andreas Schwab  <schwab@redhat.com>
40768
40769         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
40770
40771         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
40772         * setjmp/setjmp.h: Mark functions as non-leaf.
40773         * setjmp/bits/setjmp2.h: Likewise.
40774         * stdlib/ucontext.h: Likewise.
40775
40776 2011-11-10  Andreas Schwab  <schwab@redhat.com>
40777
40778         * malloc/arena.c (_int_new_arena): Don't increment narenas.
40779         (reused_arena): Don't check arena limit.
40780         (arena_get2): Atomically check arena limit.
40781
40782 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
40783
40784         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
40785         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
40786
40787         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
40788         instructions.
40789
40790 2011-11-07  Andreas Schwab  <schwab@redhat.com>
40791
40792         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
40793         handler when locking.
40794
40795         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40796         Fix size of allocated buffer.
40797
40798 2011-11-04  Andreas Schwab  <schwab@redhat.com>
40799
40800         [BZ #10103]
40801         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
40802         declarations for long double functions.
40803         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
40804
40805         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
40806
40807 2011-11-03  Andreas Schwab  <schwab@redhat.com>
40808
40809         * nscd/nscd.c (main): Don't start AVC thread until credentials are
40810         installed.
40811
40812         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
40813         is disabled.
40814
40815 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40816
40817         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
40818
40819 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
40820
40821         * include/alloca.h (stackinfo_alloca_round): Define.
40822         (extend_alloca): Use it.
40823         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
40824         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
40825         here.
40826
40827         * scripts/check-local-headers.sh: Ignore libaudit.h.
40828
40829         * nscd/Makefile (extra-objs): Make recursively expanded.
40830
40831 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
40832
40833         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
40834         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
40835
40836         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
40837         * posix/tst-rfc3484-2.c: Likewise.
40838         * posix/tst-rfc3484-3.c: Likewise.
40839
40840         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
40841         process_vm_writev.
40842         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
40843         process_vm_writev.
40844         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
40845         process_vm_writev from libc using GLIBC_2.15 version.
40846
40847         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
40848
40849 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
40850
40851         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
40852         stack usage.
40853
40854 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
40855
40856         [BZ #13367]
40857         * nss/getent.c (initgroups_keys): Show error message in case no group
40858         names are given.
40859
40860         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
40861         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
40862         __bump_nl_timestamp.
40863         * nscd/connections (nscd_init): When host database is served open
40864         netlink socket and request notification about configuration changes.
40865         (main_loop_poll): Track netlink file descriptor and bump timestamp
40866         in case data becomes available.
40867         (main_loop_epoll): Likewise.
40868         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
40869         (database_pers_head): Add extra_data fileds.
40870         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
40871         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
40872         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
40873         Adjust caller.
40874         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
40875         in6ai data, call __free_in6ai.
40876         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
40877         Add -DHAVE_NETLINK.
40878         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
40879         interface information.  Reuse previous data if netlink timestamp
40880         is not changed.
40881         (__bump_nl_timestamp): New function.
40882         (__free_in6ai): New function.
40883
40884 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
40885
40886         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
40887         close_not_cancel_no_status here.
40888         (__check_pf): Reorganize code a bit to not call close twice if OOM.
40889
40890 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40891
40892         [BZ #13276]
40893         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
40894         return value.
40895
40896         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
40897         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
40898         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
40899
40900 2011-07-03  Andreas Jaeger  <aj@suse.de>
40901
40902         [BZ #10709]
40903         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
40904         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
40905         * math/libm-test.inc (sin_test): Add test case.
40906
40907 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40908
40909         [BZ #13337]
40910         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
40911         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40912
40913         * elf/chroot_canon.c (chroot_canon): Cleanups.
40914
40915         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
40916
40917         [BZ #13335]
40918         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
40919         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40920
40921         * string/test-strchr.c: Make usable for strchrnul testing.
40922         * string/test-strchrnul.c: New file.
40923         * string/Makefile (strop-tests): Add strchrnul.
40924
40925         * po/it.po: Update from translation team.
40926         * po/es.po: Likewise.
40927
40928 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
40929
40930         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
40931         the three constants needed as parameters.  Drop the others.
40932         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
40933         __m128i_strloadu_tolower.
40934         Create and initialize variable zero and use it in all the places
40935         where _mm_setzero_si128 was used.
40936
40937         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
40938         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
40939         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
40940         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
40941         anymore.
40942         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
40943         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
40944         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
40945         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
40946         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
40947         __mpranred, __mptan.
40948         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
40949         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
40950         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
40951         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
40952         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
40953         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
40954         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
40955         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
40956         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
40957
40958 2011-10-28  Andreas Schwab  <schwab@redhat.com>
40959
40960         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
40961         redefine if SHARED.
40962         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
40963
40964         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
40965         wide char related routines to wcsmbs subdir.
40966
40967 2011-10-27  Andreas Schwab  <schwab@redhat.com>
40968
40969         [BZ #13344]
40970         * misc/sys/cdefs.h (__THROWNL): Define.
40971         * posix/unistd.h: Use __THREADNL instead of __THREAD
40972         for memory synchronization functions.
40973
40974 2011-10-26  Roland McGrath  <roland@hack.frob.com>
40975
40976         [BZ #13349]
40977         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
40978         doesn't exist.
40979         * manual/stdio.texi (Obstack Streams): Node removed.
40980
40981 2011-10-26  Andreas Schwab  <schwab@redhat.com>
40982
40983         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
40984         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40985         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40986
40987         * math/math_private.h (math_force_eval): Allow non-addressable
40988         arguments.
40989         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
40990
40991 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40992
40993         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
40994         file is not needed.
40995
40996         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
40997         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
40998         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40999         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41000         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41001         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41002         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41003         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41004         Add AVX variants.
41005         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41006         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41007         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41008         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41009         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41010         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41011         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41012         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41013         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
41014         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
41015         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
41016         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
41017         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
41018         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
41019         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
41020         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
41021         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
41022         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
41023         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
41024
41025         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
41026         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
41027
41028         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
41029         place.  Use VEX encoding when compiling for AVX.
41030
41031 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41032
41033         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
41034         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
41035
41036         * string/test-strchr.c (do_test): Don't generate NUL bytes.
41037
41038 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41039
41040         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
41041         useless if() expression.
41042         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41043         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
41044         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
41045         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41046         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
41047         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41048         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41049         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41050         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
41051         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41052         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41053         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41054         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
41055         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41056         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
41057         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41058         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41059         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41060         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
41061
41062         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
41063
41064 2011-10-25  Andreas Schwab  <schwab@redhat.com>
41065
41066         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
41067         condition.
41068         * elf/dl-fini.c (_dl_sort_fini): Likewise.
41069
41070 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41071
41072         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
41073         .text section.  Avoid duplicate constants.
41074         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
41075         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41076         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41077         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41078         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41079         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41080         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41081         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41082         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
41083         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
41084         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
41085         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
41086         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
41087         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
41088         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
41089         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
41090         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
41091         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
41092         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
41093         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41094         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
41095         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
41096         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
41097         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
41098         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
41099         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
41100         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
41101         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
41102         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
41103         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
41104         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
41105         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
41106         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
41107         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
41108         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
41109         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
41110         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
41111         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
41112         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
41113         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
41114         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
41115         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
41116         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
41117         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
41118         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
41119
41120 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
41121
41122         * sysdeps/x86_64/dla.h: Move to ...
41123         * sysdeps/x86_64/fpu/dla.h: ...here.
41124         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
41125         situations.  Use __builtin_fma only for gcc 4.6 and up.
41126
41127         * config.make.in: Add have-mfma4 entry.
41128         * configure.in: Substitute libc_cv_cc_fma4.
41129         * math/Makefile (dbl-only-routines): Add sincostab.
41130         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
41131         Use __sincostab not sincos.
41132         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
41133         name is a macro.
41134         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41135         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41136         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41137         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
41138         using __copysign.
41139         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
41140         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
41141         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
41142         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
41143         and __inv.
41144         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
41145         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
41146         __copysign.
41147         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
41148         define aliases when function name is a macro.
41149         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
41150         sysdeps/ieee754/dbl-64/sincos.tbl.
41151         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
41152         fma4-enabled routines.
41153         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
41154         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
41155         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
41156         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
41157         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
41158         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
41159         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
41160         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
41161         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
41162         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
41163         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
41164         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
41165         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
41166         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
41167         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
41168         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
41169         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
41170         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
41171         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
41172         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
41173         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
41174         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
41175         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
41176         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
41177         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
41178         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
41179         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
41180         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
41181         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
41182         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
41183
41184         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
41185         rename.
41186         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41187         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41188         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41189         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41190         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41191         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41192         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41193         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41194
41195 2011-10-24  Andreas Schwab  <schwab@redhat.com>
41196
41197         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
41198
41199 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41200
41201         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
41202
41203         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
41204         prediction.
41205         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
41206
41207         * string/strnlen.c: Don't define STRNLEN, reverse logic.
41208         Remove unused variable magic_bits.
41209         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
41210
41211         * string/strnlen.c: Define and use STRNLEN macro.
41212         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
41213         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
41214         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
41215         * wcsmbs/wcslen.c: Define and use WCSLEN.
41216         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
41217         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
41218         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
41219         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
41220         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
41221         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
41222         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41223
41224 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41225
41226         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
41227         strnlen-sse2-no-bsf.
41228         Rename strlen-no-bsf to strlen-sse2-no-bsf.
41229         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
41230         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
41231         Add strnlen support.
41232         (USE_AS_STRNLEN): New macro.
41233         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
41234         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
41235         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
41236         * sysdeps/x86_64/wcslen.S: New file.
41237
41238 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
41239
41240         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
41241         XMM-moves are used for copying on small sizes.
41242
41243 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41244
41245         * wcsmbs/Makefile (strop-tests): Add wcschr.
41246         * wcsmbs/test-wcschr.c: New file.
41247         * string/test-strchr.c: Update.
41248         Add wcschr support.
41249         (WIDE): New macro.
41250
41251 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41252
41253         * wcsmbs/Makefile (strop-tests): Add wcslen.
41254         * wcsmbs/test-wcslen.c: New file.
41255         * string/test-strlen.c: Update.
41256         Add wcslen support.
41257         (WIDE): New macro.
41258
41259 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41260
41261         * po/it.po: Update from translation team.
41262
41263 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41264
41265         * sysdeps/x86_64/wcscmp.S: Update.
41266         Fix wrong comparison semantics.
41267         wcscmp shall use signed comparison not unsigned.
41268         Don't use substraction to avoid overflow bug.
41269         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
41270         * wcsmbc/wcscmp.c: Likewise.
41271         * string/test-strcmp.c: Likewise.
41272         Add new tests to check cases with negative values.
41273
41274 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
41275
41276         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
41277         * sysdeps/x86_64/dla.h: ...here.  New file.
41278         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
41279         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41280         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41281         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41282         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41283         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41284         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41285         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41286         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41287
41288 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
41289
41290         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
41291         __ynl_finite aliases.
41292
41293 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41294
41295         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41296
41297         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
41298         define DLA_FMA.
41299         [DLA_FMA] (EMULV): Use DLA_FMA.
41300         [DLA_FMA] (MUL12): Use EMULV.
41301         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
41302         that are not needed.
41303         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
41304         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41305         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41306         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41307         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41308         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
41309         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
41310
41311 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
41312
41313         * math/s_nan.c: Undef __nan.
41314         * math/s_nanf.c: Undef __nanf.
41315         * math/s_nanl.c: Undef __nanl.
41316         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
41317         "math_private.h".
41318
41319 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
41320
41321         * math/s_catan.c: Add branch predictions.
41322         * math/s_catanf.c: Likewise.
41323         * math/s_catanh.c: Likewise.
41324         * math/s_catanhf.c: Likewise.
41325         * math/s_catanhl.c: Likewise.
41326         * math/s_catanl.c: Likewise.
41327         * math/s_cexp.c: Likewise.
41328         * math/s_cexpf.c: Likewise.
41329         * math/s_cexpl.c: Likewise.
41330         * math/s_clog.c: Likewise.
41331         * math/s_clog10.c: Likewise.
41332         * math/s_clog10f.c: Likewise.
41333         * math/s_clog10l.c: Likewise.
41334         * math/s_clogf.c: Likewise.
41335         * math/s_clogl.c: Likewise.
41336         * math/s_csqrt.c: Likewise.
41337         * math/s_csqrtf.c: Likewise.
41338         * math/s_csqrtl.c: Likewise.
41339         * math/s_ctanf.c: Likewise.
41340         * math/s_ctanh.c: Likewise.
41341         * math/s_ctanhf.c: Likewise.
41342         * math/s_ctanhl.c: Likewise.
41343         * math/s_ctanl.c: Likewise.
41344
41345         * math/math_private.h: Define __nan, __nanf, __nanl.
41346         * math/s_cacosh.c: Include <math_private.h>.
41347         * math/s_cacoshl.c: Likewise.
41348         * math/s_casinh.c: Likewise.
41349         * math/s_casinhf.c: Likewise.
41350         * math/s_casinhl.c: Likewise.
41351         * math/s_ccos.c: Rely entire on ccosh.
41352         * math/s_ccosf.c: Rely entire on ccoshf.
41353         * math/s_ccosl.c: Rely entirely on ccoshl.
41354         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
41355         Remove tests for FE_INVALID.
41356         * math/s_ccoshf.c: Likewise.
41357         * math/s_ccoshl.c: Likewise.
41358         * math/s_csin.c: Likewise.
41359         * math/s_csinf.c: Likewise.
41360         * math/s_csinh.c Likewise.
41361         * math/s_csinhf.c: Likewise.
41362         * math/s_csinhl.c: Likewise.
41363         * math/s_csinl.c: Likewise.
41364         * math/s_ctan.c: Likewise.
41365         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
41366         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
41367         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
41368
41369 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
41370
41371         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
41372         compilation problems.
41373
41374         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
41375         __builtin_expect.
41376
41377 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
41378
41379         * sysdeps/i386/configure.in: Test for -mfma4 option.
41380         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41381         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41382         COMMON_CPUID_INDEX_80000001.
41383         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41384         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41385         use it if FMA3 is not supported.
41386         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41387
41388         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41389         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41390
41391 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41392
41393         [BZ #12892]
41394         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41395         it would create a cycle with a link time dependency.
41396
41397 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41398
41399         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41400         instruction.
41401         * string/Makefile (strop-tests): Add rawmemchr.
41402         * string/test-rawmemchr.c: New file.
41403
41404         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41405         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41406         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41407         when compiling str{,n}casecmp and when AVX is available.  Hook up
41408         new optimized code in initializers.
41409
41410 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41411
41412         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41413         __feraiseexcept instead of feraiseexcept.
41414
41415 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41416
41417         * math/math_private.h: Define defaults for libc_fetestexcept and
41418         libc_feupdateenv.
41419         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41420         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41421         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41422         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41423         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41424         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41425         libc_fetestexcept and libc_feupdateenv.
41426
41427         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41428         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41429         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41430         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41431         libc_feholdexcept_setround.
41432
41433         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41434         Add s_nearbyint-c and s_nearbyintf-c.
41435         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41436         nearbyintf inlines.
41437         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41438         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41439         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41440         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41441
41442         * math/math_private.h: Define defaults for libc_fegetround,
41443         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41444         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41445         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41446         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41447         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41448         standard functions.
41449         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41450         Remove comments and hacks for old compiler versions.
41451         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41452         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41453         libc_feholdexceptl.
41454
41455 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41456
41457         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41458         (__feraiseexcept_renamed): Add __NTH.
41459         (feraiseexcept): Add __NTH.  Rename local variables to fix
41460         namespace violations.
41461
41462 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41463
41464         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41465
41466         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41467
41468         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41469         recently added interfaces.
41470         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41471
41472         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41473         about macro parameter expansion.
41474
41475         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41476         __NO_MATH_INLINES is defined.  Cleanups.
41477
41478         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41479         and __floorf is target has SSE4.1.
41480         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41481         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41482         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41483         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41484
41485         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41486         name.
41487         (floorf): Likewise.
41488
41489         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41490
41491 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41492
41493         * misc/sys/cdefs.h: Fix last change.
41494
41495         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41496         database lookup.
41497
41498 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41499
41500         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41501
41502         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41503         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41504         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41505         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41506         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41507         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41508         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41509         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41510         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41511         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41512         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41513         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41514         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41515         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41516         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41517         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41518         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41519         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41520         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41521         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41522         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41523         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41524
41525         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41526         ceil, ceilf, floor, floorf.
41527
41528         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41529         Perform IRELATIVE relocations last.
41530
41531         * elf/do-rel.h: Add another parameter nrelative, replacing the
41532         local variable with the same name.  Change name of the function
41533         to end in Rel or Rela (uppercase).
41534         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41535         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41536         elf_dynamic_do_##reloc function.
41537
41538 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41539
41540         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41541         is sufficient, at least on modern CPUs.
41542
41543         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41544
41545         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41546         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41547
41548         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41549         __expl_finite.
41550         * math/bits/math-finite.h: Add entries for exp.
41551         * math/e_expl.c: Add __*_finite alias.
41552         * sysdeps/i386/fpu/e_exp.S: Likewise.
41553         * sysdeps/i386/fpu/e_expf.S: Likewise.
41554         * sysdeps/i386/fpu/e_expl.c: Likewise.
41555         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41556         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41557         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41558         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41559         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41560         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41561         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41562
41563         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41564         is sufficient, at least on modern CPUs.
41565
41566         * ctype/ctype-info.c (__ctype_init): Define.
41567         * include/ctype.h (__ctype_init): Declare.
41568         (__ctype_b_loc): The variable is always initialized.
41569         (__ctype_toupper_loc): Likewise.
41570         (__ctype_tolower_loc): Likewise.
41571         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41572         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41573
41574 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41575
41576         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41577
41578         * configure.in: Also look in $cxxmachine/include for C++ system
41579         headers.
41580
41581 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41582
41583         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41584         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41585         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41586         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41587         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41588         (USE_AS_WMEMCMP): New macro.
41589         Fixing indents.
41590         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41591         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41592         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41593         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41594         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41595         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41596         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41597         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41598         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41599         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41600         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41601         (USE_AS_WMEMCMP): New macro.
41602         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41603         * sysdeps/string/test-memcmp.c: Update.
41604         Fix simple_wmemcmp.
41605         Add new tests.
41606         * wcsmbs/wmemcmp.c: Update.
41607         (WMEMCMP): New macro.
41608         Fix overflow bug.
41609
41610 2011-10-12  Andreas Jaeger  <aj@suse.de>
41611
41612         [BZ #13268]
41613         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41614
41615 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41616
41617         * libio/iofwide.c (do_length): Avoid warning.
41618
41619         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41620
41621 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41622
41623         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41624
41625         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41626         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41627         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41628         * sysdeps/i386/i686/fpu/e_log.S: New file.
41629         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41630         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41631
41632         * ctype/ctype.h: Add support for inlined isXXX functions when
41633         compiling C++ code.
41634
41635 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41636
41637         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41638
41639         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41640
41641 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41642
41643         [BZ #13291]
41644         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41645
41646 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41647
41648         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41649         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41650         feraiseexcept.
41651
41652         * sysdeps/x86_64/memrchr.S: Check for zero size.
41653
41654         * string/stratcliff.c: Add memrchr tests.
41655
41656 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41657
41658         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41659         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41660         rawmemchr-sse2 rawmemchr-sse2-bsf.
41661         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41662         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41663         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41664         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41665         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41666         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41667         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41668         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41669         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41670         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41671         * string/memrchr.c (MEMRCHR): New macro.
41672
41673 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41674
41675         Add integration with gcc's -ffinite-math-only and optimize wrapper
41676         functions in libm.
41677         * Versions.def: Define GLIBC_2.15 version for libm.
41678         * math/Makefile (headers): Add bits/math-finite.h.
41679         * math/bits/math-finite.h: New file.
41680         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41681         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41682         * math/e_acoshl.c: Add __*_finite alias.
41683         * math/e_acosl.c: Likewise.
41684         * math/e_asinl.c: Likewise.
41685         * math/e_atan2l.c: Likewise.
41686         * math/e_atanhl.c: Likewise.
41687         * math/e_coshl.c: Likewise.
41688         * math/e_exp10.c: Likewise.
41689         * math/e_exp10f.c: Likewise.
41690         * math/e_exp10l.c: Likewise.
41691         * math/e_exp2l.c: Likewise.
41692         * math/e_fmodl.c: Likewise.
41693         * math/e_gammal_r.c: Likewise.
41694         * math/e_hypotl.c: Likewise.
41695         * math/e_j0l.c: Likewise.
41696         * math/e_j1l.c: Likewise.
41697         * math/e_jnl.c: Likewise.
41698         * math/e_lgammal_r.c: Likewise.
41699         * math/e_log10l.c: Likewise.
41700         * math/e_log2l.c: Likewise.
41701         * math/e_logl.c: Likewise.
41702         * math/e_powl.c: Likewise.
41703         * math/e_sinhl.c: Likewise.
41704         * math/e_sqrtl.c: Likewise.
41705         * math/e_scalb.c: Completely rewritten and optimized.
41706         * math/e_scalbf.c: Likewise.
41707         * math/e_scalbl.c: Likewise.
41708         * math/w_acos.c: Likewise.
41709         * math/w_acosf.c: Likewise.
41710         * math/w_acosl.c: Likewise.
41711         * math/w_acosh.c: Likewise.
41712         * math/w_acoshf.c: Likewise.
41713         * math/w_acoshl.c: Likewise.
41714         * math/w_asin.c: Likewise.
41715         * math/w_asinf.c: Likewise.
41716         * math/w_asinl.c: Likewise.
41717         * math/w_atan2.c: Likewise.
41718         * math/w_atan2f.c: Likewise.
41719         * math/w_atan2l.c: Likewise.
41720         * math/w_atanh.c: Likewise.
41721         * math/w_atanhf.c: Likewise.
41722         * math/w_atanhl.c: Likewise.
41723         * math/w_exp10.c: Likewise.
41724         * math/w_exp10f.c: Likewise.
41725         * math/w_exp10l.c: Likewise.
41726         * math/w_fmod.c: Likewise.
41727         * math/w_fmodf.c: Likewise.
41728         * math/w_fmodl.c: Likewise.
41729         * math/w_j0.c: Likewise.
41730         * math/w_j0f.c: Likewise.
41731         * math/w_j0l.c: Likewise.
41732         * math/w_j1.c: Likewise.
41733         * math/w_j1f.c: Likewise.
41734         * math/w_j1l.c: Likewise.
41735         * math/w_jn.c: Likewise.
41736         * math/w_jnf.c: Likewise.
41737         * math/w_log.c: Likewise.
41738         * math/w_logf.c: Likewise.
41739         * math/w_logl.c: Likewise.
41740         * math/w_log10.c: Likewise.
41741         * math/w_log10f.c: Likewise.
41742         * math/w_log10l.c: Likewise.
41743         * math/w_log2.c: Likewise.
41744         * math/w_log2f.c: Likewise.
41745         * math/w_log2l.c: Likewise.
41746         * math/w_pow.c: Likewise.
41747         * math/w_powf.c: Likewise.
41748         * math/w_powl.c: Likewise.
41749         * math/w_remainder.c: Likewise.
41750         * math/w_remainderf.c: Likewise.
41751         * math/w_remainderl.c: Likewise.
41752         * math/w_scalb.c: Likewise.
41753         * math/w_scalbf.c: Likewise.
41754         * math/w_scalbl.c: Likewise.
41755         * math/w_sqrt.c: Likewise.
41756         * math/w_sqrtf.c: Likewise.
41757         * math/w_sqrtl.c: Likewise.
41758         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
41759         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
41760         used.
41761         * math/math_private.h: Declare __kernel_standard_f.
41762         * math/w_cosh.c: Remove cruft and optimize a bit.
41763         * math/w_coshf.c: Likewise.
41764         * math/w_coshl.c: Likewise.
41765         * math/w_exp2.c: Likewise.
41766         * math/w_exp2f.c: Likewise.
41767         * math/w_exp2l.c: Likewise.
41768         * math/w_hypot.c: Likewise.
41769         * math/w_hypotf.c: Likewise.
41770         * math/w_hypotl.c: Likewise.
41771         * math/w_lgamma.c: Likewise.
41772         * math/w_lgamma_r.c: Likewise.
41773         * math/w_lgammaf.c: Likewise.
41774         * math/w_lgammaf_r.c: Likewise.
41775         * math/w_lgammal.c: Likewise.
41776         * math/w_lgammal_r.c: Likewise.
41777         * math/w_sinh.c: Likewise.
41778         * math/w_sinhf.c: Likewise.
41779         * math/w_sinhl.c: Likewise.
41780         * math/w_tgamma.c: Likewise.
41781         * math/w_tgammaf.c: Likewise.
41782         * math/w_tgammal.c: Likewise.
41783         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
41784         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41785         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
41786         Minor optimizations.  Pretty printing.  Remove cruft.
41787         * sysdeps/i386/fpu/e_acosf.S: Likewise.
41788         * sysdeps/i386/fpu/e_acosh.S: Likewise.
41789         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
41790         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
41791         * sysdeps/i386/fpu/e_acosl.c: Likewise.
41792         * sysdeps/i386/fpu/e_asin.S: Likewise.
41793         * sysdeps/i386/fpu/e_asinf.S: Likewise.
41794         * sysdeps/i386/fpu/e_atan2.S: Likewise.
41795         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
41796         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
41797         * sysdeps/i386/fpu/e_atanh.S: Likewise.
41798         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
41799         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
41800         * sysdeps/i386/fpu/e_exp10.S: Likewise.
41801         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
41802         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
41803         * sysdeps/i386/fpu/e_exp2.S: Likewise.
41804         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
41805         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
41806         * sysdeps/i386/fpu/e_fmod.S: Likewise.
41807         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
41808         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
41809         * sysdeps/i386/fpu/e_hypot.S: Likewise.
41810         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
41811         * sysdeps/i386/fpu/e_log.S: Likewise.
41812         * sysdeps/i386/fpu/e_log10.S: Likewise.
41813         * sysdeps/i386/fpu/e_log10f.S: Likewise.
41814         * sysdeps/i386/fpu/e_log10l.S: Likewise.
41815         * sysdeps/i386/fpu/e_log2.S: Likewise.
41816         * sysdeps/i386/fpu/e_log2f.S: Likewise.
41817         * sysdeps/i386/fpu/e_log2l.S: Likewise.
41818         * sysdeps/i386/fpu/e_logf.S: Likewise.
41819         * sysdeps/i386/fpu/e_logl.S: Likewise.
41820         * sysdeps/i386/fpu/e_pow.S: Likewise.
41821         * sysdeps/i386/fpu/e_powf.S: Likewise.
41822         * sysdeps/i386/fpu/e_powl.S: Likewise.
41823         * sysdeps/i386/fpu/e_remainder.S: Likewise.
41824         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
41825         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
41826         * sysdeps/i386/fpu/e_scalb.S: Likewise.
41827         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
41828         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
41829         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
41830         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
41831         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
41832         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
41833         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41834         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41835         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
41836         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41837         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
41838         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
41839         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
41840         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41841         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
41842         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
41843         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
41844         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41845         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
41846         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
41847         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41848         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
41849         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
41850         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41851         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41852         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
41853         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
41854         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
41855         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
41856         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
41857         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
41858         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41859         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
41860         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
41861         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
41862         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41863         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
41864         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
41865         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
41866         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
41867         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
41868         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
41869         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
41870         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
41871         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
41872         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
41873         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
41874         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
41875         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
41876         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
41877         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
41878         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
41879         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
41880         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
41881         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
41882         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
41883         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
41884         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
41885         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
41886         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
41887         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
41888         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
41889         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
41890         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
41891         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
41892         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
41893         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
41894         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
41895         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
41896         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
41897         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
41898         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
41899         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
41900         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
41901         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
41902         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
41903         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
41904         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
41905         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
41906         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
41907         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
41908         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
41909         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
41910         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
41911         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
41912         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41913         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
41914         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
41915         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
41916         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41917         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
41918         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
41919         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
41920         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41921         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
41922         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
41923         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
41924         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
41925         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
41926         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41927         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41928         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41929         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
41930         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
41931         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
41932         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
41933         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
41934         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
41935         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
41936         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
41937         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
41938         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
41939         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
41940         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
41941         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
41942         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
41943         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
41944         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
41945         (__isnanf): Likewise.
41946         (__isinf_ns): Likewise.
41947         (__isinf_nsf): Likewise.
41948         (__finite): Likewise.
41949         (__finitef): Likewise.
41950         (__ieee754_sqrt): Define as macro.
41951         (__ieee754_sqrtf): Define as macro.
41952         (__ieee754_sqrtl): Define as macro.
41953         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
41954         inlined copy.
41955         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
41956         __FINITE_MATH_ONLY__ consistent.
41957         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
41958
41959 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
41960
41961         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
41962         of rawmemchr.
41963
41964         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
41965
41966 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
41967
41968         * po/ja.po: Update from translation team.
41969
41970 2011-10-08  Roland McGrath  <roland@hack.frob.com>
41971
41972         * locale/programs/locarchive.c (prepare_address_space): New function.
41973         (create_archive, enlarge_archive, open_archive): Use it.
41974
41975         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
41976         inside [SHARED], where it is used.
41977
41978         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
41979
41980         * nss/getent.c (netgroup_keys): Remove unused variable.
41981         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
41982
41983 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
41984
41985         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
41986         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
41987         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
41988         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
41989         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
41990         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
41991         * math/Makefile (libm-calls): Add s_isinf_ns.
41992         * math/divtc3.c: Use __isinf_nsl instead of isinf.
41993         * math/multc3.c: Likewise.
41994         * math/s_casin.c: Likewise.
41995         * math/s_casinf.c: Likewise.
41996         * math/s_casinl.c: Likewise.
41997         * math/s_ccos.c: Likewise.
41998         * math/s_ccosf.c: Likewise.
41999         * math/s_ccosl.c: Likewise.
42000         * math/s_ctan.c: Likewise.
42001         * math/s_ctanf.c: Likewise.
42002         * math/s_ctanh.c: Likewise.
42003         * math/s_ctanhf.c: Likewise.
42004         * math/s_ctanhl.c: Likewise.
42005         * math/s_ctanl.c: Likewise.
42006         * math/w_fmod.c: Likewise.
42007         * math/w_fmodf.c: Likewise.
42008         * math/w_fmodl.c: Likewise.
42009         * math/w_remainder.c: Likewise.
42010         * math/w_remainderf.c: Likewise.
42011         * math/w_remainderl.c: Likewise.
42012         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42013         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
42014         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
42015         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
42016         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
42017         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
42018         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
42019         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
42020
42021         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
42022         of the number.
42023         * stdio-common/printf_fphex.c: Likewise.
42024         * stdio-common/printf_size.c: Likewise.
42025
42026         * math/e_exp10.c: Include math_private.h using <...> not "...".
42027         * math/e_exp10f.c: Likewise.
42028         * math/e_exp10l.c: Likewise.
42029         * math/e_exp2l.c: Likewise.
42030         * math/e_j0l.c: Likewise.
42031         * math/e_j1l.c: Likewise.
42032         * math/e_jnl.c: Likewise.
42033         * math/e_lgammal_r.c: Likewise.
42034         * math/e_rem_pio2l.c: Likewise.
42035         * math/e_scalb.c: Likewise.
42036         * math/e_scalbf.c: Likewise.
42037         * math/e_scalbl.c: Likewise.
42038         * math/k_cosl.c: Likewise.
42039         * math/k_sinl.c: Likewise.
42040         * math/k_tanl.c: Likewise.
42041         * math/s_cacoshf.c: Likewise.
42042         * math/s_catan.c: Likewise.
42043         * math/s_catanf.c: Likewise.
42044         * math/s_catanh.c: Likewise.
42045         * math/s_catanhf.c: Likewise.
42046         * math/s_catanhl.c: Likewise.
42047         * math/s_catanl.c: Likewise.
42048         * math/s_ccosh.c: Likewise.
42049         * math/s_ccoshf.c: Likewise.
42050         * math/s_ccoshl.c: Likewise.
42051         * math/s_cexp.c: Likewise.
42052         * math/s_cexpf.c: Likewise.
42053         * math/s_cexpl.c: Likewise.
42054         * math/s_clog.c: Likewise.
42055         * math/s_clog10.c: Likewise.
42056         * math/s_clog10f.c: Likewise.
42057         * math/s_clog10l.c: Likewise.
42058         * math/s_clogf.c: Likewise.
42059         * math/s_clogl.c: Likewise.
42060         * math/s_csin.c: Likewise.
42061         * math/s_csinf.c: Likewise.
42062         * math/s_csinh.c: Likewise.
42063         * math/s_csinhf.c: Likewise.
42064         * math/s_csinhl.c: Likewise.
42065         * math/s_csinl.c: Likewise.
42066         * math/s_csqrt.c: Likewise.
42067         * math/s_csqrtf.c: Likewise.
42068         * math/s_csqrtl.c: Likewise.
42069         * math/s_ctan.c: Likewise.
42070         * math/s_ctanf.c: Likewise.
42071         * math/s_ctanh.c: Likewise.
42072         * math/s_ctanhf.c: Likewise.
42073         * math/s_ctanhl.c: Likewise.
42074         * math/s_ctanl.c: Likewise.
42075         * math/s_ldexp.c: Likewise.
42076         * math/s_ldexpf.c: Likewise.
42077         * math/s_ldexpl.c: Likewise.
42078         * math/s_significand.c: Likewise.
42079         * math/s_significandf.c: Likewise.
42080         * math/s_significandl.c: Likewise.
42081         * math/w_acos.c: Likewise.
42082         * math/w_acosf.c: Likewise.
42083         * math/w_acosh.c: Likewise.
42084         * math/w_acoshf.c: Likewise.
42085         * math/w_acoshl.c: Likewise.
42086         * math/w_acosl.c: Likewise.
42087         * math/w_asin.c: Likewise.
42088         * math/w_asinf.c: Likewise.
42089         * math/w_asinl.c: Likewise.
42090         * math/w_atan2.c: Likewise.
42091         * math/w_atan2f.c: Likewise.
42092         * math/w_atan2l.c: Likewise.
42093         * math/w_atanh.c: Likewise.
42094         * math/w_atanhf.c: Likewise.
42095         * math/w_atanhl.c: Likewise.
42096         * math/w_cosh.c: Likewise.
42097         * math/w_coshf.c: Likewise.
42098         * math/w_coshl.c: Likewise.
42099         * math/w_dremf.c: Likewise.
42100         * math/w_exp10.c: Likewise.
42101         * math/w_exp10f.c: Likewise.
42102         * math/w_exp10l.c: Likewise.
42103         * math/w_exp2.c: Likewise.
42104         * math/w_exp2f.c: Likewise.
42105         * math/w_fmod.c: Likewise.
42106         * math/w_fmodf.c: Likewise.
42107         * math/w_fmodl.c: Likewise.
42108         * math/w_hypot.c: Likewise.
42109         * math/w_hypotf.c: Likewise.
42110         * math/w_hypotl.c: Likewise.
42111         * math/w_j0.c: Likewise.
42112         * math/w_j0f.c: Likewise.
42113         * math/w_j0l.c: Likewise.
42114         * math/w_j1.c: Likewise.
42115         * math/w_j1f.c: Likewise.
42116         * math/w_j1l.c: Likewise.
42117         * math/w_jn.c: Likewise.
42118         * math/w_jnf.c: Likewise.
42119         * math/w_jnl.c: Likewise.
42120         * math/w_lgamma.c: Likewise.
42121         * math/w_lgamma_r.c: Likewise.
42122         * math/w_lgammaf.c: Likewise.
42123         * math/w_lgammaf_r.c: Likewise.
42124         * math/w_lgammal.c: Likewise.
42125         * math/w_lgammal_r.c: Likewise.
42126         * math/w_log.c: Likewise.
42127         * math/w_log10.c: Likewise.
42128         * math/w_log10f.c: Likewise.
42129         * math/w_log10l.c: Likewise.
42130         * math/w_log2.c: Likewise.
42131         * math/w_log2f.c: Likewise.
42132         * math/w_log2l.c: Likewise.
42133         * math/w_logf.c: Likewise.
42134         * math/w_logl.c: Likewise.
42135         * math/w_pow.c: Likewise.
42136         * math/w_powf.c: Likewise.
42137         * math/w_powl.c: Likewise.
42138         * math/w_remainder.c: Likewise.
42139         * math/w_remainderf.c: Likewise.
42140         * math/w_remainderl.c: Likewise.
42141         * math/w_scalb.c: Likewise.
42142         * math/w_scalbf.c: Likewise.
42143         * math/w_scalbl.c: Likewise.
42144         * math/w_sinh.c: Likewise.
42145         * math/w_sinhf.c: Likewise.
42146         * math/w_sinhl.c: Likewise.
42147         * math/w_sqrt.c: Likewise.
42148         * math/w_sqrtf.c: Likewise.
42149         * math/w_sqrtl.c: Likewise.
42150         * math/w_tgamma.c: Likewise.
42151         * math/w_tgammaf.c: Likewise.
42152         * math/w_tgammal.c: Likewise.
42153
42154         * po/ja.po: Update from translation team.
42155
42156 2011-09-29  Andreas Jaeger  <aj@suse.de>
42157
42158         [BZ #13179]
42159         * sunrpc/netname.c (netname2host): Fix logic.
42160
42161         [BZ #6779]
42162         [BZ #6783]
42163         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
42164         correctly.
42165         * math/w_remainder.c (__remainder): Likewise.
42166         * math/w_remainderf.c (__remainderf): Likewise.
42167         * math/libm-test.inc (remainder_test): Add test cases.
42168
42169 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42170
42171         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
42172         sdiv_qrnnd.
42173
42174 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42175
42176         * string/test-memcmp.c: Avoid unncessary #defines.
42177         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42178
42179 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42180
42181         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
42182         Use new sse2 version for core i3 - i7 as it's faster
42183         than sse42 version.
42184         (bit_Prefer_PMINUB_for_stringop): New.
42185         * sysdeps/x86_64/rawmemchr.S: Update.
42186         Replace with faster SSE2 version.
42187         * sysdeps/x86_64/memrchr.S: New file.
42188         * sysdeps/x86_64/memchr.S: Update.
42189         Replace with faster SSE2 version.
42190
42191 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
42192
42193         * elf/dl-load.c (lose): Add cast to avoid warning.
42194
42195 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
42196
42197         * po/ca.po: Update from translation team.
42198
42199         * inet/getnetgrent_r.c: Hook up nscd.
42200         * nscd/Makefile (routines): Add nscd_netgroup.
42201         (nscd-modules): Add netgroupcache.
42202         (CFLAGS-netgroupcache.c): Define.
42203         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
42204         (cache_search): Add const to second parameter.
42205         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
42206         INNETGR.
42207         (dbs): Add netgrdb entry.
42208         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
42209         (verify_persistent_db): Handle netgrdb.
42210         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
42211         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
42212         GETFDNETGR.
42213         (netgroup_response_header): Define.
42214         (innetgroup_response_header): Define.
42215         (datahead): Add netgroup_response_header and innetgroup_response_header
42216         elements.
42217         * nscd/nscd.conf: Add entries for netgroup cache.
42218         * nscd/nscd.h (dbtype): Add netgrdb.
42219         (_PATH_NSCD_NETGROUP_DB): Define.
42220         (netgroup_iov_disabled): Declare.
42221         (xmalloc, xcalloc, xrealloc): Move declarations here.
42222         (cache_search): Adjust prototype.
42223         Add netgroup-related prototypes.
42224         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
42225         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
42226         (__nscd_innetgr): Declare.
42227         * nscd/selinux.c (perms): Use access_vector_t as element type and
42228         add netgroup-related initializers.
42229         * nscd/netgroupcache.c: New file.
42230         * nscd/nscd_netgroup.c: New file.
42231         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
42232         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
42233         For four parameters use innetgr.
42234         * nss/nss_files/files-init.c: Add definition and callback for netgr.
42235         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
42236         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
42237         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
42238
42239         * nscd/connections.c (register_traced_file): Don't register file
42240         for disabled databases.
42241
42242 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
42243
42244         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
42245
42246         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
42247         from tree and freeing node.
42248
42249 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
42250
42251         * nss/nsswitch.c (__nss_database_lookup): Handle
42252         nss_parse_service_list out of memory case.
42253
42254 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
42255
42256         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
42257         out of memory case.
42258
42259 2011-10-04  Andreas Schwab  <schwab@redhat.com>
42260
42261         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
42262         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
42263         pass it down.
42264         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
42265         elf_machine_rela, elf_machine_lazy_rel.
42266         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
42267         (ELF_DYNAMIC_DO_REL): Likewise.
42268         (ELF_DYNAMIC_DO_RELA): Likewise.
42269         (ELF_DYNAMIC_RELOCATE): Likewise.
42270         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
42271         to ELF_DYNAMIC_DO_REL.
42272         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
42273         (dl_main): In trace mode always set __RTLD_NOIFUNC.
42274         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
42275         elf_machine_rela.
42276         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
42277         skip_ifunc, don't call ifunc function if non-zero.
42278         (elf_machine_rela): Likewise.
42279         (elf_machine_lazy_rel): Likewise.
42280         (elf_machine_lazy_rela): Likewise.
42281         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
42282         (elf_machine_lazy_rel): Likewise.
42283         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
42284         Likewise.
42285         (elf_machine_lazy_rel): Likewise.
42286         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42287         Likewise.
42288         (elf_machine_lazy_rel): Likewise.
42289         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
42290         (elf_machine_lazy_rel): Likewise.
42291         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
42292         (elf_machine_lazy_rel): Likewise.
42293         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
42294         (elf_machine_lazy_rel): Likewise.
42295         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
42296         (elf_machine_lazy_rel): Likewise.
42297         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
42298         (elf_machine_lazy_rel): Likewise.
42299         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
42300         (elf_machine_lazy_rel): Likewise.
42301
42302 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
42303
42304         * nss/nss_files/files-init.c (_nss_files_init): Use static
42305         initialization for all the *_traced_file variables.
42306
42307 2011-09-28  Andreas Schwab  <schwab@redhat.com>
42308
42309         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42310
42311 2011-09-27  Roland McGrath  <roland@hack.frob.com>
42312
42313         [BZ #13226]
42314         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
42315
42316 2011-09-27  Andreas Schwab  <schwab@redhat.com>
42317
42318         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42319         Reread the line before reparsing it.
42320
42321 2011-09-26  Andreas Schwab  <schwab@redhat.com>
42322
42323         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
42324
42325 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
42326             Maxim Kuvyrkov  <maxim@codesourcery.com>
42327             Joseph Myers  <joseph@codesourcery.com>
42328
42329         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
42330         if needed for __stack_chk_guard.
42331
42332 2011-09-19  Roland McGrath  <roland@hack.frob.com>
42333
42334         * sysdeps/posix/spawni.c (script_execute): Always define it.
42335         It will be optimized away if unused.
42336         (maybe_script_execute): New function.
42337         (__spawni): Call it.
42338
42339         * Makerules: Don't include tls.make.
42340         (config-tls): Always set to thread.
42341         * tls.make.c: File removed.
42342
42343 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
42344
42345         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
42346         * config.make.in (CPPFLAGS-config): New substituted variable.
42347
42348 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42349
42350         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
42351
42352         [BZ #13192]
42353         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
42354         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
42355
42356 2011-09-15  Roland McGrath  <roland@hack.frob.com>
42357
42358         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
42359         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
42360         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
42361         (CALL_FAIL): Likewise.
42362         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
42363         (CALL_FAIL): Macro removed.
42364         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
42365
42366 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
42367
42368         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
42369         for __FINITE_MATH_ONLY__ == 1.
42370
42371 2011-09-15  Andreas Schwab  <schwab@redhat.com>
42372
42373         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
42374         __ieee754_sqrt instead of sqrt.
42375         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
42376         __ieee754_sqrtf instead of sqrtf.
42377         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
42378         __floorf instead of floorf.
42379         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
42380         __floorf, __truncf instead of floorf, truncf.
42381
42382 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42383
42384         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42385
42386         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42387         __extern_always_inline.
42388         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42389         32-bit.
42390
42391 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42392
42393         * elf/rtld.c (dl_main): Also relocate in dependency order when
42394         doing symbol dependency testing.
42395
42396 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42397
42398         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42399         Always define `refsym'.
42400
42401 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42402
42403         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42404         (__FD_ELT): Renamed from __FDELT.
42405         * misc/bits/select2.h (__FD_ELT): Likewise.
42406         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42407         __FD_MASK instead of __FDELT, __FDMASK.
42408         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42409         Likewise.
42410         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42411         Likewise.
42412
42413         * elf/Makefile (gen-ldd): Fix pattern.
42414
42415         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42416         (init_tls): Likewise.
42417
42418 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42419
42420         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42421
42422 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42423
42424         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42425         `struct cmsghdr *' instead of `void *'.
42426         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42427         Likewise.
42428
42429 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42430
42431         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42432         if non-absolute.
42433         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42434         ldd_rewrite_script.
42435
42436 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42437
42438         * configure.in: Remove --with-tls option.
42439         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42440         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42441         out in case it is missing.
42442         * sysdeps/ia64/elf/configure.in: Likewise.
42443         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42444         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42445         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42446         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42447         * sysdeps/sh/elf/configure.in: Likewise.
42448         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42449         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42450         * sysdeps/x86_64/elf/configure.in: Likewise.
42451         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42452         * sysdeps/mach/hurd/tls.h: Likewise.
42453
42454         [BZ #13067]
42455         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42456
42457         [BZ #13090]
42458         * configure.in: Fix use of AC_INIT.
42459
42460         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42461
42462 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42463
42464         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42465         __set_errno.
42466         * malloc/hooks.c: Likewise.
42467
42468         [BZ #11929]
42469         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42470         variables statically.
42471         (narenas): Initialize.
42472         (list_lock): Initialize.
42473         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42474         initializtion of main_arena and list_lock.  Small cleanups.
42475         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42476         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42477         Add initializers to main_arena and mp_.
42478         (malloc_state): Remove pagesize member.  Change all users to use
42479         GLRO(dl_pagesize).
42480
42481         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42482         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42483         is always initialized.
42484
42485         * malloc/malloc.c: Removed unused configurations and dead code.
42486         * malloc/arena.c: Likewise.
42487         * malloc/hooks.c: Likewise.
42488         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42489
42490         * include/tls.h: Removed.  USE___THREAD must always be defined.
42491         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42492         * elf/dl-libc.c: Likewise.
42493         * elf/dl-tsd.c: Likewise.
42494         * include/errno.h: Likewise.
42495         * include/netdb.h: Likewise.
42496         * include/resolv.h: Likewise.
42497         * inet/herrno-loc.c: Likewise.
42498         * inet/herrno.c: Likewise.
42499         * malloc/arena.c: Likewise.
42500         * malloc/hooks.c: Likewise.
42501         * malloc/malloc.c: Likewise.
42502         * resolv/res-state.c: Likewise.
42503         * resolv/res_libc.c: Likewise.
42504         * sysdeps/i386/dl-machine.h: Likewise.
42505         * sysdeps/ia64/dl-machine.h: Likewise.
42506         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42507         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42508         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42509         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42510         * sysdeps/sh/dl-machine.h: Likewise.
42511         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42512         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42513         * sysdeps/unix/i386/sysdep.S: Likewise.
42514         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42515         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42516         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42517         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42518         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42519         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42520         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42521         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42522         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42523         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42524         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42525         * sysdeps/x86_64/dl-machine.h: Likewise.
42526         * tls.make.c: Likewise.
42527
42528         * configure.in: Remove --with-__thread option.  Make tests for
42529         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42530         tls_model attribute fail if no support is available.  Remove
42531         USE_IN_LIBIO.
42532         * Makeconfig: Adjust for dropped configure option.  All features are
42533         now mandatory.
42534         * Makerules: Likewise.
42535         * Versions.def: Likewise.
42536         * argp/argp-fmtstream.c: Likewise.
42537         * argp/argp-fmtstream.h: Likewise.
42538         * argp/argp-help.c: Likewise.
42539         * assert/assert.c: Likewise.
42540         * config.h.in: Likewise.
42541         * config.make.in: Likewise.
42542         * configure: Likewise.
42543         * configure.in: Likewise.
42544         * csu/Versions: Likewise.
42545         * csu/init.c: Likewise.
42546         * elf/tst-audit2.c: Likewise.
42547         * elf/tst-tls10.c: Likewise.
42548         * elf/tst-tls10.h: Likewise.
42549         * elf/tst-tls11.c: Likewise.
42550         * elf/tst-tls12.c: Likewise.
42551         * elf/tst-tls14.c: Likewise.
42552         * elf/tst-tlsmod11.c: Likewise.
42553         * elf/tst-tlsmod12.c: Likewise.
42554         * elf/tst-tlsmod13.c: Likewise.
42555         * elf/tst-tlsmod13a.c: Likewise.
42556         * elf/tst-tlsmod14a.c: Likewise.
42557         * elf/tst-tlsmod15b.c: Likewise.
42558         * elf/tst-tlsmod16a.c: Likewise.
42559         * elf/tst-tlsmod16b.c: Likewise.
42560         * elf/tst-tlsmod7.c: Likewise.
42561         * elf/tst-tlsmod8.c: Likewise.
42562         * elf/tst-tlsmod9.c: Likewise.
42563         * gmon/gmon.c: Likewise.
42564         * grp/fgetgrent_r.c: Likewise.
42565         * grp/putgrent.c: Likewise.
42566         * hurd/fopenport.c: Likewise.
42567         * include/libc-symbols.h: Likewise.
42568         * include/tls.h: Likewise.
42569         * intl/gettextP.h: Likewise.
42570         * intl/loadinfo.h: Likewise.
42571         * locale/global-locale.c: Likewise.
42572         * locale/localeinfo.h: Likewise.
42573         * mach/devstream.c: Likewise.
42574         * malloc/arena.c: Likewise.
42575         * malloc/set-freeres.c: Likewise.
42576         * misc/err.c: Likewise.
42577         * misc/getttyent.c: Likewise.
42578         * misc/mntent_r.c: Likewise.
42579         * posix/getopt.c: Likewise.
42580         * posix/wordexp.c: Likewise.
42581         * pwd/fgetpwent_r.c: Likewise.
42582         * resolv/Versions: Likewise.
42583         * resolv/res_hconf.c: Likewise.
42584         * shadow/fgetspent_r.c: Likewise.
42585         * shadow/putspent.c: Likewise.
42586         * stdio-common/printf_fphex.c: Likewise.
42587         * stdio-common/tmpfile.c: Likewise.
42588         * stdlib/abort.c: Likewise.
42589         * stdlib/fmtmsg.c: Likewise.
42590         * sunrpc/auth_unix.c: Likewise.
42591         * sunrpc/clnt_perr.c: Likewise.
42592         * sunrpc/clnt_tcp.c: Likewise.
42593         * sunrpc/clnt_udp.c: Likewise.
42594         * sunrpc/clnt_unix.c: Likewise.
42595         * sunrpc/openchild.c: Likewise.
42596         * sunrpc/svc_simple.c: Likewise.
42597         * sunrpc/svc_tcp.c: Likewise.
42598         * sunrpc/svc_udp.c: Likewise.
42599         * sunrpc/svc_unix.c: Likewise.
42600         * sunrpc/xdr.c: Likewise.
42601         * sunrpc/xdr_array.c: Likewise.
42602         * sunrpc/xdr_rec.c: Likewise.
42603         * sunrpc/xdr_ref.c: Likewise.
42604         * sunrpc/xdr_stdio.c: Likewise.
42605
42606 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42607
42608         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42609
42610 2011-07-03  Andreas Jaeger  <aj@suse.de>
42611
42612         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42613         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42614         regenerate with gen-libm-tests.pl.
42615
42616 2010-05-12  Petr Baudis  <pasky@suse.cz>
42617
42618         [BZ #11589]
42619         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42620         around j0() zero points by switching to j1().
42621         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42622         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42623         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42624         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42625
42626 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42627
42628         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42629         instead of 0.
42630         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42631         instead of 0.
42632         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42633         Patch in part by Pavel Roskin <proski@gnu.org>.
42634
42635         [BZ #13138]
42636         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42637         realloc.
42638         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42639         Free memory block if necessary.
42640
42641         [BZ #12847]
42642         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42643         be NULL.  Don't lock in this case.
42644
42645 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42646
42647         * elf/elf.h (ELFOSABI_GNU): New macro.
42648         (ELFOSABI_LINUX): Define to that.
42649
42650 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42651
42652         * string/strncat.c (strncat): Undef the symbol in case it has been
42653         defined in bits/string.h.
42654
42655 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42656
42657         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42658
42659         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42660         link map.
42661
42662 2011-08-17  Andreas Jaeger  <aj@suse.de>
42663
42664         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42665
42666 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42667             Ian Lance Taylor  <iant@google.com>
42668
42669         * math/libm-test.inc (lround_test): New testcase.
42670         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42671
42672 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42673
42674         * Makefile: Remove support for automatic cvs check-ins.
42675         * Makerules: Likewise.
42676         * config.make.in: Likewise.
42677         * configure.in: Likewise.
42678         * intl/Makefile: Likewise.
42679         * locale/Makefile: Likewise.
42680         * po/Makefile: Likewise.
42681         * posix/Makefile: Likewise.
42682         * sysdeps/gnu/Makefile: Likewise.
42683         * sysdeps/mach/hurd/Makefile: Likewise.
42684         * sysdeps/sparc/sparc32/Makefile: Likewise.
42685
42686         [BZ #13118]
42687         * posix/Makefile (bug-regex32-ENV): Define.
42688         Patch by John Stanley <jpsinthemix@verizon.net>.
42689
42690         * misc/Makefile (headers): Add bits/select2.h.
42691         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42692         * misc/bits/select2.h: New file.
42693         * include/bits/select2.h: New file.
42694         * debug/Makefile (routines): Add fdelt_chk.
42695         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42696         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42697         FD_ISSET.
42698         * debug/fdelt_chk.c: New file.
42699
42700         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42701         * wcsmbs/test-wmemcmp.c: Likewise.
42702         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42703         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42704
42705 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42706
42707         * string/Makefile (strop-tests): Add memcmp.
42708         * string/test-wmemcmp.c: New file.
42709         * string/test-memcmp.c: Add wmemcmp support.
42710
42711 2011-09-08  Roland McGrath  <roland@hack.frob.com>
42712
42713         [BZ #13153]
42714         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
42715         2011-07-19 change.
42716
42717         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
42718         garbage value in a __mach_port_mod_refs call in the cases of the
42719         task-self and thread-self ports.
42720
42721 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42722
42723         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
42724
42725 2011-09-08  Andreas Schwab  <schwab@redhat.com>
42726
42727         * elf/dl-load.c (lose): Check for non-null L.
42728
42729 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42730
42731         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
42732
42733         * elf/dl-libc.c (dlerror_run): Pass back error code from
42734         dl_catch_error.
42735
42736         [BZ #13123]
42737         * elf/dl-load.c (lose): Free l_origin if it is valid.
42738
42739         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
42740         names.
42741         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
42742         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42743         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42744         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42745         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
42746         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
42747
42748 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42749
42750         * sysdeps/powerpc/fpu/e_hypot.c: New file.
42751         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
42752         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
42753         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
42754         * sysdeps/powerpc/fpu/k_cosf.c: New file.
42755         * sysdeps/powerpc/fpu/k_sinf.c: New file.
42756         * sysdeps/powerpc/fpu/s_cosf.c: New file.
42757         * sysdeps/powerpc/fpu/s_sinf.c: New file.
42758         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
42759         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
42760
42761 2011-08-15  Alan Modra  <amodra@gmail.com>
42762
42763         [BZ #13092]
42764         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
42765         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
42766         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
42767         ppc_mcount to static-only-routines.
42768         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
42769         __mcount_internal.
42770         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
42771         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
42772
42773 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
42774
42775         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
42776         for finite and infinity parameters.
42777
42778 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
42779
42780         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
42781         and add nop instructions for throughput optimization.
42782         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42783
42784 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
42785
42786         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
42787         aligned copy for power7 with vector-scalar instructions.
42788         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42789
42790 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
42791
42792         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
42793         AVX check.
42794
42795 2011-09-07  Andreas Schwab  <schwab@redhat.com>
42796
42797         [BZ #13144]
42798         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
42799         last change.
42800
42801 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42802
42803         * sysdeps/unix/sysv/linux/x86_64/init-first.c
42804         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
42805         syscall wrapper around clock_gettime in __vdso_clock_gettime.
42806         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
42807         clock_gettime.
42808
42809 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42810
42811         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
42812         Forgot to demangle the pointer.
42813
42814         * sysdeps/i386/sysdep.h: Define atom_text_section.
42815         * sysdeps/x86_64/sysdep.h: Likewise.
42816         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
42817         section with atom_text_section.
42818         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42819         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42820         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
42821         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
42822         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
42823
42824         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
42825         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
42826         already be defined.  Change to take two parameters and don't assign
42827         result to variable.  Adjust all users.
42828         Define INTERNAL_GETTIME if not already defined.
42829         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
42830         call.
42831         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
42832         HAVE_CLOCK_GETTIME_VSYSCALL.
42833         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
42834
42835         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
42836         gettimeofday vsyscall, just use time.
42837
42838 2011-09-06  Andreas Schwab  <schwab@redhat.com>
42839
42840         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
42841         <errno.h>.
42842
42843 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42844
42845         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
42846         syscall on x86-64.
42847         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
42848         syscall.
42849         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
42850         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
42851         syscall if possible.
42852
42853 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42854
42855         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
42856         e_ident.  Don't pass to find_mapsXX.
42857         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
42858
42859 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42860
42861         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42862         strchr-sse2-no-bsf strrchr-sse2-no-bsf
42863         * sysdeps/x86_64/multiarch/strchr.S: Update.
42864         Check bit_slow_BSF bit.
42865         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
42866         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
42867         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
42868
42869 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42870
42871         [BZ #13134]
42872         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
42873         before glibc 2.15.
42874         (tryshell): Define.
42875         (__spawni): Change last parameter to be flag.  Test
42876         SPAWN_XFLAGS_USE_PATH flag to use path or not.
42877         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
42878         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
42879         * posix/spawni.c: Likewise.
42880         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
42881         * posix/spawnp.c: Likewise.  Change normal version to use
42882         SPAWN_XFLAGS_USE_PATH.
42883         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
42884         SPAWN_XFLAGS_TRY_SHELL.
42885
42886         [BZ #13150]
42887         * posix/glob.h: Remove gcc 1.x support.
42888
42889         [BZ #13068]
42890         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
42891
42892 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42893
42894         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42895         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
42896         strrchr-sse2-bsf
42897         * sysdeps/i386/i686/multiarch/strchr.S: New file.
42898         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
42899         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
42900         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
42901         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
42902         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
42903
42904 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42905
42906         * sysdeps/x86_64/wcscmp.S: New file.
42907
42908         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
42909         wcscmp-c wcscmp-sse2
42910         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
42911         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
42912         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
42913         * wcsmbs/wcscmp.c: Allow renaming.
42914
42915 2011-09-05  David S. Miller  <davem@davemloft.net>
42916
42917         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
42918         stack slot, rather than the struct return pointer slot.
42919         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
42920         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
42921         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
42922         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
42923
42924 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42925
42926         * po/ja.po: Update from translation team.
42927
42928         [BZ #13144]
42929         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
42930         kernel in 64-bit binaries.
42931
42932 2011-09-01  David S. Miller  <davem@davemloft.net>
42933
42934         * elf/elf.h (HWCAP_SPARC_*): Move to..
42935         * sysdeps/sparc/sysdep.h: this new file and add new values.
42936         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
42937         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
42938         _DL_HWCAP_COUNT to 24.
42939         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
42940         entries.
42941         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
42942         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
42943         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
42944         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
42945         instead of magic constants.
42946         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
42947
42948 2011-08-31  David S. Miller  <davem@davemloft.net>
42949
42950         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
42951         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
42952         Reimplement to do errno handling inline.
42953         (SYSCALL_ERROR_HANDLER): New macro.
42954         (__SYSCALL_STRING): Do not do errno handling in asm.
42955         (__CLONE_SYSCALL_STRING): Delete.
42956         (__INTERNAL_SYSCALL_STRING): Delete.
42957         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
42958         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
42959         (PSEUDO): Reimplement to do errno handling inline.
42960         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
42961         (SYSCALL_ERROR_HANDLER): New macro.
42962         (__SYSCALL_STRING): Do not do errno handling in asm.
42963         (__CLONE_SYSCALL_STRING): Delete.
42964         (__INTERNAL_SYSCALL_STRING): Delete.
42965         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
42966         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
42967         i386.
42968         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
42969         (inline_syscall*): Add 'err' argument.
42970         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
42971         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
42972         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
42973         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
42974
42975         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
42976         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
42977
42978 2011-08-30  Andreas Schwab  <schwab@redhat.com>
42979
42980         * elf/rtld.c (dl_main): Relocate objects in dependency order.
42981
42982 2011-08-29  Jiri Olsa <jolsa@redhat.com>
42983
42984         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
42985         directive.
42986
42987 2011-08-24  David S. Miller  <davem@davemloft.net>
42988
42989         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
42990
42991 2011-08-24  Andreas Schwab  <schwab@redhat.com>
42992
42993         * elf/Makefile: Add rules to build and run unload8 test.
42994         * elf/unload8.c: New file.
42995         * elf/unload8mod1.c: New file.
42996         * elf/unload8mod1x.c: New file.
42997         * elf/unload8mod2.c: New file.
42998         * elf/unload8mod3.c: New file.
42999
43000         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43001         it wasn't used.
43002
43003 2011-08-23  David S. Miller  <davem@davemloft.net>
43004
43005         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43006         subtract stack bias.
43007         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43008         %sp not %fp in calculations.
43009         (_JMPBUF_UNWINDS_ADJ): Likewise.
43010
43011         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43012         (aio_suspend): Call it to force an exception region around the
43013         AIO_MISC_WAIT() invocation.
43014
43015 2011-08-23  Andreas Schwab  <schwab@redhat.com>
43016
43017         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
43018         backslash.
43019
43020 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
43021
43022         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
43023         protection macro.
43024         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
43025         and <dl-machine.h>.
43026         (Elf64_FuncDesc): Remove.
43027
43028 2011-08-22  David S. Miller  <davem@davemloft.net>
43029
43030         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
43031         sigaltstack check, add missing cfi directives.
43032         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
43033         missing cfi directives, and sigaltstack handling.
43034
43035 2011-08-16  Andreas Schwab  <schwab@redhat.com>
43036
43037         [BZ #11724]
43038         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
43039         object is seen twice.
43040         * elf/dl-fini.c (_dl_sort_fini): Likewise.
43041
43042         * elf/Makefile (distribute): Add tst-initorder2.c.
43043         (tests): Add tst-initorder2.
43044         (modules-names): Add tst-initorder2a tst-initorder2b
43045         tst-initorder2c tst-initorder2d.  Add rules to build them.
43046         ($(objpfx)tst-initorder2.out): New rule.
43047         * elf/tst-initorder2.c: New file.
43048         * elf/tst-initorder2.exp: New file.
43049
43050 2011-08-22  Andreas Schwab  <schwab@redhat.com>
43051
43052         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
43053
43054         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
43055         dependencies back to end of function.
43056
43057         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
43058         $(elfobjdir)/ld.so.
43059
43060 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
43061
43062         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
43063         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
43064         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
43065         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
43066         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
43067         of __vdso_gettimeofday.
43068         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
43069         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
43070         attribute_hidden.
43071         (_libc_vdso_platform_setup): Remove initialization of
43072         __vdso_gettimeofday and __vdso_time.
43073
43074 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43075
43076         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
43077         and fgetc_unlocked.
43078         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
43079         getc_unlocked.
43080
43081         * elf/dl-open.c (add_to_global): Report additions to the global scope
43082         for LD_DEBUG=scopes.
43083         (dl_open_worker): Also print scope of newly loaded dependencies.
43084         (_dl_show_scope): Indicate if there is no scope.
43085
43086         [BZ #13114]
43087         * stdio-common/Makefile (tests): Add bug24.
43088         * stdio-common/bug24.c: New file.
43089
43090 2011-08-19  Andreas Jaeger  <aj@suse.de>
43091
43092         [BZ #13114]
43093         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
43094         non-existant file when using close-on-exec mode.
43095
43096 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
43097
43098         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
43099         the very first instruction.
43100
43101         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
43102         the CFI state in the end.
43103         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
43104         inclusion of dl-trampoline.h.
43105         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
43106
43107 2011-08-19  Andreas Schwab  <schwab@redhat.com>
43108
43109         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
43110         expectations for long double.
43111
43112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
43113         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
43114
43115 2011-08-14  David S. Miller  <davem@davemloft.net>
43116
43117         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
43118         artificual limit depends upon the system page size.
43119
43120 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43121
43122         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
43123         * resolv/Makefile: Define CFLAGS-libresolv.
43124
43125 2011-08-17  Andreas Schwab  <schwab@redhat.com>
43126
43127         * nss/makedb.c (compute_tables): Make variables used in nested
43128         function static.
43129
43130 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
43131
43132         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
43133         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
43134         if buffer was too small.
43135
43136         * elf/pldd.c (main): Attach to all threads in the process.
43137         Rewrite /proc handling to use *at functions.
43138
43139 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
43140
43141         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
43142         specifies first scope to show.
43143         (dl_open_worker): Update callers.  Move printing scope of new
43144         object to before the relocation.
43145         * elf/rtld.c (dl_main): Update _dl_show_scope call.
43146         * sysdeps/generic/ldsodefs.h: Update declaration.
43147
43148         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
43149         string for the scope number.
43150
43151 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
43152
43153         * nscd/servicescache.c (cache_addserv): Make sure written is always
43154         initialized.
43155
43156 2011-08-14  Roland McGrath  <roland@hack.frob.com>
43157
43158         * sysdeps/i386/i486/bits/atomic.h
43159         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
43160         statement expression, so as to suppress "set but not used" warning.
43161         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
43162
43163         * string/strncat.c (STRNCAT): Use prototype definition.
43164
43165         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
43166         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
43167         -Iprograms here.
43168         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
43169         (localedef-modules): Add localedef.
43170         (locale-modules): Add locale.
43171
43172         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
43173         * elf/rtld.c (dl_main): Invert order of assignment in last change,
43174         to avoid a warning.
43175
43176 2011-08-14  David S. Miller  <davem@davemloft.net>
43177
43178         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
43179         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
43180
43181 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
43182
43183         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
43184         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
43185         * elf/rtld.c (dl_main): Set l_name of vDSO.
43186         Call _dl_show_scope when DL_DEBUG_SCOPES.
43187         (process_dl_debug): Recognize scopes flag and also set it for all.
43188         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
43189         Declare _dl_show_scope.
43190
43191         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
43192         (do_dlopen): Pass caller_dlopen to dl_open.
43193         (__libc_dlopen_mode): Initialize caller_dlopen.
43194
43195         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
43196         of libc.  Make tolower call locale-independent.  Optimize a bit by
43197         using isdigit instead of isalnum.
43198         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
43199
43200 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
43201
43202         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
43203         was a dependency or dynamically loaded.
43204
43205 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
43206
43207         * intl/l10nflist.c: Allow architecture-specific pop function.
43208         * sysdeps/x86_64/l10nflist.c: New file.
43209
43210         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
43211         classification.
43212
43213 2011-08-10  Andreas Schwab  <schwab@redhat.com>
43214
43215         * include/dirent.h: Add libc_hidden_proto for scandirat and
43216         scandirat64.  Don't declare __scandirat64.
43217         * dirent/scandirat.c: Add libc_hidden_def.
43218         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
43219         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
43220
43221 2011-08-10  David S. Miller  <davem@davemloft.net>
43222
43223         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
43224         enum.
43225         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43226         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43227         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43228
43229 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
43230
43231         * Versions.def [libc]: Add GLIBC_2.15.
43232         * dirent/Makefile (routines): Add scandirat and scandirat64.
43233         * dirent/Versions [libc]: Export scandirat and scandirat64 for
43234         GLIBC_2.15.
43235         * dirent/dirent.h: Declare scandirat and scandirat64.
43236         * dirent/scandirat.c: New file.
43237         * dirent/scandirat64.c: New file.
43238         * sysdeps/wordsize-64/scandirat.c: New file.
43239         * sysdeps/wordsize-64/scandirat64.c: New file.
43240         * dirent/opendir.c: Define opendirat.
43241         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
43242         using scandirat.
43243         * dirent/scandir64.c: Adjust for scandir.c change.
43244         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
43245         __scandirat64, and __scandir_cancel_handler.
43246         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
43247         additional parameter and use openat instead of open (outside of ld.so).
43248         Add new __opendir as wrapper around __opendirat.
43249         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
43250         here without requiring old scandirat implementation.
43251
43252 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
43253
43254         * dirent/scandir.c (cancel_handler): Renamed to
43255         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
43256         defined.  Adjust users.
43257         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
43258         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
43259
43260 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
43261
43262         * string/test-string.h (IMPL): Use __STRING to expand name and then
43263         stringify it.
43264
43265         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
43266         of cleanups.
43267
43268 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43269
43270         * string/Makefile: Update.
43271         (strop-tests): Append strncat.
43272         * string/test-wcscmp.c: New file.
43273         New comprehensive test for wcscmp.
43274         * string/test-strcmp.c: Update.
43275         (WIDE): New define.
43276
43277 2011-07-22  Andreas Schwab  <schwab@redhat.com>
43278
43279         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
43280         line.
43281
43282 2011-07-26  Andreas Schwab  <schwab@redhat.com>
43283
43284         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
43285         encoding to ACE if AI_IDN.
43286
43287 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
43288
43289         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
43290         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
43291
43292 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43293
43294         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
43295         Fix overflow bug in strncat.
43296         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
43297
43298         * string/test-strncat.c: Update.
43299         Add new tests for checking overflow bugs.
43300
43301 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43302
43303         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43304         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
43305         * sysdeps/i386/i686/multiarch/strcat.S: New file.
43306         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
43307         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
43308         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
43309         * sysdeps/i386/i686/multiarch/strncat.S: New file.
43310         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
43311         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
43312
43313         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
43314         (USE_AS_STRCAT): Define.
43315         Add strcat and strncat support.
43316         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43317
43318 2011-07-25  Andreas Schwab  <schwab@redhat.com>
43319
43320         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
43321         __n bigger than INT_MAX+1.
43322         (__strncmp_g): Likewise.
43323
43324 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
43325
43326         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
43327         * libio/stido.h: Likewise.
43328
43329         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
43330         (AF_NFC): Define.
43331         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
43332         (AF_NFC): Define.
43333
43334         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
43335         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
43336         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
43337         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
43338         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
43339
43340         [BZ #13021]
43341         * scripts/test-installation.pl: Don't expect libnss_test1 to be
43342         installed.
43343
43344         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
43345         typo.
43346         (_dl_x86_64_save_sse): Likewise.
43347
43348 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
43349
43350         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
43351         OSXSAVE.
43352         (_dl_x86_64_save_sse): Likewise.
43353
43354         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
43355
43356         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
43357
43358 2011-07-21  Andreas Schwab  <schwab@redhat.com>
43359
43360         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
43361         change.
43362         (_dl_x86_64_save_sse): Use correct AVX check.
43363
43364 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43365
43366         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
43367         bug in strncpy/strncat.
43368         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
43369
43370 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
43371
43372         * string/tester.c (test_strcat): Add tests for different alignments
43373         of source and destination.
43374         (test_strncat): Likewise.
43375
43376 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43377
43378         [BZ #12852]
43379         * posix/glob.c (glob): Check passed in values before using them in
43380         expressions to avoid some overflows.
43381         (glob_in_dir): Likewise.
43382
43383         [BZ #13007]
43384         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43385         check for AVX enablement so that we don't crash with old kernels and
43386         new hardware.
43387         * elf/tst-audit4.c: Add same checks here.
43388         * elf/tst-audit6.c: Likewise.
43389
43390         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43391
43392 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43393
43394         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43395
43396 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43397
43398         * po/cs.po: Update from translation team.
43399         * po/bg.po: Likewise.
43400
43401 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43402
43403         * misc/sys/cdefs.h: Add support for const attribute.
43404         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43405         to gnu_dev_{major,minor,makedev} functions.
43406
43407 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43408
43409         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43410
43411 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43412
43413         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43414         strlen results.
43415
43416 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43417
43418         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43419         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43420         register in order to avoid conflicts with the soft frame pointer
43421         being held in r11 when necessary.
43422         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43423         (INTERNAL_VSYSCALL_NCS): Likewise.
43424
43425 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43426
43427         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43428         * elf/dl-fini.c (_dl_fini): Adjust caller.
43429         * elf/dl-close.c (_dl_close_worker): Likewise.
43430         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43431
43432 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43433
43434         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43435         "aux_cache->nlibs < 0".
43436
43437         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43438         in the reload-count case.
43439
43440 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43441
43442         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43443         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43444         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43445         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43446         * sysdeps/x86_64/multiarch/strcat.S: New file.
43447         * sysdeps/x86_64/multiarch/strncat.S: New file.
43448         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43449         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43450         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43451         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43452         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43453         (USE_AS_STRCAT): Define.
43454         Add strcat and strncat support.
43455         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43456         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43457         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43458         * string/strncat.c: Update.
43459         (USE_AS_STRNCAT): Define.
43460         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43461         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43462         and i7.
43463         * sysdeps/x86_64/multiarch/init-arch.h
43464         (bit_Prefer_PMINUB_for_stringop): New.
43465         (index_Prefer_PMINUB_for_stringop): Likewise.
43466         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43467         bit_Prefer_PMINUB_for_stringop.
43468
43469 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43470
43471         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43472         buffer64.
43473         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43474         of casting of buffer.
43475         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43476         buffer32 and buffer64.
43477         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43478         writes instead of casting of buffer.
43479         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43480         buffer32.
43481         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43482         casting of buffer.
43483
43484 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43485
43486         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43487
43488 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43489
43490         * nscd/nscd.c (termination_handler): Don't do anything for a database
43491         if it has not yet been initialized.
43492
43493 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43494
43495         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43496
43497 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43498
43499         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43500
43501 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43502
43503         * po/nl.po: Update from translation team.
43504         * po/sv.po: Likewise.
43505
43506 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43507
43508         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43509         now disallowed by GCC.
43510
43511         * configure.in (use-default-link): Default to yes if a test -shared
43512         link meets our qualifications.
43513         * configure: Regenerated.
43514
43515         * config.make.in (output-format): New variable.
43516         * configure.in: Check for ld --print-output-format support.
43517         * configure: Regenerated.
43518         * Makerules ($(common-objpfx)format.lds)
43519         [$(output-format) != unknown]: Just use $(output-format),
43520         instead of the linker-script munging.
43521
43522 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43523
43524         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43525         of $(common-objpfx)shlib.lds.
43526         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43527
43528         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43529         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43530
43531         * configure.in (-z relro check): Adjust test code to add a large
43532         writable data section after it.
43533         * configure: Regenerated.
43534
43535 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43536
43537         * configure.in (-z relro check): Fix test code to make the variable
43538         truly const.
43539         * configure: Regenerated.
43540
43541 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43542
43543         * nscd/nscd.h (struct traced_file): Define.
43544         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43545         elements.  Add traced_files.
43546         (inotify_fd): Declare.
43547         (register_traced_file): Declare.
43548         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43549         (inotify_fd): Export.
43550         (resolv_conf_descr): Remove.
43551         (nscd_init): Move inotify descriptor creation to main.
43552         Don't register files for notification here.
43553         (register_traced_file): New function.
43554         (invalidate_cache): Don't use reset_res to determine whether to call
43555         res_init, go through the list of registered files.
43556         (main_loop_poll): The inotify descriptors are now stored in the
43557         structures for the traced files.
43558         (main_loop_epoll): Likewise
43559         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43560         to __nss_disable_nscd.
43561         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43562         for a database anymore.  Check the records for all the registered
43563         files instead.
43564         * nss/Makefile (libnss_files-routines): Add files-init.
43565         (libnss_db-routines): Add db-init.
43566         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43567         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43568         * nss/nss_db/db-init.c: New file.
43569         * nss/nss_files/files-init.c: New file.
43570         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43571         __nss_lookup_function.
43572         (__nss_lookup_function): Call nss_load_library.
43573         (nss_load_all_libraries): New function.
43574         (__nss_disable_nscd): Take parameter with callback function for files
43575         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43576         used for the cached services.
43577         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43578         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43579         options for features to all the files in nscd.
43580
43581         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43582
43583 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43584
43585         * csu/elf-init.c (__libc_csu_init): Comment typo.
43586
43587 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43588
43589         * po/pl.po: Update from translation team.
43590         * po/ja.po: Likewise.
43591         * po/ru.po: Likewise.
43592         * po/ko.po: Likewise.
43593         * po/fr.po: Likewise.
43594
43595 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43596
43597         * configure.in (.ctors/.dtors header and trailer check):
43598         Use an empirical test on a built program.
43599         * configure: Regenerated.
43600
43601         * configure.in (-z relro check): Use an empirical test on a built DSO.
43602         Detect, but do not require, on ia64.
43603         * configure: Regenerated.
43604
43605         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43606         Update tests that use readelf to use $READELF instead.
43607         * configure: Regenerated.
43608
43609 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43610
43611         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43612         if the result is not used.
43613
43614 2011-07-05  Andreas Jaeger  <aj@suse.de>
43615
43616         [BZ#9696]
43617         * stdlib/tst-strtod.c: Add testcase.
43618
43619 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43620
43621         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43622         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43623         The latter has a higher limit.  Take additional parameter to pass to
43624         the new function.
43625         (__pathconf): Pass file to __statfs_link_max.
43626         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43627         __statfs_link_max.
43628         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43629         __statfs_link_max.
43630
43631         [BZ #12868]
43632         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43633         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43634         Handle Lustre.
43635         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43636         (__statfs_filesize_max): Likewise.
43637         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43638
43639 2011-07-05  Andreas Jaeger  <aj@suse.de>
43640
43641         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43642
43643 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43644
43645         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43646         `status' variable.
43647         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43648         Likewise.
43649
43650 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43651
43652         * Makefile (strop-tests): Add strncat.
43653         * string/test-strncat.c: New file.
43654
43655 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43656
43657         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43658
43659 2011-06-21  Andreas Jaeger  <aj@suse.de>
43660
43661         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43662         Copy rule from iconvdata/Makefile.
43663
43664 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43665
43666         [BZ #12922]
43667         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43668         but no long options are defined, just return 'W'.
43669
43670 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43671
43672         [BZ #9696]
43673         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43674
43675 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43676
43677         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43678         netgroups to read.
43679         (innetgr): Likewise.
43680
43681 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43682
43683         * config.make.in (install_root): Default to $(DESTDIR).
43684
43685 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43686
43687         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43688
43689 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43690
43691         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43692
43693         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43694         containing directory rather than embedding absolute directory names.
43695
43696         * scripts/check-local-headers.sh: Rewritten using awk.
43697         Match by word, not by line.  Print error messages for matches.
43698         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43699
43700         * Makerules [shlib-lds-flags empty]:
43701         ($(common-objpfx)libc_pic.opts): New target.
43702         ($(common-objpfx)libc_pic.os.clean): New target.
43703         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43704
43705         * config.make.in (OBJCOPY): New variable.
43706         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
43707         * configure: Regenerated.
43708
43709         * config.make.in (use-default-link): New variable.
43710         * configure.in (use_default_link): Grok --with-default-link to set it.
43711         * configure: Regenerated.
43712         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
43713         (shlib-lds, shlib-lds-flags): Define to empty.
43714
43715         * Makerules (shlib-lds): New variable.
43716         (shlib-lds-flags): New variable.
43717         (build-shlib, build-moduile, build-module-asneeded): Use it.
43718         ($(common-objpfx)libc.so): Use $(shlib-lds).
43719         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
43720         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
43721
43722         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
43723         DT_FLAGS/DT_FLAGS_1 with zero flags.
43724
43725         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
43726         linker script munging.
43727
43728 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
43729
43730         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
43731         as 128-bit value.
43732         * crypt/sha512.c (sha512_process_block): Perform total addition using
43733         128-bit if possible.
43734         (__sha512_finish_ctx): Likewise.
43735         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
43736         as 64-bit value.
43737         * crypt/sha256.c (SWAP64): Define.
43738         (sha256_process_block): Perform total addition using 64-bit if
43739         possible.
43740         (__sha256_finish_ctx): Likewise.
43741
43742 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
43743
43744         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
43745         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43746         * nscd/hstcache.c (cache_addhst): Likewise.
43747         * nscd/grpcache.c (cache_addgr): Likewise.
43748         * nscd/aicache.c (addhstaiX): Likewise
43749         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
43750
43751 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
43752
43753         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
43754         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43755         * nscd/hstcache.c (cache_addhst): Likewise.
43756         * nscd/grpcache.c (cache_addgr): Likewise.
43757         * nscd/aicache.c (addhstaiX): Likewise
43758
43759 2011-07-01  Andreas Schwab  <schwab@redhat.com>
43760
43761         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
43762         domain only when needed.
43763
43764 2011-06-30  Andreas Schwab  <schwab@redhat.com>
43765
43766         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
43767         is always restored.
43768
43769 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
43770
43771         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
43772         are re-adding the entry.
43773         * nscd/servicescache.c (cache_addserv): Likewise.
43774
43775 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
43776
43777         * sysdeps/generic/dl-irel.h: fix protection against multiple
43778         inclusions.
43779         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
43780
43781 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
43782
43783         [BZ #12935]
43784         * malloc/memusage.sh: Fix quoting in message.
43785         * debug/xtrace.sh: Likewise.
43786
43787         * configure.in: Remove support for --experimental-malloc option, make
43788         it the default.
43789         * config.make.in: Likewise.
43790         * malloc/Makefile: Likewise.
43791
43792 2011-06-27  Andreas Schwab  <schwab@redhat.com>
43793
43794         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
43795         two-byte characters.
43796
43797 2011-06-27  Roland McGrath  <roland@hack.frob.com>
43798
43799         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
43800         AC_CACHE_CHECK invocation.
43801         * configure: Regenerated.
43802
43803         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
43804
43805 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
43806
43807         [BZ #12350]
43808         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
43809         bit from old_res_options.
43810
43811         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
43812
43813         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
43814         value type for setfct.
43815
43816 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
43817
43818         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43819         __gettimeofday instead of gettimeofday.
43820
43821 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
43822
43823         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
43824
43825 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
43826
43827         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
43828
43829         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
43830         info.
43831
43832 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43833
43834         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43835         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43836         strcpy-sse2-unaligned strncpy-sse2-unaligned
43837         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
43838         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
43839         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
43840         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
43841         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
43842         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
43843         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
43844         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
43845         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
43846         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
43847         (STRCPY): Support SSE2 and SSSE3 versions.
43848
43849 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
43850
43851         [BZ #12874]
43852         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
43853         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
43854         kernels which artificially limit size of requests.
43855
43856 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43857
43858         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43859         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43860         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
43861         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
43862         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
43863         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
43864         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
43865         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
43866         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
43867         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
43868         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
43869         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
43870         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
43871         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
43872         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
43873         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43874         Enable unaligned load optimization for Intel Core i3, i5 and i7
43875         processors.
43876         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
43877         Define.
43878         (index_Fast_Unaligned_Load): Define.
43879         (HAS_FAST_UNALIGNED_LOAD): Define.
43880
43881 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
43882
43883         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
43884
43885 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43886
43887         [BZ #12907]
43888         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
43889         until it is clear that the information is realy needed.
43890         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
43891
43892 2011-06-22  Andreas Schwab  <schwab@redhat.com>
43893
43894         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
43895
43896 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43897
43898         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43899         /sys/devices/system/cpu/online if it is usable.
43900
43901         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
43902         reading the information from the /proc filesystem to once a second.
43903
43904 2011-06-21  Andreas Jaeger  <aj@suse.de>
43905
43906         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
43907         NULL after inclusion of kernel headers.
43908
43909 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
43910
43911         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
43912         calls to internal_setent.
43913
43914         [BZ #12885]
43915         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
43916         addresses using gethostbyname4_r ignore IPv4 addresses.
43917
43918         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
43919         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
43920
43921         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
43922
43923 2011-06-20  David S. Miller  <davem@davemloft.net>
43924
43925         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
43926         inclusions.
43927         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
43928
43929         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
43930         (elf_irel): Use it.
43931         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
43932         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
43933         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
43934         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
43935         * sysdeps/x86_64/dl-irel.h: Likewise.
43936
43937         * elf/dl-runtime.c: Use elf_ifunc_invoke.
43938         * elf/dl-sym.c: Likewise.
43939
43940 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43941
43942         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
43943         need to dereference resplen2.
43944
43945 2011-06-14  Andreas Schwab  <schwab@redhat.com>
43946
43947         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
43948
43949 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43950
43951         * Makeconfig: Define vardbdir and inst_vardbdir.
43952         * nss/Makefile: Add rules to install db-Makefile.
43953
43954         * nss/nss_db/db-XXX.c: Cleanup.
43955
43956         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
43957         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
43958         GLIBC_PRIVATE.
43959         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
43960         * nss/makedb.c: Implement -g option to specify that value strings
43961         are generated and should not be added to table iterated over for
43962         get*ent calls.
43963         * nss/nss_db/db-initgroups.c: New file.
43964
43965         * nss/getent.c: Add support for initgroups lookups through getgrouplist
43966         interface.
43967
43968         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
43969         (internal_getgrouplist): Adjust to name change.
43970         Update use_initgroups_entry if this is not the first call.
43971         * nss/databases.def: Add initgroups entry.
43972
43973         * nss/makedb.c (compute_tables): Check result of multiple hash table
43974         sizes to minimize maximum chain length.
43975
43976 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
43977
43978         * Versions.def: Add entry for libnss_db.
43979         * shlib-versions: Likewise.
43980         * nss/Makefile: Add rules to build libnss_db.
43981         * nss/Versions: Add libnss_db information.  Organize libnss_files
43982         entries better.
43983         * nss/db-Makefile: Add gshadow support.  Change rules for the new
43984         makedb progra.  Some minor improvements to generate smaller files.
43985         * nss/nss_db/nss_db.h: Move NSS database header data structures to
43986         here from...
43987         * nss/makedb.c: ...here.
43988         Improve database format to be smaller and require less memory at
43989         runtime.
43990         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
43991         db anymore.
43992         * nss/nss_db/db-netgrp.c: Likewise.
43993         * nss/nss_db/db-open.c: Likewise.
43994         * nss/nss_files/flies-XXX.x: Adjust comments.
43995         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
43996         * nss/nss_files/files-grp.c: Likewise.
43997         * nss/nss_files/files-hosts.c: Likewise.
43998         * nss/nss_files/files-network.c: Likewise.
43999         * nss/nss_files/files-proto.c: Likewise.
44000         * nss/nss_files/files-pwd.c: Likewise.
44001         * nss/nss_files/files-rpc.c: Likewise.
44002         * nss/nss_files/files-service.c: Likewise.
44003         * nss/nss_files/files-sgrp.c: Likewise.
44004         * nss/nss_files/files-spwd.c: Likewise.
44005         * nss/nss_db/db-alias.c: Removed.
44006         * nss/nss_db/dummy-db.h: Removed.
44007
44008 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44009
44010         * nss/makedb.c: Rewritten to not use database library.
44011         * nss/Makefile: Update to build new makedb program.
44012
44013 2011-06-14  Andreas Jaeger  <aj@suse.de>
44014
44015         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
44016         memset declaration.
44017
44018 2011-06-10  Andreas Schwab  <schwab@redhat.com>
44019
44020         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
44021         tmpbuf.
44022
44023 2011-06-10  Roland McGrath  <roland@hack.frob.com>
44024
44025         * Makerules (shlib.lds): Fail if the linker script comes out empty.
44026         * elf/Makefile ($(objpfx)ld.so): Likewise.
44027
44028         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
44029         Don't list ld.so twice in dependencies.
44030
44031         * posix/bug-regex31.c: Include <stdlib.h>.
44032
44033         * nscd/hstcache.c (cache_addhst): Remove unused variable.
44034
44035         * nis/nss_compat/compat-spwd.c
44036         (getspent_next_nss_netgr): Remove unused variable.
44037         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
44038
44039         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
44040         nonmembers" output to use the right array.
44041
44042         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
44043
44044         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
44045
44046         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
44047         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
44048         * catgets/gencat.c (read_input_file): Likewise.
44049         * locale/programs/locarchive.c (enlarge_archive): Likewise.
44050
44051         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
44052         variable definition inside #if's controlling its use.
44053
44054         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
44055
44056         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
44057
44058         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
44059
44060         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
44061         unreachable code.
44062
44063         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
44064
44065         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
44066         * configure: Regenerated.
44067
44068         * Makerules: Revert last change.
44069         * elf/Makefile: Likewise.
44070
44071 2011-06-09  Roland McGrath  <roland@hack.frob.com>
44072
44073         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
44074         * elf/Makefile ($(objpfx)librtld.os): Likewise.
44075         (reloc-link): Likewise.
44076
44077 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
44078
44079         * elf/Makefile: Add rules to build pldd.
44080         * elf/pldd.c: New file.
44081         * elf/pldd-xx.c: New file.
44082
44083 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
44084
44085         * version.h: Update for 2.15 development version.
44086
44087 2011-06-07  David S. Miller  <davem@davemloft.net>
44088
44089         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
44090         ifuncs.
44091         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
44092         elf_machine_lazy_rel): Likewise.
44093         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
44094         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
44095         elf_machine_lazy_rel): Likewise.
44096         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
44097         dl_hwcap via passed in argument.
44098         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
44099         Likewise.
44100
44101 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44102
44103         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
44104
44105 2011-06-06  Roland McGrath  <roland@hack.frob.com>
44106
44107         [BZ #12849]
44108         * manual/fdl-1.1.texi: New file, verbatim from:
44109         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
44110         * manual/lgpl-2.1.texi: New file, verbatim from:
44111         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
44112         * manual/Makefile (licenses): New variable, list those new file names.
44113         (texis): Use it.
44114         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
44115
44116         * manual/fdl.texi: File removed.
44117         * manual/lesser.texi: File removed.
44118         * manual/libc.texinfo (Copying, Documentation License):
44119         Use new @include file names, put @appendix directive before @include.
44120
44121 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
44122
44123         [BZ #12841]
44124         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
44125         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
44126         (mq_open): Add __NTH.
44127
44128 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
44129
44130         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44131         Assume Intel Core i3/i5/i7 processor if AVX is available.
44132
44133 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44134
44135         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44136         typo.
44137
44138 2011-05-31  Andreas Schwab  <schwab@redhat.com>
44139
44140         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
44141         memory.  Use alloca_account.  Fix memory leak when retrying.
44142
44143 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
44144
44145         * version.h (RELEASE): Bump for 2.14 release.
44146         * include/features.h (__GLIBC_MINOR__): Bump to 14.
44147
44148         * config.make.in (RANLIB): Remove entry.
44149
44150 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
44151
44152         * po/Makefile (po-sed-cmd): Add ksh to extensions.
44153         (libc.pot): Work around missing support for .ksh extension in xgettext.
44154
44155         [BZ #12684]
44156         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
44157         if both request failed.
44158         (send_dg): In case of server errors clear resplen or *resplen2.
44159
44160         [BZ #12454]
44161         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
44162         when there are multiple maps.
44163         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
44164         (_dl_fini): Remove test here.
44165
44166         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
44167
44168 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
44169
44170         [BZ #12350]
44171         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
44172         bit from old_res_options.
44173         (gaih_inet): Likewise.
44174
44175         [BZ #11099]
44176         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
44177         as signed.
44178
44179         * resolv/res_init.c (res_setoptions): Make the code more compact.
44180
44181         [BZ #11558]
44182         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
44183         set RES_USEVC.
44184
44185         [BZ #11634]
44186         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
44187
44188         * malloc/malloc.h: Mark malloc hook variables as deprecated.
44189
44190         [BZ #11781]
44191         * malloc/malloc.h: Declare malloc hook variables as volatile.
44192
44193         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
44194         in last patch.
44195
44196         [BZ #11799]
44197         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
44198         raise in the comment.
44199         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
44200         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
44201         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
44202
44203 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
44204
44205         [BZ #12811]
44206         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
44207         grow the buffers more if it already has to be sufficient.
44208         (build_wcs_upper_buffer): Likewise.
44209         * posix/regexec.c (check_matching): Likewise.
44210         (clean_state_log_if_needed): Likewise.
44211         (extend_buffers): Don't enlarge buffers beyond size of the input
44212         buffer.
44213         Patches mostly by Emil Wojak <emil@wojak.eu>.
44214         * posix/bug-regex32.c: New file.
44215         * posix/Makefile (tests): Add bug-regex32.
44216
44217         * locale/findlocale.c (_nl_find_locale): Return right away if
44218         _nl_explode_name failed.
44219         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
44220
44221         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
44222
44223         * debug/xtrace.sh: Unify messages.
44224         * malloc/memusage.sh: Likewise.
44225
44226         [BZ #12813]
44227         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
44228         time symbol from vDSO.  Substitute with vsyscall if not available.
44229         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
44230         __vdso_time.
44231
44232         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
44233         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
44234         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
44235         Add sendmmsg and internal_sendmmsg.
44236         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
44237         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
44238         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
44239
44240         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
44241         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
44242         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
44243
44244 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
44245
44246         [BZ #12813]
44247         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
44248         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
44249         available.
44250         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
44251         __vdso_getcpu.
44252
44253         [BZ #12814]
44254         * iconvdata/Makefile (tests): Add bug-iconv9.
44255         * iconvdata/bug-iconv9.c: New file.
44256
44257 2011-05-27  Andreas Schwab  <schwab@redhat.com>
44258
44259         [BZ #12814]
44260         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
44261
44262 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
44263
44264         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44265         (struct user_regs_struct): Change intcs field back to cs.
44266
44267 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
44268
44269         * po/ja.po: Update from translation team.
44270
44271 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
44272
44273         [BZ #12795]
44274         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
44275         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
44276
44277 2011-05-20  Andreas Schwab  <schwab@redhat.com>
44278
44279         * stdlib/longlong.h: Update from GCC.
44280
44281 2011-05-23  Andreas Schwab  <schwab@redhat.com>
44282
44283         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
44284         parameter name.
44285         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
44286         Add parameter name.
44287         (__sysconf): Pass it down.
44288
44289 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
44290
44291         [BZ #12671]
44292         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
44293         some situations.
44294         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
44295         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
44296         add in in __libc_use_alloca calls.  Adjust callers.
44297         (glob): Use malloc in some situations.
44298
44299         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
44300         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
44301         pltexit.
44302
44303 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
44304
44305         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
44306         and CLOCK_BOOTTIME_ALARM.
44307
44308         [BZ #12782]
44309         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
44310         is returned.
44311
44312         * string/_strerror.c (__strerror_r): Print negative errors as signed
44313         numbers.
44314
44315         [BZ #12777]
44316         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
44317         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
44318         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
44319
44320         * configure.in: Fix typo in redirection and correct removal of test
44321         files in two cases.
44322
44323         [BZ #12788]
44324         * locale/setlocale.c (new_composite_name): Fix test to check for
44325         identical name of all categories.
44326
44327         [BZ #12792]
44328         * libio/filedoalloc.c (local_isatty): New function.
44329         (_IO_file_doallocate): Use local_isatty.
44330         * stdio-common/perror.c (perror): In case a new stream is used
44331         forward the stream error.
44332         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
44333         error flag.
44334
44335 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
44336
44337         [BZ #11869]
44338         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
44339         alloca.
44340         * include/alloca.h (extend_alloca_account): Define.
44341
44342         [BZ #11857]
44343         * posix/regex.h: Fix comments with documentation of user-accessible
44344         fields after compilation and describe correct free'ing of pattern
44345         after re_compile_pattern.
44346         Patch by Reuben Thomas <rrt@sc3d.org>.
44347
44348 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
44349
44350         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
44351         and -mno-altivec to prevent the compiler from using Altivec and/or
44352         VSX instructions when the corresponding registers are not available.
44353
44354 2011-05-19  Andreas Schwab  <schwab@redhat.com>
44355
44356         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
44357
44358 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
44359
44360         * libio/freopen.c (freopen): Use __dup2, not dup2.
44361         * libio/freopen64.c (freopen64): Likewise.
44362
44363 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
44364
44365         [BZ #12775]
44366         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
44367         * math/Makefile (tests): Add test-powl.
44368         (CFLAGS-test-powl.c): Define.
44369         * math/test-powl.c: New file.
44370
44371 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
44372
44373         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
44374
44375 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
44376
44377         [BZ #11837]
44378         * iconvdata/gb18030.c: Update to GB18020-2005.
44379
44380 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44381
44382         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44383         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44384         Patch by Aharon Robbins <arnold@skeeve.com>.
44385
44386         [BZ #11892]
44387         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44388         on the stack.
44389
44390         [BZ #11895]
44391         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44392         through underflows.
44393
44394         [BZ #12766]
44395         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44396         point to strings before performing equality test for error_one_per_line
44397         mode.
44398
44399         [BZ #11697]
44400         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44401
44402         [BZ #11820]
44403         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44404         (struct user_fpregs_struct): Avoid __uint*_t types.
44405
44406         [BZ #6420]
44407         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44408         symbol info.  Use it instead of calling _dl_addr locally.
44409         (lock_and_info): New function.
44410         (tr_freehook): Call lock_and_info and pass symbol info as additional
44411         parameter to tr_where.
44412         (tr_mallochook): Likewise.
44413         (tr_reallochook): Likewise.
44414         (tr_memalignhook): Likewise.
44415
44416         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44417         used and couldn't be at all thread-safe.
44418
44419 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44420
44421         * libio/freopen.c (freopen): Don't close old file descriptor
44422         before the new one is opened.  Instead dup the new file descriptor
44423         to the old one after the new stream is created.
44424         * libio/freopen64.c (freopen64): Likewise.
44425         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44426         * libio/fileops.c (_IO_new_file_close_it): Handle new
44427         _IO_FLAGS2_NOCLOSE flag.
44428         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44429         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44430         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44431         _IO_FLAGS2_NOCLOSE flag.
44432         * include/unistd.h: Add hidden_proto for dup3.
44433         Define __have_dup3.
44434         * io/dup3.c: Define hidden symbol.
44435         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44436
44437         [BZ #7101]
44438         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44439         when an incomplete long option is used.
44440         * posix/tst-getopt_long1.c: New file.
44441         * posix/Makefile (tests): Add tst-getopt_long1.
44442
44443         [BZ #10138]
44444         * scripts/config.guess: Update from autoconf-2.68.
44445         * scripts/config.sub: Likewise.
44446
44447         [BZ #10157]
44448         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44449         tests into ...
44450         (has_cpuclock): ...this.  New function.
44451         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44452         macro here based on has_cpuclock code.
44453
44454         [BZ #10149]
44455         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44456         First byte (not low byte) is now always NUL.
44457         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44458
44459         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44460         Use non-cancelable interfaces.
44461
44462         [BZ #9809]
44463         * locale/iso-639.def: Add entry for Sorani.
44464
44465         [BZ #11901]
44466         * include/stdlib.h: Move include protection to the right place.
44467         Define abort_msg_s.  Declare __abort_msg with it.
44468         * stdlib/abort.c (__abort_msg): Adjust type.
44469         * assert/assert.c (__assert_fail_base): New function.  Majority
44470         of code from __assert_fail.  Allocate memory for __abort_msg with
44471         mmap.
44472         (__assert_fail): Now call __assert_fail_base.
44473         * assert/assert-perr.c: Remove bulk of implementation.  Use
44474         __assert_fail_base.
44475         * include/assert.hL Declare __assert_fail_base.
44476         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44477         mmap.
44478         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44479
44480 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44481
44482         [BZ #11952]
44483         [BZ #12453]
44484         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44485         until all modules are registered in the DTV.
44486         * elf/Makefile: Add rules to build and run tst-tls19.
44487         * elf/tst-tls19.c: New file.
44488         * elf/tst-tls19mod1.c: New file.
44489         * elf/tst-tls19mod2.c: New file.
44490         * elf/tst-tls19mod3.c: New file.
44491         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44492
44493         [BZ #12083]
44494         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44495         correctly.
44496
44497         [BZ #12601]
44498         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44499         two-byte sequence errors.
44500         * iconvdata/Makefile (tests): Add bug-iconv8.
44501         * iconvdata/bug-iconv8.c: New file.
44502
44503         [BZ #12626]
44504         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44505         buf2 definition.
44506
44507         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44508
44509         [BZ #12432]
44510         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44511         (dummy_getcfa): New function.
44512         (init): Get _Unwind_GetCFA address, use dummy if not found.
44513         (backtrace_helper): In recursion check, also check whether CFA changes.
44514         (__backtrace): Completely initialize arg.
44515
44516         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44517         storing incomplete byte sequence in state object.  Avoid testing for
44518         guaranteed too small input if we know there is enough data available.
44519
44520 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44521
44522         * Makeconfig (+link-pie): Indent.
44523         * Rules (binaries-pie): Define if $(have-fpie) and
44524         $(build-shared).
44525         (binaries-shared): Also filter out $(binaries-pie).
44526         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44527         * nscd/Makefile (others-pie): Add nscd.
44528         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44529         ($(objpfx)nscd): Remove command override.
44530         * login/Makefile (others-pie): Add pt_chown.
44531         ($(objpfx)pt_chown): Remove command override.
44532         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44533         remove command overrides.
44534
44535 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44536
44537         * libio/tst_putwc.c: Fix error messages.
44538
44539         [BZ #12724]
44540         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44541         currently writing and seek to current position when not.
44542         * libio/Makefile (tests): Add bug-fclose1.
44543         * libio/bug-fclose1.c: New file.
44544
44545 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44546
44547         [BZ #12511]
44548         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44549         don't set DF_1_NODELETE here.
44550         (do_lookup_x): When entering new entry test for copy relocation
44551         and if necessary set DF_1_NODELETE flag.
44552         * elf/tst-unique4.cc: New file.
44553         * elf/tst-unique4.h: New file.
44554         * elf/tst-unique4lib.cc: New file.
44555         * elf/Makefile: Add rules to build and run tst-unique4.
44556         Patch by Piotr Bury <pbury@goahead.com>.
44557
44558 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44559
44560         [BZ #12052]
44561         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44562
44563         [BZ #12625]
44564         * misc/mntent_r.c (addmntent): Flush the stream after the output
44565
44566         [BZ #12393]
44567         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44568         (is_trusted_path_normalize): Skip initial colon.  Append slash
44569         to empty buffer.  Duplicate is_trusted_path code but allow
44570         constructed patch to be prefix.
44571         (is_dst): Allow $ORIGIN followed by /.
44572         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44573         Correct testing of result of is_trusted_path_normalize
44574         (decompose_rpath): Fix warning.
44575
44576 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44577
44578         [BZ #11257]
44579         * grp/initgroups.c (internal_getgrouplist): When we found the service
44580         list through the initgroups entry in nsswitch.conf do not always
44581         continue on a successful lookup.  Don't always use the
44582         __nss_group_database value if it is set.
44583         * nss/nsswitch.conf (initgroups): Change action for successful db
44584         lookup to continue for compatibility.
44585
44586 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44587
44588         [BZ #11532]
44589         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44590         and CP774 modules.
44591         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44592         and CP774 modules.
44593         * iconvdata/tst-tables.sh: Likewise.
44594         * iconvdata/cp770.c: New file.
44595         * iconvdata/cp771.c: New file.
44596         * iconvdata/cp772.c: New file.
44597         * iconvdata/cp773.c: New file.
44598         * iconvdata/cp774.c: New file.
44599         * iconvdata/testdata/CP770: New file.
44600         * iconvdata/testdata/CP770..UTF8: New file.
44601         * iconvdata/testdata/CP771: New file.
44602         * iconvdata/testdata/CP771..UTF8: New file.
44603         * iconvdata/testdata/CP772: New file.
44604         * iconvdata/testdata/CP772..UTF8: New file.
44605         * iconvdata/testdata/CP773: New file.
44606         * iconvdata/testdata/CP773..UTF8: New file.
44607         * iconvdata/testdata/CP774: New file.
44608         * iconvdata/testdata/CP774..UTF8: New file.
44609
44610         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44611         END CHARMAP line.
44612         * iconvdata/gen-8bit-gap.sh: Likewise.
44613         * iconvdata/gen-8bit.sh: Likewise.
44614
44615         * locale/iso-639.def: Add ary entry.
44616
44617         [BZ #11258]
44618         * locale/C-translit.h.in: Add U20A1 transliteration.
44619
44620         [BZ #12178]
44621         * locale/iso-639.def: Add wae entry.
44622         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44623
44624         [BZ #12545]
44625         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44626         for n.
44627
44628         [BZ #12711]
44629         * locale/C-translit.h.in: Add entry for U20B9.
44630         Patch by pravin.d.s@gmail.com.
44631
44632 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44633
44634         [BZ #12713]
44635         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44636         ENAMETOOLONG use generic getcwd.
44637         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44638         in rtld.  Use *stat64.
44639         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44640         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44641         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44642         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44643         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44644         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44645         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44646         __fstatat64 macros.
44647         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44648         * dirent/rewinddir.c: Add libc_hidden_def.
44649         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44650         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44651
44652         * include/dirent.h (__alloc_dir): Add flags parameter.
44653         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44654         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44655         __alloc_dir.
44656         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44657         from fdopendir if O_CLOEXEC is already set.
44658
44659 2011-03-15  Alan Modra  <amodra@gmail.com>
44660
44661         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44662         l_tls_firstbyte_offset non-zero.  Save padding offset in
44663         l_tls_firstbyte_offset for later use.
44664         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44665         freeing static tls block.
44666
44667 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44668
44669         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44670         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44671         being defined by the kernel headers.
44672
44673 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44674
44675         [BZ #12734]
44676         * resolv/resolv.h: Define RES_NOTLDQUERY.
44677         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44678         no-tld-query and set RES_NOTLDQUERY.
44679         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44680         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44681         modern BIND to search name as TLD unless forbidden.
44682
44683 2011-05-07  Petr Baudis  <pasky@suse.cz>
44684             Ulrich Drepper  <drepper@gmail.com>
44685
44686         [BZ #12393]
44687         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44688         (is_trusted_path): ...to here.
44689         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44690         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44691         using is_trusted_path_normalize() in setuid scripts.
44692
44693 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44694
44695         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44696         __BEGIN/__END_DECLS.
44697
44698 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44699
44700         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44701         NSS_STATUS_NOTFOUND if no record was found.
44702
44703 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44704
44705         * sunrpc/Makefile (headers): Add rpc/netdb.h.
44706         (headers-not-in-tirpc): Remove rpc/netdb.h
44707         * resolv/netdb.h: Revert last change.
44708
44709 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
44710
44711         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
44712         circular dependency between libgcc.a and libc.a.
44713
44714 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44715
44716         * resolv/netdb.h: Don't include <rpc/netdb.h>.
44717         * nis/Makefile: Don't install rpcsvc/*.
44718         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
44719         instead of <rpc/types.h>.
44720         (MAXHOSTNAMELEN): Define.
44721
44722 2011-05-03  Andreas Schwab  <schwab@redhat.com>
44723
44724         * elf/ldconfig.c (add_dir): Don't crash on empty path.
44725
44726 2011-04-28  Maciej Babinski  <mbabinski@google.com>
44727
44728         [BZ #12714]
44729         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
44730         gethostbyname4_r when IPv6 results are possible.
44731
44732 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
44733
44734         [BZ #12723]
44735         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
44736         _PC_PIPE_BUF handling.
44737
44738 2011-04-30  Bruno Haible  <bruno@clisp.org>
44739
44740         [BZ #12717]
44741         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
44742         * resolv/netdb.h (getnameinfo): Change type of flags parameter
44743         to 'int'.
44744         * inet/getnameinfo.c (getnameinfo): Likewise.
44745
44746 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
44747
44748         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
44749         to groups setting in database lookup.
44750         * nss/nsswitch.conf: Add initgroups entry.
44751
44752 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
44753
44754         [BZ #12685]
44755         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
44756         mode string.
44757         Patch by Eric Blake <eblake@redhat.com>.
44758
44759 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
44760
44761         * sunrpc/Makefile (need-export-routines): Add svc_run.
44762         (routines): Remove svc_run.
44763         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
44764         * sunrpc/clnt_perr.c (clnt_perrno): Export.
44765         * sunrpc/svc_run.c (svc_run): Likewise.
44766         * sunrpc/svc_udp.c (svcudp_create): Likewise.
44767
44768 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
44769
44770         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
44771         problem in reallocation in last patch.
44772
44773 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
44774
44775         * sunrpc/Makefile: Move inclusion of Rules.
44776
44777 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44778
44779         * nss/nss_files/files-initgroups.c: New file.
44780         * nss/Makefile (libnss_files-routines): Add files-initgroups.
44781         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
44782         _nss_files_initgroups_dyn.
44783
44784 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
44785
44786         * elf/elf.h (R_ARM_IRELATIVE): Define.
44787
44788 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44789
44790         * po/ru.po: Update from translation team.
44791
44792 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44793
44794         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
44795         dependencies.
44796
44797 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
44798
44799         [BZ #12653]
44800         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
44801         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
44802         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
44803         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
44804         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
44805
44806 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
44807
44808         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
44809         differing bytes.
44810         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
44811         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
44812         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
44813
44814 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44815
44816         [BZ #12420]
44817         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
44818         storing it.
44819         * stdlib/bug-getcontext.c: New file.
44820         * stdlib/Makefile: Add rules to build and run bug-getcontext.
44821
44822 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44823
44824         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
44825         instructions into .machine "z9-109".
44826         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
44827         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
44828
44829 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44830
44831         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
44832         between environment variables and auxiliary vector.
44833
44834 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
44835
44836         * Makefile: Add rules to build linkobj/libc.so.
44837         * include/libc-symbols.h: Define libc_hidden_nolink.
44838         * include/rpc/auth.h: Mark functions which are to be hidden.
44839         * include/rpc/auth_des.h: Likewise.
44840         * include/rpc/auth_unix.h: Likewise.
44841         * include/rpc/clnt.h: Likewise.
44842         * include/rpc/des_crypt.h: Likewise.
44843         * include/rpc/key_prot.h: Likewise.
44844         * include/rpc/pmap_clnt.h: Likewise.
44845         * include/rpc/pmap_prot.h: Likewise.
44846         * include/rpc/pmap_rmt.h: Likewise.
44847         * include/rpc/rpc_msg.h: Likewise.
44848         * include/rpc/svc.h: Likewise.
44849         * include/rpc/svc_auth.h: Likewise.
44850         * include/rpc/xdr.h: Likewise.
44851         * nis/Makefile: Link all DSOs against linkobj/libc.so.
44852         * nss/Makefile: Likewise.
44853         * sunrpc/Makefile: Don't install headers.  Build library with normal
44854         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
44855         * sunrpc/auth_des.c: Hide exported symbols by default, export some
44856         for the compat linking library.  Remove use of INTDEF/INTUSE.
44857         * sunrpc/auth_none.c: Likewise.
44858         * sunrpc/auth_unix.c: Likewise.
44859         * sunrpc/authdes_prot.c: Likewise.
44860         * sunrpc/authuxprot.c: Likewise.
44861         * sunrpc/clnt_gen.c: Likewise.
44862         * sunrpc/clnt_perr.c: Likewise.
44863         * sunrpc/clnt_raw.c: Likewise.
44864         * sunrpc/clnt_simp.c: Likewise.
44865         * sunrpc/clnt_tcp.c: Likewise.
44866         * sunrpc/clnt_udp.c: Likewise.
44867         * sunrpc/clnt_unix.c: Likewise.
44868         * sunrpc/des_crypt.c: Likewise.
44869         * sunrpc/des_soft.c: Likewise.
44870         * sunrpc/get_myaddr.c: Likewise.
44871         * sunrpc/key_call.c: Likewise.
44872         * sunrpc/key_prot.c: Likewise.
44873         * sunrpc/netname.c: Likewise.
44874         * sunrpc/pm_getmaps.c: Likewise.
44875         * sunrpc/pm_getport.c: Likewise.
44876         * sunrpc/pmap_clnt.c: Likewise.
44877         * sunrpc/pmap_prot.c: Likewise.
44878         * sunrpc/pmap_prot2.c: Likewise.
44879         * sunrpc/pmap_rmt.c: Likewise.
44880         * sunrpc/publickey.c: Likewise.
44881         * sunrpc/rpc_cmsg.c: Likewise.
44882         * sunrpc/rpc_common.c: Likewise.
44883         * sunrpc/rpc_dtable.c: Likewise.
44884         * sunrpc/rpc_prot.c: Likewise.
44885         * sunrpc/rpc_thread.c: Likewise.
44886         * sunrpc/rtime.c: Likewise.
44887         * sunrpc/svc.c: Likewise.
44888         * sunrpc/svc_auth.c: Likewise.
44889         * sunrpc/svc_authux.c: Likewise.
44890         * sunrpc/svc_raw.c: Likewise.
44891         * sunrpc/svc_run.c: Likewise.
44892         * sunrpc/svc_simple.c: Likewise.
44893         * sunrpc/svc_tcp.c: Likewise.
44894         * sunrpc/svc_udp.c: Likewise.
44895         * sunrpc/svc_unix.c: Likewise.
44896         * sunrpc/svcauth_des.c: Likewise.
44897         * sunrpc/xcrypt.c: Likewise.
44898         * sunrpc/xdr.c: Likewise.
44899         * sunrpc/xdr_array.c: Likewise.
44900         * sunrpc/xdr_float.c: Likewise.
44901         * sunrpc/xdr_intXX_t.c: Likewise.
44902         * sunrpc/xdr_mem.c: Likewise.
44903         * sunrpc/xdr_rec.c: Likewise.
44904         * sunrpc/xdr_ref.c: Likewise.
44905         * sunrpc/xdr_sizeof.c: Likewise.
44906         * sunrpc/xdr_stdio.c: Likewise.
44907
44908 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
44909
44910         [BZ #12650]
44911         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
44912         * sysdeps/ia64/dl-tls.h: Likewise.
44913         * sysdeps/powerpc/dl-tls.h: Likewise.
44914         * sysdeps/s390/dl-tls.h: Likewise.
44915         * sysdeps/sh/dl-tls.h: Likewise.
44916         * sysdeps/sparc/dl-tls.h: Likewise.
44917         * sysdeps/x86_64/dl-tls.h: Likewise.
44918         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
44919
44920 2011-03-14  Andreas Schwab  <schwab@redhat.com>
44921
44922         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
44923         rpath element also skip the following colon.
44924         (expand_dynamic_string_token): Add is_path parameter and pass
44925         down to DL_DST_REQUIRED and _dl_dst_substitute.
44926         (decompose_rpath): Call expand_dynamic_string_token with
44927         non-zero is_path.  Ignore empty rpaths.
44928         (_dl_map_object_from_fd): Call expand_dynamic_string_token
44929         with zero is_path.
44930
44931 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
44932
44933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
44934         Make cancelable.
44935
44936 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
44937
44938         [BZ #12655]
44939         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
44940         Patch by Filipe David Manana <fdmanana@apache.org>.
44941
44942 2011-04-07  Andreas Schwab  <schwab@redhat.com>
44943
44944         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
44945         Maintain aligned stack.
44946         (CHECK_RSP): Remove unused macro.
44947
44948 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
44949
44950         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
44951         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
44952
44953 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
44954
44955         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
44956
44957         * include/features.h: Mention __USE_XOPEN2K8 in comment.
44958
44959 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
44960
44961         [BZ #12518]
44962         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
44963         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
44964         * sysdeps/x86_64/memmove.c: New file.
44965         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
44966         (memcpy): Renamed to ...
44967         (__new_memcpy): This.
44968         (memcpy): Provide GLIBC_2_14 memcpy.
44969         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
44970         (memcpy): Provide GLIBC_2_2_5 memcpy.
44971
44972 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44973
44974         [BZ #12631]
44975         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
44976
44977 2011-03-30  Andreas Schwab  <schwab@redhat.com>
44978
44979         * misc/syncfs.c: New file.
44980         * misc/Makefile (routines): Add syncfs.
44981         * posix/unistd.h: Declare syncfs.
44982         * sysdeps/unix/syscalls.list: Add syncfs.
44983
44984 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44985
44986         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
44987         open_by_handle_at.
44988         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
44989         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44990         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44991         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44992         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44993         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
44994         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44995
44996 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44997
44998         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
44999         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45000         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45001         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45002         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45003         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45004         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45005
45006         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45007         sync_file_range.c with -fexceptions.
45008         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45009         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45010         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45011         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45012         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45013         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
45014         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
45015         sync_file_range as cancellation point
45016         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
45017         now a wrapper around __call_sync_file_range with cancellation handling.
45018         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
45019         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
45020         function name to __call_sync_file_range.
45021         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
45022         Add call_sync_file_range.
45023
45024 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45025
45026         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45027         bits/timex.h.
45028
45029 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45030
45031         * iconv/iconv.h: Fix typo in comment.
45032         * io/fcntl.h: Likewise.
45033         * libio/stdio.h: Likewise.
45034         * posix/spawn.h: Likewise.
45035         * posix/unistd.h: Likewise.
45036         * stdlib/stdlib.h: Likewise.
45037         * time/time.h: Likewise.
45038         * wcsmbs/wchar.h: Likewise.
45039
45040         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
45041         open_by_handle): Add.
45042         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
45043         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
45044         Augment a few comments.
45045         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45046         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45047         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45048         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45049         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45050         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
45051         open_by_handle.
45052
45053         * io/fcntl.h (AT_EMPTY_PATH): Define.
45054
45055 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
45056
45057         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
45058         * sysdeps/unix/sysv/linux/bits/time.h: New file.
45059         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
45060         to...
45061         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
45062         * Versions.def: Add GLIBC_2.14.
45063         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
45064         Export.
45065
45066 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
45067
45068         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
45069         round counter.
45070         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45071
45072 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
45073
45074         [BZ #12597]
45075         * string/test-strncmp.c (do_page_test): New function.
45076         (check2): Likewise.
45077         (test_main): Call check2.
45078         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
45079
45080 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
45081
45082         [BZ #12587]
45083         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
45084         Handle cache information in CPU leaf 4.
45085         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
45086
45087 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
45088
45089         [BZ #12583]
45090         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
45091         character representation.
45092         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
45093
45094 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
45095
45096         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
45097         END(__isnan) to END(__isnanf) to match function entry point/label
45098         EALIGN(__isnanf,...).
45099
45100 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
45101
45102         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
45103
45104 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
45105
45106         [BZ #12510]
45107         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
45108         copy from the symbol referenced in the relocation to initialize the
45109         used variable.
45110         Patch by Piotr Bury <pbury@goahead.com>.
45111         * elf/Makefile: Add rules to build and tst-unique3.
45112         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
45113         * elf/tst-unique3.cc: New file.
45114         * elf/tst-unique3.h: New file.
45115         * elf/tst-unique3lib.cc: New file.
45116         * elf/tst-unique3lib2.cc: New file.
45117
45118         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
45119
45120 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
45121
45122         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
45123         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
45124         to _start.
45125
45126 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
45127
45128         * elf/dl-load.c (_dl_map_object): If we are looking for the first
45129         to-be-loaded object along a path to loader is ld.so.
45130
45131 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45132             Ulrich Drepper  <drepper@gmail.com>
45133
45134         * sysdeps/x86_64/memset.S: After aligning destination, code
45135         branches to different locations depending on the value of
45136         misalignment, when multiarch is enabled. Fix this.
45137
45138 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
45139
45140         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
45141         Set _x86_64_preferred_memory_instruction for AMD processsors.
45142         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45143         Set bit_Prefer_SSE_for_memop for AMD processors.
45144
45145 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
45146
45147         * libio/fmemopen.c (fmemopen): Optimize a bit.
45148
45149 2011-03-03  Andreas Schwab  <schwab@redhat.com>
45150
45151         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
45152
45153 2011-03-03  Roland McGrath  <roland@redhat.com>
45154
45155         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
45156
45157 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
45158
45159         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
45160         __bzero_ultra1 instead of __memset_ultra1.
45161
45162 2011-02-23  Andreas Schwab  <schwab@redhat.com>
45163             Ulrich Drepper  <drepper@gmail.com>
45164
45165         [BZ #12509]
45166         * include/link.h (struct link_map): Add l_orig_initfini.
45167         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
45168         returning unsuccessfully.
45169         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
45170         close of a file loaded at startup, restore the original l_initfini
45171         list.
45172         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
45173         list, store the pointer.
45174         * elf/Makefile ($(objpfx)noload-mem): New rule.
45175         (noload-ENV): Define.
45176         (tests): Add $(objpfx)noload-mem.
45177         * elf/noload.c: Include <memcheck.h>.
45178         (main): Call mtrace.  Close all opened handles.
45179
45180 2011-02-17  Andreas Schwab  <schwab@redhat.com>
45181
45182         [BZ #12454]
45183         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
45184         dependencies are missing.
45185
45186 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45187
45188         Fix __if_freereq crash: Unlike the generic version which uses free,
45189         Hurd needs munmap.
45190         * sysdeps/mach/hurd/ifreq.h: New file.
45191
45192 2011-01-27  Petr Baudis  <pasky@suse.cz>
45193             Ulrich Drepper  <drepper@gmail.com>
45194
45195         [BZ 12445]#
45196         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
45197         to extend_alloca().
45198         * stdio-common/bug23.c: New file.
45199         * stdio-common/Makefile (tests): Add bug23.
45200
45201 2010-09-28  Andreas Schwab  <schwab@redhat.com>
45202             Ulrich Drepper  <drepper@gmail.com>
45203
45204         [BZ #12489]
45205         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
45206         before performing relro protection.  At old place add assertion
45207         to make sure nothing changed.
45208
45209 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
45210             Glauber de Oliveira Costa  <glommer@gmail.com>
45211
45212         * elf/elf.h: Add new ARM TLS relocs.
45213
45214 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
45215
45216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
45217         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
45218         cast from r3.
45219         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
45220         'tests' variable.
45221         * sysdeps/wordsize-64/tst-writev.c: New file.
45222
45223 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
45224
45225         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
45226         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
45227         insns in _dl_start to prevent a TOC reference before relocs are
45228         resolved.
45229
45230 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
45231
45232         [BZ #12469]
45233         * Makeconfig: Remove RANLIB definition.
45234         * Makerules: Don't use RANLIB.
45235         * aclocal.m4: Remove ranlib test.
45236         * configure.in: No need to check for ranlib.
45237         * elf/rtld-Rules: Don't use RANLIB.
45238
45239 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45240
45241         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
45242         protection macro.
45243         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
45244         inclusion protection macro.
45245
45246         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
45247         SIGRTMIN and SIGRTMAX and print information in that case only when
45248         SIGRTMIN is defined.
45249
45250 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
45251
45252         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
45253         arginfo fn returning -1.
45254
45255         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
45256         and thousands string is zero terminated.
45257
45258 2011-02-03  Andreas Schwab  <schwab@redhat.com>
45259
45260         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
45261         sysdeps/unix/sysv/linux/bits/socket.h.
45262
45263 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45264
45265         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
45266         (__CPU_COUNT): Remove old macros.
45267         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
45268         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
45269         (__CPU_ALLOC, __CPU_FREE): Add macros.
45270         (__sched_cpualloc, __sched_cpufree): Add declarations.
45271
45272 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
45273
45274         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
45275         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
45276         * nscd/aicache.c (addhstaiX): Return timeout of added value.
45277         (readdhstai): Return value of addhstaiX call.
45278         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
45279         (addgrbyX): Return value returned by cache_addgr.
45280         (readdgrbyname): Return value returned by addgrbyX.
45281         (readdgrbygid): Likewise.
45282         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
45283         (addpwbyX): Return value returned by cache_addpw.
45284         (readdpwbyname): Return value returned by addhstbyX.
45285         (readdpwbyuid): Likewise.
45286         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
45287         (addservbyX): Return value returned by cache_addserv.
45288         (readdservbyname): Return value returned by addservbyX:
45289         (readdservbyport): Likewise.
45290         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
45291         (addhstbyX): Return value returned by cache_addhst.
45292         (readdhstbyname): Return value returned by addhstbyX.
45293         (readdhstbyaddr): Likewise.
45294         (readdhstbynamev6): Likewise.
45295         (readdhstbyaddrv6): Likewise.
45296         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
45297         (readdinitgroups): Return value returned by addinitgroupsX.
45298         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
45299         (prune_cache): Keep track of timeout value of re-added entries.
45300         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
45301         * nscd/nscd.h: Adjust prototypes of readd* functions.
45302
45303 2011-02-04  Roland McGrath  <roland@redhat.com>
45304
45305         * nis/nis_server.c (nis_servstate): Use the right name for 0.
45306         (nis_stats): Likewise.
45307         * nis/nis_modify.c (nis_modify): Likewise.
45308         * nis/nis_remove.c (nis_remove): Likewise.
45309         * nis/nis_add.c (nis_add): Likewise.
45310
45311         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
45312
45313         * posix/fnmatch_loop.c: Add some consts.
45314
45315         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
45316
45317 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
45318
45319         [BZ #12460]
45320         * config.make.in (config-cflags-novzeroupper): Define.
45321         * configure.in: Substitute libc_cv_cc_novzeroupper.
45322         * elf/Makefile (AVX-CFLAGS): Define.
45323         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
45324         (CFLAGS-tst-auditmod4a.c): Likewise.
45325         (CFLAGS-tst-auditmod4b.c): Likewise.
45326         (CFLAGS-tst-auditmod6b.c): Likewise.
45327         (CFLAGS-tst-auditmod6c.c): Likewise.
45328         (CFLAGS-tst-auditmod7b.c): Likewise.
45329         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
45330
45331 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
45332
45333         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
45334         function to the callback.
45335         Patch partly by Jiri Olsa <jolsa@redhat.com>.
45336
45337 2011-02-02  Andreas Schwab  <schwab@redhat.com>
45338
45339         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
45340         of errno.
45341
45342 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
45343
45344         [BZ #11724]
45345         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
45346         of constructors.
45347         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
45348         of destructors.
45349         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
45350
45351         [BZ #11724]
45352         * elf/Makefile: Add rules to build and run new test.
45353         * elf/tst-initorder.c: New file.
45354         * elf/tst-initorder.exp: New file.
45355         * elf/tst-initordera1.c: New file.
45356         * elf/tst-initordera2.c: New file.
45357         * elf/tst-initordera3.c: New file.
45358         * elf/tst-initordera4.c: New file.
45359         * elf/tst-initorderb1.c: New file.
45360         * elf/tst-initorderb2.c: New file.
45361         * elf/tst-order-a1.c: New file.
45362         * elf/tst-order-a2.c: New file.
45363         * elf/tst-order-a3.c: New file.
45364         * elf/tst-order-a4.c: New file.
45365         * elf/tst-order-b1.c: New file.
45366         * elf/tst-order-b2.c: New file.
45367         * elf/tst-order-main.c: New file.
45368         New test case by George Gensure <werkt0@gmail.com>.
45369
45370 2010-10-01  Andreas Schwab  <schwab@redhat.com>
45371
45372         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
45373         decoding ACE if AI_CANONIDN.
45374
45375 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
45376
45377         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
45378
45379 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
45380
45381         * version.h (RELEASE): Bump for 2.13 release.
45382         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45383
45384         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45385
45386         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45387         MADV_NOHUGEPAGE.
45388         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45389         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45390         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45391         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45392         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45393         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45394
45395         * posix/getconf.c: Update copyright year.
45396         * catgets/gencat.c: Likewise.
45397         * csu/version.c: Likewise.
45398         * debug/catchsegv.sh: Likewise.
45399         * debug/xtrace.sh: Likewise.
45400         * elf/ldconfig.c: Likewise.
45401         * elf/ldd.bash.in: Likewise.
45402         * elf/sprof.c (print_version): Likewise.
45403         * iconv/iconv_prog.c: Likewise.
45404         * iconv/iconvconfig.c: Likewise.
45405         * locale/programs/locale.c: Likewise.
45406         * locale/programs/localedef.c: Likewise.
45407         * malloc/memusage.sh: Likewise.
45408         * malloc/mtrace.pl: Likewise.
45409         * nscd/nscd.c (print_version): Likewise.
45410         * nss/getent.c: Likewise.
45411
45412         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45413         PF_CAIF, and PF_ALG.
45414         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45415
45416 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45417
45418         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45419         (modules-names): Use them.
45420         (ifunc-test-modules, ifunc-pie-tests): Define.
45421         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45422         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45423         (test-extras): Likewise.
45424         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45425         $(compile-command.c).
45426         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45427         (all-built-dso): Define.
45428         (check-textrel.out, check-execstack.out): Depend on it.
45429
45430         * configure.in: Don't override --enable-multi-arch.
45431
45432 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45433
45434         [BZ #6812]
45435         * nscd/hstcache.c (tryagain): Define.
45436         (cache_addhst): Return tryagain not notfound for temporary errors.
45437         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45438         failed.
45439
45440 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45441
45442         [BZ #10563]
45443         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45444         to make the syscall.
45445         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45446
45447         [BZ #12378]
45448         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45449         and fall back to matching as normal character if the string ends before
45450         the matching ']' is found.  This is what POSIX requires.
45451         * posix/testfnm.c: Adjust test result.
45452         * posix/globtest.sh: Adjust test result.  Add new test.
45453         * posix/tst-fnmatch.input: Likewise.
45454         * posix/tst-fnmatch2.c: Add new test.
45455
45456 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45457
45458         * elf/Makefile (check-execstack): Revert last change.  Depend on
45459         check-execstack.h.
45460         (check-execstack.h): New target.
45461         (generated): Add check-execstack.h.
45462         * elf/check-execstack.c: Include "check-execstack.h".
45463         (main): Revert last change.
45464         (handle_file): Return zero if GNU_STACK is absent and
45465         DEFAULT_STACK_PERMS doesn't include PF_X.
45466
45467 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45468
45469         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45470         in child fails because the descriptor is already closed.
45471         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45472         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45473         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45474
45475         [BZ #12397]
45476         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45477         syscall.
45478
45479         [BZ #10484]
45480         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45481         temporary buffer used to handle multi lookups locally.
45482         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45483
45484 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45485
45486         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45487         loader is ld.so.
45488
45489 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45490
45491         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45492         alignment for SSE2.
45493
45494 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45495
45496         [BZ #12394]
45497         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45498         characters.  When rounding increased number of integer digits recompute
45499         number of groups.
45500         * stdio-common/tst-grouping.c: New file.
45501         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45502
45503 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45504
45505         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45506         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45507
45508         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45509         void.
45510         * bits/select.h: Likewise.
45511
45512 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45513
45514         * po/ja.po: Update from translation team.
45515
45516 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45517
45518         [BZ #11155]
45519         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45520         implementation just like for lxstat, fxstatat, et al.
45521
45522 2010-12-27  Jim Meyering  <meyering@redhat.com>
45523
45524         [BZ #12348]
45525         * posix/regexec.c (build_trtable): Return failure indication upon
45526         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45527
45528 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45529
45530         [BZ #12201]
45531         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45532         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45533         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45534         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45535
45536         [BZ #12207]
45537         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45538
45539         [BZ #12204]
45540         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45541         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45542
45543 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45544
45545         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45546         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45547         script has SORT_BY_INIT_PRIORITY.
45548         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45549         NO_CTORS_DTORS_SECTIONS is defined.
45550         * elf/soinit.c: Likewise.
45551         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45552         NO_CTORS_DTORS_SECTIONS is defined.
45553         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45554         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45555         * sysdeps/sh/init-first.c: Likewise.
45556         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45557
45558 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45559
45560         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45561         always use the slow path.
45562
45563 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45564
45565         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45566         similar rule which adds the sysdep directories to the header search in
45567         order to pick up the correct platform stackinfo.h.
45568         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45569         perform test if it is, otherwise return successfully without testing.
45570         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45571         DEFAULT_STACK_PERMS define in stackinfo.h.
45572         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45573         defined in stackinfo.h.
45574         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45575         DEFAULT_STACK_PERMS defined in stackinfo.h.
45576         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45577         * sysdeps/ia64/stackinfo.h: Likewise.
45578         * sysdeps/s390/stackinfo.h: Likewise.
45579         * sysdeps/sh/stackinfo.h: Likewise.
45580         * sysdeps/sparc/stackinfo.h: Likewise.
45581         * sysdeps/x86_64/stackinfo.h: Likewise.
45582         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45583         PF_X for powerpc64.  Retain PF_X for powerpc32.
45584
45585 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45586
45587         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45588         accurately.
45589         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45590         GETDENTS_64BIT_ALIGNED.
45591
45592 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45593
45594         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45595
45596 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45597
45598         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45599         _GNU_SOURCE.
45600
45601         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45602         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45603         Remove __restrict.
45604         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45605         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45606
45607 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45608
45609         [BZ #11655]
45610         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45611         are initialized.
45612
45613 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45614
45615         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45616
45617 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45618
45619         * po/it.po: Update from translation team.
45620
45621 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45622
45623         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45624         unused codes.
45625
45626 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45627
45628         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45629
45630 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45631
45632         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45633         specially.
45634         (gaih_getanswer_slice): Likewise.
45635
45636 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45637
45638         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45639
45640 2010-05-31  Petr Baudis  <pasky@suse.cz>
45641
45642         [BZ #11149]
45643         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45644         silently even in the chroot mode.
45645
45646 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45647
45648         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45649         last patch a bit.  Pretty printing
45650
45651 2010-05-31  Petr Baudis <pasky@suse.cz>
45652
45653         [BZ #10085]
45654         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45655         initialization of skip_initgroups_dyn.
45656
45657 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45658
45659         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45660         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45661
45662 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45663
45664         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45665
45666 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45667
45668         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45669         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45670         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45671         ($(objpfx)tst-fnmatch-mem): New rule.
45672         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45673         * posix/tst-fnmatch.c (main): Call mtrace.
45674
45675 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45676
45677         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45678         Support Intel processor model 6 and model 0x2c.
45679
45680 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45681
45682         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45683           signed comparison.
45684
45685 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45686
45687         [BZ #12205]
45688         * string/test-strncasecmp.c (check_result): New function.
45689         (do_one_test): Use it.
45690         (check1): New function.
45691         (test_main): Use it.
45692         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45693         Support strcasecmp and strncasecmp.
45694
45695 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45696
45697         [BZ #12194]
45698         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45699         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45700
45701 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45702
45703         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45704         IFUNC support.
45705         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45706         memset-x86-64.
45707         * sysdeps/x86_64/multiarch/bzero.S: New file.
45708         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
45709         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
45710         * sysdeps/x86_64/multiarch/memset.S: New file.
45711         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
45712         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45713         Set bit_Prefer_SSE_for_memop for Intel processors.
45714         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
45715         Define.
45716         (index_Prefer_SSE_for_memop): Define.
45717         (HAS_PREFER_SSE_FOR_MEMOP): Define.
45718
45719 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
45720
45721         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
45722         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
45723
45724 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
45725
45726         [BZ #12191]
45727         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45728         (__x86_64_raw_data_cache_size_half): Likewise.
45729         (__x86_64_raw_shared_cache_size): Likewise.
45730         (__x86_64_raw_shared_cache_size_half): Likewise.
45731
45732         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45733         (__x86_64_raw_data_cache_size_half): Likewise.
45734         (__x86_64_raw_shared_cache_size): Likewise.
45735         (__x86_64_raw_shared_cache_size_half): Likewise.
45736         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
45737         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
45738         and __x86_64_raw_shared_cache_size_half.  Round
45739         __x86_64_data_cache_size_half, __x86_64_data_cache_size
45740         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
45741         to multiple of 256 bytes.
45742
45743 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
45744
45745         [BZ #12167]
45746         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
45747         of inacessible symlinks.  Verify result of symlink before returning it.
45748         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
45749         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
45750
45751 2010-10-28  Erich Ritz  <erichritz@gmail.com>
45752
45753         * math/math.h (isinf): Fix typo in comment.
45754
45755 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
45756
45757         * po/da.po: Update from translation team.
45758
45759 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
45760
45761         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
45762         is added to the list.
45763
45764 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45765             Ulrich Drepper  <drepper@gmail.com>
45766
45767         * elf/dl-object.c (_dl_new_object): Don't append the new object to
45768         the global list here.  Move code to...
45769         (_dl_add_to_namespace_list): ...here.  New function.
45770         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
45771         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
45772         * elf/dl-load.c (lose): Don't remove the element from the list.
45773         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
45774         (_dl_map_object): Likewise.
45775
45776 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
45777
45778         [BZ #12159]
45779         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
45780         into all bytes of SSE register.
45781         Patch by Richard Li <richardpku@gmail.com>.
45782
45783 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
45784
45785         [BZ #12140]
45786         * malloc/malloc.c (_int_free): Fill correct number of bytes when
45787         perturbing.
45788
45789 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
45790
45791         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
45792         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
45793         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
45794         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
45795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
45796         submachine.
45797         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
45798
45799 2010-10-22  Andreas Schwab  <schwab@redhat.com>
45800
45801         * include/dlfcn.h (__RTLD_SECURE): Define.
45802         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
45803         mode & __RTLD_SECURE instead.
45804         (open_path): Rename preloaded parameter to secure.
45805         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
45806         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
45807         * elf/dl-deps.c (openaux): Likewise.
45808         * elf/rtld.c (struct map_args): Remove is_preloaded.
45809         (map_doit): Don't use it.
45810         (dl_main): Likewise.
45811         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
45812         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
45813
45814 2010-09-09  Andreas Schwab  <schwab@redhat.com>
45815
45816         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
45817         (sysd-rules-targets): Remove duplicates.
45818         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
45819         rtld-%.$o dependency.
45820
45821 2010-10-18  Andreas Schwab  <schwab@redhat.com>
45822
45823         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
45824         _dl_map_object do it.
45825
45826 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
45827
45828         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
45829         fast fma builtins, define the macros in the C99 standard.
45830         (FP_FAST_FMAF): Likewise.
45831         (FP_FAST_FMAL): Likewise.
45832         * sysdeps/x86_64/bits/mathdef.h: Likewise.
45833
45834         * bits/mathdef.h: Update copyright year.
45835         * sysdeps/powerpc/bits/mathdef.h: Likewise.
45836
45837 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
45838
45839         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
45840         builtins, define the macros in the C99 standard.
45841         (FP_FAST_FMAF): Likewise.
45842         (FP_FAST_FMAL): Likewise.
45843         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
45844         multiply/add.
45845         (FP_FAST_FMAF): Likewise.
45846
45847 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
45848
45849         [BZ #3268]
45850         * math/libm-test.inc (fma_test): Some new testcases.
45851         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
45852         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
45853         y and infinite z.  Do multiplication by C already in long double.
45854         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
45855         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
45856         y and infinite z.  Do bitwise or of inexact bit into u.d.
45857         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
45858         * sysdeps/i386/fpu/s_fmaf.S: Removed.
45859         * sysdeps/i386/fpu/s_fma.S: Removed.
45860         * sysdeps/i386/fpu/s_fmal.S: Removed.
45861
45862 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
45863
45864         [BZ #3268]
45865         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
45866         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
45867         computation is not scheduled after fetestexcept.  Fix value
45868         of minimum denormal long double.
45869
45870 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
45871
45872         [BZ #3268]
45873         * math/libm-test.inc (fma_test): Add some more tests.
45874         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
45875         correctly.
45876
45877 2010-10-15  Andreas Schwab  <schwab@redhat.com>
45878
45879         * scripts/data/localplt-s390-linux-gnu.data: New file.
45880         * scripts/data/localplt-s390x-linux-gnu.data: New file.
45881
45882 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
45883
45884         [BZ #3268]
45885         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
45886         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
45887         instead of dbl-64.
45888         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
45889         inlines.
45890         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
45891         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
45892         if one of x and y is very large and the other is subnormal.
45893         * sysdeps/s390/fpu/s_fmaf.c: New file.
45894         * sysdeps/s390/fpu/s_fma.c: New file.
45895         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
45896         * sysdeps/powerpc/fpu/s_fma.S: New file.
45897         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
45898         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
45899         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
45900
45901 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
45902
45903         [BZ #3268]
45904         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
45905         fma tests.
45906         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
45907         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
45908         * sysdeps/i386/i686/multiarch/s_fma.c: Include
45909         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
45910         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
45911         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
45912         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
45913
45914 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
45915
45916         [BZ #12078]
45917         * posix/regcomp.c (parse_branch): One more memory leak plugged.
45918         * posix/bug-regex31.input: Add test case.
45919
45920 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45921
45922         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
45923         * posix/bug-regex31.input: New file.
45924
45925         [BZ #12078]
45926         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
45927         (parse_sub_exp): Fix last change, use postorder.
45928
45929         * posix/bug-regex31.c: New file.
45930         * posix/Makefile: Add rules to build and run bug-regex31.
45931
45932         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
45933
45934         [BZ #12078]
45935         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
45936
45937         [BZ #12108]
45938         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
45939         to have entries in sys_siglist.
45940
45941         [BZ #12093]
45942         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
45943         be NULL.
45944
45945 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
45946
45947         [BZ #3268]
45948         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
45949         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
45950         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
45951         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
45952         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
45953         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
45954         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
45955         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
45956         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
45957         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
45958         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
45959         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
45960         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
45961         * math/ftestexcept.c (fetestexcept): Likewise.
45962         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
45963         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
45964         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
45965         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
45966         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
45967         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
45968         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
45969
45970 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45971
45972         [BZ #12107]
45973         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
45974         newline.
45975
45976 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
45977
45978         * string/bug-strstr1.c: New file.
45979         * string/Makefile: Add rules to build and run bug-strstr1.
45980
45981 2010-10-05  Eric Blake  <eblake@redhat.com>
45982
45983         [BZ #12092]
45984         * string/str-two-way.h (two_way_long_needle): Always clear memory
45985         when skipping input due to the shift table.
45986
45987 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
45988
45989         [BZ #12005]
45990         * malloc/mcheck.c: Handle large requests.
45991
45992         [BZ #12077]
45993         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
45994         for strncmp and strncasecmp.
45995         * string/stratcliff.c: Add tests for strcmp and strncmp.
45996         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
45997
45998 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
45999
46000         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46001         __set_fpscr.
46002
46003 2010-09-30  Andreas Jaeger  <aj@suse.de>
46004
46005         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46006         (CGROUP_SUPER_MAGIC): Define.
46007         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46008         Handle btrfs and cgroup file systems.
46009         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46010         Likewise.
46011
46012 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46013
46014         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
46015         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
46016
46017 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46018
46019         [BZ #12067]
46020         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
46021         trying to locate the ELF header.
46022
46023 2010-09-27  Andreas Schwab  <schwab@redhat.com>
46024
46025         [BZ #11611]
46026         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
46027         Mask out sign-bit copies when constructing f_fsid.
46028
46029 2010-09-24  Petr Baudis <pasky@suse.cz>
46030
46031         * debug/stack_chk_fail_local.c: Add missing licence exception.
46032         * debug/warning-nop.c: Likewise.
46033
46034 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
46035
46036         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
46037         implementing getdents64 using getdents syscall, set d_type if
46038         __ASSUME_GETDENTS32_D_TYPE.
46039
46040 2010-09-16  Andreas Schwab  <schwab@redhat.com>
46041
46042         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
46043         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
46044
46045 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
46046
46047         [BZ #12037]
46048         * posix/unistd.h: Undo change of feature selection for ftruncate from
46049         2010-01-11.
46050
46051 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
46052
46053         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
46054         detection.
46055
46056 2010-09-20  Andreas Schwab  <schwab@redhat.com>
46057
46058         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
46059         fanotify_mark.
46060         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46061
46062 2010-09-14  Andreas Schwab  <schwab@redhat.com>
46063
46064         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
46065         variables after CHECK_SP call.
46066         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
46067
46068 2010-09-13  Andreas Schwab  <schwab@redhat.com>
46069             Ulrich Drepper  <drepper@redhat.com>
46070
46071         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
46072         re-relocationg ld.so.
46073         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
46074         _dl_init_paths call.
46075         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
46076         here anymore.
46077
46078 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
46079
46080         * resolv/res_init.c (__res_vinit): Count the default server we added.
46081
46082 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
46083             Ulrich Drepper  <drepper@redhat.com>
46084
46085         [BZ #11968]
46086         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
46087         (____longjmp_chk): Use %ebx for saving value across system call.
46088         Add unwind info.
46089
46090 2010-09-06  Andreas Schwab  <schwab@redhat.com>
46091
46092         * manual/Makefile: Don't mix pattern rules with normal rules.
46093
46094 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
46095
46096         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
46097         operation.
46098         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
46099         * libio/iofopncook.c (_IO_cookie_init): Likewise.
46100         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
46101         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
46102         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46103         Likewise.
46104
46105 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
46106
46107         [BZ #11979]
46108         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
46109         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
46110
46111 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
46112
46113         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
46114         * sysdeps/x86_64/addmul_1.S: Likewise.
46115         * sysdeps/x86_64/lshift.S: Likewise.
46116         * sysdeps/x86_64/mul_1.S: Likewise.
46117         * sysdeps/x86_64/rshift.S: Likewise.
46118         * sysdeps/x86_64/sub_n.S: Likewise.
46119         * sysdeps/x86_64/submul_1.S: Likewise.
46120
46121 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46122
46123         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
46124         Define __sched_param instead of SCHED_* and sched_param when
46125         <bits/sched.h> is included with __need_schedparam defined.
46126         * bits/sched.h [__need_schedparam]
46127         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
46128         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
46129         (__defined_schedparam): Define to 1.
46130         (__sched_param): New structure, identical to sched_param.
46131         (__need_schedparam): Undefine.
46132
46133 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
46134
46135         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
46136         (epoll_create1): Declare.
46137
46138         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
46139
46140 2010-08-31  Andreas Schwab  <schwab@redhat.com>
46141
46142         [BZ #7066]
46143         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
46144         shifting retval into place.
46145
46146 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
46147
46148         * nis/rpcsvc/nis.h: Update copyright notice.
46149         * nis/rpcsvc/nis.x: Likewise.
46150         * nis/rpcsvc/nis_callback.h: Likewise.
46151         * nis/rpcsvc/nis_callback.x: Likewise.
46152         * nis/rpcsvc/nis_object.x: Likewise.
46153         * nis/rpcsvc/nis_tags.h: Likewise.
46154         * nis/rpcsvc/yp.h: Likewise.
46155         * nis/rpcsvc/yp.x: Likewise.
46156         * nis/rpcsvc/ypupd.h: Likewise.
46157         * nis/yp_xdr.c: Likewise.
46158         * nis/ypupdate_xdr.c: Likewise.
46159
46160         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
46161         mainly the body of pmap_getport.  Add parameters to specify timeouts.
46162         (pmap_getport): Use __libc_rpc_getport.
46163         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
46164         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
46165         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
46166
46167 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
46168
46169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
46170         fanotify_mark.
46171
46172 2010-08-27  Roland McGrath  <roland@redhat.com>
46173
46174         * sysdeps/i386/i686/multiarch/Makefile
46175         (CFLAGS-varshift.c): New variable.
46176
46177 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
46178
46179         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
46180         * sysdeps/i386/i686/multiarch/varshift.c: New file.
46181
46182         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
46183
46184         * sysdeps/x86_64/strlen.S: Minimal code improvement.
46185
46186 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
46187
46188         * sysdeps/x86_64/strlen.S: Unroll the loop.
46189         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46190         strlen-sse2 strlen-sse2-bsf.
46191         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
46192         __strlen_no_bsf if bit_Slow_BSF is set.
46193         (__strlen_sse42): Removed.
46194         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
46195         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
46196
46197 2010-08-25  Roland McGrath  <roland@redhat.com>
46198
46199         * sysdeps/x86_64/multiarch/varshift.S: File removed.
46200         * sysdeps/x86_64/multiarch/varshift.c: New file.
46201         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
46202         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
46203         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
46204         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
46205
46206 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
46207
46208         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46209         strlen-sse2 strlen-sse2-bsf.
46210         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
46211         __strlen_sse2_bsf if bit_Slow_BSF is unset.
46212         (__strlen_sse2): Removed.
46213         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
46214         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
46215         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
46216         bit_Slow_BSF for Atom.
46217         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
46218         (index_Slow_BSF): Define.
46219         (HAS_SLOW_BSF): Define.
46220
46221 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
46222
46223         [BZ #10851]
46224         * resolv/res_init.c (__res_vinit): When no server address at all
46225         is given default to loopback.
46226
46227 2010-08-24  Roland McGrath  <roland@redhat.com>
46228
46229         * configure.in: Remove config-name.h generation.
46230         * configure: Regenerated.
46231         * config-name.in: File removed.
46232         * scripts/config-uname.sh: New file.
46233         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
46234         ($(objdir)config-name.h): New target.
46235
46236         * sunrpc/rpc_parse.h: Avoid nested comment.
46237
46238 2010-08-24  Richard Henderson  <rth@redhat.com>
46239             Ulrich Drepper  <drepper@redhat.com>
46240             H.J. Lu  <hongjiu.lu@intel.com>
46241
46242         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
46243         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
46244         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
46245         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
46246         _mm_alignr_epi8 with _mm_loadu_si128.
46247         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
46248         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
46249         (__m128i_shift_right): Removed.
46250         * sysdeps/i386/i686/multiarch/varshift.h: New file.
46251         * sysdeps/i386/i686/multiarch/varshift.S: New file.
46252         * sysdeps/x86_64/multiarch/varshift.h: New file.
46253         * sysdeps/x86_64/multiarch/varshift.S: New file.
46254
46255 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
46256
46257         * configure.in: Move assembler checks to before sysdep dir checking.
46258
46259 2010-08-20  Petr Baudis  <pasky@suse.cz>
46260
46261         * LICENSES: Sync the sunrpc license.
46262
46263 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
46264
46265         * sunrpc/auth_des.c: Update copyright notice once again.
46266         * sunrpc/auth_none.c: Likewise.
46267         * sunrpc/auth_unix.c: Likewise.
46268         * sunrpc/authdes_prot.c: Likewise.
46269         * sunrpc/authuxprot.c: Likewise.
46270         * sunrpc/bindrsvprt.c: Likewise.
46271         * sunrpc/clnt_gen.c: Likewise.
46272         * sunrpc/clnt_perr.c: Likewise.
46273         * sunrpc/clnt_raw.c: Likewise.
46274         * sunrpc/clnt_simp.c: Likewise.
46275         * sunrpc/clnt_tcp.c: Likewise.
46276         * sunrpc/clnt_udp.c: Likewise.
46277         * sunrpc/clnt_unix.c: Likewise.
46278         * sunrpc/des_crypt.c: Likewise.
46279         * sunrpc/des_soft.c: Likewise.
46280         * sunrpc/get_myaddr.c: Likewise.
46281         * sunrpc/getrpcport.c: Likewise.
46282         * sunrpc/key_call.c: Likewise.
46283         * sunrpc/key_prot.c: Likewise.
46284         * sunrpc/openchild.c: Likewise.
46285         * sunrpc/pm_getmaps.c: Likewise.
46286         * sunrpc/pm_getport.c: Likewise.
46287         * sunrpc/pmap_clnt.c: Likewise.
46288         * sunrpc/pmap_prot.c: Likewise.
46289         * sunrpc/pmap_prot2.c: Likewise.
46290         * sunrpc/pmap_rmt.c: Likewise.
46291         * sunrpc/rpc/auth.h: Likewise.
46292         * sunrpc/rpc/auth_unix.h: Likewise.
46293         * sunrpc/rpc/clnt.h: Likewise.
46294         * sunrpc/rpc/des_crypt.h: Likewise.
46295         * sunrpc/rpc/key_prot.h: Likewise.
46296         * sunrpc/rpc/netdb.h: Likewise.
46297         * sunrpc/rpc/pmap_clnt.h: Likewise.
46298         * sunrpc/rpc/pmap_prot.h: Likewise.
46299         * sunrpc/rpc/pmap_rmt.h: Likewise.
46300         * sunrpc/rpc/rpc.h: Likewise.
46301         * sunrpc/rpc/rpc_des.h: Likewise.
46302         * sunrpc/rpc/rpc_msg.h: Likewise.
46303         * sunrpc/rpc/svc.h: Likewise.
46304         * sunrpc/rpc/svc_auth.h: Likewise.
46305         * sunrpc/rpc/types.h: Likewise.
46306         * sunrpc/rpc/xdr.h: Likewise.
46307         * sunrpc/rpc_clntout.c: Likewise.
46308         * sunrpc/rpc_cmsg.c: Likewise.
46309         * sunrpc/rpc_common.c: Likewise.
46310         * sunrpc/rpc_cout.c: Likewise.
46311         * sunrpc/rpc_dtable.c: Likewise.
46312         * sunrpc/rpc_hout.c: Likewise.
46313         * sunrpc/rpc_main.c: Likewise.
46314         * sunrpc/rpc_parse.c: Likewise.
46315         * sunrpc/rpc_parse.h: Likewise.
46316         * sunrpc/rpc_prot.c: Likewise.
46317         * sunrpc/rpc_sample.c: Likewise.
46318         * sunrpc/rpc_scan.c: Likewise.
46319         * sunrpc/rpc_scan.h: Likewise.
46320         * sunrpc/rpc_svcout.c: Likewise.
46321         * sunrpc/rpc_tblout.c: Likewise.
46322         * sunrpc/rpc_util.c: Likewise.
46323         * sunrpc/rpc_util.h: Likewise.
46324         * sunrpc/rpcinfo.c: Likewise.
46325         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
46326         * sunrpc/rpcsvc/key_prot.x: Likewise.
46327         * sunrpc/rpcsvc/klm_prot.x: Likewise.
46328         * sunrpc/rpcsvc/mount.x: Likewise.
46329         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
46330         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
46331         * sunrpc/rpcsvc/rex.x: Likewise.
46332         * sunrpc/rpcsvc/rstat.x: Likewise.
46333         * sunrpc/rpcsvc/rusers.x: Likewise.
46334         * sunrpc/rpcsvc/sm_inter.x: Likewise.
46335         * sunrpc/rpcsvc/spray.x: Likewise.
46336         * sunrpc/rpcsvc/yppasswd.x: Likewise.
46337         * sunrpc/rtime.c: Likewise.
46338         * sunrpc/svc.c: Likewise.
46339         * sunrpc/svc_auth.c: Likewise.
46340         * sunrpc/svc_authux.c: Likewise.
46341         * sunrpc/svc_raw.c: Likewise.
46342         * sunrpc/svc_run.c: Likewise.
46343         * sunrpc/svc_simple.c: Likewise.
46344         * sunrpc/svc_tcp.c: Likewise.
46345         * sunrpc/svc_udp.c: Likewise.
46346         * sunrpc/svc_unix.c: Likewise.
46347         * sunrpc/svcauth_des.c: Likewise.
46348         * sunrpc/xcrypt.c: Likewise.
46349         * sunrpc/xdr.c: Likewise.
46350         * sunrpc/xdr_array.c: Likewise.
46351         * sunrpc/xdr_float.c: Likewise.
46352         * sunrpc/xdr_mem.c: Likewise.
46353         * sunrpc/xdr_rec.c: Likewise.
46354         * sunrpc/xdr_ref.c: Likewise.
46355         * sunrpc/xdr_sizeof.c: Likewise.
46356         * sunrpc/xdr_stdio.c: Likewise.
46357
46358         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
46359         handling.
46360
46361 2010-08-19  Andreas Schwab  <schwab@redhat.com>
46362
46363         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
46364
46365 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
46366
46367         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
46368         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
46369         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
46370         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
46371         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
46372         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
46373         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
46374         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
46375         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
46376         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
46377         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
46378         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
46379         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
46380         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46381
46382 2010-07-26  Anton Blanchard  <anton@samba.org>
46383
46384         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46385         * malloc/arena.c (heap_trim): Likewise.
46386
46387 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46388
46389         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46390         here.  Not...
46391         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46392         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46393
46394 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46395
46396         * sysdeps/i386/elf/Makefile: New file.
46397
46398 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46399
46400         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46401         from fanotify_init.
46402         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46403         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46404
46405 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46406
46407         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46408         of strncasecmp_l.
46409         * sysdeps/multiarch/strcmp.S: Likewise.
46410
46411 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46412
46413         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46414         strncase_l-nonascii.
46415         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46416         Add strncase_l-ssse3.
46417         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46418         * sysdeps/x86_64/strcmp.S: Likewise.
46419         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46420         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46421         * sysdeps/x86_64/strncase.S: New file.
46422         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46423         * sysdeps/x86_64/strncase_l.S: New file.
46424         * string/Makefile (strop-tests): Add strncasecmp.
46425         * string/test-strncasecmp.c: New file.
46426
46427         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46428         warning.
46429
46430         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46431         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46432
46433 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46434
46435         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46436
46437 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46438
46439         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46440         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46441         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46442
46443 2010-05-01  Alan Modra  <amodra@gmail.com>
46444
46445         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46446         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46447         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46448         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46449         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46450         tidying.  Don't tail-call __sigjmp_save for static lib.
46451         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46452         save location.
46453         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46454         (CALL_MCOUNT): Add eh info, and nop after bl.
46455         (TAIL_CALL_SYSCALL_ERROR): New macro.
46456         (PSEUDO_RET): Use it.
46457         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46458         Correct save location of integer regs and cr.
46459         (_dl_profile_resolve): Correct cr save location.  Delete nops
46460         after bl when SHARED.  Reduce cfi size a little by better
46461         placement of cfi directives.
46462         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46463         make a stack frame.  Instead use parm save area as a temp.
46464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46465         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46467         Don't make a stack frame for parent, use parm save area.
46468         Increase child stack frame to 112 bytes.  Don't save unused reg,
46469         and adjust reg usage.  Set up cfi on error recovery and
46470         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46472         (__makecontext): Add dummy nop after jump to exit.
46473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46474         Use correct parm save area and cr save, reduce stack frame.
46475         Correct cfi for possible PSEUDO_RET frame setup.
46476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46477         Branch to local label emitted by PSEUDO_RET rather than
46478         __syscall_error.
46479
46480 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46481
46482         [BZ #11904]
46483         * locale/programs/locale.c (print_assignment): New function.
46484         (show_locale_vars): Use it.
46485
46486 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46487
46488         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46489         field.
46490         (struct statfs64): Likewise.
46491         (_STATFS_F_FLAGS): Define.
46492         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46493         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46494         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46495         (ST_VALID): Define locally.
46496         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46497         __statvfs_getflags, use the provided value.
46498         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46499         __ASSUME_STATFS_F_FLAGS.
46500
46501         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46502
46503         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46504         Add sys/fanotify.h.
46505         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46506         fanotify_mask for GLIBC_2.13.
46507         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46508         fanotify_init and fanotify_mark.
46509         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46510         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46511
46512         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46513         Add prlimit.
46514         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46515         prlimit64 for GLIBC_2.13.
46516         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46517         prlimit64.
46518         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46519         syscall.
46520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46521         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46522         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46523         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46524         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46525         add prlimit alias.
46526         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46527
46528         [BZ #11903]
46529         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46530         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46531
46532         * nss/Makefile: Add rules to build and run tst-nss-test1.
46533         * shlib-versions: Add entry for libnss_test1.
46534         * nss/nss_test1.c: New file.
46535         * nss/tst-nss-test1.c: New file.
46536
46537         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46538         (__nss_configure_lookup): Set appropriate entry in
46539         __nss_configure_lookup to true.
46540         * nss/nsswitch.h: Define enum with indeces of databases in
46541         databases and __nss_database_custom arrays.  Declare
46542         __nss_database_custom.
46543         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46544         to avoid using nscd when custom rules are installed.
46545         * nss/getXXbyYY_r.c: Likewise.
46546         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46547
46548         * nss/nss_files/files-parse.c: Whitespace fixes.
46549
46550 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46551
46552         [BZ #11883]
46553         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46554         * posix/fnmatch_loop.c: Likewise.
46555
46556 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46557
46558         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46559         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46560         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46561         * Versions.def [GLIBC_2.13]: Add.
46562
46563 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46564
46565         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46566         Also fail if tpwd after pwuid call is NULL.
46567
46568 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46569
46570         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46571         when converting to ms.
46572
46573 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46574
46575         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46576         EOPNOTSUPP errors with ENOTTY.
46577         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46578         EOPNOTSUPP errors with ENOTTY.
46579
46580 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46581
46582         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46583         Add strcasecmp_l-ssse3.
46584         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46585         strcasecmp.
46586         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46587         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46588         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46589
46590 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46591
46592         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46593
46594         * string/Makefile (strop-tests): Add strcasecmp.
46595         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46596         strcasecmp_l-nonascii.
46597         (gen-as-const-headers): Add locale-defines.sym.
46598         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46599         * sysdeps/x86_64/strcasecmp.S: New file.
46600         * sysdeps/x86_64/strcasecmp_l.S: New file.
46601         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46602         * sysdeps/x86_64/locale-defines.sym: New file.
46603         * string/test-strcasecmp.c: New file.
46604
46605         * string/test-strcasestr.c: Test both ends of the range of characters.
46606         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46607
46608 2010-07-29  Roland McGrath  <roland@redhat.com>
46609
46610         [BZ #11856]
46611         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46612
46613 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46614
46615         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46616         for ld.so.
46617
46618 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46619
46620         * manual/memory.texi (Malloc Tunable Parameters): Document
46621         M_PERTURB.
46622
46623 2010-07-26  Roland McGrath  <roland@redhat.com>
46624
46625         [BZ #11840]
46626         * configure.in (-fgnu89-inline check): Set and substitute
46627         gnu89_inline, not libc_cv_gnu89_inline.
46628         * configure: Regenerated.
46629         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46630
46631 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46632
46633         * string/test-strnlen.c: New file.
46634         * string/Makefile (strop-tests): Add strnlen.
46635         * string/tester.c (test_strnlen): Add a few more test cases.
46636         * string/tst-strlen.c: Better error reporting.
46637
46638         * sysdeps/x86_64/strnlen.S: New file.
46639
46640 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46641
46642         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46643         lower-latency instructions.
46644
46645 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46646
46647         * string/test-strcasestr.c: New file.
46648         * string/test-strstr.c: New file.
46649         * string/Makefile (strop-tests): Add strstr and strcasestr.
46650         * string/str-two-way.h: Don't undefine MAX.
46651         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46652
46653 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46654
46655         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46656         strcasestr-nonascii.
46657         (CFLAGS-strcasestr-nonascii.c): Define.
46658         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46659         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46660         Remove unused attribute.
46661
46662 2010-07-20  Roland McGrath  <roland@redhat.com>
46663
46664         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46665         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46666         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46667         like LD_HWCAP_MASK can disable hwcaps.
46668
46669 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46670
46671         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46672
46673 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46674
46675         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46676         call in strcasestr.
46677         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46678         __strcasestr_sse42_nonascii.
46679         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46680         strcasestr-nonascii.c.
46681         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46682
46683 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46684
46685         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46686         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46687         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46688         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46689
46690 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46691
46692         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46693         fcntl.
46694
46695 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46696
46697         [BZ #11577]
46698         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46699         dl_signal_cerror.
46700
46701 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46702
46703         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46704         _PC_PIPE_BUF using F_GETPIPE_SZ.
46705
46706 2010-07-05  Roland McGrath  <roland@redhat.com>
46707
46708         * manual/arith.texi (Rounding Functions): Fix rint description
46709         implicit in round description.
46710
46711 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
46712
46713         * elf/Makefile: Fix linking for a few tests to make recent linker
46714         happy.
46715
46716 2010-06-30  Andreas Schwab  <schwab@redhat.com>
46717
46718         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
46719         $(common-objpfx)libc_nonshared.a.
46720
46721 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
46722
46723         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
46724         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
46725         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46726         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46727         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
46728         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
46729         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46730         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
46732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
46733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
46734         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46735         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
46736         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
46738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
46739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
46740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
46741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
46743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
46745         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
46746         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
46747         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
46748         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
46749         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
46750         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
46751         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
46752         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
46753         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
46754         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
46755         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
46756         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
46757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
46758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
46759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
46760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
46761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
46762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
46763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
46764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
46765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
46766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
46767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
46768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
46769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
46770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
46771
46772 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
46773
46774         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
46775         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
46776         * string/memmove.c (memmove): Renamed to ...
46777         (MEMMOVE): ...this.  Default to memmove.
46778         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
46779         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
46780         (END_CHK): Define.
46781         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46782         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
46783         mempcpy-ssse3-back memmove-ssse3-back.
46784         * sysdeps/x86_64/multiarch/bcopy.S: New file .
46785         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
46786         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
46787         * sysdeps/x86_64/multiarch/memcpy.S: New file.
46788         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
46789         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
46790         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
46791         * sysdeps/x86_64/multiarch/memmove.c: New file.
46792         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
46793         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
46794         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
46795         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
46796         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
46797         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
46798         Define.
46799         (index_Fast_Copy_Backward): Define.
46800         (HAS_ARCH_FEATURE): Define.
46801         (HAS_FAST_REP_STRING): Define.
46802         (HAS_FAST_COPY_BACKWARD): Define.
46803
46804 2010-06-21  Andreas Schwab  <schwab@redhat.com>
46805
46806         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46807         Restore proper fallback handling.
46808
46809 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
46810
46811         [BZ #11701]
46812         * posix/group_member.c (__group_member): Correct checking loop.
46813
46814         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
46815         OOM in getpwuid_r correctly.  Return error number when the caller
46816         should return, otherwise -1.
46817         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
46818         call returning > 0 value.
46819         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
46820
46821 2010-06-07  Andreas Schwab  <schwab@redhat.com>
46822
46823         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
46824         libc_nonshared.a from targets in modules-names.
46825
46826 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
46827
46828         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
46829         requires it.
46830
46831 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
46832
46833         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
46834         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
46835         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
46836         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
46837
46838 2010-06-02  Andreas Schwab  <schwab@redhat.com>
46839
46840         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
46841
46842 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
46843
46844         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
46845         and F_GETPIPE_SZ.
46846         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46847         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46848         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46849         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46850         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46851         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
46852
46853 2010-06-14  Roland McGrath  <roland@redhat.com>
46854
46855         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
46856
46857 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
46858
46859         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
46860         __REDIRECT followed by __THROW.
46861         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
46862         * posix/getopt.h (getopt): Likewise.
46863
46864 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46865
46866         * hurd/lookup-at.c (__file_name_lookup_at): Accept
46867         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
46868         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
46869         in AT_FLAGS.
46870         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
46871         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
46872
46873 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
46874
46875         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
46876
46877 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
46878
46879         [BZ #11640]
46880         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46881         Properly check family and model.
46882
46883 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
46884
46885         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
46886
46887 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
46888
46889         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
46890
46891 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
46892
46893         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
46894         symbol reference.
46895
46896 2010-05-19  Andreas Schwab  <schwab@redhat.com>
46897
46898         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
46899         symbol reference.
46900
46901 2010-05-21  Andreas Schwab  <schwab@redhat.com>
46902
46903         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
46904         and internal_recvmmsg.
46905         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
46906         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
46907         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
46908         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
46909
46910         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
46911         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
46912         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
46913
46914 2010-05-20  Andreas Schwab  <schwab@redhat.com>
46915
46916         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
46917
46918 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
46919
46920         POWER7 optimizations.
46921         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
46922         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
46923
46924 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
46925
46926         * version.h: Update for 2.13 development version.
46927
46928 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
46929
46930         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
46931         exceptions.  Return 0.
46932
46933 2010-05-07  Roland McGrath  <roland@redhat.com>
46934
46935         * elf/ldconfig.c (main): Add a const.
46936
46937 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
46938
46939         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
46940         (args_options): Add no-idn option.
46941         (ahosts_keys_int): Add idn_flags to ai_flags.
46942         (parse_option): Handle 'i' option to clear idn_flags.
46943
46944         * malloc/malloc.c (_int_free): Possible race in the most recently
46945         added check.  Only act on the data if no current modification
46946         happened.
46947
46948 See ChangeLog.17 for earlier changes.