Fix Wundef warning for SEPARATE_KEY
[platform/upstream/glibc.git] / ChangeLog
1 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
4         code.
5         (verify_persistent_db): Likewise.
6
7 2014-06-26  Roland McGrath  <roland@hack.frob.com>
8
9         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
10         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
11         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
12         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
13         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
14         Moved ...
15         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
16         ... here.
17         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
18         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
19         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
20         Identical file removed.
21         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
22         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
23         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
24         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
25         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
26         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
27         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
28         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
30         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
31         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
32         Moved ...
33         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
34         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
35         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
36         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
37         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
38         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
39         Moved ...
40         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
41         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
42         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
43         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
44         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
45         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
46         Identical file removed.
47         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
48         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
49         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
50         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
51         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
52         Moved ...
53         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
54         ... here.
55         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
56         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
57         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
58         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
59         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
60         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
61         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
62         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
63         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
64         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
65         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
66         Moved ...
67         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
68         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
69         Moved ...
70         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
71         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
72         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
73         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
74         Moved ...
75         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
76         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
77         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
78
79         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
80         folded into ...
81         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
82         * sysdeps/unix/sysv/linux/s390/Versions
83         (libpthread: GLIBC_2.19): New version set.
84         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
85         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
86         (librt: GLIBC_2.3.3): New version set.
87         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
88         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
89         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
90         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
91         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
92         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
93         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
94         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
95         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
96         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
97         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
98         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
99         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
100         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
101         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
102         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
103         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
104         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
105         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
106         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
107         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
108         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
109         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
110         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
111         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
112         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
113         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
114         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
115         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
116         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
117         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
118         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
119         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
120         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
121         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
122         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
123         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
124         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
125         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
126         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
127         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
128         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
129         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
130         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
131         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
132
133         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
134         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
135         (__libc_vfork): Define the function under this name.
136         [!NOT_IN_libc] (__vfork): Make this an alias.
137         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
138         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
139         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
140         (__libc_vfork): Define the function under this name.
141         [!NOT_IN_libc] (__vfork): Make this an alias.
142         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
143         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
144         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
145         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
146         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
147         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
148
149         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
150         code that was previously under [RESET_PID].
151         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
152         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
153         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
154
155         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
156         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
157         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
158         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
159         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
160         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
161         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
162         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
163         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
164         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
165         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
166         Moved ...
167         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
168         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
169         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
170         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
171         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
172         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
173         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
174         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
175         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
176         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
177         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
178         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
179         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
180         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
181         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
182         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
183         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
184         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
185         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
186         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
187         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
188         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
189         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
190         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
191         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
192         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
193         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
194         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
195         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
196
197 2014-06-25  Roland McGrath  <roland@hack.frob.com>
198
199         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
200         that was previously under [RESET_PID].
201         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
202
203 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
204
205         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
206         not undefine and redefine.
207         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
208         [O_CLOEXEC]: Make code unconditional.
209         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
210         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
211         <kernel-features.h>.
212         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
213         conditional variable definition.
214         (shm_open) [O_CLOEXEC]: Make code unconditional.
215         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
216         code.
217
218         * configure.ac (USE_REGPARMS): Don't define here.
219         * configure: Regenerated.
220         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
221         * sysdeps/i386/configure: Regenerated.
222
223         * nptl/createthread.c: Don't include kernel-features.h.
224         * nptl/pthread_cancel.c: Likewise.
225         * nptl/pthread_condattr_setclock.c: Likewise.
226         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
227         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
228         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
229         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
230         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
231         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
232         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
233         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
234         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
235         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
236         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
237         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
238         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
239         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
240         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
241         * nscd/gai.c: Likewise.
242         * nss/nss_db/db-open.c: Likewise.
243         * sysdeps/generic/ldsodefs.h: Likewise.
244         * sysdeps/sh/nptl/tls.h: Likewise.
245         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
246         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
247         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
248         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
249         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
250         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
251         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
252         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
253         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
254         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
255         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
256         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
257         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
258         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
259         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
260         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
261         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
262         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
263         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
264         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
265         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
266         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
267         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
268         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
269         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
270         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
271         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
272         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
273         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
274         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
275         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
276         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
277         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
278         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
279         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
280         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
281         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
282         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
283         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
284         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
285         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
286         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
287         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
288         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
289         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
290         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
291         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
292         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
293         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
294         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
295         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
296         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
297         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
298         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
299         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
300         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
301         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
302         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
311         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
325         * sysdeps/unix/sysv/linux/pread.c: Likewise.
326         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
327         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
328         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
329         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
330         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
331         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
332         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
333         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
334         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
335         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
336         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
337         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
338         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
339         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
340         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
341         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
342         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
343         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
344         * sysdeps/unix/sysv/linux/system.c: Likewise.
345         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
346         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
347         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
348         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
349         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
350         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
351         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
352
353         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
354         * configure: Regenerated.
355         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
356
357         * configure.ac (base_machine): Do not set specially for particular
358         machines here.
359         * configure: Regenerated.
360         * sysdeps/powerpc/preconfigure: Move machine and base_machine
361         settings from configure.ac.
362         * sysdeps/i386/preconfigure: New file.
363         * sysdeps/s390/preconfigure: Likewise.
364         * sysdeps/sh/preconfigure: Likewise.
365         * sysdeps/sparc/preconfigure: Likewise.
366
367 2014-06-25  Roland McGrath  <roland@hack.frob.com>
368
369         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
370         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
371         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
372         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
373         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
374         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
375         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
376         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
377         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
378         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
379         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
380         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
381         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
382         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
383         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
384         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
385         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
386         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
387         * sysdeps/sparc/sparc64/Makefile: ... appended here.
388
389         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
390         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
391         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
392         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
393         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
394         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
395         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
396         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
397         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
398         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
399         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
400         * sysdeps/sparc/sparc32/sem_post.c: ... here.
401         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
402         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
403         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
404         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
405         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
406         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
407         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
408         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
409         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
410         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
411         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
412         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
413         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
414         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
415         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
416         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
417         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
418         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
419         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
420         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
421         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
422         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
423         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
424         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
425         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
426         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
427
428         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
429         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
430         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
431         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
432         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
433         Moved ...
434         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
435         ... here.
436         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
437         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
438         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
439         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
440         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
441         Moved ...
442         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
443         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
444         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
445         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
446         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
447         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
448         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
449         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
450         Moved ...
451         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
452         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
453         Moved ...
454         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
455         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
456         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
457         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
458         Moved ...
459         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
460         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
461         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
462         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
463         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
464         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
465         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
466         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
467         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
468         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
469         Moved ...
470         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
471         ... here.
472         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
473         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
474         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
475         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
476         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
477         Moved ...
478         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
479         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
480         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
481         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
482         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
483         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
484         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
485         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
486         Moved ...
487         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
488         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
489         Moved ...
490         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
491         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
492         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
494         Moved ...
495         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
496         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
497         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
498         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
499         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
500
501 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
502
503         * timezone/checktab.awk: Update from tzcode 2014e.
504         * timezone/private.h: Likewise.
505         * timezone/tzfile.h: Likewise.
506         * timezone/zdump.c: Likewise.
507         * timezone/zic.c: Likewise.
508
509         * sysdeps/unix/sysv/linux/kernel-features.h
510         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
511         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
512         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
513         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
514         Remove conditional code.
515
516 2014-06-25  Will Newton  <will.newton@linaro.org>
517
518         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
519         (_dl_arm_cap_flags): Add HWCAP2 values.
520         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
521         (_DL_HWCAP_COUNT): Increase to 37.
522         (_DL_HWCAP_LAST): New define.
523         (_DL_HWCAP2_LAST): New define.
524         (_dl_procinfo): Add support for printing
525         AT_HWCAP2 entries.
526         (_dl_string_hwcap): Use _dl_hwcap_string.
527
528 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
529
530         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
531
532 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
533
534         * README: Do not mention ports directory.
535
536         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
537         Remove macro.
538         * sysdeps/unix/sysv/linux/futimes.c: Do not include
539         <kernel-features.h>.
540         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
541         conditional variable definition.
542         (__futimes): Update comment.
543         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
544         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
545
546         [BZ #16560]
547         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
548         arguments close to 0.
549         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
550         Likewise.
551         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
552         Likewise.
553         * math/auto-libm-test-in: Add more tests of exp10.
554         * math/auto-libm-test-out: Regenerated.
555         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
556
557         * sysdeps/unix/sysv/linux/kernel-features.h
558         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
559         * sysdeps/unix/sysv/linux/readv.c: Do not include
560         <kernel-features.h>.
561         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
562         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
563         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
564         unconditional.
565         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
566         conditional code.
567         * sysdeps/unix/sysv/linux/writev.c: Do not include
568         <kernel-features.h>.
569         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
570         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
571         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
572         unconditional.
573         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
574         conditional code.
575
576 2014-06-25  Will Newton  <will.newton@linaro.org>
577
578         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
579         comment changes throughout the file.  Remove checks
580         for HAVE_*_H definitions that are not required.
581         (__gen_tempname): Call abort if an unknown kind value is
582         passed.
583
584 2014-06-25  Andreas Schwab  <schwab@suse.de>
585
586         [BZ #17086]
587         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
588         scalbln, scalblnf, scalblnl in libc.
589
590 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
591
592         [BZ #17086]
593         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
594         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
595         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
596
597 2014-06-24  Roland McGrath  <roland@hack.frob.com>
598
599         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
600         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
601         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
602         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
603         Update #include.
604         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
605         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
606         Update #include.
607         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
608         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
609         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
610         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
611         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
612         * sysdeps/x86/bits/pthreadtypes.h: ... here.
613         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
614         * sysdeps/x86/bits/semaphore.h: ... here.
615         * sysdeps/x86/nptl/elide.h: Moved ...
616         * sysdeps/x86/elide.h: ... here.
617         * sysdeps/x86_64/nptl/Implies: File removed.
618         * sysdeps/i386/nptl/Implies: File removed.
619
620 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
621
622         [BZ #16539]
623         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
624         return the argument for normal arguments with exponent below -64.
625         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
626         Likewise.
627         * math/auto-libm-test-in: Add another test of expm1.
628         * math/auto-libm-test-out: Regenerated.
629
630         [BZ #16287]
631         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
632         calling __erfcl for arguments at least 16.
633         * math/auto-libm-test-in: Add more tests of erf.
634         * math/auto-libm-test-out: Regenerated.
635
636         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
637         individual architectures.
638         * sysdeps/unix/sysv/linux/configure: Regenerated.
639         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
640         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
641         * sysdeps/unix/sysv/linux/powerpc/configure.ac
642         (ldd_rewrite_script): Define variable.
643         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
645         file.
646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
647         generated file.
648         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
649         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
650         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
651         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
652         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
653         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
654         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
655         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
656
657 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
658
659         [BZ #17084]
660         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
661         Rename member __data.d to __data.__elision_data.
662
663 2014-06-24  Wilco  <wdijkstr@arm.com>
664
665         * NEWS: Add 16918 to fixed bug list.
666
667 2014-06-24  Wilco  <wdijkstr@arm.com>
668
669         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
670
671 2014-06-24  Wilco  <wdijkstr@arm.com>
672
673         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
674         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
675         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
676         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
677         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
678         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
679         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
680         Use _FPU_MASK_RM.
681
682 2014-06-24  Wilco  <wdijkstr@arm.com>
683
684         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
685
686 2014-06-24  Wilco  <wdijkstr@arm.com>
687
688         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
689         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
690         * sysdeps/arm/fesetround.c (fesetround): Remove space.
691         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
692
693 2014-06-24  Wilco  <wdijkstr@arm.com>
694
695         [BZ #16918]
696         * sysdeps/arm/feupdateenv.c (feupdateenv):
697         Rewrite to reduce FPSCR accesses and fix return value.
698
699 2014-06-24  Wilco  <wdijkstr@arm.com>
700
701         * sysdeps/arm/fclrexcpt.c (feclearexcept):
702         Optimize to avoid unnecessary FPSCR writes.
703         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
704         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
705         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
706         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
707
708 2014-06-24  Wilco  <wdijkstr@arm.com>
709
710         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
711         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
712         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
713         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
714         Call libc_fetestexcept_vfp.
715         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
716         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
717         __SOFTFP__ ifdef so that they can be built for softfp.
718
719 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
720
721         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
722         argument type signed char.
723
724         * Makerules (check-abi): Dump diff of symlist if the test
725         fails.
726
727 2014-06-23  Roland McGrath  <roland@hack.frob.com>
728
729         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
730         using abort.
731
732         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
733         Remove unused variable ST.
734
735 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
736
737         [BZ #16354]
738         [BZ #17061]
739         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
740         small arguments before calling __expm1.
741         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
742         small arguments before calling __expm1f.
743         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
744         small arguments before calling __expm1l.
745         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
746         Likewise.
747         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
748         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
749         spurious underflow for some cosh tests.
750         * math/auto-libm-test-out: Regenerated.
751         * sysdeps/i386/fpu/libm-test-ulps: Update.
752
753         [BZ #17050]
754         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
755         (__ieee754_y1): Set errno if return value overflows.
756         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
757         (__ieee754_y1f): Set errno if return value overflows.
758         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
759         (__ieee754_y1l): Set errno if return value overflows.
760         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
761         (__ieee754_y1l): Set errno if return value overflows.
762         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
763         * math/auto-libm-test-out: Regenerated.
764
765         * math/gen-auto-libm-tests.c: Document use of
766         ignore-zero-inf-sign.
767         (input_flag_type): Add value flag_ignore_zero_inf_sign.
768         (input_flags): Add ignore-zero-inf-sign.
769         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
770         * math/gen-libm-test.pl (generate_testfile): Handle
771         ignore-zero-inf-sign.
772         * math/auto-libm-test-in: Mark some cpow tests with
773         ignore-zero-inf-sign and some with xfail-rounding.
774         * math/auto-libm-test-out: Regenerated.
775         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
776         * sysdeps/i386/fpu/libm-test-ulps: Update.
777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
778
779         [BZ #16315]
780         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
781         overflowing or underflowing operations take place with sign of
782         result.
783         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
784         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
785         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
786         (__ieee754_pow): Recompute overflowing and underflowing results in
787         original rounding mode.
788         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
789         (__powl_helper): Allow negative argument X and scale negated value
790         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
791         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
792         overflowing or underflowing operations take place with sign of
793         result.
794         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
795         Include <math.h>.
796         * math/auto-libm-test-in: Add more tests of pow.
797         * math/auto-libm-test-out: Regenerated.
798         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
799         (pow_tonearest_test_data): Remove.
800         (pow_test_tonearest): Likewise.
801         (pow_towardzero_test_data): Likewise.
802         (pow_test_towardzero): Likewise.
803         (pow_downward_test_data): Likewise.
804         (pow_test_downward): Likewise.
805         (pow_upward_test_data): Likewise.
806         (pow_test_upward): Likewise.
807         (main): Don't call removed functions.
808         * sysdeps/i386/fpu/libm-test-ulps: Update.
809         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
810
811 2014-06-23  Roland McGrath  <roland@hack.frob.com>
812
813         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
814         Moved ...
815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
817         Moved ...
818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
820         Moved ...
821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
823         Moved ...
824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
826         File removed.
827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
828         File removed.
829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
830         File removed.
831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
832         File removed.
833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
834         File removed.
835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
836         File removed.
837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
838         File removed.
839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
840         File removed.
841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
842         File removed.
843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
844         File removed.
845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
846         File removed.
847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
848         File removed.
849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
850         Moved ...
851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
852         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
853         Moved ...
854         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
855         ... here.
856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
857         Moved ...
858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
860         Moved ...
861         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
863         Moved ...
864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
866         Moved ...
867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
869         Moved ...
870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
872         Moved ...
873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
875         Moved ...
876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
879         ... here.
880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
881         Moved ...
882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
884         Moved ...
885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
886         ... here.
887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
888         Moved ...
889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
890         ... here.
891         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
892         Moved ...
893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
894         ... here.
895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
896         Moved ...
897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
899         Moved ...
900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
904         Moved ...
905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
906         ... here.
907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
908         Moved ...
909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
910         ... here.
911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
912         Moved ...
913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
915         Moved ...
916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
918         Moved ...
919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
921         Moved ...
922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
924         Moved ...
925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
926         ... here.
927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
928         Moved ...
929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
931         Moved ...
932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
933         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
934         Moved ...
935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
937         Moved ...
938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
942         Moved ...
943         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
945         Moved ...
946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
947         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
948         Moved ...
949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
950         ... here.
951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
952         Moved ...
953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
954         ... here.
955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
956         Moved ...
957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
958         ... here.
959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
960         Moved ...
961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
963         Moved ...
964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
966         Moved ...
967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
969         Moved ...
970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
971         ... here.
972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
973         Moved ...
974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
975         ... here.
976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
977         Moved ...
978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
979         ... here.
980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
981         Moved ...
982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
983         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
984         Moved ...
985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
986
987 2014-06-23  Will Newton  <will.newton@linaro.org>
988             Wilco  <wdijkstr@arm.com>
989
990         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
991         implementation.  Include get-rounding-mode.h.
992         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
993         [!libc_feholdsetround_noex_ctx]: Define
994         libc_feholdsetround_noex_ctx.
995         [!libc_feholdsetround_noexf_ctx]: Define
996         libc_feholdsetround_noexf_ctx.
997         [!libc_feholdsetround_noexl_ctx]: Define
998         libc_feholdsetround_noexl_ctx.
999         (libc_feholdsetround_ctx): New function.
1000         (libc_feresetround_ctx): New function.
1001         (libc_feholdsetround_noex_ctx): New function.
1002         (libc_feresetround_noex_ctx): New function.
1003
1004 2014-06-23  Roland McGrath  <roland@hack.frob.com>
1005
1006         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
1007         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
1008         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
1009         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
1010         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
1011         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
1012
1013         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
1014         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
1015         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
1016         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
1017         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
1018         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
1019         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
1020         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
1021         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
1022         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
1023         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
1024         Moved ...
1025         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
1026         ... here.
1027         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
1028         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
1029         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
1030         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
1031         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
1032         Moved ...
1033         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
1034         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
1035         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
1036         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
1037         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
1038         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
1039         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
1040         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
1041         Moved ...
1042         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
1043         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
1044         Moved ...
1045         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
1046         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
1047         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
1048         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
1049         Moved ...
1050         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
1051         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
1052         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
1053         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
1054         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
1055         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
1056         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
1057         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
1058         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
1059         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
1060         Moved ...
1061         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
1062         ... here.
1063         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
1064         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
1065         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
1066         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
1067         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
1068         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
1069         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
1070         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
1071         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
1072         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
1073         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
1074         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
1075         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
1076         Moved ...
1077         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
1078         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
1079         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
1080         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
1081         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
1082         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
1083         Moved ...
1084         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
1085         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
1086         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
1087         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
1088         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
1089
1090         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
1091         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
1092         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
1093         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
1094         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
1095         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
1096         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
1097         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
1098         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
1099         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
1100         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
1101         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
1102         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
1103         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
1104         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
1105         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
1106         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
1107         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
1108         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
1109         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
1110         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
1111         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
1112         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
1113         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
1114         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
1115         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
1116         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
1117         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
1118
1119 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
1120
1121         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1122         (FALLOC_FL_COLLAPSE_RANGE): New macro.
1123         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
1124         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
1125         (IPV6_PMTUDISC_INTERFACE): Likewise.
1126         (IPV6_PMTUDISC_OMIT): Likewise.
1127
1128 2014-06-23  Andreas Schwab  <schwab@suse.de>
1129
1130         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
1131         Remove unused errout label.
1132
1133 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1134
1135         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
1136         macro: hardware supports Vector Crypto instructions.
1137
1138 2014-06-23  Will Newton  <will.newton@linaro.org>
1139
1140         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
1141         rather than __builtin_expect.
1142
1143         * elf/dl-lookup.c (undefined_msg): Remove variable.
1144         (_dl_lookup_symbol_x): Replace undefined_msg with string
1145         literal.
1146
1147         * elf/dl-lookup.c (do_lookup_unique): New function.
1148         (do_lookup_x): Move STB_GNU_UNIQUE handling code
1149         to a separate function.
1150
1151 2014-06-23  Andreas Schwab  <schwab@suse.de>
1152
1153         [BZ #17079]
1154         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
1155         before reading the next line.
1156
1157 2014-06-23  Will Newton  <will.newton@linaro.org>
1158
1159         * test-skeleton.c (signal_handler): Use printf and %m
1160         rather than perror.  Use printf rather than fprintf to
1161         stderr.  Use puts rather than fputs to stderr.
1162         (main): Likewise.
1163
1164 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
1165
1166         * nscd/nscd.c (thread_info_t): Remove typedef.
1167         (thread_info): Remove variable.
1168
1169 2014-06-21  Allan McRae  <allan@archlinux.org>
1170
1171         * NEWS: Mention CVE-2014-4043.
1172
1173 2014-06-20  Roland McGrath  <roland@hack.frob.com>
1174
1175         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
1176         * nptl/smp.h: ... here.
1177
1178         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
1179
1180         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
1181         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
1182         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
1183         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
1184
1185         * nptl/allocatestack.c: Include <stack-aliasing.h>.
1186         * nptl/stack-aliasing.h: New file.
1187         * sysdeps/i386/i686/stack-aliasing.h: New file.
1188         * sysdeps/i386/i686/nptl/Makefile: File removed.
1189         * sysdeps/x86_64/stack-aliasing.h: New file.
1190         * sysdeps/x86_64/nptl/Makefile
1191         (CFLAGS-pthread_create.c): Variable removed.
1192
1193         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
1194         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
1195         old file.
1196         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
1197         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
1198         old file.
1199
1200 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
1201
1202         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1203         (__ASSUME_SIGFRAME_V2): Remove macro.
1204         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
1205         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
1206         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
1207         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
1208         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
1209         Declare as function.  Remove conditional macro definitions.
1210         (__default_rt_sa_restorer): Likewise.
1211         (__default_sa_restorer_v1): Remove declaration.
1212         (__default_sa_restorer_v2): Likewise.
1213         (__default_rt_sa_restorer_v1): Likewise.
1214         (__default_rt_sa_restorer_v2): Likewise.
1215         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
1216         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
1217         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
1218
1219 2014-06-20  Roland McGrath  <roland@hack.frob.com>
1220
1221         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
1222         (libpthread-routines): Add sysdep.
1223         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
1224         * sysdeps/unix/sysv/linux/sparc/Versions
1225         (libpthread: GLIBC_2.3.3): New version set.
1226         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
1227         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
1228         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
1229         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
1230         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
1231         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
1232         Moved ...
1233         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
1234         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
1235         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
1236         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
1237         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
1238         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
1239         * sysdeps/sparc/nptl/sem_init.c: ... here.
1240         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
1241         * sysdeps/sparc/nptl/sem_post.c: ... here.
1242         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
1243         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
1244         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
1245         * sysdeps/sparc/nptl/sem_wait.c: ... here.
1246         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
1247         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
1248         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
1249         (libpthread-routines): Add cpu_relax.
1250         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
1251         File removed.
1252         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
1253         (librt: GLIBC_2.3.3): New version set.
1254         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
1255         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
1256         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
1257         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
1258         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
1259         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
1260         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
1261         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
1262         Moved ...
1263         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
1264         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
1265         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
1266         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
1267         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
1268         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
1269         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
1270         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
1271         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
1272         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
1273         Moved ...
1274         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
1275         Update #include.
1276         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
1277         Moved ...
1278         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
1279         Update #include.
1280         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
1281         Moved ...
1282         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
1283         Update #include.
1284         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
1285         Moved ...
1286         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
1287         Update #include.
1288         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
1289         Moved ...
1290         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
1291         Update #include.
1292         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
1293         Moved ...
1294         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
1295         Update #include.
1296         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
1297         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
1298         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
1299         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
1300         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
1301         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
1302         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
1303         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
1304         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
1305         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
1306         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
1307         Moved ...
1308         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
1309         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
1310         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
1311         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
1312         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
1313
1314 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
1315
1316         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
1317         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
1318         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
1319         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
1320         * nscd/nscd.c: Likewise.
1321         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
1322         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
1323         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
1324         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
1325
1326         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
1327         <kernel-features.h>.
1328         (init_mq_netlink): Remove conditional have_sock_cloexec
1329         definitions.  Remove code conditional on have_sock_cloexec < 0.
1330         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
1331         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
1332         * sysdeps/unix/sysv/linux/opensock.c: Do not include
1333         <kernel-features.h>.
1334         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
1335         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
1336
1337 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1338
1339         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
1340         Add tests for memset_chk and memset.
1341
1342         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
1343         with AVX2_Usable.
1344
1345 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
1346
1347         [BZ #16046]
1348         * elf/tst-dl-iter-static.c: New file.
1349         * elf/Makefile (tests-static): Add tst-dl-iter-static.
1350
1351         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
1352         error.
1353
1354 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
1355
1356         * sysdeps/unix/sysv/linux/kernel-features.h
1357         (__ASSUME_F_GETOWN_EX): Remove macro.
1358         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
1359         <kernel-features.h>.
1360         (miss_F_GETOWN_EX): Remove variable or macro.
1361         (do_fcntl): Do not check miss_F_GETOWN_EX.
1362         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
1363
1364         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
1365         Remove macro.
1366         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
1367         [!__ASSUME_AT_RANDOM]: Remove conditional code.
1368         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
1369
1370         * sysdeps/unix/sysv/linux/kernel-features.h
1371         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
1372         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
1373         [ADJ_OFFSET_SS_READ]: Make code unconditional.
1374         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
1375
1376 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
1377
1378         [BZ #17075]
1379         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
1380         Fix calculation of the symbol's value.
1381         * sysdeps/arm/tst-armtlsdescloc.c: New file.
1382         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
1383         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
1384         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
1385         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
1386         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
1387         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
1388         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
1389         (modules-names): Add `tst-armtlsdescmod',
1390         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
1391         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
1392         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
1393         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
1394         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
1395         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
1396         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
1397         ($(objpfx)tst-armtlsdescloc): New dependency.
1398         ($(objpfx)tst-armtlsdescextnow): Likewise.
1399         ($(objpfx)tst-armtlsdescextlazy): Likewise.
1400         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
1401         TLS scheme support.
1402         * sysdeps/arm/configure: Regenerate.
1403
1404 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
1405
1406         * include/fcntl.h (__atfct_seterrno): Remove prototype.
1407         (__atfct_seterrno_2): Likewise.
1408         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
1409         <kernel-features.h>.
1410         (__ASSUME_ATFCTS): Do not undefine and redefine.
1411         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
1412         (__have_atfcts): Remove conditional definition.
1413         (__fxstatat([__NR_fstatat64]: Make code unconditional.
1414         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
1415         unreachable if [__ASSUME_ATFCTS].
1416         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
1417         not undefine and redefine.
1418         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
1419         <kernel-features.h>.
1420         (faccessat) [__NR_faccessat]: Make code unconditional.
1421         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
1422         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
1423         <kernel-features.h>.
1424         (fchmodat) [__NR_fchmodat]: Make code unconditional.
1425         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
1426         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
1427         <kernel-features.h>.
1428         (fchownat) [__NR_fchownat]: Make code unconditional.
1429         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
1430         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
1431         <kernel-features.h>.
1432         (futimesat) [__NR_futimesat]: Make code unconditional.
1433         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
1434         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
1435         <kernel-features.h>.
1436         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
1437         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
1438         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
1439         <kernel-features.h>.
1440         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
1441         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
1442         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
1443         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
1444         <kernel-features.h>.
1445         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
1446         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
1447         * sysdeps/unix/sysv/linux/linkat.c: Do not include
1448         <kernel-features.h>.
1449         (linkat) [__NR_linkat]: Make code unconditional.
1450         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
1451         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
1452         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
1453         <kernel-features.h>.
1454         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
1455         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
1456         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
1457         <kernel-features.h>.
1458         (mkdirat) [__NR_mkdirat]: Make code unconditional.
1459         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
1460         * sysdeps/unix/sysv/linux/openat.c: Do not include
1461         <kernel-features.h>.
1462         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
1463         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
1464         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
1465         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
1466         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
1467         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
1468         <kernel-features.h>.
1469         (readlinkat) [__NR_readlinkat]: Make code unconditional.
1470         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
1471         result of INLINE_SYSCALL directly, not via int variable.
1472         * sysdeps/unix/sysv/linux/renameat.c: Do not include
1473         <kernel-features.h>.
1474         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
1475         (renameat) [__NR_renameat]: Make code unconditional.
1476         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
1477         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
1478         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
1479         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
1480         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
1481         (__ASSUME_ATFCTS): Do not undefine and redefine.
1482         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
1483         <kernel-features.h>.
1484         (symlinkat) [__NR_symlinkat]: Make code unconditional.
1485         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
1486         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
1487         <kernel-features.h>.
1488         (unlinkat) [__NR_unlinkat]: Make code unconditional.
1489         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
1490         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
1491         (__ASSUME_ATFCTS): Do not undefine and redefine.
1492         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
1493         <kernel-features.h>.
1494         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
1495         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
1496         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
1497         <kernel-features.h>.
1498         (__xmknodat) [__NR_mknodat]: Make code unconditional.
1499         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
1500
1501 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
1502
1503         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
1504
1505 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
1506
1507         [BZ #17069]
1508         * posix/regcomp.c (parse_reg_exp): Deallocate partially
1509         constructed tree before returning error.
1510         * posix/bug-regexp36.c: Expand test case.
1511
1512 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
1513
1514         [BZ #6803]
1515         * math/libm-test.inc (scalbln_test_date):
1516         Add errno expectations.
1517         * math/w_scalblnf.c: New File.
1518         Add wrapper which checks for setting errno to ERANGE.
1519         Add weak_alias for corresponding scalbln function.
1520         * math/w_scalbln.c: Likewise.
1521         * math/w_scalblnl.c: Likewise.
1522         * math/Makefile (libm-calls): Add w_scalbln.
1523         * sysdeps/ieee754/flt-32/s_scalblnf.c:
1524         Remove weak_alias for corresponding scalbln function.
1525         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
1526         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
1527         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
1528         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1529         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
1530         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
1531         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
1532         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
1533         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
1534         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
1535         Remove long_double_symbol for scalblnl function in libm, libc.
1536         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
1537         Add wrapper which checks for setting errno to ERANGE.
1538         Add long_double_symbol for scalblnl function in libm, libc.
1539         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
1540         Remove long_double_symbol for scalblnl in libm.
1541         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
1542         Add wrapper which checks for setting errno to ERANGE.
1543         Add long_double_symbol for scalblnl function in libm.
1544         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
1545         Do not use wrapper because of own implementation.
1546
1547 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
1548
1549         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
1550         3 bytes for __pad1 for x32.
1551         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
1552
1553 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
1554             H.J. Lu  <hongjiu.lu@intel.com>
1555
1556         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
1557         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
1558         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1559         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1560         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
1561
1562 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
1563
1564         [BZ #17069]
1565         * posix/regcomp.c (parse_expression): Deallocate partially
1566         constructed tree before returning error.
1567         * posix/Makefile.c (tests): Add bug-regex36.
1568         (generated): Add bug-regex36.mtrace.
1569         (tests-special): Add $(objpfx)bug-regex36-mem.out
1570         (bug-regex36-ENV): New variable.
1571         ($(objpfx)bug-regex36-mem.out): New rule.
1572         * posix/bug-regex36.c: New file.
1573
1574 2014-06-19  Will Newton  <will.newton@linaro.org>
1575
1576         * malloc/malloc.c (systrim): If extra is zero then return
1577         early.
1578
1579 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1580
1581         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
1582
1583 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
1584
1585         * sysdeps/aarch64/strchr.S: New file.
1586
1587 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
1588
1589         [BZ #17022]
1590         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
1591         from arguments -2 or below.
1592         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1593         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1594
1595 2014-06-18  Andreas Schwab  <schwab@suse.de>
1596
1597         [BZ #17062]
1598         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
1599         of a bracket expr not to run off the end of the string.
1600         * posix/Makefile (tests): Add tst-fnmatch3.
1601         * posix/tst-fnmatch3.c: New file.
1602
1603 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
1604
1605         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
1606         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1607         [$(cross-compiling) = no]: Likewise.
1608         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1609         [$(cross-compiling) = no]: Likewise.
1610
1611 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1612
1613         [BZ #17031]
1614         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
1615         double, adjusted for any remainder from the high double.
1616         * math/libm-test.inc (nearbyint): Add tests.
1617         (rint): Likewise.
1618
1619 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1620
1621         * nptl/sysdeps/powerpc/Makefile: Moved ...
1622         * sysdeps/powerpc/nptl/Makefile: ... here.
1623         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
1624         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
1625         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
1626         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
1627         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
1628         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
1629         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
1630         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
1631         * nptl/sysdeps/powerpc/tls.h: Moved ...
1632         * sysdeps/powerpc/nptl/tls.h: ... here.
1633
1634 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
1635
1636         [BZ #16681]
1637         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
1638         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
1639         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
1640         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
1641         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
1642         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
1643         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
1644         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
1645         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
1646
1647 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
1648
1649         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
1650
1651 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
1652
1653         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
1654         defined operator.
1655
1656         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
1657         $TIMEOUTFACTOR.
1658
1659 2014-06-16  Florian Weimer  <fweimer@redhat.com>
1660
1661         [BZ #17058]
1662         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
1663         non-executed part of the test.
1664
1665 2014-06-16  Andreas Schwab  <schwab@suse.de>
1666
1667         * string/bits/string2.h (strdup, strndup): Update feature guard.
1668
1669 2014-06-14  David S. Miller  <davem@davemloft.net>
1670
1671         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1672
1673 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
1674
1675         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
1676         that was previously under [RESET_PID].
1677         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
1678
1679         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
1680         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
1681         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
1682         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1683         (__libc_vfork): New strong alias.
1684         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
1685
1686 2014-06-14 Andi Kleen  <ak@linux.intel.com>
1687
1688         * sysdeps/generic/elide.h: New file.
1689
1690 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1691
1692         * Makefile (installed-headers): Adjust path of pthread.h header.
1693
1694 2014-06-13  Roland McGrath  <roland@hack.frob.com>
1695
1696         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
1697         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
1698         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
1699         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
1700
1701         * nptl/sysdeps/s390/Makefile: Moved ...
1702         * sysdeps/s390/nptl/Makefile: ... here.
1703         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
1704         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
1705         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
1706         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
1707         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
1708         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
1709         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
1710         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
1711         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
1712         * sysdeps/s390/nptl/pthreaddef.h: ... here.
1713         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
1714         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
1715         * nptl/sysdeps/s390/tls.h: Moved ...
1716         * sysdeps/s390/nptl/tls.h: ... here.
1717
1718         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
1719         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
1720
1721 2014-06-13  David S. Miller  <davem@davemloft.net>
1722
1723         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
1724         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
1725         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
1726         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
1727         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
1728         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
1729         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
1730         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
1731         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
1732         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
1733         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
1734         Remove RESET_PID cpp guards.
1735         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
1736         Remove RESET_PID cpp guards.
1737         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
1738
1739 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
1740
1741         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
1742         __sp to uintptr_t.
1743
1744 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1745
1746         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
1747         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
1748         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
1749         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
1750         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
1751         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
1752         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
1753         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
1754         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
1755         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
1756         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
1757         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
1758         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
1759         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
1760         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
1761         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
1762         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
1763         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
1764         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
1765         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
1766
1767         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
1768         (pthread_rwlock_rdlock): Add elision.
1769         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
1770         (pthread_rwlock_wrlock): Add elision.
1771         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
1772         (pthread_rwlock_trywrlock): Add elision.
1773         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
1774         (pthread_rwlock_tryrdlock): Add elision.
1775         * nptl/pthread_rwlock_unlock.c: Include elide.h.
1776         (pthread_rwlock_tryrdlock): Add elision unlock.
1777         * nptl/sysdeps/pthread/pthread.h:
1778         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
1779         (PTHREAD_RWLOCK_INITIALIZER,
1780         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
1781         Handle new elision field.
1782         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
1783         * sysdeps/arm/nptl/bits/pthreadtypes.h
1784         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1785         * sysdeps/sh/nptl/bits/pthreadtypes.h
1786         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1787         * sysdeps/tile/nptl/bits/pthreadtypes.h
1788         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1789         * sysdeps/a/nptl/bits/pthreadtypes.h
1790         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1791         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
1792         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1793         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
1794         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1795         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
1796         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1797         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
1798         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1799         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
1800         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1801         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
1802         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1803         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
1804         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1805         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
1806         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1807         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
1808         (elision_init): Set try_xbegin to zero when no RTM.
1809         * sysdeps/x86/nptl/bits/pthreadtypes.h
1810         (pthread_rwlock_t): Change __pad1 to __rwelision.
1811         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
1812
1813 2014-06-13  Andi Kleen  <ak@linux.intel.com>
1814
1815         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
1816         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
1817         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
1818         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
1819
1820 2014-06-13  Meador Inge  <meadori@codesourcery.com>
1821
1822         [BZ #16996]
1823         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
1824         that the cached result has been set before returning it.
1825
1826 2014-06-12  Roland McGrath  <roland@hack.frob.com>
1827
1828         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
1829         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
1830         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
1831         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
1832         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
1833         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
1834
1835         * nptl/sysdeps/sparc/Makefile: Moved ...
1836         * sysdeps/sparc/nptl/Makefile: ... here.
1837         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
1838         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
1839         * nptl/sysdeps/sparc/tls.h: Moved ...
1840         * sysdeps/sparc/nptl/tls.h: ... here.
1841         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
1842         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
1843         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
1844         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
1845         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
1846         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
1847         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
1848         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
1849         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
1850         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
1851         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
1852         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
1853         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
1854         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
1855         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
1856         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
1857         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
1858         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
1859         Update #include.
1860         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
1861         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
1862         Update #include.
1863         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
1864         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
1865         Update #include.
1866         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
1867         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
1868         Update #include.
1869
1870         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
1871
1872         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
1873         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
1874
1875         * sysdeps/pthread/posix-timer.h: Include <list.h>.
1876         (struct list_links): Type removed.
1877         (struct thread_node, struct timer_node): Replace struct list_links
1878         with struct list_head.
1879         (list_unlink_ip): Likewise.
1880         * sysdeps/pthread/timer_routines.c
1881         (timer_free_list, thread_free_list, thread_active_list): Likewise.
1882         (list_append, list_insbefore): Likewise.
1883         (list_init): Function removed.
1884         (thread_init, init_module): Use INIT_LIST_HEAD instead.
1885         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
1886         * sysdeps/pthread/Makefile: ... here, new file.
1887
1888         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
1889         * sysdeps/nptl/Implies: ... here.
1890         * sysdeps/unix/sysv/linux/Implies: Add nptl.
1891         * nptl/sysdeps/pthread/list.h: Moved ...
1892         * include/list.h: ... here.
1893         * nptl/sysdeps/pthread/createthread.c: Moved ...
1894         * nptl/createthread.c: ... here.
1895         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
1896         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
1897         * nptl/pt-longjmp.c: ... here.
1898         * nptl/sysdeps/pthread/Makefile: Moved ...
1899         * sysdeps/nptl/Makefile: ... here.
1900         * nptl/sysdeps/pthread/Subdirs: Moved ...
1901         * sysdeps/nptl/Subdirs: ... here.
1902         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
1903         * sysdeps/nptl/aio_misc.h: ... here.
1904         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
1905         * sysdeps/nptl/bits/libc-lock.h: ... here.
1906         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
1907         * sysdeps/nptl/bits/libc-lockP.h: ... here.
1908         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
1909         * sysdeps/nptl/bits/stdio-lock.h: ... here.
1910         * nptl/sysdeps/pthread/configure: Moved ...
1911         * sysdeps/nptl/configure: ... here.
1912         * nptl/sysdeps/pthread/configure.ac: Moved ...
1913         * sysdeps/nptl/configure.ac: ... here.
1914         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
1915         * sysdeps/nptl/gai_misc.h: ... here.
1916         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
1917         * sysdeps/nptl/librt-cancellation.c: ... here.
1918         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
1919         * sysdeps/nptl/malloc-machine.h: ... here.
1920         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
1921         * sysdeps/nptl/pthread-functions.h: ... here.
1922         * nptl/sysdeps/pthread/pthread.h: Moved ...
1923         * sysdeps/nptl/pthread.h: ... here.
1924         * nptl/sysdeps/pthread/setxid.h: Moved ...
1925         * sysdeps/nptl/setxid.h: ... here.
1926         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
1927         * sysdeps/nptl/sigfillset.c: ... here.
1928         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
1929         * sysdeps/nptl/tcb-offsets.h: ... here.
1930         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
1931         * sysdeps/nptl/tst-mqueue8x.c: ... here.
1932         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
1933         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
1934         * nptl/sysdeps/pthread/allocalim.h: Moved ...
1935         * sysdeps/pthread/allocalim.h: ... here.
1936         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
1937         * sysdeps/pthread/bits/sigthread.h: ... here.
1938         * nptl/sysdeps/pthread/flockfile.c: Moved ...
1939         * sysdeps/pthread/flockfile.c: ... here.
1940         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
1941         * sysdeps/pthread/ftrylockfile.c: ... here.
1942         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
1943         * sysdeps/pthread/funlockfile.c: ... here.
1944         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
1945         * sysdeps/pthread/posix-timer.h: ... here.
1946         * nptl/sysdeps/pthread/timer_create.c: Moved ...
1947         * sysdeps/pthread/timer_create.c: ... here.
1948         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
1949         * sysdeps/pthread/timer_delete.c: ... here.
1950         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
1951         * sysdeps/pthread/timer_getoverr.c: ... here.
1952         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
1953         * sysdeps/pthread/timer_gettime.c: ... here.
1954         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
1955         * sysdeps/pthread/timer_routines.c: ... here.
1956         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
1957         * sysdeps/pthread/timer_settime.c: ... here.
1958         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
1959         * sysdeps/pthread/tst-timer.c: ... here.
1960         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
1961         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
1962
1963         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
1964         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
1965
1966         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
1967         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
1968         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
1969         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
1970         Update #include target.
1971         * nptl/sysdeps/i386/i686/Makefile: Moved ...
1972         * sysdeps/i386/i686/nptl/Makefile: ... here.
1973         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
1974         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
1975         Update #include target.
1976         * nptl/sysdeps/i386/i686/tls.h: Moved ...
1977         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
1978         * nptl/sysdeps/i386/Makefile: Moved ...
1979         * sysdeps/i386/nptl/Makefile: ... here.
1980         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
1981         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
1982         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
1983         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
1984         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
1985         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
1986         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
1987         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
1988         * sysdeps/i386/nptl/pthreaddef.h: ... here.
1989         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
1990         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
1991         * nptl/sysdeps/i386/tls.h: Moved ...
1992         * sysdeps/i386/nptl/tls.h: ... here.
1993
1994         * sysdeps/sh/Makefile [$(subdir) = csu]
1995         (gen-as-const-headers): Add tcb-offsets.sym.
1996         * nptl/sysdeps/sh/Makefile: File removed.
1997         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
1998         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
1999         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
2000         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
2001         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
2002         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
2003         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
2004         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
2005         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
2006         * sysdeps/sh/nptl/pthreaddef.h: ... here.
2007         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
2008         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
2009         * nptl/sysdeps/sh/tls.h: Moved ...
2010         * sysdeps/sh/nptl/tls.h: ... here.
2011         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
2012         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
2013         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
2014         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
2015         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
2016         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
2017         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
2018         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
2019         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
2020         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
2021         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
2022         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
2023         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
2024         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
2025         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
2026         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
2027         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
2028         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
2029         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
2030         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
2031         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
2032         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
2033         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
2034         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
2035         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
2036         Moved ...
2037         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
2038         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
2039         Moved ...
2040         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
2041         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
2042         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
2043         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
2044         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
2045         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
2046         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
2047         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
2048         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
2049         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
2050         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
2051         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
2052         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
2053         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
2054         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
2055         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
2056         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
2057         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
2058         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
2059
2060 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
2061
2062         * posix/spawn_faction_addopen.c: Include string.h.
2063
2064 2014-06-11  Roland McGrath  <roland@hack.frob.com>
2065
2066         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
2067         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
2068         * nptl/sysdeps/x86_64/Makefile: Moved ...
2069         * sysdeps/x86_64/nptl/Makefile: ... here.
2070         * nptl/sysdeps/x86_64/configure: Moved ...
2071         * sysdeps/x86_64/nptl/configure: ... here.
2072         * nptl/sysdeps/x86_64/configure.ac: Moved ...
2073         * sysdeps/x86_64/nptl/configure.ac: ... here.
2074         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
2075         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
2076         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
2077         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
2078         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
2079         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
2080         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
2081         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
2082         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
2083         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
2084         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
2085         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
2086         * nptl/sysdeps/x86_64/tls.h: Moved ...
2087         * sysdeps/x86_64/nptl/tls.h: ... here.
2088         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
2089         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
2090         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
2091         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
2092
2093         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
2094
2095 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2096
2097         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2098
2099 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
2100
2101         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
2102         type.
2103         [POSIX] (off_t): Likewise.
2104         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
2105         [POSIX] (S_ISBLK): Require macro.
2106         [POSIX] (S_ISCHR): Likewise.
2107         [POSIX] (S_ISDIR): Likewise.
2108         [POSIX] (S_ISFIFO): Likewise.
2109         [POSIX] (S_ISREG): Likewise.
2110         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
2111         optional-macro.
2112         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
2113         type.
2114         [POSIX] (time_t): Likewise.
2115         [POSIX] (timer_t): Likewise.
2116
2117 2014-06-11  Florian Weimer  <fweimer@redhat.com>
2118
2119         [BZ #17048]
2120         * posix/spawn_int.h (struct __spawn_action): Make the path string
2121         non-const to support deallocation.
2122         * posix/spawn_faction_addopen.c
2123         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
2124         * posix/spawn_faction_destroy.c
2125         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
2126         path in all spawn_do_open actions.
2127         * posix/tst-spawn.c (do_test): Exercise the copy operation in
2128         posix_spawn_file_actions_addopen.
2129
2130 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
2131
2132         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
2133         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
2134         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
2135         conditional code always true.
2136         (__libc_vfork): New alias.
2137
2138 2014-06-11  Roland McGrath  <roland@hack.frob.com>
2139
2140         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2141         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
2142
2143         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
2144
2145         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2146         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
2147
2148         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
2149         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
2150
2151         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2152         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
2153
2154 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
2155
2156         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
2157         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
2158         multiarch strcmp for PPC64.
2159         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
2160         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
2161         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
2162         multiarch optimizations.
2163         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2164         (__libc_ifunc_impl_list): Likewise.
2165
2166 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2167
2168         * benchtests/scripts/validate_benchout.py: New script.
2169         * benchtests/Makefile (bench-func): Call it.
2170         * benchtests/scripts/benchout.schema.json: New file.
2171
2172 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
2173
2174         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
2175         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
2176         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
2177         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
2178         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
2179         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
2180         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
2181         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
2182         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
2183         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
2184         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
2185         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
2186         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
2187         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
2188         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
2189         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
2190         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
2191         Moved ...
2192         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
2193         ... here.
2194         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
2195         Moved ...
2196         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
2197         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
2198         Moved ...
2199         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
2200         ... here.
2201         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
2202         Moved ...
2203         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
2204         ... here.
2205         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
2206         Moved ...
2207         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
2208         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
2209         Moved ...
2210         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
2211         ... here.
2212         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
2213         Moved ...
2214         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
2215         ... here.
2216         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
2217         Moved ...
2218         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
2219         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
2220         Moved ...
2221         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
2222         ... here.
2223         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
2224         Moved ...
2225         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
2226         ... here.
2227         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
2228         Moved ...
2229         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
2230         ... here.
2231         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
2232         Moved ...
2233         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
2234         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
2235         Moved ...
2236         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
2237         ... here.
2238         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
2239         Moved ...
2240         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
2241         ... here.
2242         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
2243         Moved ...
2244         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
2245         ... here.
2246         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
2247         Moved ...
2248         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
2249         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
2250         Moved ...
2251         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
2252         ... here.
2253         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
2254         Moved ...
2255         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
2256         ... here.
2257         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
2258         Moved ...
2259         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
2260         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
2261         Moved ...
2262         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
2263         ... here.
2264         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
2265         Moved ...
2266         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
2267         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
2268         Moved ...
2269         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
2270         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
2271         Moved ...
2272         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
2273         ... here.
2274         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
2275         Moved ...
2276         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
2277         ... here.
2278         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
2279         Moved ...
2280         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
2281         ... here.
2282         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
2283         Moved ...
2284         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
2285         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
2286         Moved ...
2287         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
2288         ... here.
2289         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
2290         Moved ...
2291         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
2292         ... here.
2293         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
2294         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
2295         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
2296         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
2297         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
2298         Moved ...
2299         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
2300         ... here.
2301         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
2302         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
2303         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
2304         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
2305         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
2306         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
2307         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
2308         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
2309         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
2310         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
2311         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
2312         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
2313         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
2314         Moved ...
2315         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
2316         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
2317         Moved ...
2318         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
2319         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
2320         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
2321         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
2322         Moved ...
2323         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
2324         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
2325         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
2326         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
2327         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
2328         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
2329         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
2330
2331 2014-06-10  Wilco  <wdijkstr@arm.com>
2332
2333         * math/test-fenv-return.c: New file.
2334         * math/Makefile: Add new test test-fenv-return.
2335
2336 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
2337
2338         [BZ #17042]
2339         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
2340         when x - 1 is zero.
2341         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
2342         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
2343         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
2344         0.0L for an argument of 1.0L.
2345         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
2346         Likewise.
2347         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
2348         value when x - 1 is zero.
2349         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
2350         * sysdeps/i386/fpu/libm-test-ulps: Update.
2351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2352
2353 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
2354
2355         [BZ #15119]
2356         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
2357
2358 2014-06-09  Roland McGrath  <roland@hack.frob.com>
2359
2360         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
2361         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
2362
2363 2014-06-09  Roland McGrath  <roland@hack.frob.com>
2364
2365         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2366         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
2367
2368         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2369         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
2370
2371         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2372         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
2373
2374         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2375         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
2376
2377         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
2378         if not already defined.
2379         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
2380         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
2381         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
2382         (TLS_INIT_TP): Use it.
2383         (TLS_DEFINE_INIT_TP): New macro.
2384         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
2385
2386 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
2387
2388         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
2389         constant.
2390         [POSIX] (IXANY): Likewise.
2391         [POSIX] (OLCUC): Likewise.
2392         [POSIX || POSIX2008] (CBAUD): Do not allow.
2393         [POSIX || POSIX2008] (DEFECHO): Likewise.
2394         [POSIX || POSIX2008] (ECHOCTL): Likewise.
2395         [POSIX || POSIX2008] (ECHOKE): Likewise.
2396         [POSIX || POSIX2008] (ECHOPRT): Likewise.
2397         [POSIX || POSIX2008] (EXTA): Likewise.
2398         [POSIX || POSIX2008] (EXTB): Likewise.
2399         [POSIX || POSIX2008] (FLUSHO): Likewise.
2400         [POSIX || POSIX2008] (LOBLK): Likewise.
2401         [POSIX || POSIX2008] (PENDIN): Likewise.
2402         [POSIX || POSIX2008] (SWTCH): Likewise.
2403         [POSIX || POSIX2008] (VDISCARD): Likewise.
2404         [POSIX || POSIX2008] (VDSUSP): Likewise.
2405         [POSIX || POSIX2008] (VLNEXT): Likewise.
2406         [POSIX || POSIX2008] (VREPRINT): Likewise.
2407         [POSIX || POSIX2008] (VSTATUS): Likewise.
2408         [POSIX || POSIX2008] (VWERASE): Likewise.
2409         (B*): Change to B[0123456789]*.
2410         * conform/data/time.h-data [POSIX || UNIX98]
2411         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
2412         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
2413         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
2414         [POSIX] (tm_*): Do not allow.
2415
2416 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
2417
2418         * Makefile (install): Don't set LANGUAGE.
2419         * Makefile.in (install): Likewise.
2420         * assert/Makefile (test-assert-ENV): Remove variable.
2421         (test-assert-perr-ENV): Likewise.
2422         * elf/Makefile (neededtest4-ENV): Likewise.
2423         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2424         [$(cross-compiling) = no]: Don't set LANGUAGE.
2425         * io/ftwtest-sh (LANG): Remove variable.
2426         * libio/Makefile (tst-widetext-ENV): Likewise.
2427         * manual/install.texi (Running make install): Don't refer to
2428         environment settings for make install.
2429         * INSTALL: Regenerated.
2430         * nptl/tst-tls6.sh: Don't set LANG.
2431         * posix/globtest.sh (LANG): Remove variable.
2432         * string/Makefile (tester-ENV): Likewise.
2433         (inl-tester-ENV): Likewise.
2434         (noinl-tester-ENV): Likewise.
2435         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2436         [$(cross-compiling) = no]: Don't set LANGUAGE.
2437         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
2438         without explicit environment settings.
2439
2440 2014-06-06  Roland McGrath  <roland@hack.frob.com>
2441
2442         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
2443         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
2444         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
2445         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
2446
2447 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
2448
2449         * crypt/crypt-private.h [DOS]: Add some includes taken from the
2450         other files in the crypt directory.
2451         * crypt/crypt.c: Remove duplicate includes.
2452         * crypt/crypt-entry.c: Likewise.
2453         * crypt/crypt_util.c: Likewise.
2454
2455 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
2456
2457         * Makeconfig (run-program-env): New variable.
2458         (run-program-prefix-before-env): Likewise.
2459         (run-program-prefix-after-env): Likewise.
2460         (run-program-prefix): Define in terms of new variables.
2461         (built-program-cmd-before-env): New variable.
2462         (built-program-cmd-after-env): Likewise.
2463         (built-program-cmd): Define in terms of new variables.
2464         (test-program-prefix-before-env): New variable.
2465         (test-program-prefix-after-env): Likewise.
2466         (test-program-prefix): Define in terms of new variables.
2467         (test-program-cmd-before-env): New variable.
2468         (test-program-cmd-after-env): Likewise.
2469         (test-program-cmd): Define in terms of new variables.
2470         * Rules (make-test-out): Use $(run-program-env).
2471         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
2472         (help): Do not mention environment variables.  Mention
2473         --timeoutfactor option.
2474         (timeoutfactor): New variable.
2475         (blacklist_exports): Remove function.
2476         (exports): Remove variable.
2477         (command): Do not include ${exports}.
2478         * manual/install.texi (Configuring and compiling): Do not mention
2479         test wrappers preserving environment variables.  Mention that last
2480         assignment to a variable must take precedence.
2481         * INSTALL: Regenerated.
2482         * benchtests/Makefile (run-bench): Use $(run-program-env).
2483         * catgets/Makefile ($(objpfx)test1.cat): Use
2484         $(built-program-cmd-before-env), $(run-program-env) and
2485         $(built-program-cmd-after-env).
2486         ($(objpfx)test2.cat): Do not specify environment variables
2487         explicitly.
2488         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
2489         $(run-program-env) and $(built-program-cmd-after-env).
2490         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
2491         $(run-program-env) and $(test-program-cmd-after-env).
2492         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
2493         explicitly.
2494         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
2495         run_program_env and test_program_cmd_after_env arguments.
2496         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
2497         * elf/tst-pathopt.sh: Use run_program_env argument.
2498         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
2499         $(test-wrapper-env) and $(run-program-env).
2500         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
2501         run_program_env arguments.
2502         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
2503         * intl/Makefile ($(objpfx)tst-gettext.out): Use
2504         $(test-program-prefix-before-env), $(run-program-env) and
2505         $(test-program-prefix-after-env).
2506         ($(objpfx)tst-gettext2.out): Likewise.
2507         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
2508         run_program_env and test_program_prefix_after_env arguments.
2509         * intl/tst-gettext2.sh: Likewise.
2510         * intl/tst-gettext4.sh: Do not set environment variables
2511         explicitly.
2512         * intl/tst-gettext6.sh: Likewise.
2513         * intl/tst-translit.sh: Likewise.
2514         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
2515         $(test-program-prefix-before-env), $(run-program-env) and
2516         $(test-program-prefix-after-env).
2517         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
2518         run_program_env and test_program_prefix_after_env arguments.
2519         * math/Makefile (run-regen-ulps): Use $(run-program-env).
2520         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
2521         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
2522         explicitly with each use of ${test_wrapper_env}.
2523         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
2524         $(test-program-prefix-before-env), $(run-program-env) and
2525         $(test-program-prefix-after-env).
2526         * posix/tst-getconf.sh: Do not set environment variables
2527         explicitly.
2528         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
2529         run_program_env and test_program_prefix_after_env arguments.
2530         * stdio-common/tst-printf.sh: Do not set environment variables
2531         explicitly.
2532         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
2533         $(test-program-prefix-before-env), $(run-program-env) and
2534         $(test-program-prefix-after-env).
2535         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
2536         run_program_env and test_program_prefix_after_env arguments.
2537         Split $test calls into $test_pre and $test.
2538         * timezone/Makefile (build-testdata): Use
2539         $(built-program-cmd-before-env), $(run-program-env) and
2540         $(built-program-cmd-after-env).
2541
2542 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2543
2544         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
2545         strlen for non SHARED builds.
2546
2547 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2548
2549         * nptl/allocatestack.c (check_list): Inlined function...
2550         (__reclaim_stacks): ... here.
2551
2552 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
2553
2554         [BZ #15698]
2555         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
2556         memory overrun.
2557
2558 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
2559
2560         * Rules (make-test-out): Include
2561         LOCPATH=$(common-objpfx)localedata in default environment.
2562         * debug/Makefile (tst-chk1-ENV): Remove variable.
2563         (tst-chk2-ENV): Likewise.
2564         (tst-chk3-ENV): Likewise.
2565         (tst-chk4-ENV): Likewise.
2566         (tst-chk5-ENV): Likewise.
2567         (tst-chk6-ENV): Likewise.
2568         (tst-lfschk1-ENV): Likewise.
2569         (tst-lfschk2-ENV): Likewise.
2570         (tst-lfschk3-ENV): Likewise.
2571         (tst-lfschk4-ENV): Likewise.
2572         (tst-lfschk5-ENV): Likewise.
2573         (tst-lfschk6-ENV): Likewise.
2574         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
2575         (tst-iconv7-ENV): Likewise.
2576         * intl/Makefile (LOCPATH-ENV): Likewise.
2577         (tst-codeset-ENV): Likewise.
2578         (tst-gettext3-ENV): Likewise.
2579         (tst-gettext5-ENV): Likewise.
2580         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
2581         (tst-fopenloc-ENV): Likewise.
2582         (tst-fgetws-ENV): Remove variable.
2583         (tst-ungetwc1-ENV): Likewise.
2584         (tst-ungetwc2-ENV): Likewise.
2585         (bug-ungetwc2-ENV): Likewise.
2586         (tst-swscanf-ENV): Likewise.
2587         (bug-ftell-ENV): Likewise.
2588         (tst-fgetwc-ENV): Likewise.
2589         (tst-fseek-ENV): Likewise.
2590         (tst-ftell-partial-wide-ENV): Likewise.
2591         (tst-ftell-active-handler-ENV): Likewise.
2592         (tst-ftell-append-ENV): Likewise.
2593         * posix/Makefile (tst-fnmatch-ENV): Likewise.
2594         (tst-regexloc-ENV): Likewise.
2595         (bug-regex1-ENV): Likewise.
2596         (tst-regex-ENV): Likewise.
2597         (tst-regex2-ENV): Likewise.
2598         (bug-regex5-ENV): Likewise.
2599         (bug-regex6-ENV): Likewise.
2600         (bug-regex17-ENV): Likewise.
2601         (bug-regex18-ENV): Likewise.
2602         (bug-regex19-ENV): Likewise.
2603         (bug-regex20-ENV): Likewise.
2604         (bug-regex22-ENV): Likewise.
2605         (bug-regex23-ENV): Likewise.
2606         (bug-regex25-ENV): Likewise.
2607         (bug-regex26-ENV): Likewise.
2608         (bug-regex30-ENV): Likewise.
2609         (bug-regex32-ENV): Likewise.
2610         (bug-regex33-ENV): Likewise.
2611         (bug-regex34-ENV): Likewise.
2612         (bug-regex35-ENV): Likewise.
2613         (tst-rxspencer-ENV): Likewise.
2614         (tst-rxspencer-no-utf8-ENV): Likewise.
2615         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
2616         (tst-sscanf-ENV): Likewise.
2617         (tst-swprintf-ENV): Likewise.
2618         (tst-swscanf-ENV): Likewise.
2619         (test-vfprintf-ENV): Likewise.
2620         (scanf13-ENV): Likewise.
2621         (bug14-ENV): Likewise.
2622         (tst-grouping-ENV): Likewise.
2623         * stdlib/Makefile (tst-strtod-ENV): Likewise.
2624         (tst-strtod3-ENV): Likewise.
2625         (tst-strtod4-ENV): Likewise.
2626         (tst-strtod5-ENV): Likewise.
2627         (testmb2-ENV): Likewise./
2628         * string/Makefile (tst-strxfrm-ENV): Likewise.
2629         (tst-strxfrm2-ENV): Likewise.
2630         (bug-strcoll1-ENV): Likewise.
2631         (test-strcasecmp-ENV): Likewise.
2632         (test-strncasecmp-ENV): Likewise.
2633         * time/Makefile (tst-strptime-ENV): Likewise.
2634         (tst-ftime_l-ENV): Likewise.
2635         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
2636         (tst-mbrtowc-ENV): Likewise.
2637         (tst-wcrtomb-ENV): Likewise.
2638         (tst-mbrtowc2-ENV): Likewise.
2639         (tst-c16c32-1-ENV): Likewise.
2640         (tst-mbsnrtowcs-ENV): Likewise.
2641
2642 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
2643
2644         * manual/resource.texi (How to get information about the memory
2645         subsystem?): Fix typo.
2646         Reported by Peon de la Parra Ivan <peon@keba.com>
2647
2648 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
2649
2650         [BZ #16882]
2651         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
2652         (pthread_spin_lock): Branch out of spin loop to proper location.
2653         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
2654         (pthread_spin_lock): Likewise.
2655
2656         * nptl/tst-spin4.c: New test.
2657         * nptl/Makefile (tests): Add tst-spin4.
2658
2659 2014-06-03  Andreas Schwab  <schwab@suse.de>
2660
2661         [BZ #15946]
2662         * resolv/res_send.c (send_dg): Reload file descriptor after
2663         calling reopen.
2664
2665 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
2666
2667         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
2668
2669 2014-06-03  Richard Henderson  <rth@redhat.com>
2670
2671         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
2672         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
2673         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
2674         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
2675         in the SAVE_PID block.
2676         (__libc_vfork): New alias.
2677         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
2678
2679         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
2680         child in registers, not on the stack.  Remove RESET_PID conditionals.
2681         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
2682
2683 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2684
2685         * sysdeps/aarch64/libm-test-ulps: Regenerate.
2686
2687 2014-06-03  Wilco  <wdijkstr@arm.com>
2688
2689         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
2690         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
2691         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2692         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
2693         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
2694         Likewise.
2695
2696 2014-06-03  Wilco  <wdijkstr@arm.com>
2697
2698         * sysdeps/aarch64/fpu/math_private.h
2699         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
2700         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
2701         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
2702         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
2703         Fix declarations.
2704
2705 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
2706
2707         * crypt/crypt-private.h: Include ufc-crypt.h.
2708         (__b64_from_24bit): Declare extern.
2709         * crypt/crypt_util.c(__b64_from_24bit): New function.
2710         (b64t): New static const variable.
2711         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
2712         (b64t): Remove variable.
2713         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
2714         * crypt/sha256-crypt.c: Include crypt-private.h.
2715         (b64t): Remove variable.
2716         (__sha256_crypt_r): Remove b64_from_24bit and replace
2717         with __b64_from_24bit.
2718         * crypt/sha512-crypt.c: Likewise.
2719
2720 2014-06-02  Roland McGrath  <roland@hack.frob.com>
2721
2722         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
2723         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
2724         Label the code __libc_vfork rather than __vfork.
2725         [!NOT_IN_libc] (vfork): Define as weak alias.
2726         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
2727         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
2728         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
2729
2730 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
2731
2732         * malloc/malloc.c (malloc_info): Fix format specifier for
2733         n_mmaps.
2734
2735 2014-06-02  Wilco  <wdijkstr@arm.com>
2736
2737         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
2738         FPCR write.
2739
2740 2014-06-02  Wilco  <wdijkstr@arm.com>
2741
2742         [BZ #17009]
2743         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
2744         Rewrite to reduce FPCR/FPSR accesses.
2745
2746 2014-06-01  David S. Miller  <davem@davemloft.net>
2747
2748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2749
2750 2014-05-31  David S. Miller  <davem@davemloft.net>
2751
2752         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
2753         to occur in round to nearest mode when |x| >= 2.0
2754
2755 2014-05-30  Richard Henderson  <rth@twiddle.net>
2756
2757         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
2758         (PSEUDO_RET_NOERRNO): Remove.
2759         (ret): Don't redefine.
2760         (ret_NOERRNO): Define in terms of ret.
2761         (ret_ERRVAL): Likewise.
2762
2763         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
2764         use of PSEUDO_RET; perform the error check directly.
2765
2766 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
2767
2768         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
2769         with __int128_t.
2770
2771 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2772
2773         * malloc/malloc (malloc_info): Fix formatting.
2774
2775 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
2776             Roland McGrath  <roland@hack.frob.com>
2777
2778         * malloc/malloc (malloc_info): Also print mmapped statistics.
2779
2780 2014-05-30  Roland McGrath  <roland@hack.frob.com>
2781
2782         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
2783         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
2784
2785 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
2786
2787         * malloc/malloc.c (malloc_info): Inline mi_arena.
2788
2789 2014-05-29  Richard Henderson  <rth@twiddle.net>
2790
2791         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
2792         Remove comma before expanding ASM_ARGS_##nr.
2793         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
2794         Make _x0 a strict output; make _x8 a strict input; adjust expansion
2795         of ASM_ARGS_##nr.
2796         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
2797         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
2798         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
2799         (ASM_ARGS_1): Add leading comma.
2800
2801         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
2802         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
2803         to __errno_location.
2804         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
2805         Remove the expected plt for __errno_location.
2806
2807         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2808         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
2809         call to __read_tp.
2810
2811         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2812         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
2813         it and break it down.
2814         (DOCARGS_0, DOCARGS_1): Do nothing.
2815         (DOCARGS_2): Update to store into the new stack frame.
2816         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
2817         (UNDOCARGS_1): Update to restore from the new stack frame.
2818         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
2819         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
2820
2821         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
2822         (SINGLE_THREAD_P): New parameter for result regno.
2823         (PSEUDO): Update to match; use cbz instead of beq.
2824
2825         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
2826         Use ENTRY to define the _nocancel entry point.  Share the syscall
2827         and syscall error check paths with the cancel path.
2828         (PSEUDO_END): New.
2829
2830         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
2831         whitespace; tabs before and after asm mnemonics.
2832
2833 2014-05-29  Eric Wong  <normalperson@yhbt.net>
2834
2835         [BZ #15132]
2836         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
2837         Call fstat64 or stat64 internally, depending on arguments passed.
2838         Replace stat buffer argument with file descriptor argument.
2839         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
2840         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
2841         Pass fd to __internal_statvfs instead of calling fstat64.
2842         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
2843         Pass fd to __internal_statvfs64 instead of calling fstat64.
2844         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
2845         Pass -1 to __internal_statvfs instead of calling stat64.
2846         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
2847         Pass -1 to __internal_statvfs64 instead of calling stat64.
2848
2849 2014-05-28  Roland McGrath  <roland@hack.frob.com>
2850
2851         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
2852         that was previously under [RESET_PID].
2853         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
2854
2855         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
2856         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
2857
2858 2014-05-27  Roland McGrath  <roland@hack.frob.com>
2859
2860         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
2861
2862         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
2863         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
2864
2865 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
2866
2867         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
2868
2869 2014-05-27  Andreas Schwab  <schwab@suse.de>
2870
2871         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
2872         TLS_INIT_TP macro.
2873         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
2874         * elf/rtld.c (init_tls, dl_main): Likewise.
2875         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
2876         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
2877         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
2878         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
2879         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
2880         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
2881         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
2882         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
2883         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
2884         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
2885         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
2886         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
2887         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
2888         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
2889         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
2890         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
2891         * sysdeps/generic/tls.h: Update description.
2892
2893 2014-05-27  Will Newton  <will.newton@linaro.org>
2894
2895         [BZ #16990]
2896         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
2897         and restore r2 rather than just restoring.
2898
2899 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
2900
2901         [BZ #16724]
2902         * libio/tst-ftell-append.c: New test case.
2903         * libio/Makefile (tests): Add test case.
2904         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
2905         append mode.
2906         * libio/wfileops.c (do_ftell_wide): Likewise.
2907
2908 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2909
2910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2911
2912         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
2913         ...
2914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
2915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2916         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
2917         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
2918         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
2919         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
2920         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
2921         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
2922         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
2923         Moved ...
2924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
2925         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
2926         Moved ...
2927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
2928         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
2929         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
2930         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
2931         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
2932         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
2933         ...
2934         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
2935         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
2936         Moved ...
2937         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
2938         here.
2939         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
2940         ...
2941         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
2942         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
2943         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
2944
2945         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
2946         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
2947         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
2948         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
2949
2950         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
2951         merge into ...
2952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
2953         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
2954         ...
2955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
2956         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
2957         ...
2958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
2959         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2960         Moved ...
2961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
2962         here.
2963         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2964         Moved ...
2965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
2966         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2967         Moved ...
2968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
2969
2970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
2971         conditional [RESET_PID].
2972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
2973         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
2974         removed.
2975         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
2976         removed.
2977
2978         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
2979         <tcb-offsets.h>.
2980         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2981         (__libc_vfork): New strong alias.
2982         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
2983         removed.
2984         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
2985         Removed.
2986
2987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
2988         <tcb-offsets.h>.
2989         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
2990         (__libc_vfork): New strong alias.
2991         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
2992         removed.
2993         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
2994         removed.
2995
2996 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
2997
2998         * malloc/malloc.c (mi_arena): New function.
2999         (malloc_info): Remove nested function mi_arena. Call non-nosted
3000         function mi_arena.
3001
3002 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3003
3004         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
3005         by insrwi.
3006         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3007         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
3008         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
3009         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
3010         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
3011         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
3012         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
3013
3014 2014-05-26  Andreas Schwab  <schwab@suse.de>
3015
3016         [BZ #16984]
3017         * locale/programs/repertoire.c (repertoire_read): Add slash
3018         between I18NPATH element and file name.
3019         * locale/programs/locfile.c (locfile_read): Likewise.
3020
3021 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
3022
3023         * nptl/pthread_mutexattr_settype.c
3024         (__pthread_mutexattr_settype):
3025         Disable lock elision for PTHREAD_MUTEX_NORMAL.
3026
3027 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
3028
3029         * nptl/tst-mutex5 (do_test):
3030         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
3031
3032 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3033
3034         * benchtests/README: Document 'init' directive.
3035         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
3036         BENCH_INIT.
3037         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
3038         (parse_file): Recognize 'init' directive.
3039
3040 2014-05-26  Kyle McMartin  <kyle@redhat.com>
3041
3042         [BZ #16796]
3043         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
3044         alignment of struct pthread.
3045
3046 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3047
3048         [BZ #16878]
3049         * nscd/netgroupcache.c (addgetnetgrentX): Look for
3050         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
3051         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
3052         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
3053
3054 2014-05-25  Richard Henderson  <rth@twiddle.net>
3055
3056         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
3057         (SINGLE_THREAD_P_PIC): Remove.
3058         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
3059         (SINGLE_THREAD_P_PIC): Remove.
3060
3061         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
3062         branch to syscall error ...
3063         (PSEUDO): ... here.
3064         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
3065         from __local_syscall_error to .Lsyscall_error.
3066         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
3067         (SYSCALL_ERROR): Update label name.
3068
3069         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
3070         Do not use DOARGS/UNDOARGS.
3071         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
3072         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
3073         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
3074         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
3075         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
3076
3077         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
3078         block comment.
3079
3080         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
3081         define if !NOT_IN_libc.
3082         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
3083         define with non-default symbol versions.
3084
3085 2014-05-23  Richard Henderson  <rth@twiddle.net>
3086
3087         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
3088         (vfork, __vfork): Define via compat_symbol.
3089
3090         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
3091         [!HAVE_IFUNC] (vfork_compat): Remove.
3092         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
3093
3094 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
3095
3096         [BZ #16978]
3097         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
3098         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
3099         variable.
3100
3101 2014-05-23  Richard Henderson  <rth@twiddle.net>
3102
3103         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
3104         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
3105         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
3106         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
3107
3108         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
3109         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
3110         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
3111         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
3112         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
3113         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
3114         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
3115         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
3116         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
3117         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
3118         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
3119         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
3120         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
3121         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
3122         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
3123         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
3124         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
3125         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
3126         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
3127         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
3128         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
3129         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
3130         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
3131         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
3132         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
3133         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
3134         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
3135         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
3136         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
3137         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
3138         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
3139         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
3140         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
3141         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
3142         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
3143         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
3144         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
3145         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
3146         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
3147         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
3148         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
3149         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
3150         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
3151         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
3152         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
3153         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
3154         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
3155         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
3156         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
3157         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
3158         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
3159         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
3160         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
3161         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
3162         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
3163         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
3164
3165         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
3166         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
3167         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
3168         before exiting on error.
3169         (__libc_vfork): New strong alias.
3170         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
3171         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
3172
3173         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
3174         that was previously under [RESET_PID].
3175         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
3176
3177         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
3178
3179 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
3180
3181         [BZ #16977]
3182         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
3183         value when x - 1 is zero.
3184         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
3185         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
3186         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
3187         0.0L for an argument of 1.0L.
3188         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
3189         Likewise.
3190         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
3191         value when x - 1 is zero.
3192         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
3193         * sysdeps/i386/fpu/libm-test-ulps: Update.
3194         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3195
3196 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
3197
3198         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
3199         alphasort and versionsort.
3200
3201 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3202
3203         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
3204         macro.
3205         [copysignf]: Likewise.
3206
3207 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3208
3209         * crypt/md5-crypt.c: Fix formatting.
3210
3211 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3212
3213         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
3214         (b64_from_24bit): New function.
3215
3216 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3217
3218         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
3219         libc_hidden_builtin_def to ifunc.
3220         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3221         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
3222
3223 2014-05-21  Roland McGrath  <roland@hack.frob.com>
3224
3225         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
3226         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
3227
3228 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
3229
3230         * nscd/Depend (linuxthreads): Remove.
3231         (nptl): Add.
3232         * resolv/Depend (linuxthreads): Remove.
3233         * rt/Depend (linuxthreads): Remove.
3234
3235         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
3236         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
3237         $(common-objpfx)elf/.
3238         (link-libc-before-gnulib): Likewise.
3239         (elfobjdir): Remove variable.
3240         * Makefile (install): Use $(elf-objpfx) instead of
3241         $(common-objpfx)elf/.
3242         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
3243         $(elfobjdir)/.
3244         (link-libc-deps): Likewise.
3245         ($(common-objpfx)libc.so): Likewise.
3246         ($(common-objpfx)linkobj/libc.so): Likewise.
3247         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
3248         instead of $(common-objpfx)elf/.
3249         (symbolic-link-list): Likewise.
3250         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
3251         [$(cross-compiling) = no]: Likewise.
3252         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
3253         $(elfobjdir)/.
3254         (static-gnulib-arch): Likewise.
3255         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
3256         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
3257         $(common-objpfx)elf/.
3258
3259 2014-05-21  Richard Henderson  <rth@redhat.com>
3260
3261         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
3262         (SINGLE_THREAD_P): Use the correct width load.  Fold
3263         into the ldr offset.
3264
3265         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
3266         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
3267
3268 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
3269
3270         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
3271         (libgcc_s_resume): Use __attribute_used__.
3272         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
3273         Likewise.
3274
3275 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3276
3277         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
3278         optimization when used with float constants.
3279
3280         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3281
3282 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
3283
3284         [BZ #16915]
3285         * locale/nl_langinfo_l.c: Make direct reference to every
3286         _nl_current_CATEGORY symbol.
3287         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
3288         (tests-static): Add tst-langinfo-static.
3289         (tests-special): Add tst-langinfo-static.out.
3290         ($(objpfx)tst-langinfo.out): Redirect output.
3291         ($(objpfx)tst-langinfo-static.out): New.
3292         * localedata/tst-langinfo.sh: Send output to stdout.
3293         * localedata/tst-langinfo-static.c: New file.
3294
3295         [BZ #16965]
3296         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
3297         when the shift amount is modulo the limb size.
3298
3299 2014-05-20  Richard Henderson  <rth@redhat.com>
3300
3301         [BZ #16967]
3302         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
3303         Change type of sa_flags from unsigned int to int.
3304
3305         [BZ #16966]
3306         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
3307
3308         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
3309
3310 2014-05-20  Will Newton  <will.newton@linaro.org>
3311
3312         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
3313         Test the return value of the system call in the nocancel case.
3314
3315 2014-05-20  Will Newton  <will.newton@linaro.org>
3316             Yvan Roux  <yvan.roux@linaro.org>
3317
3318         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
3319         #include of asm/ptrace.h.
3320         (PTRACE_GET_THREAD_AREA): Remove #undef.
3321         (PTRACE_GETHBPREGS): Likewise.
3322         (PTRACE_SETHBPREGS): Likewise.
3323         (struct user_regs_struct): New structure.
3324         (struct user_fpsimd_struct): New structure.
3325         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
3326         #include of asm/ptrace.h and second #include of sys/user.h.
3327         (PTRACE_GET_THREAD_AREA): Remove #undef.
3328         (PTRACE_GETHBPREGS): Likewise.
3329         (PTRACE_SETHBPREGS): Likewise.
3330         (ELF_NGREG): Use new struct user_regs_struct.
3331         (elf_fpregset_t): Use new struct user_fpsimd_struct.
3332
3333 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3334
3335         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
3336         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
3337
3338 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
3339
3340         [BZ #16958]
3341         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
3342         membar to avoid block loads/stores to overlap previous stores.
3343
3344 2014-05-17  Richard Henderson  <rth@redhat.com>
3345
3346         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
3347         Create the __##syscall_name##_nocancel entry point.
3348         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
3349         Remove; let the sysdep-cancel.h code create it.
3350
3351 2014-05-17  David S. Miller  <davem@davemloft.net>
3352
3353         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
3354         Protect with __USE_GNU.
3355         (TIOCSET_TEMPT): Likewise.
3356         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
3357         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
3358         these are already provided in bits/ioctl-types.h
3359
3360 2014-05-16  Roland McGrath  <roland@hack.frob.com>
3361
3362         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
3363         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
3364
3365         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
3366         Use wait4 regardless of [__NR_waitpid].
3367
3368 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
3369
3370         PR libgcc/60166
3371         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
3372         (_FP_NANSIGN_Q): Set the quiet bit.
3373
3374 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
3375
3376         * benchtests/Makefile
3377         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
3378         not $(common-objpfx)math/libm.so.
3379         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
3380         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
3381         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
3382         $(common-objpfx)dlfcn/libdl.so.
3383         ($(objpfx)tst-audit8): Depend on $(libm), not
3384         $(common-objpfx)math/libm.so.
3385         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
3386         not $(common-objpfx)dlfcn/libdl.so.
3387         * math/Makefile
3388         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
3389         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
3390         [$(build-shared) = yes].
3391         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
3392         $(common-objpfx)nptl/libpthread.so.
3393         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
3394         $(common-objpfx)math/libm.so$(libm.so-version) or
3395         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
3396         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
3397         $(common-objpfx)dlfcn/libdl.so.
3398         * setjmp/Makefile (link-libm): Remove variable.
3399         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
3400         * stdio-common/Makefile (link-libm): Remove variable.
3401         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
3402         * stdlib/Makefile (link-libm): Remove variable.
3403         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
3404         ($(objpfx)tst-strtod-round): Likewise.
3405         ($(objpfx)tst-tininess): Likewise.
3406         ($(objpfx)tst-strtod-underflow): Likewise.
3407         ($(objpfx)tst-strtod6): Likewise.
3408         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
3409         $(libdl), not $(common-objpfx)nptl/libpthread.so and
3410         $(common-objpfx)dlfcn/libdl.so.
3411
3412 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3413
3414         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
3415         BSD terminal modes definitions.
3416
3417 2014-05-16  Roland McGrath  <roland@hack.frob.com>
3418
3419         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
3420         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
3421
3422         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
3423         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
3424         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
3425         Don't do #include_next.
3426         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
3427         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
3428         Don't do #include_next.
3429         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
3430         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
3431         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
3432         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
3433
3434 2014-05-16  Allan McRae  <allan@archlinux.org>
3435
3436         * po/sv.po: Update Swedish translation from translation project.
3437
3438         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
3439         in sed expression.
3440
3441 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
3442
3443         [BZ #16917]
3444         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
3445         errno if the TIOCGPTN ioctl fails with an error different than
3446         EINVAL.
3447         * login/tst-ptsname.c: New file.
3448         * login/Makefile (tests): Add tst-ptsname.
3449
3450         [BZ #16943]
3451         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
3452         and prlimit64.
3453
3454 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3455
3456         [BZ #16849]
3457         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
3458         herrno to return EAI_AGAIN.
3459
3460 2014-05-14  Roland McGrath  <roland@hack.frob.com>
3461
3462         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
3463         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
3464         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
3465         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
3466         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
3467         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
3468         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
3469         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
3470         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
3471         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
3472         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
3473         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
3474         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
3475         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
3476         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
3477         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
3478         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
3479         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
3480         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
3481         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
3482         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
3483         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
3484         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
3485         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
3486         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
3487         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
3488         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
3489         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
3490         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
3491         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
3492         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
3493         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
3494         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
3495         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
3496         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3497         Moved ...
3498         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
3499         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
3500         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
3501         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
3502         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
3503         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
3504         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
3505         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
3506         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
3507         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
3508         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
3509         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
3510         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
3511         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
3512         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
3513         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
3514         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
3515         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
3516         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
3517         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
3518         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
3519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
3520         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
3521         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
3522         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
3523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
3524         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
3525         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3526         Moved ...
3527         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
3528         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
3529         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
3530         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
3531         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
3532         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
3533         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
3534         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
3535         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
3536         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
3537         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
3538         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
3539         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
3540         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
3541         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
3542         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
3543         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
3544         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
3545         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
3546         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3547         Moved ...
3548         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
3549         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
3550         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
3551
3552         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
3553         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
3554         (libpthread-sysdep_routines): Add elision-related stuff here instead.
3555         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
3556         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
3557         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
3558         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
3559         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
3560         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
3561         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
3562         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
3563         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
3564         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
3565         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
3566         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
3567         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
3568         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
3569         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
3570         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
3571         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
3572         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
3573         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
3574         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
3575         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
3576         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
3577         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
3578         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
3579         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
3580         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
3581         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
3582         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
3583
3584         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
3585         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
3586
3587         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
3588         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
3589         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
3590         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
3591         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
3592         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
3593         Moved ...
3594         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
3595         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
3596         Moved ...
3597         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
3598         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
3599         Moved ...
3600         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
3601         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
3602         Moved ...
3603         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
3604         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
3605         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
3606         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
3607         Moved ...
3608         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
3609         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
3610         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
3611         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
3612         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
3613         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
3614         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
3615         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
3616         Moved ...
3617         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
3618         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
3619         Moved ...
3620         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
3621         ... here.
3622         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
3623         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
3624         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
3625         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
3626         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
3627         Moved ...
3628         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
3629         ... here.
3630         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
3631         Moved ...
3632         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
3633         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
3634         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
3635         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
3636         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
3637         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
3638         Moved ...
3639         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
3640         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
3641         Moved ...
3642         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
3643         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
3644         Moved ...
3645         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
3646         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
3647         Moved ...
3648         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
3649         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
3650         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
3651         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
3652         Moved ...
3653         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
3654         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
3655         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
3656         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
3657         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
3658         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
3659         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
3660         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
3661         Moved ...
3662         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
3663         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3664         Moved ...
3665         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
3666         ... here.
3667         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
3668         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
3669         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
3670         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
3671         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3672         Moved ...
3673         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
3674         ... here.
3675         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
3676         Moved ...
3677         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
3678         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
3679         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
3680         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
3681         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
3682         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
3683         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
3684         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
3685         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
3686         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
3687         Moved ...
3688         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
3689         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
3690         Moved ...
3691         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
3692         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
3693         Moved ...
3694         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
3695         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
3696         Moved ...
3697         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
3698         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
3699         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
3700         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
3701         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
3702         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
3703         Moved ...
3704         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
3705         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
3706         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
3707         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
3708         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
3709         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
3710         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
3711         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
3712         Moved ...
3713         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
3714         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3715         Moved ...
3716         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
3717         ... here.
3718         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
3719         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
3720         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
3721         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
3722         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3723         Moved ...
3724         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
3725         ... here.
3726         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
3727         Moved ...
3728         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
3729         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
3730         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
3731         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
3732         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
3733         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
3734         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
3735         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
3736         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
3737         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
3738         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
3739
3740         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
3741         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
3742
3743         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
3744         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
3745
3746         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
3747         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
3748         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
3749         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
3750         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
3751         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
3752         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
3753         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
3754         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
3755         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
3756         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
3757         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
3758         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
3759         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
3760         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
3761         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
3762         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
3763         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
3764         Moved ...
3765         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
3766         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
3767         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
3768         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
3769         Moved ...
3770         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
3771         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
3772         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
3773         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
3774         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
3775         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
3776         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
3777         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
3778         Moved ...
3779         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
3780         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
3781         Moved ...
3782         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
3783         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
3784         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
3785         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
3786         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
3787         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
3788         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
3789         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
3790         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
3791         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
3792         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
3793         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
3794         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
3795         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
3796         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
3797         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
3798         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
3799
3800         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
3801         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
3802         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
3803         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
3804         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
3805
3806         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
3807         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
3808         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
3809         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
3810         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
3811         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
3812         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
3813         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
3814         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
3815         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
3816
3817         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
3818         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
3819
3820         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
3821         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
3822         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
3823         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
3824         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
3825         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
3826         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
3827         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
3828         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
3829         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
3830         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
3831         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
3832         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
3833         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
3834         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
3835         Update #include.
3836         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
3837         Likewise.
3838         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3839         Likewise.
3840         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3841         Likewise.
3842         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3843         Likewise.
3844         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
3845         Likewise.
3846         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
3847         Likewise.
3848         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
3849         Likewise.
3850         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
3851         Likewise.
3852         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
3853         Likewise.
3854         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
3855         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
3856         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
3857         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
3858         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
3859         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
3860         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
3861         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
3862         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
3863         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
3864         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
3865         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
3866         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
3867         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
3868         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
3869
3870         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
3871         that was previously under [RESET_PID].
3872         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3873         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
3874         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
3875
3876         * sysdeps/i386/nptl/Implies: New file.
3877         * sysdeps/x86_64/nptl/Implies: New file.
3878         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
3879         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
3880         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
3881         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
3882
3883         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
3884         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3885         (__libc_vfork): New strong alias.
3886         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
3887         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
3888
3889         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
3890         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3891         (__libc_vfork): New strong alias.
3892         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
3893         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
3894
3895         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
3896         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3897         (__libc_vfork): New strong alias.
3898         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
3899         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
3900         * nptl/pt-vfork.c: New file.
3901         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
3902         (libpthread: GLIBC_2.20): New version set (empty).
3903
3904 2014-05-14  Will Newton  <will.newton@linaro.org>
3905
3906         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
3907         rather than #if.
3908
3909 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3910
3911         [BZ #16564]
3912         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
3913         arguments with exponent 65 or above.
3914         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
3915         arguments 0x1p113L or above.
3916         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
3917         to arguments 0x1p107L or above.
3918         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
3919         positive arguments with exponent 65 or above.
3920         * math/auto-libm-test-in: Add more tests of log1p.
3921         * math/auto-libm-test-out: Regenerated.
3922
3923         [BZ #16928]
3924         * math/s_cacos.c (__cacos): Ensure zero real part of result from
3925         non-finite arguments is +0.
3926         * math/s_cacosf.c (__cacosf): Likewise.
3927         * math/s_cacosl.c (__cacosl): Likewise.
3928         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
3929         * sysdeps/i386/fpu/libm-test-ulps: Update.
3930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3931
3932         [BZ #16927]
3933         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
3934         value.
3935         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
3936         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
3937         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
3938         for explicit high bit of mantissa when testing for argument equal
3939         to 1.
3940         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
3941         * sysdeps/i386/fpu/libm-test-ulps: Update.
3942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3943
3944         [BZ #16516]
3945         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
3946         (__erf): Scale by 16 instead of 8 in potentially underflowing
3947         case.  Ensure exception if result actually underflows.
3948         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
3949         (__erff): Scale by 16 instead of 8 in potentially underflowing
3950         case.  Ensure exception if result actually underflows.
3951         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
3952         (efx8): Remove variable.
3953         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3954         case.  Ensure exception if result actually underflows.
3955         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
3956         (efx8): Remove variable.
3957         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3958         case.  Ensure exception if result actually underflows.
3959         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
3960         (efx8): Remove variable.
3961         (__erfl): Scale by 16 instead of 8 in potentially underflowing
3962         case.  Ensure exception if result actually underflows.
3963         * math/auto-libm-test-in: Add more tests of erf.
3964         * math/auto-libm-test-out: Regenerated.
3965
3966 2014-05-14  Andreas Schwab  <schwab@suse.de>
3967
3968         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
3969         Remove code conditionalized on USE___THREAD.
3970
3971         * config.h.in (HAVE_PT_CHOWN): Define as 0.
3972         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
3973         not definedness.
3974
3975 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
3976
3977         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
3978         Define unconditionally.
3979         (__ASSUME_O_CLOEXEC): Likewise.
3980         (__ASSUME_SOCK_CLOEXEC): Likewise.
3981         (__ASSUME_IN_NONBLOCK): Likewise.
3982         (__ASSUME_PIPE2): Likewise.
3983         (__ASSUME_EVENTFD2): Likewise.
3984         (__ASSUME_SIGNALFD4): Likewise.
3985         (__ASSUME_DUP3): Likewise.
3986         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
3987         (__ASSUME_DUP3): Do not define.
3988         (__ASSUME_EVENTFD2): Likewise.
3989         (__ASSUME_IN_NONBLOCK): Likewise.
3990         (__ASSUME_O_CLOEXEC): Likewise.
3991         (__ASSUME_PIPE2): Likewise.
3992         (__ASSUME_SIGNALFD4): Likewise.
3993         (__ASSUME_SOCK_CLOEXEC): Likewise.
3994         (__ASSUME_UTIMES): Undefine.
3995         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3996         (__ASSUME_UTIMES): Do not define.
3997         (__ASSUME_O_CLOEXEC): Likewise.
3998         (__ASSUME_SOCK_CLOEXEC): Likewise.
3999         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
4000         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
4001         0x020621].
4002         (__ASSUME_PIPE2): Likewise.
4003         (__ASSUME_EVENTFD2): Likewise.
4004         (__ASSUME_SIGNALFD4): Likewise.
4005         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
4006         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
4007         Do not define.
4008         (__ASSUME_EVENTFD2): Likewise.
4009         (__ASSUME_SIGNALFD4): Likewise.
4010         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4011         (__ASSUME_32BITUIDS): Likewise.
4012         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4013         (__ASSUME_IPC64): Likewise.
4014         (__ASSUME_ST_INO_64_BIT): Likewise.
4015         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
4016         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
4017         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4018         (__ASSUME_UTIMES): Do not define.
4019         (__ASSUME_PSELECT): Likewise.
4020         (__ASSUME_PPOLL): Likewise.
4021         (__ASSUME_O_CLOEXEC): Likewise.
4022         (__ASSUME_SOCK_CLOEXEC): Likewise.
4023         (__ASSUME_IN_NONBLOCK): Likewise.
4024         (__ASSUME_PIPE2): Likewise.
4025         (__ASSUME_EVENTFD2): Likewise.
4026         (__ASSUME_SIGNALFD4): Likewise.
4027         (__ASSUME_DUP3): Likewise.
4028         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4029         (__ASSUME_UTIMES): Likewise.
4030         (__ASSUME_O_CLOEXEC): Likewise.
4031         (__ASSUME_SOCK_CLOEXEC): Likewise.
4032         (__ASSUME_IN_NONBLOCK): Likewise.
4033         (__ASSUME_PIPE2): Likewise.
4034         (__ASSUME_EVENTFD2): Likewise.
4035         (__ASSUME_SIGNALFD4): Likewise.
4036         (__ASSUME_DUP3): Likewise.
4037         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4038         (__ASSUME_UTIMES): Likewise.
4039         (__ASSUME_O_CLOEXEC): Likewise.
4040         (__ASSUME_SOCK_CLOEXEC): Likewise.
4041         (__ASSUME_IN_NONBLOCK): Likewise.
4042         (__ASSUME_PIPE2): Likewise.
4043         (__ASSUME_EVENTFD2): Likewise.
4044         (__ASSUME_SIGNALFD4): Likewise.
4045         (__ASSUME_DUP3): Likewise.
4046         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
4047         Likewise.
4048         (__ASSUME_UTIMES): Likewise.
4049         (__ASSUME_EVENTFD2): Likewise.
4050         (__ASSUME_SIGNALFD4): Likewise.
4051         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4052         (__ASSUME_O_CLOEXEC): Likewise.
4053         (__ASSUME_SOCK_CLOEXEC): Likewise.
4054         (__ASSUME_IN_NONBLOCK): Likewise.
4055         (__ASSUME_PIPE2): Likewise.
4056         (__ASSUME_EVENTFD2): Likewise.
4057         (__ASSUME_SIGNALFD4): Likewise.
4058         (__ASSUME_DUP3): Likewise.
4059         (__ASSUME_UTIMES): Undefine.
4060
4061         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
4062         feclearexcept.  Remove symbol versioning code.
4063         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
4064         symbol versioning code.
4065         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
4066         symbol versioning code.
4067         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
4068         feupdateenv.  Remove symbol versioning code.
4069         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
4070         fegetexceptflag.  Remove symbol versioning code.
4071         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
4072         fesetexceptflag.  Remove symbol versioning code.
4073         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
4074         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
4075         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
4076         (__posix_fadvise64_l32): Remove prototype.
4077         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
4078         code.
4079
4080 2014-05-13  Roland McGrath  <roland@hack.frob.com>
4081
4082         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
4083         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
4084         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
4085         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
4086
4087 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
4088
4089         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
4090         current working directory
4091
4092 2014-05-13  Roland McGrath  <roland@hack.frob.com>
4093
4094         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
4095         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
4096         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
4097         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
4098         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
4099         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
4100         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
4101         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
4102         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
4103         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
4104         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
4105         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
4106         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
4107         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
4108         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
4109         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
4110         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
4111         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
4112         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
4113         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
4114         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
4115         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
4116         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
4117         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
4118         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
4119         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
4120         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
4121         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
4122         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
4123         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
4124         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
4125         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
4126         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
4127         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
4128         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
4129         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
4130         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
4131         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
4132         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
4133         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
4134         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
4135         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
4136
4137         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
4138         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
4139
4140         * sysdeps/unix/sysv/linux/arm/Makefile
4141         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
4142         Add rt-aeabi_unwind_cpp_pr1.
4143         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
4144         Add nptl-aeabi_unwind_cpp_pr1.
4145         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
4146         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
4147         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
4148         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
4149         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
4150         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
4151
4152         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
4153         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
4154         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
4155         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
4156
4157         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
4158         Deconditionalize the code that was previously under [RESET_PID].
4159         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
4160
4161         * sysdeps/generic/exit-thread.h: New file.
4162         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
4163         * include/unistd.h (__exit_thread): Remove declaration.
4164         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
4165         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
4166         * csu/libc-start.c: Include <exit-thread.h>.
4167         (LIBC_START_MAIN): Pass no argument to __exit_thread.
4168         * nptl/pthread_create.c: Include <exit-thread.h>.
4169         (start_thread): Call __exit_thread in place of __exit_thread_inline.
4170         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
4171         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
4172         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
4173         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
4174         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
4175         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
4176         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
4177         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
4178         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
4179         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
4180         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
4181         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
4182         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
4183         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
4184         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
4185         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
4186
4187 2014-05-13  Andreas Schwab  <schwab@suse.de>
4188
4189         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
4190
4191 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
4192
4193         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
4194         (__ASSUME_UTIMES): Do not condition on kernel version.
4195         (__ASSUME_PSELECT): Define unconditionally.
4196         (__ASSUME_PPOLL): Likewise.
4197         (__ASSUME_ATFCTS): Likewise.
4198         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
4199         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
4200         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
4201         (__ASSUME_UTIMENSAT): Define unconditionally.
4202         (__ASSUME_PRIVATE_FUTEX): Likewise.
4203         (__ASSUME_FALLOCATE): Likewise.
4204         (__ASSUME_O_CLOEXEC): Likewise.
4205         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
4206         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
4207         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
4208         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
4209         (__ASSUME_IN_NONBLOCK): Likewise.
4210         (__ASSUME_PIPE2): Likewise.
4211         (__ASSUME_EVENTFD2): Likewise.
4212         (__ASSUME_SIGNALFD4): Likewise.
4213         (__ASSUME_DUP3): Likewise.
4214         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4215         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
4216         (__ASSUME_AT_RANDOM): Likewise.
4217         (__ASSUME_PREADV): Likewise.
4218         (__ASSUME_PWRITEV): Likewise.
4219         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
4220         (__ASSUME_F_GETOWN_EX): Define unconditionally.
4221         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
4222         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4223         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
4224         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4225         (__ASSUME_O_CLOEXEC): Define unconditionally.
4226         (__ASSUME_PSELECT): Do not undefine conditionally.
4227         (__ASSUME_PPOLL): Likewise.
4228         (__ASSUME_ATFCTS): Likewise.
4229         (__ASSUME_SET_ROBUST_LIST): Likewise.
4230         (__ASSUME_UTIMENSAT): Likewise.
4231         (__ASSUME_FDATASYNC): Define unconditionally.
4232         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4233         (__ASSUME_SIGFRAME_V2): Likewise.
4234         )__ASSUME_EVENTFD2): Likewise.
4235         (__ASSUME_SIGNALFD4): Likewise.
4236         (__ASSUME_PSELECT): Do not undefine conditionally.
4237         (__ASSUME_PPOLL): Likewise.
4238         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4239         (__ASSUME_PSELECT): Define unconditionally.
4240         (__ASSUME_PPOLL): Likewise.
4241         (__ASSUME_O_CLOEXEC): Likewise.
4242         (__ASSUME_SOCK_CLOEXEC): Likewise.
4243         (__ASSUME_IN_NONBLOCK): Likewise.
4244         (__ASSUME_PIPE2): Likewise.
4245         (__ASSUME_EVENTFD2): Likewise.
4246         (__ASSUME_SIGNALFD4): Likewise.
4247         (__ASSUME_DUP3): Likewise.
4248         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4249         (__ASSUME_O_CLOEXEC): Likewise.
4250         (__ASSUME_SOCK_CLOEXEC): Likewise.
4251         (__ASSUME_IN_NONBLOCK): Likewise.
4252         (__ASSUME_PIPE2): Likewise.
4253         (__ASSUME_EVENTFD2): Likewise.
4254         (__ASSUME_SIGNALFD4): Likewise.
4255         (__ASSUME_DUP3): Likewise.
4256         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4257         (__ASSUME_EVENTFD2): Likewise.
4258         (__ASSUME_SIGNALFD4): Likewise.
4259         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4260
4261 2014-05-12  Andreas Schwab  <schwab@suse.de>
4262
4263         [BZ #16932]
4264         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
4265         (_nss_nis_gethostbyname4_r): Return error if item length is larger
4266         than maximum RPC packet size.
4267         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
4268         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4269         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
4270         (_nss_nis_getservbyport_r): Likewise.
4271
4272 2014-05-12  Will Newton  <will.newton@linaro.org>
4273
4274         * malloc/Makefile (tests): Add tst-mallopt.
4275         * malloc/tst-mallopt.c: New file.
4276
4277 2014-05-09  Roland McGrath  <roland@hack.frob.com>
4278
4279         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
4280         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
4281
4282 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4283
4284         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
4285         (tst-tlsmod6.so): Likewise.
4286
4287 2014-05-09  Roland McGrath  <roland@hack.frob.com>
4288
4289         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
4290
4291 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
4292
4293         [BZ #16064]
4294         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
4295         and <dl-procinfo.h>.
4296         (__fegetenv): Save SSE state in envp->__eip if supported.
4297         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
4298         envp->__eip if supported.
4299         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
4300         and <dl-procinfo.h>.
4301         (__fesetenv): Always set __eip, __cs_selector, __opcode,
4302         __data_offset and __data_selector in environment to 0.  Set SSE
4303         state if supported.
4304         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
4305         test-fenv-sse.
4306         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
4307         -mfpmath=sse.
4308         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
4309
4310 2014-05-09  Will Newton  <will.newton@linaro.org>
4311
4312         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
4313         and libc_relro_required for ARM.
4314         * sysdeps/arm/preconfigure: Regenerate.
4315
4316 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4317             Stefan Liebler  <stli@linux.vnet.ibm.com>
4318
4319         * config.make.in (enable-lock-elision): New Makefile variable.
4320         * configure.ac: Likewise.
4321         * configure: Regenerate.
4322         * sysdeps/s390/configure.ac:
4323         Add check for gcc transactions support.
4324         * sysdeps/s390/configure: Regenerate.
4325         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
4326         Build elision files if enabled.
4327         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
4328         Add lock elision support for s390.
4329         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
4330         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
4331         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
4332         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
4333         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
4334         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
4335         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
4336         Likewise.
4337         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
4338         Likewise.
4339         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
4340         Likewise.
4341         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
4342         Likewise.
4343         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
4344         (__lll_timedlock_elision, __lll_lock_elision)
4345         (__lll_unlock_elision, __lll_trylock_elision)
4346         (lll_timedlock_elision, lll_lock_elision)
4347         (lll_unlock_elision, lll_trylock_elision): Add.
4348         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4349         (pthread_mutex_t): Add lock elision support for s390.
4350
4351 2014-05-14  Wilco  <wdijkstr@arm.com>
4352
4353         * sysdeps/arm/fclrexcpt.c: Cleanup.
4354         * sysdeps/arm/fedisblxcpt.c: Cleanup.
4355         * sysdeps/arm/feenablxcpt.c: Cleanup.
4356         * sysdeps/arm/fegetenv.c: Cleanup.
4357         * sysdeps/arm/fegetexcept.c: Cleanup.
4358         * sysdeps/arm/fegetround.c: Cleanup.
4359         * sysdeps/arm/feholdexcpt.c: Cleanup.
4360         * sysdeps/arm/fesetenv.c: Cleanup.
4361         * sysdeps/arm/fesetround.c: Cleanup.
4362         * sysdeps/arm/feupdateenv.c: Cleanup.
4363         * sysdeps/arm/fgetexcptflg.c: Cleanup.
4364         * sysdeps/arm/fraiseexcpt.c: Cleanup.
4365         * sysdeps/arm/fsetexcptflg.c: Cleanup.
4366         * sysdeps/arm/ftestexcept.c: Cleanup.
4367         * sysdeps/arm/get-rounding-mode.h: Cleanup.
4368         * sysdeps/arm/setfpucw.c: Cleanup.
4369
4370 2014-05-09  Will Newton  <will.newton@linaro.org>
4371
4372         * sysdeps/arm/armv7/strcmp.S: New file.
4373         * NEWS: Mention addition of ARMv7 optimized strcmp.
4374
4375 2014-05-08  Roland McGrath  <roland@hack.frob.com>
4376
4377         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
4378         look for %.ac rather than %.in.
4379
4380         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
4381         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
4382         * sysdeps/mach/hurd/configure: Regenerated.
4383         * sysdeps/unix/sysv/linux/configure: Regenerated.
4384
4385         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
4386
4387 2014-05-07  Steve Ellcey  <sellcey@mips.com>
4388
4389         [BZ# 16922]
4390         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
4391         (LONG_SUB): Ditto.
4392         (PTR_SUB): Ditto.
4393
4394 2014-05-07  Andreas Schwab  <schwab@suse.de>
4395
4396         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
4397         when skipping over non-matching result from nscd.
4398
4399 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
4400
4401         [BZ #16876]
4402         * nptl/sockperf.c (client): Check socket return value.
4403
4404         [BZ #16877]
4405         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
4406         nscd security class.
4407
4408 2014-05-06  Roland McGrath  <roland@hack.frob.com>
4409
4410         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
4411         * sysdeps/arm/unwind.h: ... here.
4412
4413 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
4414
4415         [BZ# 16916]
4416         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
4417         Define.
4418
4419 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4420
4421         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
4422         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
4423         multiarch strncpy for PPC64.
4424         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
4425         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
4426         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
4427         multiarch optimizations.
4428         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4429         (__libc_ifunc_impl_list): Likewise.
4430         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
4431         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
4432         multiarch stpncpy for PPC64.
4433         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
4434         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
4435
4436 2014-05-06  Andreas Schwab  <schwab@suse.de>
4437
4438         [BZ #16912]
4439         * gmon/mcount.c (_MCOUNT_DECL): Use
4440         atomic_compare_and_exchange_bool_acq instead of
4441         catomic_compare_and_exchange_bool_acq.
4442
4443 2014-05-05  Roland McGrath  <roland@hack.frob.com>
4444
4445         * elf/Makefile (others, install-bin): Remove pldd.
4446         (pldd-modules): Variable removed.
4447         ($(objpfx)pldd): Target removed.
4448         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
4449         (others, install-bin): Append pldd here.
4450         ($(objpfx)pldd): New target.
4451
4452         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
4453         to 0, so the first #if test emitted later doesn't see it undefined.
4454         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
4455         * sysdeps/gnu/errlist.c: Regenerated.
4456
4457 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4458
4459         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
4460         [libc_hidden_builtin_def]: Define to empty value.
4461         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
4462         [libc_hidden_builtin_def]: Likewise.
4463         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
4464         [libc_hidden_builtin_def]: Likewise.
4465         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
4466         [libc_hidden_builtin_def]: Likewise.
4467         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
4468         __redirect_memcpy and define ifunc as default hidden symbol.
4469         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
4470         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
4471
4472 2014-05-04  Adam Conrad  <adconrad@0c3.net>
4473
4474         * locale/iso-4217.def: Reintroduce XDR currency.
4475
4476 2014-05-04  Allan McRae  <allan@archlinux.org>
4477
4478         * po/eo.po: Update Esperanto translation from translation project.
4479
4480 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
4481
4482         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
4483         and FEATURE_INDEX_MAX to 1.
4484         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
4485
4486 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4487
4488         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
4489         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
4490         * iconvdata/big5.c (ONE_DIRECTION): Define.
4491         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
4492         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
4493         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
4494         * iconvdata/cp932.c (ONE_DIRECTION): Define.
4495         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
4496         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
4497         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
4498         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
4499         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
4500         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
4501         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
4502         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
4503         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
4504         * iconvdata/gbk.c (ONE_DIRECTION): Define.
4505         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
4506         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
4507         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
4508         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
4509         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
4510         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
4511         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
4512         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
4513         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
4514         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
4515         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
4516         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
4517         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
4518         * iconvdata/iso646.c (ONE_DIRECTION): Define.
4519         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
4520         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
4521         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
4522         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
4523         * iconvdata/johab.c (ONE_DIRECTION): Define.
4524         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
4525         * iconvdata/sjis.c (ONE_DIRECTION): Define.
4526         * iconvdata/t.61.c (ONE_DIRECTION): Define.
4527         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
4528         * iconvdata/tscii.c (ONE_DIRECTION): Define.
4529         * iconvdata/uhc.c (ONE_DIRECTION): Define.
4530         * iconvdata/unicode.c (ONE_DIRECTION): Define.
4531         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
4532         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
4533         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
4534
4535 2014-05-01  Roland McGrath  <roland@hack.frob.com>
4536
4537         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
4538         (_IO_JUMPS_OFFSET): Define to 0.
4539
4540         * nptl/sysdeps/pthread/bits/libc-lock.h
4541         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
4542         (__libc_lock_define_initialized_recursive): Always define using
4543         initializer.  Modern compilers treat uninitialized (implicit zero) and
4544         explicit zero initializers the same (i.e. put the datum in bss).
4545
4546 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4547
4548         * nscd/nscd-client.h: Include <string.h>.
4549
4550 2014-05-01  David S. Miller  <davem@davemloft.net>
4551
4552         [BZ #16885]
4553         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
4554         multiple zero bytes exist at the end of a string.
4555         Reported by Aurelien Jarno <aurelien@aurel32.net>
4556
4557         * string/test-strcmp.c (check): Add explicit test for situations where
4558         there are multiple zero bytes after the first.
4559
4560 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4561
4562         [BZ #16890]
4563         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
4564         when compiling wprintf.
4565         * stdio-common/tstdiomisc.c (t3): New function.
4566         (main): Call it.
4567
4568 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4569
4570         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
4571         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
4572         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
4573         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
4574
4575 2014-05-01  Steve Ellcey  <sellcey@mips.com>
4576
4577         * stdlib/longlong.h: Updated from GCC.
4578
4579 2014-05-01  Will Newton  <will.newton@linaro.org>
4580             Bernard Ogden  <bernie.ogden@linaro.org>
4581
4582         * NEWS: Update fixed bug list.
4583
4584         [BZ #15119]
4585         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
4586
4587 2014-04-30  David S. Miller  <davem@davemloft.net>
4588
4589         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
4590         (libc_feholdexcept_setround_sparc_ctx): New function.
4591         (libc_fesetenv_sparc_ctx): Likewise.
4592         (libc_feupdateenv_sparc_ctx): Likewise.
4593         (libc_feholdsetround_sparc_ctx): Likewise.
4594         (libc_feholdexcept_setround_ctx): Define.
4595         (libc_feholdexcept_setroundf_ctx): Likewise.
4596         (libc_feholdexcept_setroundl_ctx): Likewise.
4597         (libc_fesetenv_ctx): Likewise.
4598         (libc_fesetenvf_ctx): Likewise.
4599         (libc_fesetenvl_ctx): Likewise.
4600         (libc_feupdateenv_ctx): Likewise.
4601         (libc_feupdateenvf_ctx): Likewise.
4602         (libc_feupdateenvl_ctx): Likewise.
4603         (libc_feresetround_ctx): Likewise.
4604         (libc_feresetroundf_ctx): Likewise.
4605         (libc_feresetroundl_ctx): Likewise.
4606         (libc_feholdsetround_ctx): Likewise.
4607         (libc_feholdsetroundf_ctx): Likewise.
4608         (libc_feholdsetroundl_ctx): Likewise.
4609
4610         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
4611         with __USE_GNU instead of XOPEN cpp guards.
4612
4613         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
4614         0.
4615
4616         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
4617         with XOPEN cpp guards.
4618
4619 2014-04-30  Julian Brown  <julian@codesourcery.com>
4620
4621         [BZ #16888]
4622         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
4623         handling.
4624
4625 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
4626
4627         [BZ #9894]
4628         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
4629         Change to 2.6.32.
4630         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
4631         * sysdeps/unix/sysv/linux/configure: Regenerated.
4632         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
4633         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
4634         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
4635         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
4636         * README: Update reference to required Linux kernel version.
4637         * manual/install.texi (Linux): Update reference to required Linux
4638         kernel headers version.
4639         * INSTALL: Regenerated.
4640
4641         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
4642         header inclusion.
4643         [POSIX] (limits.h): Likewise.
4644         [POSIX] (math.h): Likewise.
4645         [POSIX] (sys/wait.h): Likewise.
4646         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
4647         function.
4648         [POSIX] (stddef.h): Do not allow header inclusion.
4649
4650 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4651
4652         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
4653
4654 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
4655
4656         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
4657         Return immediately after lll_futex_wake.
4658
4659 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4660
4661         [BZ #16791]
4662         * nscd/nscd-client.h (datahead_init_common): Initialize entire
4663         structure.
4664         (datahead_init_pos): Call datahead_init_common early.
4665         (datahead_init_neg): Likewise.
4666
4667         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
4668         datahead_init_neg): New functions.
4669         * nscd/aicache.c (addhstaiX): Use them.
4670         * nscd/grpcache.c (cache_addgr): Likewise.
4671         * nscd/hstcache.c (cache_addhst): Likewise.
4672         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4673         * nscd/netgroupcache.c (do_notfound): Likewise.
4674         (addgetnetgrentX): Likewise.
4675         (addinnetgrX): Likewise.
4676         * nscd/pwdcache.c (cache_addpw): Likewise.
4677         * nscd/servicescache.c (cache_addserv): Likewise.
4678
4679 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4680             Atsushi Onoe  <atsushi@onoe.org>
4681
4682         [BZ #14308]
4683         [BZ #12994]
4684         [BZ #13651]
4685         * resolv/res_query.c (__libc_res_nsearch): Return if at least
4686         one response is valid.
4687         * resolv/res_send.c (send_dg): Check for validity of other
4688         response if the current response is a referral.
4689
4690 2014-04-29  Steve Ellcey  <sellcey@mips.com>
4691
4692         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
4693
4694 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
4695
4696         [BZ #16823]
4697         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
4698         Always divide by positive zero when computing -Inf result.
4699         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
4700         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
4701
4702 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4703
4704         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
4705         FPSCR if value do not change.
4706         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4707         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
4708         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
4709         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
4710         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
4711         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
4712         function.
4713
4714 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
4715
4716         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
4717         * sysdeps/unix/sysv/linux/hppa: Move directory from
4718         ports/systeps/unix/sysv/linux/hppa.
4719         * README: Update listing for hppa-*-linux-gnu.
4720
4721 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
4722
4723         [BZ #16754]
4724         * manual/stdio.texi (Hook functions): Fix types of stream hook
4725         functions.
4726         [BZ #16854]
4727         * socket/sys/socket.h: Fix typo in comment.
4728
4729 2014-04-28  Wilco  <wdijkstr@arm.com>
4730
4731         * sysdeps/arm/fenv_private.h: New file.
4732         * sysdeps/arm/math_private.h: New file.
4733         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
4734
4735 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
4736
4737         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
4738         with __int128_t.
4739         (La_x86_64_retval): Likewise.
4740
4741 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
4742
4743         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
4744         fpsr if value didn't change.
4745         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
4746         to fpcr if value didn't change.
4747         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
4748         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
4749         fpsr or fpcr if value didn't change.
4750         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
4751         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
4752         fpcr if value didn't change.
4753         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
4754         to fpsr if value didn't change.
4755
4756 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4757
4758         * nptl/tst-sem3.c: Use test-skeleton.c
4759         (main): Rename to do_test.  Use return instead of
4760         exit.
4761         * nptl/tst-sem4.c: Use test-skeleton.c
4762         (main): Rename to do_test.
4763
4764 2014-04-22  David S. Miller  <davem@davemloft.net>
4765
4766         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
4767         (struct sigaction): New struct member __glibc_reserved0, change
4768         type of sa_flags to int.
4769
4770 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
4771
4772         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
4773         (COUNT_LEADING_ZEROS_0): Define for AArch64.
4774
4775 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4776
4777         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
4778         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
4779
4780 2014-04-22  Will Newton  <will.newton@linaro.org>
4781             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
4782
4783         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
4784         (__longjmp): Add longjmp and longjmp_target SystemTap
4785         probes.
4786         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
4787         (__sigsetjmp): Add setjmp SystemTap probe.
4788
4789 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
4790
4791         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
4792         match manual order.
4793
4794 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4795
4796         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
4797
4798         * sysdeps/powerpc/fpu/fenv_private.h
4799         (libc_feholdexcept_setroundl_ctx): Define to
4800         libc_feholdexcept_setround_ppc_ctx.
4801         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
4802         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
4803         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
4804         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
4805
4806 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4807
4808         * sysdeps/aarch64/math-tests.h: New file.
4809
4810 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
4811
4812         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
4813         New.
4814         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4815         Check and set bit_AVX2_Usable.
4816         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
4817         macro.
4818         (bit_AVX2): Likewise.
4819         (index_AVX2_Usable): Likewise.
4820         (CPUID_AVX2): Likewise.
4821         (HAS_AVX2): Likewise.
4822
4823 2014-04-17  Will Newton  <will.newton@linaro.org>
4824
4825         * manual/setjmp.texi (System V contexts): Add note that
4826         calling setcontext on a context created by a call to a
4827         signal handler is undefined.  Update text to note that
4828         setcontext from a signal handler is possible but not
4829         recommended.
4830
4831         [BZ #16629]
4832         * stdlib/tst-setcontext.c: Include signal.h.
4833         (main): Check that the signal stack before and
4834         after swapcontext is the same.
4835
4836         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
4837         Re-implement to restore registers in user code and avoid
4838         rt_sigreturn system call.
4839
4840 2014-04-17  Wilco  <wdijkstr@arm.com>
4841
4842         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
4843         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
4844         * math/test-fenv.c: Skip exception trap tests on targets which only
4845         support non-stop mode.
4846
4847 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
4848             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4849
4850         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
4851         (libc_feholdsetround_aarch64_ctx)
4852         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
4853         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
4854         (libc_feresetround_ctx, libc_feresetroundf_ctx)
4855         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
4856         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
4857         (libc_feresetround_noexl_ctx): Define.
4858
4859 2014-04-16  Richard Henderson  <rth@redhat.com>
4860
4861         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
4862
4863         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
4864         unwind tables.
4865
4866         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
4867         const from the non-libc, non-ldso copy.
4868
4869         * sysdeps/alpha/libm-test-ulps: Regenerate.
4870
4871 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
4872             Wilco Dijkstra  <wilco.dijkstra@arm.com>
4873
4874         * sysdeps/aarch64/fpu/math_private.h: New file.
4875
4876 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4877
4878         * sysdeps/aarch64/libm-test-ulps: Regenerate.
4879
4880 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
4881
4882         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
4883         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
4884         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
4885         Intel MPX bound registers before _dl_profile_fixup.
4886         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
4887         registers after _dl_profile_fixup.  Save and restore bound
4888         registers bnd0/bnd1 when calling _dl_call_pltexit.
4889         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
4890         (LR_BND_OFFSET): Likewise.
4891         (LRV_BND0_OFFSET): Likewise.
4892         (LRV_BND1_OFFSET): Likewise.
4893
4894 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4895
4896         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
4897         to...
4898         * sysdeps/mach/hurd/i386/tls.h: ... here.
4899         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
4900         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
4901         fields.
4902
4903 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4904
4905         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
4906
4907 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4908
4909         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4910
4911 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
4912
4913         [BZ #14770]
4914         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
4915         * sysdeps/s390/configure: Regenerate.
4916
4917         [BZ #16824]
4918         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
4919         Set round-to-nearest internally to reduce error accumulation.
4920
4921 2014-04-16  Alan Modra  <amodra@gmail.com>
4922
4923         [BZ #16740]
4924         [BZ #16619]
4925         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
4926         * math/libm-test.inc (frexp_test_data): Add tests.
4927         * NEWS: Update fixed bug list.
4928
4929 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4930
4931         * benchtests/Makefile: Depend on libraries in build directory.
4932         (bench-math): Separate out math tests.
4933         (bench-pthread): Separate out pthread tests.
4934         (bench): Include math and pthread tests.
4935
4936 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
4937
4938         [BZ #16831]
4939         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
4940         _dl_debug_initialize.
4941
4942         * configure.ac: Remove SELinux header check.
4943         * configure: Regenerate.
4944         * nscd/selinux.c (perms): Array of const char* to permission names.
4945         (nscd_request_avc_has_perm): Call security_deny_unknown to find
4946         default policy. Call string_to_security_class and string_to_av_perm to
4947         translate strings. Enforce default policy and call avs_has_perm with
4948         results of translated strings.
4949
4950 2014-04-13  David S. Miller  <davem@davemloft.net>
4951
4952         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4953
4954 2014-04-12  Allan McRae  <allan@archlinux.org>
4955
4956         [BZ #16838]
4957         * manual/string.texi (Collation Functions): Fix qsort argument
4958         order in example.
4959         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
4960
4961 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
4962
4963         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
4964         Make the test a no-op if there are no exceptions defined.
4965
4966 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
4967
4968         * elf/Makefile (tests): make tst-dlopen-aout conditional on
4969         enable-hardcoded-path-in-tests
4970
4971 2014-04-11  Will Newton  <will.newton@linaro.org>
4972
4973         * benchtests/Makefile (extra-objs): Add json-lib.o.
4974         (bench-func): Tidy up JSON output.
4975         * benchtests/bench-skeleton.c: Include json-lib.h.
4976         (main): Use JSON library functions to do output of
4977         benchmark results.
4978         * benchtests/bench-timing-type.c (main): Output the
4979         timing type simply, leaving formatting to the user.
4980         * benchtests/json-lib.c: New file.
4981         * benchtests/json-lib.h: Likewise.
4982
4983 2014-04-11  Torvald Riegel  <triegel@redhat.com>
4984
4985         [BZ #15215]
4986         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
4987         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
4988         memory barriers.  Add comments.
4989         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
4990         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
4991         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
4992         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
4993         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
4994         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
4995
4996 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
4997
4998         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
4999         * sysdeps/s390/s390-64/configure.ac: ... this ...
5000         * sysdeps/s390/configure.ac: ... to here.
5001         * sysdeps/s390/s390-32/configure: Delete file.
5002         * sysdeps/s390/s390-64/configure: Delete file.
5003         * sysdeps/s390/configure: Regenerate.
5004
5005 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
5006
5007         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
5008
5009 2014-04-11  Will Newton  <will.newton@linaro.org>
5010
5011         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
5012         to zero if it is not defined elsewhere.  (mtrim): Test
5013         the value of MALLOC_DEBUG with #if rather than #ifdef.
5014
5015 2014-04-10 Torvald Riegel  <triegel@redhat.com>
5016
5017         * benchtests/pthread_once-inputs: New file.
5018         * benchtests/pthread_once-source.c: New file.
5019         * benchtests/README: Update documentation.
5020
5021 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
5022             H.J. Lu  <hongjiu.lu@intel.com>
5023
5024         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
5025         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
5026         * sysdeps/x86_64/configure: Regenerated.
5027         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
5028         macro.
5029         (REGISTER_SAVE_RAX): Likewise.
5030         (REGISTER_SAVE_RCX): Likewise.
5031         (REGISTER_SAVE_RDX): Likewise.
5032         (REGISTER_SAVE_RSI): Likewise.
5033         (REGISTER_SAVE_RDI): Likewise.
5034         (REGISTER_SAVE_R8): Likewise.
5035         (REGISTER_SAVE_R9): Likewise.
5036         (REGISTER_SAVE_BND0): Likewise.
5037         (REGISTER_SAVE_BND1): Likewise.
5038         (REGISTER_SAVE_BND2): Likewise.
5039         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
5040         bound registers when calling _dl_fixup.
5041
5042 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5043
5044         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
5045         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
5046         of its definition.
5047         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
5048         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
5049         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
5050         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
5051         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
5052         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
5053         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
5054
5055 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
5056
5057         [BZ #15514]
5058         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
5059         pathconf(_PC_NAME_MAX).
5060
5061 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5062
5063         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
5064         Remove macro usage.
5065         (__PTHREAD_SPINS): Move definition to ...
5066         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5067         (__PTHREAD_SPINS): ... here.
5068         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5069         (__PTHREAD_SPIN): Likewise.
5070         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
5071         (__PTHREAD_SPIN): Likewise.
5072         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
5073         (__PTHREAD_SPIN): Likewise.
5074         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
5075         (__PTHREAD_SPIN): Likewise.
5076         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
5077         (__PTHREAD_SPIN): Likewise.
5078         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
5079         (__PTHREAD_SPIN): Likewise.
5080         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
5081         (__PTHREAD_SPIN): Likewise.
5082         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
5083         (__PTHREAD_SPIN): Likewise.
5084         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
5085         (__PTHREAD_SPIN): Likewise.
5086         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
5087         (__PTHREAD_SPIN): Likewise.
5088         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
5089         (__PTHREAD_SPIN): Likewise.
5090         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
5091         (__PTHREAD_SPIN): Likewise.
5092
5093         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5094         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
5095         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
5096         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
5097         imply folder.
5098         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
5099         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
5100         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
5101         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
5102         correct imply path.
5103         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
5104         strlen symbol for non multi-arch builds.
5105         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
5106         missing hidden_def and weak_alias.
5107
5108 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
5109
5110         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
5111
5112 2014-04-07  Will Newton  <will.newton@linaro.org>
5113
5114         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
5115         and contents.  [!_LIBC] Remove #ifndef and contents.
5116         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
5117         * string/memccpy.c (__memccpy): Use ANSI prototype.
5118         * string/memfrob.c (memfrob): Likewise.
5119         * string/strcoll.c (STRCOLL): Likewise.
5120         * string/strlen.c (strlen): Likewise.
5121         * string/strtok.c (STRTOK): Likewise.
5122         * string/strcat.c: Remove unused #include of memcopy.h.
5123         (strcat): Use ANSI prototype.
5124         * string/strchr.c: Remove unused #include of memcopy.h.
5125         (strchr): Use ANSI prototype.
5126         * string/strcmp.c: Remove unused #include of memcopy.h.
5127         (strcmp): Use ANSI prototype.
5128         * string/strcpy.c: Remove unused #include of memcopy.h.
5129         (strcpy): Use ANSI prototype.
5130
5131 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5132
5133         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
5134         * config.make.in (config-extra-cppflags): Set it from
5135         libc_extra_cppflags.
5136         * configure.ac (libc_extra_cflags): Make it accumulate over
5137         configure fragments.
5138         (libc_extra_cppflags): New flag.
5139         * configure. Regenerate.
5140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
5141         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
5142         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
5143         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
5144
5145         [BZ #16815]
5146         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
5147         result for FE_DOWNWARD rounding mode.
5148         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
5149         Likewise.
5150         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5151
5152 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
5153
5154         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
5155         in function argument name.
5156
5157 2014-04-03  David Svoboda  <svoboda@cert.org>
5158
5159         [BZ #5666]
5160         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
5161         explicitly.
5162
5163 2014-04-03  Roland McGrath  <roland@hack.frob.com>
5164
5165         * elf/dl-unmap-segments.h: New file.
5166         * sysdeps/generic/ldsodefs.h
5167         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
5168         * elf/dl-close.c: Include <dl-unmap-segments.h>.
5169         * elf/dl-fptr.c: Likewise.
5170         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
5171         * sysdeps/aarch64/tlsdesc.c: Likewise.
5172         * sysdeps/arm/tlsdesc.c: Likewise.
5173         * sysdeps/i386/tlsdesc.c: Likewise.
5174         * sysdeps/tile/dl-runtime.c: Likewise.
5175         * sysdeps/x86_64/tlsdesc.c: Likewise.
5176         * elf/dl-load.h: New file.
5177         * elf/dl-load.c: Include it.
5178         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
5179         Macros moved to dl-load.h.
5180         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
5181         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
5182         Use _dl_unmap_segments in place of __munmap.
5183         Break out segment-mapping loop into ...
5184         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
5185
5186 2014-04-03  Will Newton  <will.newton@linaro.org>
5187
5188         * elf/dl-lookup.c (do_lookup_x): Remove comment
5189         referring to nested function and move variable
5190         declarations down to before first use.
5191
5192 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
5193
5194         [BZ #16799]
5195         [BZ #16800]
5196         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
5197         with 0 numerator.
5198         * math/s_catanf.c (__catanf): Likewise.
5199         * math/s_catanh.c (__catanh): Likewise.
5200         * math/s_catanhf.c (__catanhf): Likewise.
5201         * math/s_catanhl.c (__catanhl): Likewise.
5202         * math/s_catanl.c (__catanl): Likewise.
5203         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
5204         by positive zero when computing -Inf result.
5205         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
5206         (catanh_test): Likewise.
5207         * sysdeps/i386/fpu/libm-test-ulps: Update.
5208         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5209
5210         [BZ #16789]
5211         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
5212         instead of using underflowing value in computing result.
5213         * math/s_clog10.c (__clog10): Likewise.
5214         * math/s_clog10f.c (__clog10f): Likewise.
5215         * math/s_clog10l.c (__clog10l): Likewise.
5216         * math/s_clogf.c (__clogf): Likewise.
5217         * math/s_clogl.c (__clogl): Likewise.
5218         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
5219         (clog10_test): Likewise.
5220         * sysdeps/i386/fpu/libm-test-ulps: Update.
5221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5222
5223 2014-04-02  Alan Modra  <amodra@gmail.com>
5224
5225         [BZ #16739]
5226         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
5227         output when value is near a power of two.  Use int64_t for lx and
5228         remove casts.  Use decimal rather than hex exponent constants.
5229         Don't use long double multiplication when double will suffice.
5230         * math/libm-test.inc (nextafter_test_data): Add tests.
5231         * NEWS: Add 16739 and 16786 to bug list.
5232
5233         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
5234
5235         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
5236
5237 2014-04-01  Will Newton  <will.newton@linaro.org>
5238
5239         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
5240         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
5241
5242 2014-04-01  Florian Weimer  <fweimer@redhat.com>
5243
5244         [BZ #13347]
5245         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
5246         * nptl/tst-setuid2.c: New file.
5247         * nptl/Makefile (xtests): Add tst-setuid2.
5248
5249 2014-04-01  Alan Modra  <amodra@gmail.com>
5250
5251         [BZ #16786]
5252         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
5253
5254 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
5255
5256         [BZ #6803]
5257         [BZ #6804]
5258         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
5259         set errno as appropriate.
5260         * math/w_scalbf.c (__scalbf): Likewise.
5261         * math/w_scalbl.c (__scalbl): Likewise.
5262         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
5263         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
5264         * math/libm-test.inc (scalb_test_data): Add errno expectations.
5265         Add more NaN tests.
5266
5267         [BZ #16349]
5268         * math/w_atan2.c: Include <errno.h>.
5269         (__atan2): Set errno for result underflowing to zero.
5270         * math/w_atan2f.c: Include <errno.h>.
5271         (__atan2f): Set errno for result underflowing to zero.
5272         * math/w_atan2l.c: Include <errno.h>.
5273         (__atan2l): Set errno for result underflowing to zero.
5274         * math/auto-libm-test-in: Don't allow missing errno for some atan2
5275         tests.
5276         * math/auto-libm-test-out: Regenerated.
5277
5278 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5279
5280         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
5281         Encode instruction correctly in little endian.
5282         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
5283         Likewise.
5284         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
5285         Likewise.
5286         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
5287         Likewise.
5288         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
5289         Likewise.
5290
5291 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
5292
5293         [BZ #9894]
5294         * sysdeps/unix/sysv/linux/kernel-features.h
5295         [__sparc__ && !__arch64__ && !__sparc_v9__]
5296         (__ASSUME_SET_ROBUST_LIST): Do not define.
5297         [__sparc__ && !__arch64__ && !__sparc_v9__]
5298         (__ASSUME_FUTEX_LOCK_PI): Likewise.
5299         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
5300         Likewise.
5301         * sysdeps/unix/sysv/linux/arm/kernel-features.h
5302         (__ASSUME_FUTEX_LOCK_PI): Undefine.
5303         (__ASSUME_REQUEUE_PI): Likewise.
5304         (__ASSUME_SET_ROBUST_LIST): Likewise.
5305         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5306         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
5307         Undefine.
5308         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5309         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
5310         Likewise.
5311         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
5312         Likewise.
5313         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
5314         Likewise.
5315         * sysdeps/unix/sysv/linux/mips/kernel-features.h
5316         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
5317         Undefine.
5318         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
5319         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
5320         Likewise.
5321
5322         [BZ #16648]
5323         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5324         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
5325         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
5326
5327 2014-03-31  Will Newton  <will.newton@linaro.org>
5328
5329         * benchtests/Makefile (bench): Add ffs and ffsll to list
5330         of tests.
5331         * benchtests/ffs-inputs: New file.
5332         * benchtests/ffsll-inputs: Likewise.
5333
5334 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
5335
5336         [BZ #16770]
5337         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
5338         too large before casting to int.
5339         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
5340         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
5341         * math/libm-test.inc (scalb_test_data): Add more tests.
5342
5343 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5344
5345         * benchtests/Makefile (DETAILED_OPT): New make option.
5346         (bench-func): Run benchmark program with -d if DETAILED_OPT is
5347         set.
5348         * benchtests/bench-skeleton.c: Include stdbool.h.
5349         (main): Store and print timings per input.
5350         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
5351         member to each argument value.
5352         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
5353         (_print_arg_data): Initialize per-input timing to 0.
5354
5355         * benchtests/Makefile (timing-type): New binary.
5356         (bench-clean): Also remove bench-timing-type.
5357         (bench): New target for timing-type.
5358         (bench-func): Print output in JSON format.
5359         * benchtests/bench-skeleton.c (main): Print output in JSON
5360         format.
5361         * benchtests/bench-timing-type.c: New file.
5362         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
5363         (TIMING_PRINT_STATS): Remove.
5364         * benchtests/scripts/bench.py (_print_arg_data): Store variant
5365         name separately.
5366
5367         * benchtests/bench-modf.c: Remove.
5368         * benchtests/modf-inputs: New inputs file.
5369
5370 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
5371
5372         [BZ #16362]
5373         * math/s_clog10.c (M_PI_LOG10E): New macro.
5374         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
5375         imaginary parts are 0.
5376         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
5377         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
5378         imaginary parts are 0.
5379         * math/s_clog10l.c (M_PI_LOG10El): New macro.
5380         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
5381         imaginary parts are 0.
5382         * math/libm-test.inc (clog10_test_data): Update expected results
5383         for when real and imaginary parts are 0.
5384
5385 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
5386
5387         * elf/dl-load.c: Finish conversion of __builtin_expect into
5388         __glibc_{un}likely.
5389
5390 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
5391
5392         [BZ #16348]
5393         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
5394         1+x for argument with exponent below -67.
5395         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
5396         Likewise.
5397         * math/auto-libm-test-in: Add more tests of exp.
5398         * math/auto-libm-test-out: Regenerated.
5399
5400 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5401
5402         [BZ #16759]
5403         * inet/getnetgrent_r.c (get_nonempty_val): New function.
5404         (nscd_getnetgrent): Use it.
5405
5406         [BZ #16760]
5407         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
5408         of stpcpy.
5409
5410 2014-03-27  Andi Kleen  <ak@linux.intel.com>
5411
5412         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
5413         (lll_robust_lock, lll_cond_lock, lll_timedlock)
5414         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
5415         (lll_robust_unlock): Remove out of line section. Use cfi
5416         intrinsics.
5417         (LLL_STUB_UNWIND_INFO*): Remove.
5418         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
5419         (lll_robust_lock, lll_cond_lock, lll_timedlock)
5420         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
5421         (lll_robust_unlock): Remove out of line section. Use cfi
5422         intrinsics.
5423         (LLL_STUB_UNWIND_INFO*): Remove.
5424
5425 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5426
5427         [BZ #16758]
5428         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
5429         blank values.
5430
5431 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
5432
5433         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
5434
5435 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
5436
5437         [BZ #16198]
5438         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
5439         fnstenv.
5440         * math/test-fenv-preserve.c: New file.
5441         * math/Makefile (tests): Add test-fenv-preserve.
5442
5443 2014-03-26  Will Newton <will.newton@linaro.org>
5444
5445         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
5446
5447 2014-03-25  Roland McGrath  <roland@hack.frob.com>
5448
5449         * scripts/versionlist.awk: Partition the version sets and emit all
5450         GLIBC_* (sorted) before all others (sorted).
5451
5452 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
5453
5454         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
5455         GLIBC_2.2.5 version.
5456
5457 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5458
5459         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
5460         calls.
5461
5462         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
5463         previous change.
5464
5465         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5466
5467 2014-03-25  Andreas Schwab  <schwab@suse.de>
5468
5469         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
5470         label to be used after in6ailist is initialized.
5471
5472 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5473
5474         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5475         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
5476
5477 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
5478
5479         [BZ #16357]
5480         [BZ #16599]
5481         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
5482         min_plus_half.
5483         (fp_formats): Update initializers.
5484         (init_fp_formats): Initialize new field.
5485         (output_for_one_input_case): Allow underflow for results up to
5486         min_plus_half.
5487         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
5488         * math/auto-libm-test-in: Don't mark some underflows from asin and
5489         atanh as spurious.
5490         * math/auto-libm-test-out: Regenerated.
5491         * sysdeps/i386/fpu/libm-test-ulps: Update.
5492         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5493
5494 2014-03-25  Andreas Schwab  <schwab@suse.de>
5495
5496         * libio/Makefile (tst-ftell-partial-wide-ENV)
5497         (tst-ftell-active-handler-ENV): Define.
5498
5499 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
5500
5501         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
5502
5503 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
5504
5505         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
5506
5507 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
5508
5509         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
5510         * sysdeps/x86_64/fpu/multiarch/e_exp.c
5511         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
5512
5513 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
5514
5515         [BZ #16634]
5516         * elf/dl-load.c (open_verify): Add mode parameter.
5517         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
5518         (open_path): Change from boolean 'secure' to complete flag 'mode'
5519         (_dl_map_object): Adjust.
5520         * elf/Makefile (tests): Add tst-dlopen-aout.
5521         * elf/tst-dlopen-aout.c: New test.
5522
5523 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
5524
5525         [BZ #16714]
5526         * sysdeps/unix/sysv/linux/s390/bits/stat.h
5527         (struct stat): Rename member pad0 to __glibc_reserved0.
5528
5529         [BZ #16712]
5530         * sysdeps/s390/s390-32/bits/wordsize.h
5531         (__WORDSIZE32_SIZE_ULONG): New define.
5532         * sysdeps/s390/s390-64/bits/wordsize.h
5533         (__WORDSIZE32_SIZE_ULONG): Likewise.
5534         * sysdeps/generic/stdint.h (SIZE_MAX):
5535         Define as UL if __WORDSIZE32_SIZE_ULONG.
5536
5537         [BZ #16713]
5538         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
5539         (__glibc_reserved0): New variable.
5540         (sa_flags): Change type to int.
5541
5542         * posix/Makefile (before-compile): Use += before-compile instead
5543         of a :=.
5544
5545         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5546         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
5547
5548 2014-03-20  Andreas Schwab  <schwab@suse.de>
5549
5550         [BZ #16743]
5551         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
5552         non-matching result from nscd.
5553
5554 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5555
5556         * scripts/bench.py: Moved to ...
5557         * benchtests/scripts/bench.py: ... here.
5558         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
5559
5560 2014-03-24  Andreas Schwab  <schwab@suse.de>
5561
5562         [BZ #16002]
5563         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
5564         alloca_account and account alloca use for struct in6ailist.
5565
5566 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
5567
5568         [BZ #16284]
5569         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
5570         rounding mode to recompute results that overflow to infinity or
5571         underflow to zero.
5572         * math/auto-libm-test-in: Don't mark tests as expected to fail for
5573         bug 16284.
5574         * math/auto-libm-test-out: Regenerated.
5575         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
5576         (ccosh_test): Likewise.
5577         (csin_test_data): Use plus_oflow.
5578         (csin_test): Use ALL_RM_TEST.
5579         (csinh_test_data): Use plus_oflow.
5580         (csinh_test): Use ALL_RM_TEST.
5581         * sysdeps/i386/fpu/libm-test-ulps: Update.
5582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5583
5584 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
5585
5586         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
5587         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
5588         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
5589
5590         [BZ #16731]
5591         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
5592         when x - 1 is zero.
5593         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
5594         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
5595         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
5596         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
5597         argument is 1.
5598         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
5599         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
5600         zero.
5601         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
5602         * sysdeps/i386/fpu/libm-test-ulps: Update.
5603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5604
5605 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5606
5607         * scripts/bench.pl: Remove file.
5608         * scripts/bench.py: New benchmark script.
5609         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
5610         * benchtests/README: Mention python dependency.
5611         * scripts/pylintrc: New file.
5612         * scripts/pylint: New file.
5613
5614         * bits/mathdef.h: Use #ifdef instead of #if.
5615         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
5616         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5617         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
5618         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5619         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
5620         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
5621
5622 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5623             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5624
5625         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
5626         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
5627         and strpbrk-ppc64 objects.
5628         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5629         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
5630         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
5631         multiarch strpbrk for POWER7.
5632         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
5633         multiarch strpbrk for PPC64.
5634         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
5635         ifunc selector.
5636         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
5637         strpbrk for POWER7.
5638
5639 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5640
5641         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
5642         (atan_test): Likewise.
5643         (atanh_test_data): Use NO_TEST_INLINE for two tests.
5644         (atanh_test): Use ALL_RM_TEST.
5645         (atan2_test_data): Likewise.
5646         (cabs_test): Likewise.
5647         (cacosh_test): Likewise.
5648         (carg_test): Likewise.
5649         (casin_test): Likewise.
5650         (casinh_test): Likewise.
5651         (cbrt_test): Likewise.
5652         (csqrt_test): Likewise.
5653         (erf_test): Likewise.
5654         (erfc_test): Likewise.
5655         (pow10_test): Likewise.
5656         (exp2_test): Likewise.
5657         (hypot_test): Likewise.
5658         (j0_test): Likewise.
5659         (j1_test): Likewise.
5660         (lgamma_test): Likewise.
5661         (gamma_test): Likewise.
5662         (sincos_test): Likewise.
5663         (tanh_test): Likewise.
5664         (y0_test): Likewise.
5665         (y1_test): Likewise.
5666         * sysdeps/i386/fpu/libm-test-ulps: Update.
5667         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5668
5669 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5670
5671         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
5672         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
5673         and strcspn-ppc64 objects.
5674         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5675         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
5676         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
5677         multiarch strcspn for POWER7.
5678         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
5679         multiarch strcspn for PPC64.
5680         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
5681         ifunc selector.
5682         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
5683         strcspn for POWER7.
5684
5685 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
5686
5687         * math/gen-libm-test.pl (generate_testfile): Expect only function
5688         name as argument to AUTO_TESTS_* and pass results for all rounding
5689         modes to parse_args.
5690         (parse_auto_input): Separate inputs of automatic tests from
5691         outputs before storing in %auto_tests.
5692         * math/libm-test.inc (acos_test_data): Update call to
5693         AUTO_TESTS_f_f.
5694         (acos_test): Use ALL_RM_TEST.
5695         (acos_tonearest_test_data): Remove.
5696         (acos_test_tonearest): Likewise.
5697         (acos_towardzero_test_data): Likewise.
5698         (acos_test_towardzero): Likewise.
5699         (acos_downward_test_data): Likewise.
5700         (acos_test_downward): Likewise.
5701         (acos_upward_test_data): Likewise.
5702         (acos_test_upward): Likewise.
5703         (acosh_test_data): Update call to AUTO_TESTS_f_f.
5704         (asin_test_data): Likewise.
5705         (asin_test): Use ALL_RM_TEST.
5706         (asin_tonearest_test_data): Remove.
5707         (asin_test_tonearest): Likewise.
5708         (asin_towardzero_test_data): Likewise.
5709         (asin_test_towardzero): Likewise.
5710         (asin_downward_test_data): Likewise.
5711         (asin_test_downward): Likewise.
5712         (asin_upward_test_data): Likewise.
5713         (asin_test_upward): Likewise.
5714         (asinh_test_data): Update call to AUTO_TESTS_f_f.
5715         (atan_test_data): Likewise.
5716         (atanh_test_data): Likewise.
5717         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
5718         (cabs_test_data): Update call to AUTO_TESTS_c_f.
5719         (carg_test_data): Likewise.
5720         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
5721         (ccos_test_data): Update call to AUTO_TESTS_c_c.
5722         (ccosh_test_data): Likewise.
5723         (cexp_test_data): Likewise.
5724         (clog_test_data): Likewise.
5725         (clog10_test_data): Likewise.
5726         (cos_test_data): Update call to AUTO_TESTS_f_f.
5727         (cos_test): Use ALL_RM_TEST.
5728         (cos_tonearest_test_data): Remove.
5729         (cos_test_tonearest): Likewise.
5730         (cos_towardzero_test_data): Likewise.
5731         (cos_test_towardzero): Likewise.
5732         (cos_downward_test_data): Likewise.
5733         (cos_test_downward): Likewise.
5734         (cos_upward_test_data): Likewise.
5735         (cos_test_upward): Likewise.
5736         (cosh_test_data): Update call to AUTO_TESTS_f_f.
5737         (cosh_test): Use ALL_RM_TEST.
5738         (cosh_tonearest_test_data): Remove.
5739         (cosh_test_tonearest): Likewise.
5740         (cosh_towardzero_test_data): Likewise.
5741         (cosh_test_towardzero): Likewise.
5742         (cosh_downward_test_data): Likewise.
5743         (cosh_test_downward): Likewise.
5744         (cosh_upward_test_data): Likewise.
5745         (cosh_test_upward): Likewise.
5746         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
5747         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
5748         (ctan_test_data): Likewise.
5749         (ctan_test): Use ALL_RM_TEST.
5750         (ctan_tonearest_test_data): Remove.
5751         (ctan_test_tonearest): Likewise.
5752         (ctan_towardzero_test_data): Likewise.
5753         (ctan_test_towardzero): Likewise.
5754         (ctan_downward_test_data): Likewise.
5755         (ctan_test_downward): Likewise.
5756         (ctan_upward_test_data): Likewise.
5757         (ctan_test_upward): Likewise.
5758         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
5759         (ctanh_test): Use ALL_RM_TEST.
5760         (ctanh_tonearest_test_data): Remove.
5761         (ctanh_test_tonearest): Likewise.
5762         (ctanh_towardzero_test_data): Likewise.
5763         (ctanh_test_towardzero): Likewise.
5764         (ctanh_downward_test_data): Likewise.
5765         (ctanh_test_downward): Likewise.
5766         (ctanh_upward_test_data): Likewise.
5767         (ctanh_test_upward): Likewise.
5768         (erf_test_data): Update call to AUTO_TESTS_f_f.
5769         (erfc_test_data): Likewise.
5770         (exp_test_data): Likewise.
5771         (exp_test): Use ALL_RM_TEST.
5772         (exp_tonearest_test_data): Remove.
5773         (exp_test_tonearest): Likewise.
5774         (exp_towardzero_test_data): Likewise.
5775         (exp_test_towardzero): Likewise.
5776         (exp_downward_test_data): Likewise.
5777         (exp_test_downward): Likewise.
5778         (exp_upward_test_data): Likewise.
5779         (exp_test_upward): Likewise.
5780         (exp10_test_data): Update call to AUTO_TESTS_f_f.
5781         (exp10_test): Use ALL_RM_TEST.
5782         (exp10_tonearest_test_data): Remove.
5783         (exp10_test_tonearest): Likewise.
5784         (exp10_towardzero_test_data): Likewise.
5785         (exp10_test_towardzero): Likewise.
5786         (exp10_downward_test_data): Likewise.
5787         (exp10_test_downward): Likewise.
5788         (exp10_upward_test_data): Likewise.
5789         (exp10_test_upward): Likewise.
5790         (exp2_test_data): Update call to AUTO_TESTS_f_f.
5791         (expm1_test_data): Likewise.
5792         (expm1_test): Use ALL_RM_TEST.
5793         (expm1_tonearest_test_data): Remove.
5794         (expm1_test_tonearest): Likewise.
5795         (expm1_towardzero_test_data): Likewise.
5796         (expm1_test_towardzero): Likewise.
5797         (expm1_downward_test_data): Likewise.
5798         (expm1_test_downward): Likewise.
5799         (expm1_upward_test_data): Likewise.
5800         (expm1_test_upward): Likewise.
5801         (fma_test_data): Update call to AUTO_TESTS_fff_f.
5802         (fma_test): Use ALL_RM_TEST.
5803         (fma_towardzero_test_data): Remove.
5804         (fma_test_towardzero): Likewise.
5805         (fma_downward_test_data): Likewise.
5806         (fma_test_downward): Likewise.
5807         (fma_upward_test_data): Likewise.
5808         (fma_test_upward): Likewise.
5809         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
5810         (j0_test_data): Update call to AUTO_TESTS_f_f.
5811         (j1_test_data): Likewise.
5812         (jn_test_data): Update call to AUTO_TESTS_if_f.
5813         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
5814         (log_test_data): Update call to AUTO_TESTS_f_f.
5815         (log10_test_data): Likewise.
5816         (log1p_test_data): Likewise.
5817         (log2_test_data): Likewise.
5818         (pow_test_data): Update call to AUTO_TESTS_ff_f.
5819         (pow_tonearest_test_data): Likewise.
5820         (sin_test_data): Update call to AUTO_TESTS_f_f.
5821         (sin_test): Use ALL_RM_TEST.
5822         (sin_tonearest_test_data): Remove.
5823         (sin_test_tonearest): Likewise.
5824         (sin_towardzero_test_data): Likewise.
5825         (sin_test_towardzero): Likewise.
5826         (sin_downward_test_data): Likewise.
5827         (sin_test_downward): Likewise.
5828         (sin_upward_test_data): Likewise.
5829         (sin_test_upward): Likewise.
5830         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
5831         (sinh_test_data): Update call to AUTO_TESTS_f_f.
5832         (sinh_test): Use ALL_RM_TEST.
5833         (sinh_tonearest_test_data): Remove.
5834         (sinh_test_tonearest): Likewise.
5835         (sinh_towardzero_test_data): Likewise.
5836         (sinh_test_towardzero): Likewise.
5837         (sinh_downward_test_data): Likewise.
5838         (sinh_test_downward): Likewise.
5839         (sinh_upward_test_data): Likewise.
5840         (sinh_test_upward): Likewise.
5841         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
5842         (sqrt_test): Use ALL_RM_TEST.
5843         (sqrt_tonearest_test_data): Remove.
5844         (sqrt_test_tonearest): Likewise.
5845         (sqrt_towardzero_test_data): Likewise.
5846         (sqrt_test_towardzero): Likewise.
5847         (sqrt_downward_test_data): Likewise.
5848         (sqrt_test_downward): Likewise.
5849         (sqrt_upward_test_data): Likewise.
5850         (sqrt_test_upward): Likewise.
5851         (tan_test_data): Update call to AUTO_TESTS_f_f.
5852         (tan_test): Use ALL_RM_TEST.
5853         (tan_tonearest_test_data): Remove.
5854         (tan_test_tonearest): Likewise.
5855         (tan_towardzero_test_data): Likewise.
5856         (tan_test_towardzero): Likewise.
5857         (tan_downward_test_data): Likewise.
5858         (tan_test_downward): Likewise.
5859         (tan_upward_test_data): Likewise.
5860         (tan_test_upward): Likewise.
5861         (tanh_test_data): Update call to AUTO_TESTS_f_f.
5862         (tgamma_test_data): Likewise.
5863         (y0_test_data): Likewise.
5864         (y1_test_data): Likewise.
5865         (yn_test_data): Update call to AUTO_TESTS_if_f.
5866         (main): Do not call removed functions.
5867
5868 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5869
5870         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
5871         (ldexp_test_data): Remove.
5872         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
5873         scalbn_test_data.
5874         (scalb_test): Use ALL_RM_TEST.
5875
5876 2014-03-19  Andreas Schwab  <schwab@suse.de>
5877
5878         * nscd/nscd.service: Also invalidate netgroup cache on reload.
5879
5880 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
5881
5882         [BZ #16649]
5883         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5884         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
5885         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
5886         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5887         (__ASSUME_PREADV): Undefine.
5888         (__ASSUME_PWRITEV): Likewise.
5889
5890 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5891
5892         * bits/mman-linux.h: Add comment about non-Linux use.
5893         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
5894         bits/mman-linux.h resting place.
5895
5896         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
5897         * bits/mman-linux.h: ... here.
5898
5899 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5900
5901         * conform/conformtest.pl: Add standard definition when calling C
5902         preprocessor on data files.
5903         (checknamespace): Remove unused variable.
5904
5905 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5906
5907         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
5908         minus_oflow, plus_uflow and minus_uflow in expected results.
5909         * math/libm-test.inc (scalbn_test_data): Add more tests of
5910         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
5911         minus_uflow.
5912         (scalbn_test): Use ALL_RM_TEST.
5913         (scalbln_test_data): Add more tests of negative arguments.  Use
5914         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
5915         (scalbln_test): Use ALL_RM_TEST.
5916
5917 2014-03-18  Roland McGrath  <roland@hack.frob.com>
5918
5919         * scripts/abilist.awk: Ignore symbols marked with .hidden.
5920
5921 2014-03-18  Will Newton  <will.newton@linaro.org>
5922
5923         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
5924         inaccurate comment.
5925
5926 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
5927
5928         * Makerules [!subdir] (check-abi): Exit with error status if a
5929         test failed.
5930
5931 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
5932
5933         * math/libm-test.inc (nearbyint_test_data): Include all tests used
5934         for rint.  Include results for all rounding modes.
5935         (nearbyint_test): Use ALL_RM_TEST.
5936         (rint_test_data): Include all tests used for nearbyint.
5937
5938 2014-03-17  Will Newton  <will.newton@linaro.org>
5939
5940         * nptl/sysdeps/pthread/pthread.h: Revert previous
5941         change.
5942
5943         * sysdeps/generic/ldsodefs.h: Revert previous
5944         change.
5945
5946         * libio/genops.c: Revert previous change.
5947         * libio/libioP.h: Likewise.
5948         * stdio-common/vfprintf.c: Likewise.
5949
5950         * sysdeps/generic/math_private.h: Revert previous
5951         change.
5952
5953         * sysdeps/generic/math_private.h: Check whether
5954         HAVE_RM_CTX is defined with #ifdef rather
5955         than #if.
5956
5957         * argp/argp-fmtstream.h: Check whether
5958         __STRICT_ANSI__ is defined with #ifdef rather
5959         than #if.
5960         * argp/argp.h: Likewise.
5961
5962         * libio/genops.c: Check whether
5963         _IO_JUMPS_OFFSET is defined with #ifdef rather
5964         than #if.
5965         * libio/libioP.h: Likewise.
5966         * stdio-common/vfprintf.c: Likewise.
5967
5968         * sysdeps/generic/ldsodefs.h: Check whether
5969         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
5970         than #if.
5971
5972         * nptl/sysdeps/pthread/pthread.h: Check
5973         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
5974         its value.
5975
5976 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5977
5978         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
5979         setting O_APPEND.
5980         * libio/tst-ftell-active-handler.c (do_append_test): Add a
5981         test case.
5982
5983         [BZ #16680]
5984         * libio/fileops.c (_IO_file_open): Seek to end of file but
5985         don't cache the offset.
5986         (get_file_offset): Remove function.
5987         (do_ftell): Use cached offset when available.
5988         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
5989         don't cache the offset.
5990         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
5991         case.
5992         (do_one_test): Call it.
5993         (do_ftell_test): Fix up expected old offset for a+ mode.
5994         * libio/wfileops.c (do_ftell_wide): Used cached offset when
5995         available.
5996
5997         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
5998         up test status with function return status.
5999         (do_write_test): Likewise.
6000         (do_append_test): Likewise.
6001
6002         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
6003         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
6004         Remove.
6005
6006 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
6007
6008         * math/gen-libm-test.pl (parse_args): Handle results specified for
6009         each rounding mode separately.
6010         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
6011         tests and results from lrint_tonearest_test_data,
6012         lrint_towardzero_test_data, lrint_downward_test_data and
6013         lrint_upward_test_data.
6014         (lrint_test): Use ALL_RM_TEST.
6015         (lrint_tonearest_test_data): Remove.
6016         (lrint_test_tonearest): Likewise.
6017         (lrint_towardzero_test_data): Likewise.
6018         (lrint_test_towardzero): Likewise.
6019         (lrint_downward_test_data): Likewise.
6020         (lrint_test_downward): Likewise.
6021         (lrint_upward_test_data): Likewise.
6022         (lrint_test_upward): Likewise.
6023         (llrint_test_data): Merge in per-rounding-mode tests and results
6024         from llrint_tonearest_test_data, llrint_towardzero_test_data,
6025         llrint_downward_test_data and llrint_upward_test_data.
6026         (llrint_test): Use ALL_RM_TEST.
6027         (llrint_tonearest_test_data): Remove.
6028         (llrint_test_tonearest): Likewise.
6029         (llrint_towardzero_test_data): Likewise.
6030         (llrint_test_towardzero): Likewise.
6031         (llrint_downward_test_data): Likewise.
6032         (llrint_test_downward): Likewise.
6033         (llrint_upward_test_data): Likewise.
6034         (llrint_test_upward): Likewise.
6035         (rint_test_data): Merge in per-rounding-mode tests and results
6036         from rint_tonearest_test_data, rint_towardzero_test_data,
6037         rint_downward_test_data and rint_upward_test_data.  Add
6038         per-rounding-mode results for tests not in those arrays.
6039         (rint_test): Use ALL_RM_TEST.
6040         (rint_tonearest_test_data): Remove.
6041         (rint_test_tonearest): Likewise.
6042         (rint_towardzero_test_data): Likewise.
6043         (rint_test_towardzero): Likewise.
6044         (rint_downward_test_data): Likewise.
6045         (rint_test_downward): Likewise.
6046         (rint_upward_test_data): Likewise.
6047         (rint_test_upward): Likewise.
6048         (main): Don't call removed functions.
6049
6050 2014-03-14  Roland McGrath  <roland@hack.frob.com>
6051
6052         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
6053         "Compiled on ..." crapola.  It is anti-useful.
6054
6055 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
6056
6057         * scripts/evaluate-test.sh: Handle fourth argument to determine
6058         whether test run should stop on failure.
6059         * Makeconfig (stop-on-test-failure): New variable.
6060         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
6061         $(stop-on-test-failure).
6062         * Makefile (tests): Give a summary of results from testing and
6063         exit with failure status if they include an ERROR or FAIL.
6064         (xtests): Likewise.
6065         * manual/install.texi (Configuring and compiling): Mention
6066         stop-on-test-failure=y.
6067         * INSTALL: Regenerated.
6068
6069 2014-03-14  Roland McGrath  <roland@hack.frob.com>
6070
6071         * scripts/versionlist.awk: New file.
6072         * Makerules [$(build-shared) = yes]
6073         (postclean-generated): Add Versions.def, not Versions.def.v and
6074         Versions.def.v.i.
6075         ($(common-objpfx)Versions.def.v.i): Target removed.
6076         ($(common-objpfx)Versions.def): New target.
6077         ($(common-objpfx)Versions.all): Depend on that rather that
6078         $(common-objpfx)Versions.def.v.
6079         * Versions.def: File removed.
6080
6081         * Makeconfig (+gccwarn): Add -Wundef.
6082         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
6083         a dl-sysdep.h breaking its contract.
6084         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
6085         * include/stackinfo.h: New file.
6086         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
6087         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
6088         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
6089         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
6090         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
6091         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
6092         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6093         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6094         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6095         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6096         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6097         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
6098         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6099         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6100         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6101
6102 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6103
6104         [BZ #16707]
6105         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
6106         implementation.
6107         * math/libm-test.inc (round_test_data): Add more tests.
6108
6109         [BZ #16706]
6110         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
6111         implementation.
6112         * math/libm-test.inc (nearbyint_test_data): Add more tests.
6113
6114         [BZ #16701]
6115         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
6116         implementation.
6117         * math/libm-test.inc (ceil_test_data): Add more tests.
6118
6119         * math/libm-test.inc (trunc_test_data): Add more tests related to
6120         BZ#16414.
6121
6122 2014-03-14  Roland McGrath  <roland@hack.frob.com>
6123
6124         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
6125         with #if rather than #ifdef.
6126         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
6127
6128 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
6129
6130         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
6131         first.  Disable AVX-512 GCC support if assembler doesn't support
6132         it.
6133         * sysdeps/x86_64/configure: Regenerated.
6134
6135 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
6136
6137         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
6138         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
6139         (__old_pthread_attr_setstack): Likewise.
6140         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
6141         [!_STACK_GROWS_DOWN]: Likewise.
6142
6143 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
6144
6145         * config.make.in (have-bash2): Delete.
6146         * configure.ac (libc_cv_have_bash2): Delete.
6147         * configure: Regenerate.
6148         * elf/Makefile (common-ldd-rewrite): Rename to ...
6149         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
6150         (sh-ldd-rewrite): Delete.
6151         (bash-ldd-rewrite): Delete.
6152         (have-bash2): Delete checks.
6153         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
6154         ldd-rewrite.
6155
6156         * config.make.in (have-ksh): Delete.
6157         (KSH): Delete.
6158         * configure.ac (libc_cv_have_ksh): Delete.
6159         * configure: Regenerate.
6160
6161         * elf/Makefile: Delete $(have-ksh) check.
6162         ($(objpfx)sotruss): Change KSH to BASH.
6163         * elf/sotruss.ksh: Rename to ...
6164         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
6165         function style to match POSIX.  Drop ksh vim mode setting.
6166
6167         * manual/time.texi (Specifying the Time Zone with TZ): Change
6168         Tuesday to Thursday.
6169
6170         * debug/tst-longjmp_chk2.c: Update header comment.
6171         (stackoverflow_handler): Add comment.  Call assert on pass value.
6172
6173 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
6174
6175         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
6176         (HAVE_AVX512_ASM_SUPPORT): Likewise.
6177         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
6178         (La_x86_64_vector): Add zmm.
6179         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
6180         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
6181         ($(objpfx)tst-audit10): New target.
6182         ($(objpfx)tst-audit10.out): Likewise.
6183         (tst-audit10-ENV): New.
6184         (AVX512-CFLAGS): Likewise.
6185         (CFLAGS-tst-audit10.c): Likewise.
6186         (CFLAGS-tst-auditmod10a.c): Likewise.
6187         (CFLAGS-tst-auditmod10b.c): Likewise.
6188         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
6189         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
6190         * sysdeps/x86_64/configure: Regenerated.
6191         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
6192         AVX-512 zmm register support.
6193         (_dl_x86_64_save_sse): Likewise.
6194         (_dl_x86_64_restore_sse): Likewise.
6195         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
6196         size vector registers.
6197         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
6198         (ZMM_SIZE): Likewise.
6199         * sysdeps/x86_64/tst-audit10.c: New file.
6200         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
6201         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
6202
6203 2014-03-13  Roland McGrath  <roland@hack.frob.com>
6204
6205         * configure.ac (HAVE_EHDR_START): New check.
6206         * configure: Regenerated.
6207         * config.h.in (HAVE_EHDR_START): New #undef.
6208         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
6209         assuming the lowest-addressed segment maps the start of the file.
6210
6211 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
6212
6213         * INSTALL: Regenerated.
6214
6215 2014-03-13  Will Newton  <will.newton@linaro.org>
6216
6217         * manual/setjmp.texi (System V contexts): Improve
6218         clarity and grammar of documentation.
6219
6220 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
6221
6222         [BZ #16381]
6223         * elf/Makefile (tests): Add tst-pie2.
6224         (tests-pie): Add tst-pie2.
6225         * elf/tst-pie2.c: New file.
6226         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
6227         for ET_EXEC.
6228         * elf/rtld.c (map_doit): Load executable as lt_executable.
6229         (dl_main): Likewise.
6230
6231 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
6232
6233         [BZ #16642]
6234         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6235         (__ASSUME_PSELECT): Undefine.
6236
6237 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6238
6239         [BZ #16689]
6240         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
6241         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
6242         static build.
6243         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
6244         selector for static builds.
6245
6246 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6247
6248         [BZ #16695]
6249         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
6250         key in the buffer.
6251
6252 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6253
6254         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
6255         IFUNC selector for static builds.
6256
6257 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
6258
6259         * sysdeps/mips/math_private.h [__mips_hard_float]
6260         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
6261         libc_feresetround_mips_ctx.
6262         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
6263         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
6264         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
6265
6266         [BZ #16677]
6267         * math/s_nextafter.c (__nextafter): Do not return value from
6268         overflowing computation.
6269         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
6270         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6271         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
6272         Likewise.
6273         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
6274         Likewise.
6275         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
6276         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
6277
6278 2014-03-11  Roland McGrath  <roland@hack.frob.com>
6279
6280         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
6281         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
6282         Move sfi_sp use from the load-multiple (that no longer sets sp) to
6283         the new mov targetting sp.
6284
6285 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6286
6287         [BZ #16683]
6288         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
6289         Define it for static builds as well.
6290         (NO_BZERO_IMPL): Likewise.
6291
6292 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
6293
6294         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
6295         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
6296         multiarch strspn for PPC64.
6297         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
6298         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
6299         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6300         (__libc_ifunc_impl_list): Likewise.
6301         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
6302         multiarch optimizations
6303         * string/strspn.c (strspn): Using macro to redefine symbol name.
6304
6305 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
6306             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6307
6308         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
6309         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
6310         multiarch strncat for PPC64.
6311         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
6312         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
6313         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6314         (__libc_ifunc_impl_list): Likewise.
6315         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
6316         multiarch optimizations
6317
6318 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6319
6320         [BZ #16639]
6321         * nscd/nscd.service: Make service type forking.
6322
6323 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6324
6325         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
6326         sign in non default rounding modes.
6327         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6328
6329 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
6330
6331         * math/libm-test.inc (ALL_RM_TEST): New macro.
6332         (ceil_test): Use ALL_RM_TEST.
6333         (cimag_test): Likewise.
6334         (conj_test): Likewise.
6335         (copysign_test): Likewise.
6336         (cproj_test): Likewise.
6337         (creal_test): Likewise.
6338         (fabs_test): Likewise.
6339         (floor_test): Likewise.
6340         (fmax_test): Likewise.
6341         (fmin_test): Likewise.
6342         (fmod_test): Likewise.
6343         (fpclassify_test): Likewise.
6344         (frexp_test): Likewise.
6345         (ilogb_test): Likewise.
6346         (isfinite_test): Likewise.
6347         (finite_test): Likewise.
6348         (isgreater_test): Likewise.
6349         (isgreaterequal_test): Likewise.
6350         (isinf_test): Likewise.
6351         (isless_test): Likewise.
6352         (islessequal_test): Likewise.
6353         (islessgreater_test): Likewise.
6354         (isnan_test): Likewise.
6355         (isnormal_test): Likewise.
6356         (issignaling_test): Likewise.
6357         (isunordered_test): Likewise.
6358         (logb_test): Likewise.
6359         (logb_downward_test_data): Remove.
6360         (logb_test_downward): Likewise.
6361         (lround_test): Use ALL_RM_TEST.
6362         (llround_test): Likewise.
6363         (modf_test): Likewise.
6364         (nexttoward_test): Likewise.
6365         (remainder_test): Likewise.
6366         (drem_test): Likewise.
6367         (remainder_tonearest_test_data): Likewise.
6368         (remainder_test_tonearest): Likewise.
6369         (drem_test_tonearest): Likewise.
6370         (remainder_towardzero_test_data): Likewise.
6371         (remainder_test_towardzero): Likewise.
6372         (drem_test_towardzero): Likewise.
6373         (remainder_downward_test_data): Likewise.
6374         (remainder_test_downward): Likewise.
6375         (drem_test_downward): Likewise.
6376         (remainder_upward_test_data): Likewise.
6377         (remainder_test_upward): Likewise.
6378         (drem_test_upward): Likewise.
6379         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
6380         (round_test): Use ALL_RM_TEST.
6381         (signbit_test): Likewise.
6382         (trunc_test): Likewise.
6383         (significand_test): Likewise.
6384         (main): Don't call removed functions.
6385
6386 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6387
6388         [BZ #16674]
6389         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
6390         || __USE_XOPEN2K8].
6391         (ILL_ILLOPN): Likewise.
6392         (ILL_ILLADR): Likewise.
6393         (ILL_ILLTRP): Likewise.
6394         (ILL_PRVOPC): Likewise.
6395         (ILL_PRVREG): Likewise.
6396         (ILL_COPROC): Likewise.
6397         (ILL_BADSTK): Likewise.
6398         (FPE_INTDIV): Likewise.
6399         (FPE_INTOVF): Likewise.
6400         (FPE_FLTDIV): Likewise.
6401         (FPE_FLTOVF): Likewise.
6402         (FPE_FLTUND): Likewise.
6403         (FPE_FLTRES): Likewise.
6404         (FPE_FLTINV): Likewise.
6405         (FPE_FLTSUB): Likewise.
6406         (SEGV_MAPERR): Likewise.
6407         (SEGV_ACCERR): Likewise.
6408         (BUS_ADRALN): Likewise.
6409         (BUS_ADRERR): Likewise.
6410         (BUS_OBJERR): Likewise.
6411         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6412         (TRAP_TRACE): Likewise.
6413         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6414         __USE_XOPEN2K8].
6415         (CLD_KILLED): Likewise.
6416         (CLD_DUMPED): Likewise.
6417         (CLD_TRAPPED): Likewise.
6418         (CLD_STOPPED): Likewise.
6419         (CLD_CONTINUED): Likewise.
6420         (POLL_IN): Likewise.
6421         (POLL_OUT): Likewise.
6422         (POLL_MSG): Likewise.
6423         (POLL_ERR): Likewise.
6424         (POLL_PRI): Likewise.
6425         (POLL_HUP): Likewise.
6426         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
6427         Likewise.
6428         (ILL_ILLOPN): Likewise.
6429         (ILL_ILLADR): Likewise.
6430         (ILL_ILLTRP): Likewise.
6431         (ILL_PRVOPC): Likewise.
6432         (ILL_PRVREG): Likewise.
6433         (ILL_COPROC): Likewise.
6434         (ILL_BADSTK): Likewise.
6435         (FPE_INTDIV): Likewise.
6436         (FPE_INTOVF): Likewise.
6437         (FPE_FLTDIV): Likewise.
6438         (FPE_FLTOVF): Likewise.
6439         (FPE_FLTUND): Likewise.
6440         (FPE_FLTRES): Likewise.
6441         (FPE_FLTINV): Likewise.
6442         (FPE_FLTSUB): Likewise.
6443         (SEGV_MAPERR): Likewise.
6444         (SEGV_ACCERR): Likewise.
6445         (BUS_ADRALN): Likewise.
6446         (BUS_ADRERR): Likewise.
6447         (BUS_OBJERR): Likewise.
6448         (BUS_MCEERR_AR): Likewise.
6449         (BUS_MCEERR_AO): Likewise.
6450         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6451         (TRAP_TRACE): Likewise.
6452         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6453         __USE_XOPEN2K8].
6454         (CLD_KILLED): Likewise.
6455         (CLD_DUMPED): Likewise.
6456         (CLD_TRAPPED): Likewise.
6457         (CLD_STOPPED): Likewise.
6458         (CLD_CONTINUED): Likewise.
6459         (POLL_IN): Likewise.
6460         (POLL_OUT): Likewise.
6461         (POLL_MSG): Likewise.
6462         (POLL_ERR): Likewise.
6463         (POLL_PRI): Likewise.
6464         (POLL_HUP): Likewise.
6465         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
6466         (ILL_ILLOPN): Likewise.
6467         (ILL_ILLADR): Likewise.
6468         (ILL_ILLTRP): Likewise.
6469         (ILL_PRVOPC): Likewise.
6470         (ILL_PRVREG): Likewise.
6471         (ILL_COPROC): Likewise.
6472         (ILL_BADSTK): Likewise.
6473         (FPE_INTDIV): Likewise.
6474         (FPE_INTOVF): Likewise.
6475         (FPE_FLTDIV): Likewise.
6476         (FPE_FLTOVF): Likewise.
6477         (FPE_FLTUND): Likewise.
6478         (FPE_FLTRES): Likewise.
6479         (FPE_FLTINV): Likewise.
6480         (FPE_FLTSUB): Likewise.
6481         (SEGV_MAPERR): Likewise.
6482         (SEGV_ACCERR): Likewise.
6483         (BUS_ADRALN): Likewise.
6484         (BUS_ADRERR): Likewise.
6485         (BUS_OBJERR): Likewise.
6486         (BUS_MCEERR_AR): Likewise.
6487         (BUS_MCEERR_AO): Likewise.
6488         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6489         (TRAP_TRACE): Likewise.
6490         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6491         __USE_XOPEN2K8].
6492         (CLD_KILLED): Likewise.
6493         (CLD_DUMPED): Likewise.
6494         (CLD_TRAPPED): Likewise.
6495         (CLD_STOPPED): Likewise.
6496         (CLD_CONTINUED): Likewise.
6497         (POLL_IN): Likewise.
6498         (POLL_OUT): Likewise.
6499         (POLL_MSG): Likewise.
6500         (POLL_ERR): Likewise.
6501         (POLL_PRI): Likewise.
6502         (POLL_HUP): Likewise.
6503         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
6504         Likewise.
6505         (ILL_ILLOPN): Likewise.
6506         (ILL_ILLADR): Likewise.
6507         (ILL_ILLTRP): Likewise.
6508         (ILL_PRVOPC): Likewise.
6509         (ILL_PRVREG): Likewise.
6510         (ILL_COPROC): Likewise.
6511         (ILL_BADSTK): Likewise.
6512         (ILL_BADIADDR): Likewise.
6513         (ILL_BREAK): Likewise.
6514         (FPE_INTDIV): Likewise.
6515         (FPE_INTOVF): Likewise.
6516         (FPE_FLTDIV): Likewise.
6517         (FPE_FLTOVF): Likewise.
6518         (FPE_FLTUND): Likewise.
6519         (FPE_FLTRES): Likewise.
6520         (FPE_FLTINV): Likewise.
6521         (FPE_FLTSUB): Likewise.
6522         (FPE_DECOVF): Likewise.
6523         (FPE_DECDIV): Likewise.
6524         (FPE_DECERR): Likewise.
6525         (FPE_INVASC): Likewise.
6526         (FPE_INVDEC): Likewise.
6527         (SEGV_MAPERR): Likewise.
6528         (SEGV_ACCERR): Likewise.
6529         (SEGV_PSTKOVF): Likewise.
6530         (BUS_ADRALN): Likewise.
6531         (BUS_ADRERR): Likewise.
6532         (BUS_OBJERR): Likewise.
6533         (BUS_MCEERR_AR): Likewise.
6534         (BUS_MCEERR_AO): Likewise.
6535         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6536         (TRAP_TRACE): Likewise.
6537         (TRAP_BRANCH): Likewise.
6538         (TRAP_HWBKPT): Likewise.
6539         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6540         __USE_XOPEN2K8].
6541         (CLD_KILLED): Likewise.
6542         (CLD_DUMPED): Likewise.
6543         (CLD_TRAPPED): Likewise.
6544         (CLD_STOPPED): Likewise.
6545         (CLD_CONTINUED): Likewise.
6546         (POLL_IN): Likewise.
6547         (POLL_OUT): Likewise.
6548         (POLL_MSG): Likewise.
6549         (POLL_ERR): Likewise.
6550         (POLL_PRI): Likewise.
6551         (POLL_HUP): Likewise.
6552         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
6553         (ILL_ILLOPN): Likewise.
6554         (ILL_ILLADR): Likewise.
6555         (ILL_ILLTRP): Likewise.
6556         (ILL_PRVOPC): Likewise.
6557         (ILL_PRVREG): Likewise.
6558         (ILL_COPROC): Likewise.
6559         (ILL_BADSTK): Likewise.
6560         (FPE_INTDIV): Likewise.
6561         (FPE_INTOVF): Likewise.
6562         (FPE_FLTDIV): Likewise.
6563         (FPE_FLTOVF): Likewise.
6564         (FPE_FLTUND): Likewise.
6565         (FPE_FLTRES): Likewise.
6566         (FPE_FLTINV): Likewise.
6567         (FPE_FLTSUB): Likewise.
6568         (SEGV_MAPERR): Likewise.
6569         (SEGV_ACCERR): Likewise.
6570         (BUS_ADRALN): Likewise.
6571         (BUS_ADRERR): Likewise.
6572         (BUS_OBJERR): Likewise.
6573         (BUS_MCEERR_AR): Likewise.
6574         (BUS_MCEERR_AO): Likewise.
6575         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6576         (TRAP_TRACE): Likewise.
6577         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6578         __USE_XOPEN2K8].
6579         (CLD_KILLED): Likewise.
6580         (CLD_DUMPED): Likewise.
6581         (CLD_TRAPPED): Likewise.
6582         (CLD_STOPPED): Likewise.
6583         (CLD_CONTINUED): Likewise.
6584         (POLL_IN): Likewise.
6585         (POLL_OUT): Likewise.
6586         (POLL_MSG): Likewise.
6587         (POLL_ERR): Likewise.
6588         (POLL_PRI): Likewise.
6589         (POLL_HUP): Likewise.
6590         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
6591         (ILL_ILLOPN): Likewise.
6592         (ILL_ILLADR): Likewise.
6593         (ILL_ILLTRP): Likewise.
6594         (ILL_PRVOPC): Likewise.
6595         (ILL_PRVREG): Likewise.
6596         (ILL_COPROC): Likewise.
6597         (ILL_BADSTK): Likewise.
6598         (FPE_INTDIV): Likewise.
6599         (FPE_INTOVF): Likewise.
6600         (FPE_FLTDIV): Likewise.
6601         (FPE_FLTOVF): Likewise.
6602         (FPE_FLTUND): Likewise.
6603         (FPE_FLTRES): Likewise.
6604         (FPE_FLTINV): Likewise.
6605         (FPE_FLTSUB): Likewise.
6606         (SEGV_MAPERR): Likewise.
6607         (SEGV_ACCERR): Likewise.
6608         (BUS_ADRALN): Likewise.
6609         (BUS_ADRERR): Likewise.
6610         (BUS_OBJERR): Likewise.
6611         (BUS_MCEERR_AR): Likewise.
6612         (BUS_MCEERR_AO): Likewise.
6613         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6614         (TRAP_TRACE): Likewise.
6615         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6616         __USE_XOPEN2K8].
6617         (CLD_KILLED): Likewise.
6618         (CLD_DUMPED): Likewise.
6619         (CLD_TRAPPED): Likewise.
6620         (CLD_STOPPED): Likewise.
6621         (CLD_CONTINUED): Likewise.
6622         (POLL_IN): Likewise.
6623         (POLL_OUT): Likewise.
6624         (POLL_MSG): Likewise.
6625         (POLL_ERR): Likewise.
6626         (POLL_PRI): Likewise.
6627         (POLL_HUP): Likewise.
6628         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
6629         (ILL_ILLOPN): Likewise.
6630         (ILL_ILLADR): Likewise.
6631         (ILL_ILLTRP): Likewise.
6632         (ILL_PRVOPC): Likewise.
6633         (ILL_PRVREG): Likewise.
6634         (ILL_COPROC): Likewise.
6635         (ILL_BADSTK): Likewise.
6636         (FPE_INTDIV): Likewise.
6637         (FPE_INTOVF): Likewise.
6638         (FPE_FLTDIV): Likewise.
6639         (FPE_FLTOVF): Likewise.
6640         (FPE_FLTUND): Likewise.
6641         (FPE_FLTRES): Likewise.
6642         (FPE_FLTINV): Likewise.
6643         (FPE_FLTSUB): Likewise.
6644         (SEGV_MAPERR): Likewise.
6645         (SEGV_ACCERR): Likewise.
6646         (BUS_ADRALN): Likewise.
6647         (BUS_ADRERR): Likewise.
6648         (BUS_OBJERR): Likewise.
6649         (BUS_MCEERR_AR): Likewise.
6650         (BUS_MCEERR_AO): Likewise.
6651         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6652         (TRAP_TRACE): Likewise.
6653         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6654         __USE_XOPEN2K8].
6655         (CLD_KILLED): Likewise.
6656         (CLD_DUMPED): Likewise.
6657         (CLD_TRAPPED): Likewise.
6658         (CLD_STOPPED): Likewise.
6659         (CLD_CONTINUED): Likewise.
6660         (POLL_IN): Likewise.
6661         (POLL_OUT): Likewise.
6662         (POLL_MSG): Likewise.
6663         (POLL_ERR): Likewise.
6664         (POLL_PRI): Likewise.
6665         (POLL_HUP): Likewise.
6666         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
6667         (ILL_ILLOPN): Likewise.
6668         (ILL_ILLADR): Likewise.
6669         (ILL_ILLTRP): Likewise.
6670         (ILL_PRVOPC): Likewise.
6671         (ILL_PRVREG): Likewise.
6672         (ILL_COPROC): Likewise.
6673         (ILL_BADSTK): Likewise.
6674         (ILL_DBLFLT): Likewise.
6675         (ILL_HARDWALL): Likewise.
6676         (FPE_INTDIV): Likewise.
6677         (FPE_INTOVF): Likewise.
6678         (FPE_FLTDIV): Likewise.
6679         (FPE_FLTOVF): Likewise.
6680         (FPE_FLTUND): Likewise.
6681         (FPE_FLTRES): Likewise.
6682         (FPE_FLTINV): Likewise.
6683         (FPE_FLTSUB): Likewise.
6684         (SEGV_MAPERR): Likewise.
6685         (SEGV_ACCERR): Likewise.
6686         (BUS_ADRALN): Likewise.
6687         (BUS_ADRERR): Likewise.
6688         (BUS_OBJERR): Likewise.
6689         (BUS_MCEERR_AR): Likewise.
6690         (BUS_MCEERR_AO): Likewise.
6691         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6692         (TRAP_TRACE): Likewise.
6693         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6694         __USE_XOPEN2K8].
6695         (CLD_KILLED): Likewise.
6696         (CLD_DUMPED): Likewise.
6697         (CLD_TRAPPED): Likewise.
6698         (CLD_STOPPED): Likewise.
6699         (CLD_CONTINUED): Likewise.
6700         (POLL_IN): Likewise.
6701         (POLL_OUT): Likewise.
6702         (POLL_MSG): Likewise.
6703         (POLL_ERR): Likewise.
6704         (POLL_PRI): Likewise.
6705         (POLL_HUP): Likewise.
6706         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
6707         (ILL_ILLOPN): Likewise.
6708         (ILL_ILLADR): Likewise.
6709         (ILL_ILLTRP): Likewise.
6710         (ILL_PRVOPC): Likewise.
6711         (ILL_PRVREG): Likewise.
6712         (ILL_COPROC): Likewise.
6713         (ILL_BADSTK): Likewise.
6714         (FPE_INTDIV): Likewise.
6715         (FPE_INTOVF): Likewise.
6716         (FPE_FLTDIV): Likewise.
6717         (FPE_FLTOVF): Likewise.
6718         (FPE_FLTUND): Likewise.
6719         (FPE_FLTRES): Likewise.
6720         (FPE_FLTINV): Likewise.
6721         (FPE_FLTSUB): Likewise.
6722         (SEGV_MAPERR): Likewise.
6723         (SEGV_ACCERR): Likewise.
6724         (BUS_ADRALN): Likewise.
6725         (BUS_ADRERR): Likewise.
6726         (BUS_OBJERR): Likewise.
6727         (BUS_MCEERR_AR): Likewise.
6728         (BUS_MCEERR_AO): Likewise.
6729         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
6730         (TRAP_TRACE): Likewise.
6731         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
6732         __USE_XOPEN2K8].
6733         (CLD_KILLED): Likewise.
6734         (CLD_DUMPED): Likewise.
6735         (CLD_TRAPPED): Likewise.
6736         (CLD_STOPPED): Likewise.
6737         (CLD_CONTINUED): Likewise.
6738         (POLL_IN): Likewise.
6739         (POLL_OUT): Likewise.
6740         (POLL_MSG): Likewise.
6741         (POLL_ERR): Likewise.
6742         (POLL_PRI): Likewise.
6743         (POLL_HUP): Likewise.
6744         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
6745         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6746
6747         [BZ #16670]
6748         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
6749         before #include of <time.h>.
6750         [!__USE_XOPEN2K] (__need_timespec): Likewise.
6751         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
6752         (test-xfail-UNIX98/sched.h/conform): Likewise.
6753
6754 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6755
6756         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
6757         error absence of trapping exception support.
6758         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
6759
6760 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
6761
6762         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
6763         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
6764         * timezone/Makefile (testdata): Move definition above include of
6765         Rules.
6766         (test-zones): New variable.
6767         (tests-special): Add zone files.
6768         (build-testdata): Use $(evaluate-test).
6769
6770         * elf/Makefile (tests-special): Rename tests to end with .out.
6771         ($(objpfx)noload-mem): Likewise.
6772         ($(objpfx)tst-leaks1-mem): Likewise.
6773         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
6774         * iconv/Makefile (xtests-special): Change test-iconvconfig to
6775         $(objpfx)test-iconvconfig.out.
6776         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
6777         set -e inside subshell and redirect output to file.
6778         * iconvdata/Makefile (generated): Rename tests to end with .out.
6779         Correct type.
6780         (tests-special): Rename tests to end with .out.
6781         ($(objpfx)mtrace-tst-loading): Likewise.
6782         * intl/Makefile (generated): Likewise.
6783         (tests-special): Likewise.
6784         ($(objpfx)mtrace-tst-gettext): Likewise.
6785         * misc/Makefile (generated): Likewise.
6786         (tests-special): Likewise.
6787         ($(objpfx)tst-error1-mem): Likewise.
6788         * nptl/Makefile (tests-special): Likewise.
6789         ($(objpfx)tst-stack3-mem): Likewise.
6790         (generated): Likewise.
6791         * posix/Makefile (generated): Likewise.
6792         (tests-special): Likewise.
6793         (xtests-special): Likewise.
6794         ($(objpfx)tst-fnmatch-mem): Likewise.
6795         ($(objpfx)bug-regex2-mem): Likewise.
6796         ($(objpfx)bug-regex14-mem): Likewise.
6797         ($(objpfx)bug-regex21-mem): Likewise.
6798         ($(objpfx)bug-regex31-mem): Likewise.
6799         ($(objpfx)tst-vfork3-mem): Likewise.
6800         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6801         ($(objpfx)tst-pcre-mem): Likewise.
6802         ($(objpfx)tst-boost-mem): Likewise.
6803         ($(objpfx)bug-ga2-mem): Likewise.
6804         ($(objpfx)bug-glob2-mem): Likewise.
6805         * resolv/Makefile (generate): Likewise.
6806         (tests-special): Likewise.
6807         (xtests-special): Likewise.
6808         (generated): Likewise.
6809         ($(objpfx)mtrace-tst-leaks): Likewise.
6810         ($(objpfx)mtrace-tst-leaks2): Likewise.
6811
6812         * scripts/merge-test-results.sh: New file.
6813         * Makefile (tests-special-notdir): New variable.
6814         (tests): Run merge-test-results.sh.
6815         (xtests): Likewise.
6816         * Rules (tests-special-notdir): New variable.
6817         (xtests-special-notdir): Likewise.
6818         (tests): Run merge-test-results.sh
6819         (xtests): Likewise.
6820
6821         * Makeconfig (test-xfail-name): New variable.
6822         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
6823         compute variable name for expected failures.
6824         * conform/Makefile (conformtest-headers-data): New variable.
6825         (conformtest-standards): Likewise.
6826         (conformtest-headers-ISO): Likewise.
6827         (conformtest-headers-ISO99): Likewise.
6828         (conformtest-headers-ISO11): Likewise.
6829         (conformtest-headers-POSIX): Likewise.
6830         (conformtest-headers-XPG3): Likewise.
6831         (conformtest-headers-XPG4): Likewise.
6832         (conformtest-headers-UNIX98): Likewise.
6833         (conformtest-headers-XOPEN2K): Likewise.
6834         (conformtest-headers-POSIX2008): Likewise.
6835         (conformtest-headers-XOPEN2K8): Likewise.
6836         (conformtest-header-list-base): Likewise.
6837         (conformtest-header-list-tests): Likewise.
6838         (conformtest-header-base): Likewise.
6839         (conformtest-header-tests): Likewise.
6840         (tests-special): Add $(conformtest-header-list-tests).  If
6841         [$(fast-check) && !$(cross-compiling)], add
6842         $(conformtest-header-tests) instead of
6843         $(objpfx)run-conformtest.out.
6844         (generated): Add $(conformtest-header-list-base).  If
6845         [$(fast-check) && !$(cross-compiling)], add
6846         $(conformtest-header-base).  Remove previous setting.
6847         ($(conformtest-header-list-tests)): New target.
6848         (test-xfail-run-conformtest): Remove variable.
6849         ($(objpfx)run-conformtest.out): Remove target.
6850         (test-xfail-ISO11/complex.h/conform): New variable.
6851         (test-xfail-ISO11/stdalign.h/conform): Likewise.
6852         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
6853         (test-xfail-XPG3/varargs.h/conform): Likewise.
6854         (test-xfail-XPG4/varargs.h/conform): Likewise.
6855         (test-xfail-UNIX98/varargs.h/conform): Likewise.
6856         (test-xfail-XPG4/ndbm.h/conform): Likewise.
6857         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
6858         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
6859         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
6860         (test-xfail-XPG3/fcntl.h/conform): Likewise.
6861         (test-xfail-XPG3/ftw.h/conform): Likewise.
6862         (test-xfail-XPG3/grp.h/conform): Likewise.
6863         (test-xfail-XPG3/langinfo.h/conform): Likewise.
6864         (test-xfail-XPG3/limits.h/conform): Likewise.
6865         (test-xfail-XPG3/pwd.h/conform): Likewise.
6866         (test-xfail-XPG3/search.h/conform): Likewise.
6867         (test-xfail-XPG3/signal.h/conform): Likewise.
6868         (test-xfail-XPG3/stdio.h/conform): Likewise.
6869         (test-xfail-XPG3/stdlib.h/conform): Likewise.
6870         (test-xfail-XPG3/string.h/conform): Likewise.
6871         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
6872         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
6873         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
6874         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
6875         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
6876         (test-xfail-XPG3/sys/types.h/conform): Likewise.
6877         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
6878         (test-xfail-XPG3/termios.h/conform): Likewise.
6879         (test-xfail-XPG3/time.h/conform): Likewise.
6880         (test-xfail-XPG3/unistd.h/conform): Likewise.
6881         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
6882         (test-xfail-XPG4/fcntl.h/conform): Likewise.
6883         (test-xfail-XPG4/langinfo.h/conform): Likewise.
6884         (test-xfail-XPG4/netdb.h/conform): Likewise.
6885         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
6886         (test-xfail-XPG4/signal.h/conform): Likewise.
6887         (test-xfail-XPG4/stdio.h/conform): Likewise.
6888         (test-xfail-XPG4/stdlib.h/conform): Likewise.
6889         (test-xfail-XPG4/stropts.h/conform): Likewise.
6890         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
6891         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
6892         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
6893         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
6894         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
6895         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
6896         (test-xfail-XPG4/sys/time.h/conform): Likewise.
6897         (test-xfail-XPG4/sys/types.h/conform): Likewise.
6898         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
6899         (test-xfail-XPG4/termios.h/conform): Likewise.
6900         (test-xfail-XPG4/ucontext.h/conform): Likewise.
6901         (test-xfail-XPG4/unistd.h/conform): Likewise.
6902         (test-xfail-XPG4/utmpx.h/conform): Likewise.
6903         (test-xfail-POSIX/sched.h/conform): Likewise.
6904         (test-xfail-POSIX/signal.h/conform): Likewise.
6905         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
6906         (test-xfail-POSIX/tar.h/conform): Likewise.
6907         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
6908         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
6909         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
6910         (test-xfail-UNIX98/netdb.h/conform): Likewise.
6911         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
6912         (test-xfail-UNIX98/sched.h/conform): Likewise.
6913         (test-xfail-UNIX98/signal.h/conform): Likewise.
6914         (test-xfail-UNIX98/stdio.h/conform): Likewise.
6915         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
6916         (test-xfail-UNIX98/stropts.h/conform): Likewise.
6917         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
6918         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
6919         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
6920         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
6921         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
6922         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
6923         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6924         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6925         (test-xfail-UNIX98/unistd.h/conform): Likewise.
6926         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
6927         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
6928         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
6929         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
6930         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
6931         (test-xfail-XOPEN2K/math.h/conform): Likewise.
6932         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
6933         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
6934         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
6935         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
6936         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6937         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
6938         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
6939         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
6940         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
6941         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
6942         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
6943         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
6944         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
6945         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6946         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
6947         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
6948         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6949         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
6950         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
6951         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
6952         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
6953         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
6954         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6955         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
6956         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
6957         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6958         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
6959         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
6960         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
6961         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
6962         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
6963         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
6964         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6965         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
6966         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
6967         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
6968         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
6969         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
6970         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
6971         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
6972         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
6973         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
6974         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6975         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
6976         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
6977         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
6978         (conformtest-cc-flags): Likewise.
6979         ($(conformtest-header-tests): New target.
6980         * conform/check-header-lists.sh: New file.
6981         * conform/run-conformtest.sh: Remove.
6982
6983         * conform/conformtest.pl: Allow ' and \ in values given for
6984         constants.
6985         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
6986         inclusion.
6987         [POSIX] (sys/types.h): Likewise.
6988         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
6989         inclusion.
6990         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
6991         inclusion.
6992         * conform/data/signal.h-data (SIGIO): Remove expectation.
6993         [XPG3] (SIGBUS): Do not expect.
6994         [POSIX || XPG3] (SIGPOLL): Likewise.
6995         [POSIX || XPG3] (SIGPROF): Likewise.
6996         [POSIX || XPG3] (SIGSYS): Likewise.
6997         [XPG3] (SIGTRAP): Likewise.
6998         [POSIX || XPG3] (SIGURG): Likewise.
6999         [POSIX || XPG3] (SIGVTALRM): Likewise.
7000         [POSIX || XPG3] (SIGXCPU): Likewise.
7001         [POSIX || XPG3] (SIGXFSZ): Likewise.
7002         [POSIX] (SA_SIGINFO): Expect.
7003         [XPG3] (siginfo_t): Do not expect type or contents.
7004         [POSIX] (si_pid): Do not expect element.
7005         [POSIX] (si_uid): Likewise.
7006         [POSIX] (si_addr): Likewise.
7007         [POSIX] (si_status): Likewise.
7008         [POSIX] (si_band): Likewise.
7009         [XPG4] (si_value): Likewise.
7010         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
7011         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
7012         [POSIX || XPG3] (ILL_ILLADR): Likewise.
7013         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
7014         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
7015         [POSIX || XPG3] (ILL_PRVREG): Likewise.
7016         [POSIX || XPG3] (ILL_COPROC): Likewise.
7017         [POSIX || XPG3] (ILL_BADSTK): Likewise.
7018         [POSIX || XPG3] (FPE_INTDIV): Likewise.
7019         [POSIX || XPG3] (FPE_INTOVF): Likewise.
7020         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
7021         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
7022         [POSIX || XPG3] (FPE_FLTUND): Likewise.
7023         [POSIX || XPG3] (FPE_FLTRES): Likewise.
7024         [POSIX || XPG3] (FPE_FLTINV): Likewise.
7025         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
7026         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
7027         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
7028         [POSIX || XPG3] (BUS_ADRALN): Likewise.
7029         [POSIX || XPG3] (BUS_ADRERR): Likewise.
7030         [POSIX || XPG3] (BUS_OBJERR): Likewise.
7031         [POSIX || XPG3] (CLD_EXITED): Likewise.
7032         [POSIX || XPG3] (CLD_KILLED): Likewise.
7033         [POSIX || XPG3] (CLD_DUMPED): Likewise.
7034         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
7035         [POSIX || XPG3] (CLD_STOPPED): Likewise.
7036         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
7037         [POSIX || XPG3] (POLL_IN): Likewise.
7038         [POSIX || XPG3] (POLL_OUT): Likewise.
7039         [POSIX || XPG3] (POLL_MSG): Likewise.
7040         [POSIX || XPG3] (POLL_ERR): Likewise.
7041         [POSIX || XPG3] (POLL_PRI): Likewise.
7042         [POSIX || XPG3] (POLL_HUP): Likewise.
7043         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
7044         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
7045         (SIG*): Do not allow.
7046         [XPG3] (si_*): Likewise.
7047         [XPG3] (SI_*): Likewise.
7048         [XPG3 || XPG4] (sigev_*): Likewise.
7049         [XPG3 || XPG4] (SIGEV_*): Likewise.
7050         [XPG3 || XPG4] (sival_*): Likewise.
7051         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
7052         [POSIX || XPG3] (BUS_*): Likewise.
7053         [POSIX || XPG3] (CLD_*): Likewise.
7054         [POSIX || XPG3] (FPE_*): Likewise.
7055         [POSIX || XPG3] (ILL_*): Likewise.
7056         [POSIX || XPG3] (POLL_*): Likewise.
7057         [POSIX || XPG3] (SEGV_*): Likewise.
7058         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
7059         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
7060         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
7061         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
7062         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
7063         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
7064         Specify type and value.
7065         (TVERSLEN): Likewise.
7066         (REGTYPE): Likewise.
7067         (AREGTYPE): Likewise.
7068         (LNKTYPE): Likewise.
7069         (SYMTYPE): Likewise.
7070         (CHRTYPE): Likewise.
7071         (BLKTYPE): Likewise.
7072         (DIRTYPE): Likewise.
7073         (FIFOTYPE): Likewise.
7074         (CONTTYPE): Likewise.
7075         (TSUID): Likewise.
7076         (TSGID): Likewise.
7077         (TSVTX): Likewise.
7078         (TUREAD): Likewise.
7079         (TUWRITE): Likewise.
7080         (TUEXEC): Likewise.
7081         (TGREAD): Likewise.
7082         (TGWRITE): Likewise.
7083         (TGEXEC): Likewise.
7084         (TOREAD): Likewise.
7085         (TOWRITE): Likewise.
7086         (TOEXEC): Likewise.
7087         [POSIX] (TSVTX): Expect constant.
7088
7089 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
7090
7091         * Makefile (tests): Change dependencies to ....
7092         (tests-special): ... additions to this variable.
7093         (tests): Depend on $(tests-special).
7094         * Makerules (check-abi-list): New variable.
7095         (check-abi): Depend on $(check-abi-list).
7096         [$(subdir) = elf] (tests-special): Add
7097         $(objpfx)check-abi-libc.out.
7098         [$(build-shared) = yes && subdir] (tests-special): Add
7099         $(check-abi-list).
7100         [$(build-shared) = yes && subdir] (tests): Do not depend on
7101         check-abi.
7102         * Rules (tests): Depend on $(tests-special).
7103         (xtests): Depend on $(xtests-special).
7104         * catgets/Makefile (tests): Change dependencies to ....
7105         (tests-special): ... additions to this variable.
7106         * conform/Makefile (tests): Change dependencies to ....
7107         (tests-special): ... additions to this variable.
7108         * elf/Makefile (tests): Change dependencies to ....
7109         (tests-special): ... additions to this variable.
7110         * grp/Makefile (tests): Change dependencies to ....
7111         (tests-special): ... additions to this variable.
7112         * iconv/Makefile (xtests): Change dependencies to ....
7113         (xtests-special): ... additions to this variable.
7114         * iconvdata/Makefile (tests): Change dependencies to ....
7115         (tests-special): ... additions to this variable.
7116         * intl/Makefile (tests): Change dependencies to ....
7117         (tests-special): ... additions to this variable.  Also add
7118         $(objpfx)tst-gettext.out.
7119         * io/Makefile (tests): Change dependencies to ....
7120         (tests-special): ... additions to this variable.
7121         * libio/Makefile (tests): Change dependencies to ....
7122         (tests-special): ... additions to this variable.
7123         * malloc/Makefile (tests): Change dependencies to ....
7124         (tests-special): ... additions to this variable.
7125         * misc/Makefile (tests): Change dependencies to ....
7126         (tests-special): ... additions to this variable.
7127         * nptl/Makefile (tests): Change dependencies to ....
7128         (tests-special): ... additions to this variable.
7129         * nptl_db/Makefile (tests): Change dependencies to ....
7130         (tests-special): ... additions to this variable.
7131         * posix/Makefile (tests): Change dependencies to ....
7132         (tests-special): ... additions to this variable.
7133         (xtests): Change dependencies to ....
7134         (xtests-special): ... additions to this variable.
7135         * resolv/Makefile (tests): Change dependencies to ....
7136         (tests-special): ... additions to this variable.
7137         (xtests): Change dependencies to ....
7138         (xtests-special): ... additions to this variable.
7139         * stdio-common/Makefile (tests): Change dependencies to ....
7140         (tests-special): ... additions to this variable.
7141         (do-tst-unbputc): Remove target.
7142         (do-tst-printf): Likewise.
7143         * stdlib/Makefile (tests): Change dependencies to ....
7144         (tests-special): ... additions to this variable.
7145         * string/Makefile (tests): Change dependencies to ....
7146         (tests-special): ... additions to this variable.
7147         * sysdeps/x86/Makefile (tests): Change dependencies to ....
7148         (tests-special): ... additions to this variable.
7149
7150         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
7151         whole file.
7152         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
7153         whole file.
7154         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
7155         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
7156
7157         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
7158         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
7159         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
7160         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
7161         * conform/data/libgen.h-data [XPG3]: Likewise.
7162         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
7163         * conform/data/ndbm.h-data [XPG3]: Likewise.
7164         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
7165         * conform/data/netdb.h-data [XPG3]: Likewise.
7166         * conform/data/netinet/in.h-data [XPG3]: Likewise.
7167         * conform/data/poll.h-data [XPG3]: Likewise.
7168         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
7169         * conform/data/strings.h-data [XPG3]: Likewise.
7170         * conform/data/stropts.h-data [XPG3]: Likewise.
7171         * conform/data/sys/mman.h-data [XPG3]: Likewise.
7172         * conform/data/sys/resource.h-data [XPG3]: Likewise.
7173         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
7174         Likewise.
7175         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
7176         * conform/data/sys/time.h-data [XPG3]: Likewise.
7177         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
7178         * conform/data/sys/uio.h-data [XPG3]: Likewise.
7179         * conform/data/sys/un.h-data [XPG3]: Likewise.
7180         * conform/data/syslog.h-data [XPG3]: Likewise.
7181         * conform/data/ucontext.h-data [XPG3]: Likewise.
7182         * conform/data/utmpx.h-data [XPG3]: Likewise.
7183         * conform/data/varargs.h-data [UNIX98]: Enable file.
7184
7185         * manual/Makefile (INSTALL_INFO): Remove variable setting.
7186
7187         * math/libm-test.inc (struct test_f_f_data): Move expected results
7188         into structure for each rounding mode.
7189         (struct test_ff_f_data): Likewise.
7190         (struct test_ff_f_data_nexttoward): Likewise.
7191         (struct test_fi_f_data): Likewise.
7192         (struct test_fl_f_data): Likewise.
7193         (struct test_if_f_data): Likewise.
7194         (struct test_fff_f_data): Likewise.
7195         (struct test_c_f_data): Likewise.
7196         (struct test_f_f1_data): Likewise.
7197         (struct test_fF_f1_data): Likewise.
7198         (struct test_ffI_f1_data): Likewise.
7199         (struct test_c_c_data): Likewise.
7200         (struct test_cc_c_data): Likewise.
7201         (struct test_f_i_data): Likewise.
7202         (struct test_ff_i_data): Likewise.
7203         (struct test_f_l_data): Likewise.
7204         (struct test_f_L_data): Likewise.
7205         (struct test_fFF_11_data): Likewise.
7206         (RM_): New macro.
7207         (RM_FE_DOWNWARD): Likewise.
7208         (RM_FE_TONEAREST): Likewise.
7209         (RM_FE_TOWARDZERO): Likewise.
7210         (RM_FE_UPWARD): Likewise.
7211         (RUN_TEST_LOOP_f_f): Update references to expected results.
7212         (RUN_TEST_LOOP_2_f): Likewise.
7213         (RUN_TEST_LOOP_fff_f): Likewise.
7214         (RUN_TEST_LOOP_c_f): Likewise.
7215         (RUN_TEST_LOOP_f_f1): Likewise.
7216         (RUN_TEST_LOOP_fF_f1): Likewise.
7217         (RUN_TEST_LOOP_fI_f1): Likewise.
7218         (RUN_TEST_LOOP_ffI_f1): Likewise.
7219         (RUN_TEST_LOOP_c_c): Likewise.
7220         (RUN_TEST_LOOP_cc_c): Likewise.
7221         (RUN_TEST_LOOP_f_i): Likewise.
7222         (RUN_TEST_LOOP_f_i_tg): Likewise.
7223         (RUN_TEST_LOOP_ff_i_tg): Likewise.
7224         (RUN_TEST_LOOP_f_b): Likewise.
7225         (RUN_TEST_LOOP_f_b_tg): Likewise.
7226         (RUN_TEST_LOOP_f_l): Likewise.
7227         (RUN_TEST_LOOP_f_L): Likewise.
7228         (RUN_TEST_LOOP_fFF_11): Likewise.
7229         * math/gen-libm-test.pl (parse_args): Output four copies of
7230         expected results for each test.
7231
7232         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7233         (__ASSUME_UTIMES): Remove.
7234         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7235         (__ASSUME_UTIMES): Likewise.
7236
7237         * math/gen-auto-libm-tests.c: Update comment on output format.
7238         (output_for_one_input_case): Generate before-rounding and
7239         after-rounding information as conditions on output flags not
7240         floating-point format.
7241         * math/auto-libm-test-out: Regenerated.
7242         * math/gen-libm-test.pl (cond_value): New function.
7243         (or_cond_value): Use cond_value.
7244         (generate_testfile): Handle conditional exceptions.
7245
7246 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
7247
7248         * math/libm-test.inc (max_valid_error): New variable.
7249         (init_max_error): Take new argument specifying whether function
7250         results are exactly determined.  Set max_valid_error and bound
7251         other variables for errors based on this argument.
7252         (set_max_error): Do not record results above max_valid_error.
7253         (check_float_internal): Only accept errors of up to 0.5ulps if
7254         also at most max_valid_error.
7255         (START): Take new argument EXACT and pass it to init_max_error.
7256         (acos_test): Update call to START.
7257         (acos_test_tonearest): Likewise.
7258         (acos_test_towardzero): Likewise.
7259         (acos_test_downward): Likewise.
7260         (acos_test_upward): Likewise.
7261         (acosh_test): Likewise.
7262         (asin_test): Likewise.
7263         (asin_test_tonearest): Likewise.
7264         (asin_test_towardzero): Likewise.
7265         (asin_test_downward): Likewise.
7266         (asin_test_upward): Likewise.
7267         (asinh_test): Likewise.
7268         (atan_test): Likewise.
7269         (atanh_test): Likewise.
7270         (atan2_test): Likewise.
7271         (cabs_test): Likewise.
7272         (cacos_test): Likewise.
7273         (cacosh_test): Likewise.
7274         (carg_test): Likewise.
7275         (casin_test): Likewise.
7276         (casinh_test): Likewise.
7277         (catan_test): Likewise.
7278         (catanh_test): Likewise.
7279         (cbrt_test): Likewise.
7280         (ccos_test): Likewise.
7281         (ccosh_test): Likewise.
7282         (ceil_test): Likewise.
7283         (cexp_test): Likewise.
7284         (cimag_test): Likewise.
7285         (clog_test): Likewise.
7286         (clog10_test): Likewise.
7287         (conj_test): Likewise.
7288         (copysign_test): Likewise.
7289         (cos_test): Likewise.
7290         (cos_test_tonearest): Likewise.
7291         (cos_test_towardzero): Likewise.
7292         (cos_test_downward): Likewise.
7293         (cos_test_upward): Likewise.
7294         (cosh_test): Likewise.
7295         (cosh_test_tonearest): Likewise.
7296         (cosh_test_towardzero): Likewise.
7297         (cosh_test_downward): Likewise.
7298         (cosh_test_upward): Likewise.
7299         (cpow_test): Likewise.
7300         (cproj_test): Likewise.
7301         (creal_test): Likewise.
7302         (csin_test): Likewise.
7303         (csinh_test): Likewise.
7304         (csqrt_test): Likewise.
7305         (ctan_test): Likewise.
7306         (ctan_test_tonearest): Likewise.
7307         (ctan_test_towardzero): Likewise.
7308         (ctan_test_downward): Likewise.
7309         (ctan_test_upward): Likewise.
7310         (ctanh_test): Likewise.
7311         (ctanh_test_tonearest): Likewise.
7312         (ctanh_test_towardzero): Likewise.
7313         (ctanh_test_downward): Likewise.
7314         (ctanh_test_upward): Likewise.
7315         (erf_test): Likewise.
7316         (erfc_test): Likewise.
7317         (exp_test): Likewise.
7318         (exp_test_tonearest): Likewise.
7319         (exp_test_towardzero): Likewise.
7320         (exp_test_downward): Likewise.
7321         (exp_test_upward): Likewise.
7322         (exp10_test): Likewise.
7323         (exp10_test_tonearest): Likewise.
7324         (exp10_test_towardzero): Likewise.
7325         (exp10_test_downward): Likewise.
7326         (exp10_test_upward): Likewise.
7327         (pow10_test): Likewise.
7328         (exp2_test): Likewise.
7329         (expm1_test): Likewise.
7330         (expm1_test_tonearest): Likewise.
7331         (expm1_test_towardzero): Likewise.
7332         (expm1_test_downward): Likewise.
7333         (expm1_test_upward): Likewise.
7334         (fabs_test): Likewise.
7335         (fdim_test): Likewise.
7336         (floor_test): Likewise.
7337         (fma_test): Likewise.
7338         (fma_test_towardzero): Likewise.
7339         (fma_test_downward): Likewise.
7340         (fma_test_upward): Likewise.
7341         (fmax_test): Likewise.
7342         (fmin_test): Likewise.
7343         (fmod_test): Likewise.
7344         (fpclassify_test): Likewise.
7345         (frexp_test): Likewise.
7346         (hypot_test): Likewise.
7347         (ilogb_test): Likewise.
7348         (isfinite_test): Likewise.
7349         (finite_test): Likewise.
7350         (isgreater_test): Likewise.
7351         (isgreaterequal_test): Likewise.
7352         (isinf_test): Likewise.
7353         (isless_test): Likewise.
7354         (islessequal_test): Likewise.
7355         (islessgreater_test): Likewise.
7356         (isnan_test): Likewise.
7357         (isnormal_test): Likewise.
7358         (issignaling_test): Likewise.
7359         (isunordered_test): Likewise.
7360         (j0_test): Likewise.
7361         (j1_test): Likewise.
7362         (jn_test): Likewise.
7363         (ldexp_test): Likewise.
7364         (lgamma_test): Likewise.
7365         (gamma_test): Likewise.
7366         (lrint_test): Likewise.
7367         (lrint_test_tonearest): Likewise.
7368         (lrint_test_towardzero): Likewise.
7369         (lrint_test_downward): Likewise.
7370         (lrint_test_upward): Likewise.
7371         (llrint_test): Likewise.
7372         (llrint_test_tonearest): Likewise.
7373         (llrint_test_towardzero): Likewise.
7374         (llrint_test_downward): Likewise.
7375         (llrint_test_upward): Likewise.
7376         (log_test): Likewise.
7377         (log10_test): Likewise.
7378         (log1p_test): Likewise.
7379         (log2_test): Likewise.
7380         (logb_test): Likewise.
7381         (logb_test_downward): Likewise.
7382         (lround_test): Likewise.
7383         (llround_test): Likewise.
7384         (modf_test): Likewise.
7385         (nearbyint_test): Likewise.
7386         (nextafter_test): Likewise.
7387         (nexttoward_test): Likewise.
7388         (pow_test): Likewise.
7389         (pow_test_tonearest): Likewise.
7390         (pow_test_towardzero): Likewise.
7391         (pow_test_downward): Likewise.
7392         (pow_test_upward): Likewise.
7393         (remainder_test): Likewise.
7394         (drem_test): Likewise.
7395         (remainder_test_tonearest): Likewise.
7396         (drem_test_tonearest): Likewise.
7397         (remainder_test_towardzero): Likewise.
7398         (drem_test_towardzero): Likewise.
7399         (remainder_test_downward): Likewise.
7400         (drem_test_downward): Likewise.
7401         (remainder_test_upward): Likewise.
7402         (drem_test_upward): Likewise.
7403         (remquo_test): Likewise.
7404         (rint_test): Likewise.
7405         (rint_test_tonearest): Likewise.
7406         (rint_test_towardzero): Likewise.
7407         (rint_test_downward): Likewise.
7408         (rint_test_upward): Likewise.
7409         (round_test): Likewise.
7410         (scalb_test): Likewise.
7411         (scalbn_test): Likewise.
7412         (scalbln_test): Likewise.
7413         (signbit_test): Likewise.
7414         (sin_test): Likewise.
7415         (sin_test_tonearest): Likewise.
7416         (sin_test_towardzero): Likewise.
7417         (sin_test_downward): Likewise.
7418         (sin_test_upward): Likewise.
7419         (sincos_test): Likewise.
7420         (sinh_test): Likewise.
7421         (sinh_test_tonearest): Likewise.
7422         (sinh_test_towardzero): Likewise.
7423         (sinh_test_downward): Likewise.
7424         (sinh_test_upward): Likewise.
7425         (sqrt_test): Likewise.
7426         (sqrt_test_tonearest): Likewise.
7427         (sqrt_test_towardzero): Likewise.
7428         (sqrt_test_downward): Likewise.
7429         (sqrt_test_upward): Likewise.
7430         (tan_test): Likewise.
7431         (tan_test_tonearest): Likewise.
7432         (tan_test_towardzero): Likewise.
7433         (tan_test_downward): Likewise.
7434         (tan_test_upward): Likewise.
7435         (tanh_test): Likewise.
7436         (tgamma_test): Likewise.
7437         (trunc_test): Likewise.
7438         (y0_test): Likewise.
7439         (y1_test): Likewise.
7440         (yn_test): Likewise.
7441         (significand_test): Likewise.
7442
7443         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
7444         individual tests in comment.
7445         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
7446         (prev_max_error): New variable.
7447         (prev_real_max_error): Likewise.
7448         (prev_imag_max_error): Likewise.
7449         (compare_ulp_data): Don't refer to test names in comment.
7450         (find_test_ulps): Remove function.
7451         (find_function_ulps): Likewise.
7452         (find_complex_function_ulps): Likewise.
7453         (init_max_error): Take function name as argument.  Look up ulps
7454         for that function.
7455         (print_ulps): Remove function.
7456         (print_max_error): Use prev_max_error instead of calling
7457         find_function_ulps.
7458         (print_complex_max_error): Use prev_real_max_error and
7459         prev_imag_max_error instead of calling find_complex_function_ulps.
7460         (check_float_internal): Take max_ulp parameter instead of calling
7461         find_test_ulps.  Don't call print_ulps.
7462         (check_float): Update call to check_float_internal.
7463         (check_complex): Update calls to check_float_internal.
7464         (START): Pass argument to init_max_error.
7465         * math/gen-libm-test.pl (%results): Don't include "kind"
7466         information.
7467         (parse_ulps): Don't handle ulps of individual tests.
7468         (print_ulps_file): Likewise.
7469         (output_ulps): Likewise.
7470         * math/README.libm-test: Update.
7471         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
7472         individual tests.
7473         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
7474         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
7475         * sysdeps/arm/libm-test-ulps: Likewise.
7476         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
7477         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
7478         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
7479         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
7480         * sysdeps/microblaze/libm-test-ulps: Likewise.
7481         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
7482         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
7483         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7484         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
7485         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7486         * sysdeps/sh/libm-test-ulps: Likewise.
7487         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7488         * sysdeps/tile/libm-test-ulps: Likewise.
7489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7490
7491 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
7492
7493         * math/libm-test.inc (print_complex_max_error): Check separately
7494         whether real and imaginary errors are within allowed range and
7495         pass 0 to print_complex_function_ulps instead of value within
7496         allowed range.
7497
7498 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
7499
7500         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
7501         formatting.
7502         (get_handles_fopen): Likewise.
7503         (do_write_test): Likewise.
7504
7505         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
7506
7507         * libio/fileops.c (do_ftell): Use cached offset when
7508         available.
7509         * libio/iofwide.c (do_ftell_wide): Likewise.
7510         * libio/iofdopen.c (_IO_new_fdopen): Don't use
7511         _IO_file_attach.
7512         * libio/wfileops.c (_IO_fwide): Don't cache offset.
7513
7514         [BZ #16532]
7515         * libio/libioP.h (get_file_offset): New function.
7516         * libio/fileops.c (get_file_offset): Likewise.
7517         (do_ftell): Likewise.
7518         (_IO_new_file_seekoff): Split out ftell logic.
7519         * libio/wfileops.c (do_ftell_wide): Likewise.
7520         (_IO_wfile_seekoff): Split out ftell logic.
7521         * libio/tst-ftell-active-handler.c: New test case.
7522         * libio/Makefile (tests): Add it.
7523
7524 2014-03-03  Roland McGrath  <roland@hack.frob.com>
7525
7526         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
7527         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
7528
7529 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7530
7531         [BZ #16639]
7532         * nscd/connections.c (nscd_init): Call do_exit.
7533         (start_threads): Call do_exit and notify_parent.
7534         (begin_drop_privileges): Call do_exit.
7535         (finish_drop_privileges): Likewise.
7536         * nscd/selinux.c (preserve_capabilities): Likewise.
7537         (install_real_capabilities): Likewise.
7538         (nscd_selinux_enabled): Likewise.
7539         (avc_create_thread): Likewise.
7540         (avc_alloc_lock): Likewise.
7541         (nscd_avc_init): Likewise.
7542         * nscd/nscd.c (parent_fd): New static variable.
7543         (main): Create a pipe between parent and child processes.
7544         Skip closing parent_fd.
7545         (monitor_child): New function.
7546         (do_exit): Likewise.
7547         (notify_parent): Likewise.
7548         * nscd/nscd.h (notify_parent): Likewise.
7549         (do_exit): Likewise.
7550
7551 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
7552
7553         * malloc/malloc.c (__libc_calloc): Revert last change.
7554
7555 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7556
7557         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7558
7559 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7560
7561         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
7562         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
7563         implementation.
7564         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7565         (__libc_ifunc_impl_list): Likewise.
7566         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
7567         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
7568         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
7569         * string/strrchr.c: Define STRRCHR.
7570
7571 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
7572
7573         * benchtest/bench-strtok.c (simple_strtok): Delete.
7574         (strtok_string): Use as benchmark.
7575         * string/strtok (STRTOK): New macro.
7576
7577 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
7578
7579         * manual/threads.texi: Add header and standard comments to all
7580         functions.
7581
7582         * elf/dl-lookup.c (check_match): New function.
7583         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
7584         (do_lookup_x): Remove nested function check_match. Use non-nested
7585         function check_match.
7586
7587 2014-02-28  Roland McGrath  <roland@hack.frob.com>
7588
7589         * csu/Makefile (generated, before-compile): Use += rather than =.
7590         * catgets/Makefile (generated, generated-dirs): Likewise.
7591         * debug/Makefile (generated): Likewise.
7592         * dlfcn/Makefile (generated): Likewise.
7593         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
7594         * iconvdata/Makefile (before-compile, generated): Likewise.
7595         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
7596         * libio/Makefile (generated): Likewise.
7597         * malloc/Makefile (generated): Likewise.
7598         * manual/Makefile (generated, generated-dirs): Likewise.
7599         * misc/Makefile (generated): Likewise.
7600         * posix/Makefile (generated): Likewise.
7601         * resolv/Makefile (generated): Likewise.
7602         * sunrpc/Makefile (generated, generated-dirs): Likewise.
7603         * timezone/Makefile (generated, generated-dirs): Likewise.
7604
7605         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
7606
7607 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7608
7609         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
7610         power8 implementation.
7611         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
7612         file: POWER8 llround ifunc implementation.
7613         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
7614         (__lllround): Add POWER8 implementation.
7615         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
7616         POWER8 llround implementation.
7617
7618         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
7619         power8 implementation.
7620         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
7621         file: POWER8 llrint ifunc implementation.
7622         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
7623         Add POWER8 implementation.
7624         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
7625         POWER8 llrint implementation.
7626
7627         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
7628         power8 implementation.
7629         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
7630         file: POWER8 finite ifunc implementation.
7631         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
7632         Add POWER8 implementation.
7633         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
7634         Likewise.
7635         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
7636         POWER8 finite implementation.
7637         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
7638
7639         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
7640         power8 implementation.
7641         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
7642         file: POWER8 isinf ifunc implementation.
7643         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
7644         POWER8 implementation.
7645         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
7646         Likewise.
7647         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
7648         isinf implementation.
7649         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
7650
7651         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
7652         (INIT_ARCH): Add hwcap2 initialization.
7653         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
7654         power8 implementation.
7655         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
7656         file: POWER8 isnan ifunc implementation.
7657         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
7658         POWER8 implementation.
7659         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
7660         Likewise.
7661         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
7662         isnan implementation.
7663         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
7664
7665 2014-02-27  Joey Ye  <joey.ye@arm.com>
7666
7667         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
7668         (_FP_NANFRAC_Q): Set to zero.
7669
7670 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7671
7672         [BZ #16623]
7673         * math/auto-libm-test-in: New test inputs.
7674         * math/auto-libm-test-out: Regenerate.
7675         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
7676         and DA.
7677         (__cos): Likewise.
7678         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
7679
7680 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
7681
7682         * scripts/evaluate-test.sh: Take new argument indicating whether
7683         failure is expected.
7684         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
7685         indicating whether failure is expected.
7686         * conform/Makefile (test-xfail-run-conformtest): New variable.
7687         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
7688         level.
7689         * posix/Makefile (test-xfail-annexc): New variable.
7690         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
7691
7692 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
7693
7694         * argp/Makefile: Include Makeconfig immediately after defining
7695         subdir.
7696         * assert/Makefile: Likewise.
7697         * benchtests/Makefile: Likewise.
7698         * catgets/Makefile: Likewise.
7699         * conform/Makefile: Likewise.
7700         * crypt/Makefile: Likewise.
7701         * csu/Makefile: Likewise.
7702         (all): Remove target.
7703         * ctype/Makefile: Include Makeconfig immediately after defining
7704         subdir.
7705         * debug/Makefile: Likewise.
7706         * dirent/Makefile: Likewise.
7707         * dlfcn/Makefile: Likewise.
7708         * gmon/Makefile: Likewise.
7709         * gnulib/Makefile: Likewise.
7710         * grp/Makefile: Likewise.
7711         * gshadow/Makefile: Likewise.
7712         * hesiod/Makefile: Likewise.
7713         * hurd/Makefile: Likewise.
7714         (all): Remove target.
7715         * iconvdata/Makefile: Include Makeconfig immediately after
7716         defining subdir.
7717         * inet/Makefile: Likewise.
7718         * intl/Makefile: Likewise.
7719         * io/Makefile: Likewise.
7720         * libio/Makefile: Likewise.
7721         (all): Remove target.
7722         * locale/Makefile: Include Makeconfig immediately after defining
7723         subdir.
7724         * login/Makefile: Likewise.
7725         * mach/Makefile: Likewise.
7726         (all): Remove target.
7727         * malloc/Makefile: Include Makeconfig immediately after defining
7728         subdir.
7729         (all): Remove target.
7730         * manual/Makefile: Include Makeconfig immediately after defining
7731         subdir.
7732         * math/Makefile: Likewise.
7733         * misc/Makefile: Likewise.
7734         * nis/Makefile: Likewise.
7735         * nss/Makefile: Likewise.
7736         * po/Makefile: Likewise.
7737         (all): Remove target.
7738         * posix/Makefile: Include Makeconfig immediately after defining
7739         subdir.
7740         * pwd/Makefile: Likewise.
7741         * resolv/Makefile: Likewise.
7742         * resource/Makefile: Likewise.
7743         * rt/Makefile: Likewise.
7744         * setjmp/Makefile: Likewise.
7745         * shadow/Makefile: Likewise.
7746         * signal/Makefile: Likewise.
7747         * socket/Makefile: Likewise.
7748         * soft-fp/Makefile: Likewise.
7749         * stdio-common/Makefile: Likewise.
7750         * stdlib/Makefile: Likewise.
7751         * streams/Makefile: Likewise.
7752         * string/Makefile: Likewise.
7753         * sunrpc/Makefile: Likewise.
7754         (all): Remove target.
7755         * sysvipc/Makefile: Include Makeconfig immediately after defining
7756         subdir.
7757         * termios/Makefile: Likewise.
7758         * time/Makefile: Likewise.
7759         * timezone/Makefile: Likewise.
7760         (all): Remove target.
7761         * wcsmbs/Makefile: Include Makeconfig immediately after defining
7762         subdir.
7763         * wctype/Makefile: Likewise.
7764
7765 2014-02-26  Steve Ellcey  <sellcey@mips.com>
7766
7767         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
7768         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
7769         (libc_feholdexcept_setround_mips): Ditto.
7770         (libc_feholdsetround): New.
7771         (libc_feholdsetroundf): New.
7772         (libc_feholdsetroundl): New.
7773         (libc_feupdateenv_test_mips): New.
7774         (libc_feupdateenv_test): New.
7775         (libc_feupdateenv_testf): New.
7776         (libc_feupdateenv_testl): New.
7777         (libc_feresetround): New.
7778         (libc_feresetroundf): New.
7779         (libc_feresetroundl): New.
7780         (libc_fetestexcept_mips): New.
7781         (libc_fetestexcept): New.
7782         (libc_fetestexceptf): New.
7783         (libc_fetestexceptl): New.
7784         (HAVE_RM_CTX): New.
7785         (libc_feholdexcept_setround_mips_ctx): New.
7786         (libc_feholdexcept_setround_ctx): New.
7787         (libc_feholdexcept_setroundf_ctx): New.
7788         (libc_feholdexcept_setroundl_ctx): New.
7789         (libc_fesetenv_mips_ctx): New.
7790         (libc_fesetenv_ctx): New.
7791         (libc_fesetenv_ctxf): New.
7792         (libc_fesetenv_ctxl): New.
7793         (libc_feupdateenv_mips_ctx): New.
7794         (libc_feupdateenv_ctx): New.
7795         (libc_feupdateenvf_ctx): New.
7796         (libc_feupdateenvl_ctx): New.
7797         (libc_feholdsetround_mips_ctx): New.
7798         (libc_feholdsetround_ctx): New.
7799         (libc_feholdsetroundf_ctx): New.
7800         (libc_feholdsetroundl_ctx): New.
7801         (libc_feresetround_mips_ctx): New.
7802         (libc_feresetround_ctx): New.
7803         (libc_feresetroundf_ctx): New.
7804         (libc_feresetroundl_ctx): New.
7805
7806 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
7807
7808         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
7809
7810         * manual/ipc.texi: New file.
7811         * manual/Makefile (chapters): Add ipc.
7812         * manual/job.texi: Add "Inter-Process Communication" to next.
7813         * manual/process.texi: Add "Inter-Process Communication" to prev.
7814
7815 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7816
7817         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7818
7819 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
7820
7821         * malloc/malloc.c (__libc_calloc): Simplify implementation.
7822
7823         * manual/arith.texi: Fix spaces after sentences.
7824         * manual/charset.texi: Likewise.
7825         * manual/errno.texi: Likewise.
7826         * manual/install.texi: Likewise.
7827         * manual/llio.texi: Likewise.
7828         * manual/locale.texi: Likewise.
7829         * manual/maint.texi: Likewise.
7830         * manual/math.texi: Likewise.
7831         * manual/memory.texi: Likewise.
7832         * manual/message.texi: Likewise.
7833         * manual/probes.texi: Likewise.
7834         * manual/resource.texi: Likewise.
7835         * manual/signal.texi: Likewise.
7836         * manual/socket.texi: Likewise.
7837         * manual/stdio.texi: Likewise.
7838         * manual/string.texi: Likewise.
7839         * manual/time.texi: Likewise.
7840         * manual/users.texi: Likewise.
7841
7842 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
7843
7844         [BZ #16632]
7845         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
7846         _DEFAULT_SOURCE is defined.
7847
7848 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
7849             Carlos O'Donell  <carlos@redhat.com>
7850
7851         [BZ #16613]
7852         * elf/dl-tls.c (_dl_count_modids): New function.
7853         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
7854         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
7855         audit library and increment generation counter.
7856         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
7857         * elf/tst-audit9.c: New file.
7858         * elf/tst-auditmod9a.c: New file.
7859         * elf/tst-auditmod9b.c: New file.
7860         * elf/Makefile: Add rules to build and run tst-audit9.
7861
7862 2014-02-25  Florian Weimer  <fweimer@redhat.com>
7863
7864         [BZ #15347]
7865         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
7866
7867 2014-02-25  Will Newton  <will.newton@linaro.org>
7868
7869         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
7870         (__longjmp): Restore sp and lr before restoring callee
7871         saved registers.  Add longjmp and longjmp_target
7872         SystemTap probe point.
7873         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
7874         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
7875         Define to zero to match jmpbuf layout.
7876         * sysdeps/arm/setjmp.S: Include stap-probe.h.
7877         (__sigsetjmp): Save sp and lr before saving callee
7878         saved registers.  Add setjmp SystemTap probe point.
7879
7880 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
7881
7882         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7883
7884 2014-02-24  Andreas Schwab  <schwab@suse.de>
7885
7886         [BZ #15804]
7887         * elf/pldd.c (wait_for_ptrace_stop): New function.
7888         (main): Call it after attaching.
7889
7890 2014-02-22  Roland McGrath  <roland@hack.frob.com>
7891
7892         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
7893         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
7894         Versions files is now verboten.
7895         * hurd/Versions (libc: GLIBC_2.0):
7896         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
7897         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
7898         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
7899         * mach/Versions: Likewise.
7900
7901         * csu/Versions: Remove unused %include.
7902         * resolv/Versions: Likewise.
7903
7904 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
7905
7906         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
7907         ($(objpfx)check-local-headers.out): Likewise.
7908         ($(objpfx)begin-end-check.out): Likewise.
7909         * Makerules (check-abi-%.out): Likewise.
7910         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
7911         ($(objpfx)test2.cat): Likewise.
7912         ($(objpfx)de/libc.cat): Likewise.
7913         ($(objpfx)test-gencat.out): Likewise.
7914         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
7915         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
7916         ($(objpfx)noload-mem): Likewise.
7917         ($(objpfx)tst-pathopt.out): Likewise.
7918         ($(objpfx)tst-rtld-load-self.out): Likewise.
7919         ($(objpfx)tst-array1-cmp.out): Likewise.
7920         ($(objpfx)tst-array1-static-cmp.out): Likewise.
7921         ($(objpfx)tst-array2-cmp.out): Likewise.
7922         ($(objpfx)tst-array3-cmp.out): Likewise.
7923         ($(objpfx)tst-array4-cmp.out): Likewise.
7924         ($(objpfx)tst-array5-cmp.out): Likewise.
7925         ($(objpfx)tst-array5-static-cmp.out): Likewise.
7926         ($(objpfx)check-textrel.out): Likewise.
7927         ($(objpfx)check-execstack.out): Likewise.
7928         ($(objpfx)check-localplt.out): Likewise.
7929         ($(objpfx)order2-cmp.out): Likewise.
7930         ($(objpfx)tst-leaks1-mem): Likewise.
7931         ($(objpfx)tst-leaks1-static-mem): Likewise.
7932         ($(objpfx)tst-initorder-cmp.out): Likewise.
7933         ($(objpfx)tst-initorder2-cmp.out): Likewise.
7934         ($(objpfx)tst-unused-dep.out): Likewise.
7935         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
7936         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7937         * iconv/Makefile (test-iconvconfig): Likewise.
7938         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
7939         ($(objpfx)iconv-test.out): Likewise.
7940         ($(objpfx)tst-tables.out): Likewise.
7941         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
7942         ($(objpfx)tst-gettext.out): Likewise.
7943         ($(objpfx)tst-translit.out): Likewise.
7944         ($(objpfx)tst-gettext2.out): Likewise.
7945         ($(objpfx)tst-gettext4.out): Likewise.
7946         ($(objpfx)tst-gettext6.out): Likewise.
7947         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
7948         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7949         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
7950         ($(objpfx)tst-fopenloc-mem.out): Likewise.
7951         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7952         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
7953         * posix/Makefile ($(objpfx)globtest.out): Likewise.
7954         ($(objpfx)wordexp-tst.out): Likewise.
7955         ($(objpfx)annexc.out): Likewise.
7956         ($(objpfx)tst-fnmatch-mem): Likewise.
7957         ($(objpfx)bug-regex2-mem): Likewise.
7958         ($(objpfx)bug-regex14-mem): Likewise.
7959         ($(objpfx)bug-regex21-mem): Likewise.
7960         ($(objpfx)bug-regex31-mem): Likewise.
7961         ($(objpfx)tst-vfork3-mem): Likewise.
7962         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7963         ($(objpfx)tst-pcre-mem): Likewise.
7964         ($(objpfx)tst-boost-mem): Likewise.
7965         ($(objpfx)tst-getconf.out): Likewise.
7966         ($(objpfx)bug-ga2-mem): Likewise.
7967         ($(objpfx)bug-glob2-mem): Likewise.
7968         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
7969         ($(objpfx)mtrace-tst-leaks2): Likewise.
7970         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
7971         ($(objpfx)tst-printf.out): Likewise.
7972         ($(objpfx)tst-setvbuf1.out): Likewise.
7973         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
7974         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
7975         ($(objpfx)tst-fmtmsg.out): Likewise.
7976         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
7977         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
7978
7979         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
7980         * bits/sigaction.h [__USE_MISC]: Likewise.
7981         * bits/waitstatus.h: Update #endif comments.
7982         * ctype/ctype.h: Likewise.
7983         * dirent/dirent.h: Likewise.
7984         [__USE_MISC]: Remove redundant conditionals.
7985         * grp/grp.h: Update #endif comments.
7986         [__USE_GNU]: Remove redundant conditionals.
7987         [__USE_MISC]: Likewise.
7988         * inet/netinet/in.h [__USE_GNU]: Likewise.
7989         * io/sys/stat.h [__USE_MISC]: Likewise.
7990         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
7991         * libio/bits/stdio.h: Update #endif comments.
7992         [__USE_MISC]: Remove redundant conditionals.
7993         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
7994         * libio/stdio.h: Update #endif comments.
7995         [__USE_MISC]: Remove redundant conditionals.
7996         * math/bits/math-finite.h [__USE_MISC]: Likewise.
7997         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
7998         * math/math.h: Update #else and #endif comments.
7999         [__USE_MISC]: Remove redundant conditionals.
8000         * misc/sys/uio.h: Update #endif comments.
8001         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
8002         * posix/glob.h [__USE_MISC]: Likewise.
8003         * posix/sys/types.h: Update #endif comments.
8004         [__USE_MISC]: Remove redundant conditionals.
8005         * posix/sys/wait.h: Update #endif comments.
8006         [__USE_MISC]: Remove redundant conditionals.
8007         * posix/unistd.h: Update #endif comments.
8008         [__USE_MISC]: Remove redundant conditionals.
8009         * pwd/pwd.h [__USE_GNU]: Likewise.
8010         [__USE_MISC]: Likewise.
8011         * resolv/netdb.h [__USE_GNU]: Likewise.
8012         * signal/signal.h: Update #endif comments.
8013         [__USE_MISC]: Remove redundant conditionals.
8014         * stdlib/stdlib.h: Update #else and #endif comments.
8015         [__USE_MISC]: Remove redundant conditionals.
8016         [__USE_GNU]: Likewise.
8017         * string/bits/string2.h [__USE_MISC]: Likewise.
8018         * string/string.h: Update #endif comments.
8019         [__USE_MISC]: Remove redundant conditionals.
8020         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
8021         Likewise.
8022         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
8023         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
8024         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
8025         Likewise.
8026         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
8027         Likewise.
8028         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
8029         comments.
8030         [__USE_MISC]: Remove redundant conditionals.
8031         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
8032         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
8033         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
8034         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
8035         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
8036         Likewise.
8037         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
8038         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
8039         Likewise.
8040         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
8041         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
8042         Likewise.
8043         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
8044         Likewise.
8045         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
8046         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
8047         Likewise.
8048         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
8049         Likewise.
8050         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
8051         * sysdeps/x86/bits/string.h: Update #endif comments.
8052         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
8053         conditionals.
8054         * time/sys/time.h: Update #endif comments.
8055         * time/time.h: Likewise.
8056         [__USE_MISC]: Remove redundant conditionals.
8057
8058 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
8059
8060         [BZ #16600]
8061         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
8062
8063 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
8064
8065         * Versions.def (librt): Add GLIBC_2.17.
8066
8067 2014-02-21  Adam Conrad  <adconrad@0c3.net>
8068
8069         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
8070         synonym for _SYS_AUXV_H to allow direct inclusion.
8071         * sysdeps/sparc/bits/hwcap.h: Likewise.
8072         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
8073         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
8074         * sysdeps/sparc/sysdep.h: Likewise.
8075
8076 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8077
8078         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
8079
8080 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8081
8082         * benchtests/bench-strrchr.c: Print length instead of position.
8083
8084 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
8085
8086         [BZ #16611]
8087         * sysdeps/unix/sysv/linux/kernel-features.h
8088         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
8089         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
8090         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
8091         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
8092         Likewise.
8093         [__i386__ || __powerpc__ || __sh__ || __sparc__]
8094         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8095         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
8096         (__ASSUME_SENDMMSG): Define instead of using previous
8097         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
8098         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8099         (__ASSUME_SENDMMSG_SYSCALL): Define.
8100         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8101         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
8102         Likewise.
8103         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8104         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8105         Likewise.
8106         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8107         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8108         Likewise.
8109         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
8110         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
8111         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
8112         [__ASSUME_SENDMMSG]: Change conditionals to
8113         [__ASSUME_SENDMMSG_SOCKETCALL].
8114         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8115         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
8116         Define.
8117         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8118         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
8119         Likewise.
8120         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
8121         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
8122         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
8123         [!__ASSUME_SENDMMSG]: Change conditional to
8124         [!__ASSUME_SENDMMSG_SOCKETCALL].
8125         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8126         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8127         Define.
8128
8129         [BZ #16610]
8130         * sysdeps/unix/sysv/linux/kernel-features.h
8131         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
8132         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
8133         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
8134         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
8135         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
8136         [__i386__ || __sparc__]
8137         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8138         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
8139         (__ASSUME_RECVMMSG): Define instead of using previous
8140         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
8141         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8142         (__ASSUME_RECVMMSG_SYSCALL): Define.
8143         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8144         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8145         Likewise.
8146         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8147         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8148         Likewise.
8149         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8150         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8151         Likewise.
8152         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
8153         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
8154         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
8155         [__ASSUME_RECVMMSG]: Change condition to
8156         [__ASSUME_RECVMMSG_SOCKETCALL].
8157         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8158         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8159         Define.
8160         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8161         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8162         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8163         Likewise.
8164         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
8165         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
8166         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
8167         [!__ASSUME_RECVMMSG]: Change condition to
8168         [!__ASSUME_RECVMMSG_SOCKETCALL].
8169         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8170         (__ASSUME_RECVMMSG_SYSCALL): Define.
8171
8172         [BZ #16609]
8173         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
8174         __powerpc__ || __s390__ || __sh__ || __sparc__]
8175         (__ASSUME_SOCKETCALL): Define.
8176         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
8177         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
8178         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
8179         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
8180         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
8181         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
8182         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
8183         (__ASSUME_ACCEPT4): Define instead of using previous
8184         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
8185         __powerpc__ || __sparc__ || __s390__)] condition.
8186         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8187         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
8188         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
8189         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
8190         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
8191         [!__ASSUME_ACCEPT4]: Change condition to
8192         [!__ASSUME_ACCEPT4_SOCKETCALL].
8193         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8194         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
8195         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
8196         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8197         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
8198         __ASSUME_ACCEPT4_SYSCALL.
8199         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
8200         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
8201         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8202         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
8203         __ASSUME_ACCEPT4_SYSCALL.
8204         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
8205         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
8206         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
8207         [__ASSUME_ACCEPT4]: Change condition to
8208         [__ASSUME_ACCEPT4_SOCKETCALL].
8209         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8210         (__ASSUME_SOCKETCALL): Define.
8211         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
8212         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8213         (__ASSUME_SOCKETCALL): Define.
8214         (__ASSUME_ACCEPT4): Remove.
8215         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
8216         Define.
8217         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8218         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
8219         Likewise.
8220         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8221         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
8222
8223         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
8224         macro.
8225         (HWCAP_ARM_LPAE): Likewise.
8226         (HWCAP_ARM_EVTSTRM): Likewise.
8227         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
8228         Add vpfd32, lpae and evtstrm.
8229         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8230         Increase to 22.
8231
8232 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
8233
8234         * math/auto-libm-test-in: Add tests of clog10.
8235         * math/auto-libm-test-out: Regenerated.
8236         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
8237         * sysdeps/i386/fpu/libm-test-ulps: Update.
8238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8239
8240 2014-02-18  Andreas Schwab  <schwab@suse.de>
8241
8242         [BZ #16574]
8243         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
8244         Store non-zero if the second buffer was newly allocated.
8245         (send_dg): Likewise.
8246         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
8247         to send_vc and send_dg.
8248         (res_nsend): Pass NULL for ansp2_malloced.
8249         * resolv/res_query.c (__libc_res_nquery): Add parameter
8250         answerp2_malloced and pass it down to __libc_res_nsend.
8251         (res_nquery): Pass additional NULL to __libc_res_nquery.
8252         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
8253         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
8254         second answer buffer if answerp2_malloced was set.
8255         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
8256         (__libc_res_nquerydomain): Add parameter
8257         answerp2_malloced and pass it down to __libc_res_nquery.
8258         (res_nquerydomain): Pass additional NULL to
8259         __libc_res_nquerydomain.
8260         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
8261         additional NULL to __libc_res_nsend and __libc_res_nquery.
8262         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
8263         additional NULL to __libc_res_nsearch.
8264         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
8265         parameter of __libc_res_nsearch to check for separately allocated
8266         second buffer.
8267         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
8268         __libc_res_nquery.
8269         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
8270         additional NULL to __libc_res_nquery.
8271         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
8272         __libc_res_nsearch.
8273         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
8274         * include/resolv.h: Update prototypes of __libc_res_nquery,
8275         __libc_res_nsearch, __libc_res_nsend.
8276
8277 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
8278
8279         * math/auto-libm-test-in: Add tests of fma.
8280         * math/auto-libm-test-out: Regenerated.
8281         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
8282         (fma_towardzero_test_data): Likewise.
8283         (fma_downward_test_data): Likewise.
8284         (fma_upward_test_data): Likewise.
8285         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
8286         mpc_mode.
8287         (rounding_modes): Add values for new field.
8288         (func_calc_method): Add value mpfr_fff_f.
8289         (func_calc_desc): Add mpfr_fff_f union field.
8290         (test_function): Add field exact_args.
8291         (FUNC): Add macro argument EXACT_ARGS.
8292         (FUNC_mpfr_f_f): Update call to FUNC.
8293         (FUNC_mpfr_f_f): Likewise.
8294         (FUNC_mpfr_ff_f): Likewise.
8295         (FUNC_mpfr_if_f): Likewise.
8296         (FUNC_mpc_c_f): Likewise.
8297         (FUNC_mpc_c_c): Likewise.
8298         (test_functions): Add fma.  Update calls to FUNC.
8299         (handle_input_arg): Add argument exact_args.
8300         (add_test): Update call to handle_input_arg.
8301         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
8302         (output_for_one_input_case): Update call to calc_generic_results.
8303         Recalculate exact zero results in each rounding mode.
8304
8305         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
8306         non-negative before setting low bit.
8307         * math/auto-libm-test-in: Mark one asin test possibly having
8308         spurious underflow.
8309         * math/auto-libm-test-out: Regenerated.
8310         * sysdeps/i386/fpu/libm-test-ulps: Update.
8311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8312
8313 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
8314
8315         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
8316         * sysdeps/unix/sysv/linux/microblaze: Move directory from
8317         ports/sysdeps/unix/sysv/linux/microblaze.
8318         * README: Add missing listing for microblaze*-*-linux-gnu.
8319
8320 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
8321
8322         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
8323         * sysdeps/unix/sysv/linux/ia64: Move directory from
8324         ports/sysdeps/unix/sysv/linux/ia64.
8325         * README: Update listing for ia64-*-linux-gnu.
8326
8327 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
8328             Joseph Myers  <joseph@codesourcery.com>
8329
8330         * Makeconfig (test-name): New variable.
8331         (evaluate-test): Likewise.
8332         * Makerules (do-test-clean): Remove .test-result files.
8333         (common-mostlyclean): Likewise.
8334         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
8335         * scripts/evaluate-test.sh: New file.
8336
8337 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
8338
8339         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
8340         separate $(objpfx)tst-fopenloc-cmp.out and
8341         $(objpfx)tst-fopenloc-mem.out targets.
8342         (tests): Update dependencies.
8343         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
8344         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
8345         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
8346         (tst-rxspencer-no-utf8-ARGS): New variable.
8347         (tst-rxspencer-no-utf8-ENV): Likewise.
8348         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
8349         instead of $(objpfx)tst-rxspencer-mem.
8350         ($(objpfx)tst-rxspencer-mem): Change target to
8351         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
8352         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
8353         * posix/tst-rxspencer-no-utf8.c: New file.
8354
8355         * elf/Makefile ($(objpfx)order.out): Remove rule.
8356         [$(run-built-tests) = yes] (tests): Depend on
8357         $(objpfx)order-cmp.out.
8358         ($(objpfx)order-cmp.out): New rule.
8359         [$(run-built-tests) = yes] (tests): Depend on
8360         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
8361         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
8362         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
8363         $(objpfx)tst-array5-static-cmp.out.
8364         ($(objpfx)tst-array1.out): Remove rule.
8365         ($(objpfx)tst-array1-cmp.out): New rule.
8366         ($(objpfx)tst-array1-static.out): Remove rule.
8367         ($(objpfx)tst-array1-static-cmp.out): New rule.
8368         ($(objpfx)tst-array2.out): Remove rule.
8369         ($(objpfx)tst-array2-cmp.out): New rule.
8370         ($(objpfx)tst-array3.out): Remove rule.
8371         ($(objpfx)tst-array3-cmp.out): New rule.
8372         ($(objpfx)tst-array4.out): Remove rule.
8373         ($(objpfx)tst-array4-cmp.out): New rule.
8374         ($(objpfx)tst-array5.out): Remove rule.
8375         ($(objpfx)tst-array5-cmp.out): New rule.
8376         ($(objpfx)tst-array5-static.out): Remove rule.
8377         ($(objpfx)tst-array5-static-cmp.out): New rule.
8378         [$(run-built-tests) = yes] (tests): Depend on
8379         $(objpfx)order2-cmp.out.
8380         ($(objpfx)order2.out): Remove rule.
8381         ($(objpfx)order2-cmp.out): New rule.
8382         ($(objpfx)tst-initorder.out): Remove rule.
8383         [$(run-built-tests) = yes] (tests): Depend on
8384         $(objpfx)tst-initorder-cmp.out.
8385         ($(objpfx)tst-initorder-cmp.out): New rule.
8386         ($(objpfx)tst-initorder2.out): Remove rule.
8387         [$(run-built-tests) = yes] (tests): Depend on
8388         $(objpfx)tst-initorder2-cmp.out.
8389         ($(objpfx)tst-initorder2-cmp.out): New rule.
8390         [$(run-built-tests) = yes] (tests): Depend on
8391         $(objpfx)tst-unused-dep-cmp.out.
8392         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
8393         ($(objpfx)tst-unused-dep-cmp.out): New rule.
8394         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
8395         on $(objpfx)tst-setvbuf1-cmp.out.
8396         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
8397         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
8398         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
8399         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
8400         ($(objpfx)tst-svc.out): Remove rule.
8401         ($(objpfx)tst-svc-cmp.out): New rule.
8402
8403 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
8404
8405         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
8406         * ctype/ctype.h [__USE_MISC]: Likewise.
8407         * dirent/dirent.h [__USE_MISC]: Likewise.
8408         * grp/grp.h [__USE_MISC]: Likewise.
8409         * io/fcntl.h [__USE_MISC]: Likewise.
8410         * io/sys/stat.h [__USE_MISC]: Likewise.
8411         * libio/stdio.h [__USE_MISC]: Likewise.
8412         * posix/unistd.h [__USE_MISC]: Likewise.
8413         * pwd/pwd.h [__USE_MISC]: Likewise.
8414         * stdlib.h [__USE_MISC]: Likewise.
8415         * string/bits/string2.h [__USE_MISC]: Likewise.
8416         * string/string.h [__USE_MISC]: Likewise.
8417         * time/time.h [__USE_MISC]: Likewise.
8418
8419 2014-02-13  Andreas Schwab  <schwab@suse.de>
8420
8421         [BZ #16574]
8422         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
8423         second answer buffer if it was separately allocated.
8424
8425 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
8426
8427         * sysdeps/mips/math-tests.h: Include <features.h>.
8428         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
8429         (ROUNDING_TESTS_long_double): Do not define.
8430         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
8431         (EXCEPTION_TESTS_long_double): Likewise.
8432         * sysdeps/mips/mips64/libm-test-ulps: Update.
8433
8434         * include/features.h (__USE_BSD): Remove macro definitions.
8435         (__USE_SVID): Likewise.
8436         (_BSD_SOURCE): Likewise.
8437         (_SVID_SOURCE): Likewise.
8438         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
8439         from definition of _DEFAULT_SOURCE.
8440         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
8441         [_DEFAULT_SOURCE].
8442         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
8443         * bits/mman.h [__USE_BSD]: Likewise.
8444         * bits/termios.h [__USE_BSD]: Likewise.
8445         * bits/waitstatus.h [__USE_BSD]: Likewise.
8446         * ctype/ctype.h [__USE_SVID]: Likewise.
8447         * dirent/dirent.h [__USE_BSD]: Likewise.
8448         * grp/grp.h [__USE_SVID]: Likewise.
8449         [__USE_BSD]: Likewise.
8450         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
8451         * io/fcntl.h [__USE_BSD]: Likewise.
8452         * io/ftw.h [__USE_BSD]: Likewise.
8453         * io/sys/stat.h [__USE_BSD]: Likewise.
8454         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
8455         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
8456         * libio/stdio.h [__USE_SVID]: Likewise.
8457         [__USE_BSD]: Likewise.
8458         * math/math.h [__USE_SVID]: Likewise.
8459         [__USE_BSD]: Likewise.
8460         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
8461         * misc/bits/syslog.h [__USE_BSD]: Likewise.
8462         * misc/search.h [__USE_SVID]: Likewise.
8463         * misc/sys/mman.h [__USE_BSD]: Likewise.
8464         * misc/sys/syslog.h [__USE_BSD]: Likewise.
8465         * misc/sys/uio.h [__USE_BSD]: Likewise.
8466         * posix/bits/unistd.h [__USE_BSD]: Likewise.
8467         * posix/glob.h [__USE_BSD]: Likewise.
8468         * posix/regex.h [__USE_BSD]: Likewise.
8469         * posix/sys/types.h [__USE_BSD]: Likewise.
8470         [__USE_SVID]: Likewise.
8471         * posix/sys/utsname.h [__USE_SVID]: Likewise.
8472         * posix/sys/wait.h [__USE_BSD]: Likewise.
8473         [__USE_SVID]: Likewise.
8474         * posix/unistd.h [__USE_BSD]: Likewise.
8475         [__USE_SVID]: Likewise.
8476         * pwd/pwd.h [__USE_SVID]: Likewise.
8477         * resolv/netdb.h [__USE_BSD]: Likewise.
8478         * setjmp/setjmp.h [__USE_BSD]: Likewise.
8479         * signal/signal.h [__USE_BSD]: Likewise.
8480         [__USE_SVID]: Likewise.
8481         * socket/sys/socket.h [__USE_BSD]: Likewise.
8482         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
8483         * stdlib/stdlib.h [__USE_BSD]: Likewise.
8484         [__USE_SVID]: Likewise.
8485         * string/bits/string2.h [__USE_BSD]: Likewise.
8486         [__USE_SVID]: Likewise.
8487         * string/bits/string3.h [__USE_BSD]: Likewise.
8488         * string/endian.h [__USE_BSD]: Likewise.
8489         * string/string.h [__USE_SVID]: Likewise.
8490         [__USE_BSD]: Likewise.
8491         * string/strings.h [__USE_BSD]: Likewise.
8492         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
8493         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
8494         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
8495         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
8496         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
8497         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
8498         Likewise.
8499         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
8500         Likewise.
8501         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
8502         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
8503         Likewise.
8504         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
8505         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
8506         Likewise.
8507         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
8508         Likewise.
8509         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
8510         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
8511         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
8512         Likewise.
8513         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
8514         Likewise.
8515         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
8516         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
8517         * termios/termios.h [__USE_BSD]: Likewise.
8518         * time/sys/time.h [__USE_BSD]: Likewise.
8519         * time/time.h [__USE_BSD]: Likewise.
8520         [__USE_SVID]: Likewise.
8521
8522         * Makefile (subdir_targets): Remove subdir_lint.out.
8523
8524         * stdio-common/Makefile (do-tst-unbputc): Remove target.
8525         (do-tst-printf): Likewise.
8526         (tests): Depend directly on $(objpfx)tst-unbputc.out and
8527         $(objpfx)tst-printf.out.
8528
8529         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
8530
8531         * Makerules (check-abi-%): Change target to
8532         $(objpfx)check-abi-%.out.
8533         (check-abi target): Update dependencies.
8534         (check-abi-pattern variable): Redirect output of diff to $@.
8535         (check-abi variable): Likewise.
8536         * elf/Makefile (check-abi): Update dependencies.
8537
8538         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
8539         unused.
8540         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
8541         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
8542         subnormal range.
8543         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
8544         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
8545         value has largest subnormal exponent.
8546         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
8547         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
8548         * sysdeps/aarch64/soft-fp/sfp-machine.h
8549         (_FP_TININESS_AFTER_ROUNDING): New macro.
8550         * sysdeps/alpha/soft-fp/sfp-machine.h
8551         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8552         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8553         Likewise.
8554         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
8555         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8556         * sysdeps/mips/soft-fp/sfp-machine.h
8557         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8558         * sysdeps/powerpc/soft-fp/sfp-machine.h
8559         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8560         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8561         Likewise.
8562         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
8563         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8564         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
8565         (_FP_TININESS_AFTER_ROUNDING): Likewise.
8566         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
8567         Likewise.
8568
8569 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
8570
8571         [BZ #16545]
8572         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
8573         model 1.
8574
8575 2014-02-12  Richard Henderson  <rth@redhat.com>
8576
8577         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
8578         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
8579         * sysdeps/unix/sysv/linux/alpha: Move directory from
8580         ports/sysdeps/unix/sysv/linux/alpha.
8581         * README: Update listing for alpha-*-linux-gnu.
8582
8583 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
8584
8585         * include/features.h: Update comment documenting feature test
8586         macros.
8587         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
8588         _DEFAULT_SOURCE.
8589         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
8590         (_SVID_SOURCE): Likewise.
8591         (_DEFAULT_SOURCE): Update description of default features.
8592         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
8593         with _GNU_SOURCE.
8594         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
8595         (S_ISVTX): Likewise.
8596         * manual/math.texi (Mathematical Constants): Likewise.
8597         * manual/signal.texi (Interrupted Primitives): Likewise.
8598         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
8599         * math/test-matherr.c (_SVID_SOURCE): Do not define.
8600         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
8601         Don't refer to _SVID_SOURCE in warning text.
8602
8603         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8604
8605         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
8606         already defined.
8607         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
8608         * sysdeps/mips/dl-lookup.c: Remove.
8609         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
8610
8611 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
8612
8613         [BZ #16447]
8614         * math/auto-libm-test-in: Add testcase for expl.
8615         * math/auto-libm-test-out: Regenerate.
8616         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
8617         calculation of unsafe.
8618         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
8619
8620 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8621
8622         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
8623         * sysdeps/unix/sysv/linux/aarch64: Move directory from
8624         ports/sysdeps/unix/sysv/linux/aarch64.
8625         * README: Update listing for aarch64*-*-linux-gnu.
8626
8627 2014-02-11  Will Newton  <will.newton@linaro.org>
8628
8629         * manual/probes.texi (Mathematical Function Probes): Use
8630         "triggered" instead of "hit".
8631
8632         * manual/probes.texi (Internal Probes): Add documentation
8633         of setjmp, longjmp and longjmp_target probes.
8634
8635         * include/stap-probe.h: Add comment about probe argument
8636         format.
8637
8638         * malloc/mtrace.c (attribute_hidden): Remove unused macro
8639         definition.  (tr_where, tr_freehook, tr_mallochook,
8640         tr_reallochook, tr_memalignhook): Use ANSI protoype.
8641
8642 2014-02-11  David S. Miller  <davem@davemloft.net>
8643
8644         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
8645         processing int_tests.
8646
8647 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
8648
8649         * sysdeps/mips: Move directory from ports/sysdeps/mips.
8650         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
8651         * sysdeps/unix/sysv/linux/mips: Move directory from
8652         ports/sysdeps/unix/sysv/linux/mips.
8653         * README: Update listing for mips-*-linux-gnu and
8654         mips64-*-linux-gnu.
8655
8656 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
8657
8658         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
8659         * sysdeps/unix/sysv/linux/m68k: Move directory from
8660         ports/sysdeps/unix/sysv/linux/m68k.
8661         * README: Update listing for m68k-*-linux-gnu.
8662
8663 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
8664
8665         * sysdeps/tile: Move directory from ports/sysdeps/tile.
8666         * sysdeps/unix/sysv/linux/generic: Move directory from
8667         ports/sysdeps/unix/sysv/linux/generic.
8668         * sysdeps/unix/sysv/linux/tile: Move directory from
8669         ports/sysdeps/unix/sysv/linux/tile.
8670         * README: Update listing for tile*-*-linux-gnu.
8671
8672 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
8673
8674         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
8675         __builtin_expect.
8676         * benchtests/bench-memmem.c (simple_memmem): Likewise.
8677         * catgets/open_catalog.c (__open_catalog): Likewise.
8678         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
8679         * debug/confstr_chk.c: Likewise.
8680         * debug/fread_chk.c (__fread_chk): Likewise.
8681         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
8682         * debug/getgroups_chk.c: Likewise.
8683         * debug/mbsnrtowcs_chk.c: Likewise.
8684         * debug/mbsrtowcs_chk.c: Likewise.
8685         * debug/mbstowcs_chk.c: Likewise.
8686         * debug/memcpy_chk.c: Likewise.
8687         * debug/memmove_chk.c: Likewise.
8688         * debug/mempcpy_chk.c: Likewise.
8689         * debug/memset_chk.c: Likewise.
8690         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
8691         * debug/strcat_chk.c (__strcat_chk): Likewise.
8692         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
8693         * debug/strncat_chk.c (__strncat_chk): Likewise.
8694         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
8695         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
8696         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
8697         * debug/wcpncpy_chk.c: Likewise.
8698         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
8699         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
8700         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
8701         * debug/wcsncpy_chk.c: Likewise.
8702         * debug/wcsnrtombs_chk.c: Likewise.
8703         * debug/wcsrtombs_chk.c: Likewise.
8704         * debug/wcstombs_chk.c: Likewise.
8705         * debug/wmemcpy_chk.c: Likewise.
8706         * debug/wmemmove_chk.c: Likewise.
8707         * debug/wmempcpy_chk.c: Likewise.
8708         * debug/wmemset_chk.c: Likewise.
8709         * dirent/scandirat.c (SCANDIRAT): Likewise.
8710         * dlfcn/dladdr1.c (dladdr1): Likewise.
8711         * dlfcn/dladdr.c (dladdr): Likewise.
8712         * dlfcn/dlclose.c (dlclose_doit): Likewise.
8713         * dlfcn/dlerror.c (__dlerror): Likewise.
8714         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
8715         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
8716         * dlfcn/dlopen.c (dlopen_doit): Likewise.
8717         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
8718         * dlfcn/dlsym.c (dlsym_doit): Likewise.
8719         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
8720         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
8721         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
8722         Likewise.
8723         * elf/dl-conflict.c: Likewise.
8724         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
8725         * elf/dl-dst.h: Likewise.
8726         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
8727         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
8728         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
8729         * elf/dl-init.c (call_init, _dl_init): Likewise.
8730         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
8731         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
8732         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
8733         Likewise.
8734         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
8735         Likewise.
8736         * elf/dl-minimal.c (__libc_memalign): Likewise.
8737         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
8738         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
8739         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
8740         * elf/dl-sym.c (do_sym): Likewise.
8741         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
8742         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
8743         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
8744         * elf/dl-writev.h (_dl_writev): Likewise.
8745         * elf/ldconfig.c (search_dir): Likewise.
8746         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
8747         (dl_main): Likewise.
8748         * elf/setup-vdso.h (setup_vdso): Likewise.
8749         * grp/compat-initgroups.c (compat_call): Likewise.
8750         * grp/fgetgrent.c (fgetgrent): Likewise.
8751         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
8752         * grp/putgrent.c (putgrent): Likewise.
8753         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8754         Likewise.
8755         * hurd/hurdinit.c: Likewise.
8756         * iconvdata/8bit-gap.c (struct): Likewise.
8757         * iconvdata/ansi_x3.110.c : Likewise.
8758         * iconvdata/big5.c : Likewise.
8759         * iconvdata/big5hkscs.c : Likewise.
8760         * iconvdata/cp1255.c: Likewise.
8761         * iconvdata/cp1258.c : Likewise.
8762         * iconvdata/cp932.c : Likewise.
8763         * iconvdata/euc-cn.c: Likewise.
8764         * iconvdata/euc-jisx0213.c : Likewise.
8765         * iconvdata/euc-jp.c: Likewise.
8766         * iconvdata/euc-jp-ms.c : Likewise.
8767         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
8768         * iconvdata/gb18030.c : Likewise.
8769         * iconvdata/gbbig5.c (const): Likewise.
8770         * iconvdata/gbgbk.c: Likewise.
8771         * iconvdata/gbk.c : Likewise.
8772         * iconvdata/ibm1364.c : Likewise.
8773         * iconvdata/ibm930.c : Likewise.
8774         * iconvdata/ibm932.c: Likewise.
8775         * iconvdata/ibm933.c : Likewise.
8776         * iconvdata/ibm935.c : Likewise.
8777         * iconvdata/ibm937.c : Likewise.
8778         * iconvdata/ibm939.c : Likewise.
8779         * iconvdata/ibm943.c: Likewise.
8780         * iconvdata/iso_11548-1.c: Likewise.
8781         * iconvdata/iso-2022-cn.c : Likewise.
8782         * iconvdata/iso-2022-cn-ext.c : Likewise.
8783         * iconvdata/iso-2022-jp-3.c: Likewise.
8784         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
8785         * iconvdata/iso-2022-kr.c : Likewise.
8786         * iconvdata/iso646.c (gconv_end): Likewise.
8787         * iconvdata/iso_6937-2.c : Likewise.
8788         * iconvdata/iso_6937.c : Likewise.
8789         * iconvdata/iso8859-1.c: Likewise.
8790         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
8791         * iconvdata/shift_jisx0213.c : Likewise.
8792         * iconvdata/sjis.c : Likewise.
8793         * iconvdata/t.61.c : Likewise.
8794         * iconvdata/tcvn5712-1.c : Likewise.
8795         * iconvdata/tscii.c: Likewise.
8796         * iconvdata/uhc.c : Likewise.
8797         * iconvdata/unicode.c (gconv_end): Likewise.
8798         * iconvdata/utf-16.c (gconv_end): Likewise.
8799         * iconvdata/utf-32.c (gconv_end): Likewise.
8800         * iconvdata/utf-7.c (base64): Likewise.
8801         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
8802         * iconv/gconv_close.c (__gconv_close): Likewise.
8803         * iconv/gconv_open.c (__gconv_open): Likewise.
8804         * iconv/gconv_simple.c (internal_ucs4_loop_single)
8805         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
8806         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
8807         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
8808         (ucs4le_internal_loop_single): Likewise.
8809         * iconv/iconv.c (iconv): Likewise.
8810         * iconv/iconv_close.c: Likewise.
8811         * iconv/loop.c (SINGLE): Likewise.
8812         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
8813         * include/atomic.h: Likewise.
8814         * inet/inet6_option.c (option_alloc): Likewise.
8815         * intl/bindtextdom.c (set_binding_values): Likewise.
8816         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
8817         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
8818         * intl/localealias.c (read_alias_file): Likewise.
8819         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
8820         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
8821         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
8822         * libio/fmemopen.c (fmemopen): Likewise.
8823         * libio/iofgets.c (_IO_fgets): Likewise.
8824         * libio/iofgets_u.c (fgets_unlocked): Likewise.
8825         * libio/iofgetws.c (fgetws): Likewise.
8826         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
8827         * libio/iogetdelim.c (_IO_getdelim): Likewise.
8828         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
8829         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
8830         * locale/findlocale.c (_nl_find_locale): Likewise.
8831         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
8832         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
8833         Likewise.
8834         * locale/setlocale.c (setlocale): Likewise.
8835         * login/programs/pt_chown.c (main): Likewise.
8836         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
8837         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
8838         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
8839         (mmap, mmap64, mremap, munmap): Likewise.
8840         * math/e_exp2l.c: Likewise.
8841         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
8842         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
8843         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
8844         * math/s_catan.c (__catan): Likewise.
8845         * math/s_catanf.c (__catanf): Likewise.
8846         * math/s_catanh.c (__catanh): Likewise.
8847         * math/s_catanhf.c (__catanhf): Likewise.
8848         * math/s_catanhl.c (__catanhl): Likewise.
8849         * math/s_catanl.c (__catanl): Likewise.
8850         * math/s_ccosh.c (__ccosh): Likewise.
8851         * math/s_ccoshf.c (__ccoshf): Likewise.
8852         * math/s_ccoshl.c (__ccoshl): Likewise.
8853         * math/s_cexp.c (__cexp): Likewise.
8854         * math/s_cexpf.c (__cexpf): Likewise.
8855         * math/s_cexpl.c (__cexpl): Likewise.
8856         * math/s_clog10.c (__clog10): Likewise.
8857         * math/s_clog10f.c (__clog10f): Likewise.
8858         * math/s_clog10l.c (__clog10l): Likewise.
8859         * math/s_clog.c (__clog): Likewise.
8860         * math/s_clogf.c (__clogf): Likewise.
8861         * math/s_clogl.c (__clogl): Likewise.
8862         * math/s_csin.c (__csin): Likewise.
8863         * math/s_csinf.c (__csinf): Likewise.
8864         * math/s_csinh.c (__csinh): Likewise.
8865         * math/s_csinhf.c (__csinhf): Likewise.
8866         * math/s_csinhl.c (__csinhl): Likewise.
8867         * math/s_csinl.c (__csinl): Likewise.
8868         * math/s_csqrt.c (__csqrt): Likewise.
8869         * math/s_csqrtf.c (__csqrtf): Likewise.
8870         * math/s_csqrtl.c (__csqrtl): Likewise.
8871         * math/s_ctan.c (__ctan): Likewise.
8872         * math/s_ctanf.c (__ctanf): Likewise.
8873         * math/s_ctanh.c (__ctanh): Likewise.
8874         * math/s_ctanhf.c (__ctanhf): Likewise.
8875         * math/s_ctanhl.c (__ctanhl): Likewise.
8876         * math/s_ctanl.c (__ctanl): Likewise.
8877         * math/w_pow.c: Likewise.
8878         * math/w_powf.c: Likewise.
8879         * math/w_powl.c: Likewise.
8880         * math/w_scalb.c (sysv_scalb): Likewise.
8881         * math/w_scalbf.c (sysv_scalbf): Likewise.
8882         * math/w_scalbl.c (sysv_scalbl): Likewise.
8883         * misc/error.c (error_tail): Likewise.
8884         * misc/pselect.c (__pselect): Likewise.
8885         * nis/nis_callback.c (__nis_create_callback): Likewise.
8886         * nis/nis_call.c (__nisfind_server): Likewise.
8887         * nis/nis_creategroup.c (nis_creategroup): Likewise.
8888         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
8889         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
8890         * nis/nis_getservlist.c (nis_getservlist): Likewise.
8891         * nis/nis_lookup.c (nis_lookup): Likewise.
8892         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
8893         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
8894         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
8895         * nis/nis_xdr.c (xdr_endpoint): Likewise.
8896         * nis/nss_compat/compat-grp.c (getgrent_next_file)
8897         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
8898         * nis/nss_compat/compat-initgroups.c (add_group)
8899         (internal_getgrent_r): Likewise.
8900         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
8901         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
8902         * nis/nss_compat/compat-spwd.c (getspent_next_file)
8903         (internal_getspnam_r): Likewise.
8904         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
8905         (_nss_nis_getaliasbyname_r): Likewise.
8906         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
8907         (_nss_nis_getntohost_r): Likewise.
8908         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
8909         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
8910         (_nss_nis_getgrgid_r): Likewise.
8911         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
8912         (internal_nis_gethostent_r, internal_gethostbyname2_r)
8913         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
8914         (_nss_nis_gethostbyname4_r): Likewise.
8915         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
8916         (initgroups_netid): Likewise.
8917         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
8918         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
8919         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
8920         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
8921         (_nss_nis_getprotobynumber_r): Likewise.
8922         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
8923         (_nss_nis_getsecretkey): Likewise.
8924         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
8925         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
8926         (_nss_nis_getpwuid_r): Likewise.
8927         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
8928         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
8929         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
8930         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
8931         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
8932         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
8933         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
8934         Likewise.
8935         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
8936         (_nss_nisplus_getntohost_r): Likewise.
8937         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
8938         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
8939         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
8940         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
8941         Likewise.
8942         * nis/nss_nisplus/nisplus-initgroups.c
8943         (_nss_nisplus_initgroups_dyn): Likewise.
8944         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
8945         (_nss_nisplus_getnetbyaddr_r): Likewise.
8946         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
8947         (_nss_nisplus_getprotobynumber_r): Likewise.
8948         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
8949         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
8950         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
8951         Likewise.
8952         * nis/nss_nisplus/nisplus-service.c
8953         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
8954         (_nss_nisplus_getservbyport_r): Likewise.
8955         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
8956         (_nss_nisplus_getspnam_r): Likewise.
8957         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
8958         Likewise.
8959         * nscd/aicache.c (addhstaiX): Likewise.
8960         * nscd/cache.c (cache_search, prune_cache): Likewise.
8961         * nscd/connections.c (register_traced_file, send_ro_fd)
8962         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
8963         (main_loop_epoll): Likewise.
8964         * nscd/grpcache.c (addgrbyX): Likewise.
8965         * nscd/hstcache.c (addhstbyX): Likewise.
8966         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8967         * nscd/mem.c (gc, mempool_alloc): Likewise.
8968         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
8969         (addinnetgrX): Likewise.
8970         * nscd/nscd-client.h (__nscd_acquire_maplock)
8971         (__nscd_drop_map_ref): Likewise.
8972         * nscd/nscd_getai.c (__nscd_getai): Likewise.
8973         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
8974         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
8975         Likewise.
8976         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
8977         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
8978         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
8979         (__nscd_get_map_ref): Likewise.
8980         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
8981         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
8982         Likewise.
8983         * nscd/pwdcache.c (addpwbyX): Likewise.
8984         * nscd/selinux.c (preserve_capabilities): Likewise.
8985         * nscd/servicescache.c (addservbyX): Likewise.
8986         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
8987         * posix/fnmatch.c (fnmatch): Likewise.
8988         * posix/getopt.c (_getopt_internal_r): Likewise.
8989         * posix/glob.c (glob, glob_in_dir): Likewise.
8990         * posix/wordexp.c (exec_comm_child): Likewise.
8991         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
8992         (getanswer_r, gaih_getanswer_slice): Likewise.
8993         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
8994         * resolv/res_init.c: Likewise.
8995         * resolv/res_mkquery.c (res_nmkquery): Likewise.
8996         * resolv/res_query.c (__libc_res_nquery): Likewise.
8997         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
8998         Likewise.
8999         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
9000         * stdio-common/perror.c (perror): Likewise.
9001         * stdio-common/printf_fp.c (___printf_fp): Likewise.
9002         * stdio-common/tmpnam.c (tmpnam): Likewise.
9003         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
9004         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
9005         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
9006         Likewise.
9007         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
9008         * stdlib/putenv.c (putenv): Likewise.
9009         * stdlib/setenv.c (__add_to_environ): Likewise.
9010         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
9011         * stdlib/strtol_l.c (INTERNAL): Likewise.
9012         * string/memmem.c (memmem): Likewise.
9013         * string/strerror.c (strerror): Likewise.
9014         * string/strnlen.c (__strnlen): Likewise.
9015         * string/test-memmem.c (simple_memmem): Likewise.
9016         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
9017         * sunrpc/pm_getport.c (__get_socket): Likewise.
9018         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
9019         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9020         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
9021         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
9022         Likewise.
9023         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9024         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
9025         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9026         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
9027         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9028         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
9029         Likewise.
9030         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
9031         Likewise.
9032         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9033         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9034         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
9035         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9036         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9037         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
9038         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
9039         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
9040         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9041         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9042         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9043         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
9044         Likewise.
9045         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
9046         Likewise.
9047         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
9048         Likewise.
9049         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
9050         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
9051         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
9052         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
9053         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9054         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
9055         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
9056         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
9057         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
9058         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
9059         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
9060         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9061         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
9062         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
9063         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9064         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9065         Likewise.
9066         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
9067         Likewise.
9068         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
9069         Likewise.
9070         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
9071         Likewise.
9072         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9073         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9074         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
9075         Likewise.
9076         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
9077         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
9078         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9079         * sysdeps/posix/sleep.c: Likewise.
9080         * sysdeps/posix/tempname.c: Likewise.
9081         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
9082         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
9083         Likewise.
9084         * sysdeps/powerpc/powerpc32/dl-machine.h
9085         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
9086         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
9087         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
9088         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
9089         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
9090         Likewise.
9091         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
9092         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
9093         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
9094         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
9095         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
9096         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
9097         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
9098         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
9099         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9100         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
9101         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
9102         (elf_machine_lazy_rel): Likewise.
9103         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9104         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
9105         (elf_machine_lazy_rel): Likewise.
9106         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
9107         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
9108         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
9109         * sysdeps/unix/grantpt.c (grantpt): Likewise.
9110         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
9111         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
9112         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
9113         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9114         Likewise.
9115         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9116         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9117         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
9118         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
9119         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9120         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9121         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
9122         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
9123         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9124         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
9125         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
9126         Likewise.
9127         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
9128         (__posix_fallocate64_l64): Likewise.
9129         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
9130         (posix_fallocate): Likewise.
9131         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
9132         Likewise.
9133         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9134         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
9135         (getifaddrs_internal): Likewise.
9136         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
9137         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
9138         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9139         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
9140         * sysdeps/unix/sysv/linux/posix_fallocate64.c
9141         (__posix_fallocate64_l64): Likewise.
9142         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
9143         Likewise.
9144         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9145         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
9146         (__get_clockfreq): Likewise.
9147         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
9148         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
9149         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
9150         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9151         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9152         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
9153         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
9154         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
9155         Likewise.
9156         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
9157         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
9158         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9159         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
9160         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
9161         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
9162         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
9163         Likewise.
9164         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
9165         (posix_fallocate): Likewise.
9166         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9167         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9168         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
9169         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
9170         (elf_machine_rela, elf_machine_rela_relative)
9171         (elf_machine_lazy_rel): Likewise.
9172         * time/asctime.c (asctime_internal): Likewise.
9173         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
9174         * time/tzset.c (__tzset_parse_tz): Likewise.
9175         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
9176         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
9177         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
9178         * wcsmbs/wcsmbsload.h: Likewise.
9179
9180         [BZ #15894]
9181         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
9182
9183         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
9184         (arena_get2): Remove THREAD_STATS conditionals.
9185         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
9186         (__malloc_stats, int): Likewise.
9187
9188 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
9189
9190         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
9191         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
9192
9193         * manual/setjmp.texi: Fix typos/grammar errors.
9194
9195         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
9196         Only return early when n is <= 0.  Delete unused return statement.
9197
9198         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
9199         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
9200         * debug/tst-longjmp_chk3.c: New file.
9201
9202         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
9203         (test_main): Replace code with set_fortify_handler call.
9204         * debug/test-strcpy_chk.c: Likewise.
9205         * debug/tst-chk1.c: Likewise.
9206         * debug/tst-longjmp_chk.c: Likewise.
9207         * test-skeleton.c: Include fcntl.h & paths.h
9208         (set_fortify_handler): Define.
9209
9210         * debug/tst-longjmp_chk.c: Add header comment and include
9211         ../test-skeleton.c.
9212         (do_test): Mark static.
9213         (TEST_FUNCTION): Define.
9214
9215         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
9216         (IP_PMTUDISC_INTERFACE): Likewise.
9217         (IP_MULTICAST_IF): Likewise.
9218         (IP_MULTICAST_TTL): Likewise.
9219         (IP_MULTICAST_LOOP): Likewise.
9220         (IP_ADD_MEMBERSHIP): Likewise.
9221         (IP_DROP_MEMBERSHIP): Likewise.
9222         (IP_UNBLOCK_SOURCE): Likewise.
9223         (IP_BLOCK_SOURCE): Likewise.
9224         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
9225         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
9226         (IP_MSFILTER): Likewise.
9227         (MCAST_JOIN_GROUP): Likewise.
9228         (MCAST_BLOCK_SOURCE): Likewise.
9229         (MCAST_UNBLOCK_SOURCE): Likewise.
9230         (MCAST_LEAVE_GROUP): Likewise.
9231         (MCAST_JOIN_SOURCE_GROUP): Likewise.
9232         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
9233         (MCAST_MSFILTER): Likewise.
9234         (IP_MULTICAST_ALL): Likewise.
9235         (IP_UNICAST_IF): Likewise.
9236
9237         * timezone/Makefile: Delete $(have-ksh) check.
9238         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
9239         * timezone/tzselect.ksh: Add +x mode bits.
9240
9241         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
9242         (ANON_INODE_FS_MAGIC): Likewise.
9243         (BDEVFS_MAGIC): Likewise.
9244         (BINFMTFS_MAGIC): Likewise.
9245         (BTRFS_TEST_MAGIC): Likewise.
9246         (CRAMFS_MAGIC_WEND): Likewise.
9247         (DEBUGFS_MAGIC): Likewise.
9248         (ECRYPTFS_SUPER_MAGIC): Likewise.
9249         (EXT3_SUPER_MAGIC): Likewise.
9250         (EXT4_SUPER_MAGIC): Likewise.
9251         (FUTEXFS_SUPER_MAGIC): Likewise.
9252         (HOSTFS_SUPER_MAGIC): Likewise.
9253         (HUGETLBFS_MAGIC): Likewise.
9254         (MINIX3_SUPER_MAGIC): Likewise.
9255         (MTD_INODE_FS_MAGIC): Likewise.
9256         (NILFS_SUPER_MAGIC): Likewise.
9257         (OPENPROM_SUPER_MAGIC): Likewise.
9258         (PIPEFS_MAGIC): Likewise.
9259         (PSTOREFS_MAGIC): Likewise.
9260         (QNX6_SUPER_MAGIC): Likewise.
9261         (RAMFS_MAGIC): Likewise.
9262         (REISERFS_SUPER_MAGIC_STRING): Likewise.
9263         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
9264         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
9265         (SECURITYFS_MAGIC): Likewise.
9266         (SELINUX_MAGIC): Likewise.
9267         (SMACK_MAGIC): Likewise.
9268         (SOCKFS_MAGIC): Likewise.
9269         (SQUASHFS_MAGIC): Likewise.
9270         (STACK_END_MAGIC): Likewise.
9271         (TMPFS_MAGIC): Likewise.
9272         (USBDEVICE_SUPER_MAGIC): Likewise.
9273         (V9FS_MAGIC): Likewise.
9274         (XENFS_SUPER_MAGIC): Likewise.
9275         (CRAMFS_MAGIC): Fix typo in comment.
9276         (EXT2_SUPER_MAGIC): Update comment.
9277         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
9278
9279 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
9280
9281         * sysdeps/arm: Move directory from ports/sysdeps/arm.
9282         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
9283         * sysdeps/unix/sysv/linux/arm: Move directory from
9284         ports/sysdeps/unix/sysv/linux/arm.
9285         * README: Update listing for arm-*-linux-gnueabi.
9286
9287         * README: Remove mention of am33.
9288
9289 2014-02-07  Roland McGrath  <roland@hack.frob.com>
9290
9291         * bits/sigset.h (__sigemptyset): Use a statement expression rather
9292         than the comma operator, to avoid "rhs of comma has no effect"
9293         compiler warnings.
9294         (__sigfillset, __sigandset, __sigorset): Likewise.
9295         * include/signal.h (__sigemptyset): Likewise.
9296         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
9297
9298 2014-02-07  Allan McRae  <allan@archlinux.org>
9299
9300         * version.h (RELEASE): Set to "development".
9301         (VERSION): Set to "2.19.90"
9302         * NEWS: Add 2.20 section.
9303
9304 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
9305
9306         [BZ #16529]
9307         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
9308
9309 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9310
9311         * manual/contrib.texi: Update entry for Carlos O'Donell,
9312         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
9313
9314 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
9315
9316         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
9317
9318         * sysdeps/unix/sysv/linux/kernel-features.h
9319         [__LINUX_KERNEL_VERSION >= 0x020621]
9320         (__ASSUME_PROC_PID_TASK_COMM): Define.
9321
9322 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
9323
9324         [BZ #16398]
9325         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
9326         conversion when destination buffer does not have enough space.
9327         * libio/tst-ftell-partial-wide.c: New test case.
9328         * libio/Makefile (tests): Add tst-ftell-partial-wide.
9329
9330         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
9331         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
9332         Leonard and Allan McRae.
9333
9334 2014-02-04  David S. Miller  <davem@davemloft.net>
9335
9336         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
9337         32-bit.
9338
9339 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9340
9341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
9342         New file
9343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
9344         New file
9345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
9346         New file.
9347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
9348         New file.
9349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
9350         New file.
9351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
9352         New file.
9353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
9354         New file.
9355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
9356         New file.
9357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
9358         New file.
9359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
9360         New file.
9361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
9362         New file.
9363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
9364         New file.
9365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
9366         New file.
9367
9368 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9369
9370         * nptl/shlib-versions: Change powerpc*le start to 2.17.
9371         * shlib-versions: Likewise.
9372
9373 2014-02-04  Roland McGrath  <roland@hack.frob.com>
9374             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9375
9376         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
9377         (abilist-pattern): New variable, set to %-le.abilist.
9378
9379         * Makerules (abilist-pattern): New variable.
9380         (vpath): Use $(abilist-pattern) in place of %.abilist.
9381         (check-abi-% pattern rule): Likewise.
9382         (check-abi, update-abi): Likewise.
9383
9384 2014-02-04  Eric Wong  <normalperson@yhbt.net>
9385
9386         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9387
9388 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
9389
9390         * manual/startup.texi: Add next, previous, and top entries for
9391         the `Program Arguments' and `Environment Variables' nodes.
9392
9393 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
9394
9395         * manual/macros.texi: Add comments before MTASC-safety macros.
9396
9397         * manual/users.texi: Document MTASC-safety properties.
9398
9399         * manual/threads.texi (pthread_key_create, pthread_key_delete)
9400         (pthread_getspecific, pthread_setspecific): Format with
9401         @deftypefun, and add @safety note.
9402         * manual/signal.texi: Move comments that analyze the above
9403         functions to their home place.
9404
9405 2014-02-03  Allan McRae  <allan@archlinux.org>
9406
9407         * po/sl.po: Update Slovenian translation from translation project.
9408
9409 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
9410
9411         * manual/time.texi (timegm): Add missing blank after @c.
9412         Reported by Joseph Myers <joseph@codesourcery.com>.
9413
9414 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
9415
9416         * manual/check-safety.sh: New.
9417         * manual/Makefile ($(objpfx)stamp-summary): Run it.
9418
9419         * manual/terminal.texi: Document MTASC-safety properties.
9420
9421         * manual/filesys.texi: Document MTASC-safety properties.
9422
9423         * manual/errno.texi: Document MTASC-safety properties.
9424
9425         * manual/intro.texi: Document safety identifiers and
9426         conditionals.
9427
9428         * manual/string.texi (wcstok): Fix prototype.
9429         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
9430
9431         * manual/time.texi: Document MTASC-safety properties.
9432
9433         * manual/string.texi: Document MTASC-safety properties.
9434
9435         * manual/threads.texi: Document MTASC-safety properties.
9436
9437         * manual/stdio.texi: Document MTASC-safety properties.
9438
9439         * manual/syslog.texi: Document MTASC-safety properties.
9440
9441         * manual/sysinfo.texi: Document MTASC-safety properties.
9442
9443         * manual/startup.texi: Document MTASC-safety properties.
9444
9445         * manual/socket.texi: Document MTASC-safety properties.
9446
9447         * manual/signal.texi: Document MTASC-safety properties.
9448
9449 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
9450
9451         * manual/setjmp.texi: Document MTASC-safety properties.
9452
9453         * manual/search.texi: Document MTASC-safety properties.
9454
9455         * manual/resource.texi: Document MTASC-safety properties.
9456
9457         * manual/process.texi: Document MTASC-safety properties.
9458
9459         * manual/platform.texi: Document MTASC-safety properties.
9460
9461         * manual/pipe.texi: Document MTASC-safety properties.
9462
9463         * manual/pattern.texi: Document MTASC-safety properties.
9464
9465         * manual/message.texi: Document MTASC-safety properties.
9466
9467         [BZ #12751]
9468         * manual/memory.texi: Document MTASC-safety properties.
9469
9470         * manual/math.texi: Document MTASC-safety properties.
9471
9472         * manual/locale.texi: Document MTASC-safety properties.
9473
9474         * manual/llio.texi: Document MTASC-safety properties.
9475
9476         * manual/libdl.texi: New.
9477
9478         * manual/lang.texi: Document MTASC-safety properties.
9479
9480         * manual/job.texi: Document MTASC-safety properties.
9481
9482         * manual/getopt.texi: Document MTASC-safety properties.
9483
9484         * manual/ctype.texi: Document MTASC-safety properties.
9485
9486 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
9487
9488         [BZ #16046]
9489         * csu/libc-tls.c (static_map): Remove variable.
9490         (__libc_setup_tls): Use main executable's link map for TLS data.
9491         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
9492         casing for LM_ID_BASE and GL(dl_nns).
9493         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
9494         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
9495         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
9496         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
9497         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
9498         member.
9499         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
9500         l_phnum members.
9501
9502 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
9503
9504         * manual/debug.texi: Document MTASC-safety properties.
9505
9506 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9507
9508         [BZ #16510]
9509         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
9510         of __x86_64__ when disabling x87 inline functions.
9511
9512 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
9513
9514         * manual/charset.texi: Document MTASC-safety properties.
9515
9516         * manual/crypt.texi: Document MTASC-safety properties.
9517
9518         * manual/conf.texi: Document MTASC-safety properties.
9519
9520         * manual/arith.texi: Document MTASC-safety properties.
9521
9522         * manual/argp.texi: Document MTASC-safety properties.
9523
9524         * manual/macros.texi: Introduce macros to document multi
9525         thread, asynchronous signal and asynchronous cancellation
9526         safety properties.
9527         * manual/intro.texi: Introduce the properties themselves.
9528
9529 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9530
9531         * sysdeps/sh/sh4/Makefile: New file.
9532
9533 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
9534
9535         * math/gen-libm-test.pl ($srcdir): New variable.
9536         ($auto_input): Use it.
9537
9538 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9539
9540         [BZ #16506]
9541         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
9542         access beyond array bounds when parsing netgroups file.
9543
9544         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
9545         the old buffer before realloc.
9546
9547 2014-01-27  Allan McRae  <allan@archlinux.org>
9548
9549         * po/fr.po: Update French translation from translation project.
9550
9551 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9552
9553         * sysdeps/sh/libm-test-ulps: Regenerate.
9554
9555 2014-01-24  David S. Miller  <davem@davemloft.net>
9556
9557         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
9558
9559 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9560
9561         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
9562         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
9563
9564 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9565
9566         [BZ #16474]
9567         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
9568         string pointers after reallocation.
9569
9570 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9571
9572         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
9573         __SH4A__ instead of __SH_FPU_ANY__.
9574
9575 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9576
9577         * sysdeps/sh/fpu_control.h: New file.
9578         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
9579         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
9580         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
9581         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
9582         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
9583         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
9584         * sysdeps/sh/sys/ucontext.h: Remove.
9585         * sysdeps/sh/sys: Remove directory.
9586
9587 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9588
9589         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
9590         s390/sys/ucontext.h.
9591         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
9592         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
9593
9594 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
9595
9596         [BZ #15605]
9597         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
9598
9599 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9600
9601         [BZ#16431]
9602         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
9603         Adjust the vDSO correctly for internal calls.
9604         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
9605
9606 2014-01-20  Allan McRae  <allan@archlinux.org>
9607
9608         * po/ca.po: Update Catalan translation from translation project.
9609
9610 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
9611
9612         * sysdeps/s390/sotruss-lib.c: New file.
9613
9614 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9615
9616         [BZ#16430]
9617         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
9618         (__GI___gettimeofday): Alias for a different internal symbol to avoid
9619         local calls issues by not having a PLT stub required for IFUNC calls.
9620         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
9621
9622 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
9623
9624         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
9625         * math/test-fpucw-static.c: Likewise.
9626
9627 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9628
9629         [BZ #16453]
9630         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
9631
9632 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9633
9634         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
9635         implementation for powerpc.
9636
9637 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
9638
9639         [BZ #14782]
9640         * sysdeps/posix/system.c (__libc_system): Do not enable
9641         asynchronous cancellation.
9642
9643 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9644
9645         [BZ #16427]
9646         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
9647         handling only for numbers special also in the IEEE case.
9648
9649 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9650
9651         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
9652
9653 2014-01-11  Allan McRae  <allan@archlinux.org>
9654
9655         * po/bg.po: Update Bulgarian translation from translation project.
9656
9657         * po/de.po: Update German translation from translation project.
9658
9659 2014-01-10  Roland McGrath  <roland@hack.frob.com>
9660
9661         * sysdeps/generic/gcc-compat.h: New file.
9662
9663 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9664
9665         * benchtests/asin-inputs: Correct slow inputs.
9666         * benchtests/acos-inputs: Likewise.
9667
9668 2014-01-10  Allan McRae  <allan@archlinux.org>
9669
9670         * po:sv.po: Update Swedish translation from translation project.
9671
9672         * po/vi.po: Update Vietnamese translation from translation project.
9673
9674         * po/eo.po: Update Esperanto translation from translation project.
9675
9676         * po/cs.po: Update Czech translation from translation project.
9677
9678         * po/nl.po: Update Dutch translation from translation project.
9679
9680         * po/pl.po: Update Polish translation from translation project.
9681
9682         * po/ru.po: Update Russian translation from translation project.
9683
9684         * po/uk.po: Update Ukrainian translation from translation project.
9685
9686 2014-01-08  Brooks Moses  <bmoses@google.com>
9687
9688         * elf/dl-load.c: Fix comment typo.
9689
9690 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
9691
9692         * po/header.pot: Rename to...
9693         * po/pot.header: ... this.
9694         * po/Makefile: Use pot.header.
9695
9696 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
9697             Maxim Kuvyrkov  <maxim@kugelworks.com>
9698
9699         [BZ #16394]
9700         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
9701         SRC and DEST against LEN.
9702
9703 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9704
9705         [BZ #16414]
9706         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
9707         implementation.
9708         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
9709
9710 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9711
9712         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9713
9714 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
9715
9716         [BZ #16408]
9717         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
9718         for large positive arguments.
9719
9720 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
9721
9722         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9723
9724         * math/auto-libm-test-in: Mark various tests with
9725         xfail-rounding:ldbl-128ibm.
9726         * math/auto-libm-test-out: Regenerated.
9727
9728         [BZ #16407]
9729         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
9730         Increase overflow threshold.
9731
9732 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
9733
9734         [BZ #14286]
9735         * stdio-common/vfprintf.c: Check for integer overflow.
9736
9737 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9738
9739         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
9740         the first argument and return value of __tls_get_addr_internal.
9741
9742 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9743
9744         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
9745         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
9746
9747 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9748
9749         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
9750         * sysdeps/s390/rtld-global-offsets.sym: New file.
9751         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
9752         GLIBC_2.19 symbol.
9753         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
9754         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
9755         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
9756         ... this.
9757         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
9758         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
9759         ... this.
9760         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9761         Regenerate.
9762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9763         Regenerate.
9764         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
9765         halfs of GPRs for high_gprs contexts.
9766         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
9767         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
9768         field.
9769         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
9770         uc_flags field.
9771         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
9772         64 bit versions:
9773         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
9774         for high GPRs (uc_high_gprs) and for future extensions
9775         (__reserved).
9776         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
9777         for future extensions (__reserved).
9778         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
9779         64 bit versions:
9780         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
9781         SC_HIGHGPRS offset definition.
9782         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
9783         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
9784
9785         * Versions.def: Add GLIBC_2.19 for libpthread.
9786         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
9787         siglongjmp for libpthread with GLIBC_2.19 symver.
9788         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
9789         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
9790         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
9791         * sysdeps/s390/__longjmp.c: New file.
9792         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
9793         * sysdeps/s390/longjmp.c: New file.
9794         * sysdeps/s390/setjmp.S: New file.
9795         * sysdeps/s390/sigjmp.S: New file.
9796         * sysdeps/s390/v1-longjmp.c: New file.
9797         * sysdeps/s390/v1-setjmp.h: New file.
9798         * sysdeps/s390/v1-sigjmp.c: New file.
9799         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
9800         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
9801         GLIBC_2.19 version.
9802         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
9803         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
9804         versioned symbols for ____longjmp_chk.
9805         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
9806         Likewise.
9807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9808         Regenerate.
9809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
9810         Regenerate.
9811         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9812         Regenerate.
9813         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
9814         Regenerate.
9815         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
9816         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
9817         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
9818         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
9819         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
9820         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
9821         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
9822         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
9823         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
9824         * sysdeps/s390/rtld-__longjmp.c: New file.
9825         * sysdeps/s390/rtld-setjmp.S: New file.
9826
9827 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
9828
9829         [BZ #16400]
9830         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9831         Return -__logl (x) for small positive arguments without evaluating
9832         a polynomial.
9833
9834 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
9835
9836         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
9837         Rename to ...
9838         (__ptrace_peeksiginfo_args): ... this.
9839         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
9840         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
9841         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
9842
9843 2014-01-06  Allan McRae  <allan@archlinux.org>
9844
9845         * inet/netinet/in.h: Fix typo in comment.
9846
9847 2014-01-05  Andreas Jaeger  <aj@suse.de>
9848
9849         * sysdeps/i386/fpu/libm-test-ulps: Update.
9850
9851 2014-01-05  Allan McRae  <allan@archlinux.org>
9852
9853         * po/libc.pot: Regenerated.
9854
9855         * malloc/memusagestat.c: Fix gettext call formatting.
9856
9857 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
9858
9859         * nscd/nscd.c: Improve usage() output.
9860
9861 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
9862
9863         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
9864         * sysdeps/unix/sysv/linux/configure: Regenerated.
9865         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
9866         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
9867
9868 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9869
9870         [BZ #16390]
9871         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
9872         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
9873
9874 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9875
9876         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
9877         extra tokens at end of #undef directive.
9878         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
9879         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
9880         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
9881
9882 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
9883
9884         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
9885
9886         * math/auto-libm-test-in: Mark various tests with
9887         xfail-rounding:ldbl-128ibm.
9888         * math/auto-libm-test-out: Regenerated.
9889
9890 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
9891
9892         [BZ #16386]
9893         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
9894         numbers with subnormal high part when calculating exponent.
9895
9896         [BZ #16385]
9897         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
9898         fabs.
9899
9900         [BZ #16384]
9901         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
9902         M_LN2l.
9903         (__ieee754_acoshl): Use __log1pl not __log1p.
9904
9905 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
9906
9907         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
9908         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
9909         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
9910         (grow_heap, heap_trim, _int_new_arena, get_free_list)
9911         (reused_arena, arena_get2): Convert to GNU style.
9912         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
9913         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
9914         (memalign_check, __malloc_set_state): Likewise.
9915         * malloc/mallocbug.c (main): Likewise.
9916         * malloc/malloc.c (__malloc_assert, malloc_init_state)
9917         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
9918         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
9919         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
9920         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
9921         (__posix_memalign, malloc_info): Likewise.
9922         * malloc/malloc.h: Likewise.
9923         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
9924         (mallochook, memalignhook, reallochook, mabort): Likewise.
9925         * malloc/mcheck.h: Likewise.
9926         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
9927         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
9928         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
9929         * malloc/morecore.c (__default_morecore): Likewise.
9930         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
9931         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
9932         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
9933         (print_and_abort): Likewise.
9934         * malloc/obstack.h: Likewise.
9935         * malloc/set-freeres.c (__libc_freeres): Likewise.
9936         * malloc/tst-mallocstate.c (main): Likewise.
9937         * malloc/tst-mtrace.c (main): Likewise.
9938         * malloc/tst-realloc.c (do_test): Likewise.
9939
9940 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9941
9942         [BZ #16366]
9943         * nscd/netgroupcache.c (do_notfound): New function.
9944         (addgetnetgrentX): Use it.
9945
9946         [BZ # 16365]
9947         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
9948         NSS_STATUS_NOTFOUND.
9949
9950 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
9951
9952         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
9953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9954
9955 2014-01-01  Allan McRae  <allan@archlinux.org>
9956
9957         * scripts/update-copyrights: Update configure input file suffix.
9958
9959         * NEWS: Update copyright year.
9960         * catgets/gencat.c: Likewise.
9961         * csu/version.c: Likewise.
9962         * debug/catchsegv.sh: Likewise.
9963         * debug/pcprofiledump.c: Likewise.
9964         * debug/xtrace.sh: Likewise.
9965         * elf/ldconfig.c: Likewise.
9966         * elf/ldd.bash.in: Likewise.
9967         * elf/pldd.c: Likewise.
9968         * elf/sotruss.ksh: Likewise.
9969         * elf/sprof.c: Likewise.
9970         * iconv/iconv_prog.c: Likewise.
9971         * iconv/iconvconfig.c: Likewise.
9972         * locale/programs/locale.c: Likewise.
9973         * locale/programs/localedef.c: Likewise.
9974         * login/programs/pt_chown.c: Likewise.
9975         * malloc/memusage.sh: Likewise.
9976         * malloc/memusagestat.c: Likewise.
9977         * malloc/mtrace.pl: Likewise.
9978         * manual/libc.texinfo: Likewise.
9979         * nscd/nscd.c: Likewise.
9980         * nss/getent.c: Likewise.
9981         * nss/makedb.c: Likewise.
9982         * posix/getconf.c: Likewise.
9983         * scripts/test-installation.pl: Likewise.
9984
9985         * All files with FSF copyright notices: Update copyright dates
9986         using scripts/update-copyrights.
9987         * intl/plural.c: Regenerated.
9988         * locale/programs/charmap-kw.h: Likewise.
9989         * locale/programs/locfile-kw.h: Likewise.
9990
9991 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
9992
9993         * sysdeps/unix/sysv/linux/configure: Regenerated.
9994         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
9995         the linux/fanotify.h header.
9996         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
9997         HAVE_LINUX_FANOTIFY_H is defined.
9998
9999 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10000
10001         * benchtests/cos-inputs: New inputs.
10002         * benchtests/sin-inputs: Likewise.
10003
10004         * benchtests/atan-inputs: New inputs. Fix name of multiple
10005         precision fallback inputs.
10006
10007         * benchtests/atanh-inputs: New inputs.
10008         * benchtests/tanh-inputs: Likewise.
10009
10010         * benchtests/acosh-inputs: New inputs.
10011         * benchtests/asinh-inputs: Likewise.
10012
10013         * benchtests/cosh-inputs: New inputs.
10014         * benchtests/sinh-inputs: Likewise.
10015
10016         * benchtests/acos-inputs: Add more inputs.
10017         * benchtests/asin-inputs: Likewise.
10018
10019 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
10020
10021         [BZ #16375]
10022         * manual/arith.texi: Fix spelling.
10023         * manual/charset.texi: Likewise.
10024         * manual/errno.texi: Likewise.
10025         * manual/filesys.texi: Likewise.
10026         * manual/lang.texi: Likewise.
10027         * manual/llio.texi: Likewise.
10028         * manual/locale.texi: Likewise.
10029         * manual/message.texi: Likewise.
10030         * manual/resource.texi: Likewise.
10031         * manual/search.texi: Likewise.
10032         * manual/setjmp.texi: Likewise.
10033         * manual/stdio.texi: Likewise.
10034         * manual/string.texi: Likewise.
10035         * manual/sysinfo.texi: Likewise.
10036         * manual/time.texi: Likewise.
10037
10038 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
10039
10040         * po/sl.po: New file.
10041
10042 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
10043
10044         * .gitignore: Add core/.gdbinit/.gdb_history.
10045
10046 2013-12-27  Allan McRae  <allan@archlinux.org>
10047
10048         [BZ #16369]
10049         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
10050         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
10051
10052 2013-12-24  Brooks Moses  <bmoses@google.com>
10053
10054         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
10055         all compilers that claim C++98 compliance, not just GCC.
10056         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
10057         Likewise.
10058
10059 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
10060
10061         * NEWS: Restore accidentally deleted bug-fix entries.
10062
10063 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
10064             Ondřej Bílka  <neleai@seznam.cz>
10065
10066         [BZ #15073]
10067         * malloc/malloc.c (_int_free): Perform sanity check only if we
10068         have_lock.
10069
10070 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
10071
10072         [BZ #12986]
10073         * manual/stdio.texi (String Input Conversions): Clarify that character
10074         classes are not supported.
10075
10076 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10077
10078         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10079
10080 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
10081
10082         [BZ #16337]
10083         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10084         Calculate results for small negative arguments directly rather
10085         than using reflection formula with special underflow handling.
10086
10087         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
10088         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
10089         sysdeps/unix/bsd/bsd4.4/syscalls.list.
10090         (fchflags): Likewise.
10091         (revoke): Likewise.
10092         (setlogin): Likewise.
10093         (sigaltstack): Likewise.
10094         (wait4): Likewise.
10095         (sigblock): Remove.
10096         (sigsetmask): Likewise.
10097         (wait3): Likewise.
10098         (waitpid): Likewise.
10099         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
10100         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
10101         file.
10102         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
10103         * sysdeps/unix/bsd/Makefile: ... here.
10104         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
10105         * sysdeps/unix/bsd/Versions: ... here.
10106         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
10107         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
10108         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
10109         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
10110         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
10111         * sysdeps/unix/bsd/sigblock.c: ... here.
10112         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
10113         * sysdeps/unix/bsd/sigsetmask.c: ... here.
10114         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
10115         * sysdeps/unix/bsd/sigvec.c: ... here.
10116         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
10117         * sysdeps/unix/bsd/tcdrain.c: ... here.
10118         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
10119         * sysdeps/unix/bsd/tcgetattr.c: ... here.
10120         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
10121         * sysdeps/unix/bsd/tcsetattr.c: ... here.
10122         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
10123         * sysdeps/unix/bsd/wait.c: ... here.
10124         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
10125         * sysdeps/unix/bsd/wait3.c: ... here.
10126         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
10127         * sysdeps/unix/bsd/waitpid.c: ... here.
10128
10129 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
10130
10131         [BZ #16356]
10132         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
10133         round-to-nearest for [!USE_AS_EXPM1L].
10134         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
10135         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
10136         more tests of exp and exp10.  Expect some exp10 tests to miss
10137         exceptions or fail in directed rounding modes.
10138         * math/auto-libm-test-out: Regenerated.
10139         * math/libm-test.inc (exp10_tonearest_test_data): New array.
10140         (exp10_test_tonearest): New function.
10141         (exp10_towardzero_test_data): New array.
10142         (exp10_test_towardzero): New function.
10143         (exp10_downward_test_data): New array.
10144         (exp10_test_downward): New function.
10145         (exp10_upward_test_data): New array.
10146         (exp10_test_upward): New function.
10147         (main): Call the new functions.
10148         * sysdeps/i386/fpu/libm-test-ulps: Update.
10149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10150
10151 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
10152
10153         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10154         asinh, atan, atan2, atanh, cbrt, cos and cosh.
10155         * math/auto-libm-test-out: Regenerated.
10156         * math/libm-test.inc (acosh_test_data): Add more tests.
10157         (atanh_test_data): Likewise.
10158         (ceil_test_data): Likewise.
10159         (copysign_test_data): Likewise.
10160         * sysdeps/i386/fpu/libm-test-ulps: Update.
10161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10162
10163         * timezone/checktab.awk: Update from tzcode 2013i.
10164         * timezone/private.h: Likewise.
10165         * timezone/scheck.c: Likewise.
10166         * timezone/tzfile.h: Likewise.
10167         * timezone/tzselect.ksh: Likewise.
10168         * timezone/zdump.c: Likewise.
10169         * timezone/zic.c: Likewise.
10170
10171         * math/auto-libm-test-in: Add tests of cpow.
10172         * math/auto-libm-test-out: Regenerated.
10173         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
10174         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10175         mpc_cc_c.
10176         (func_calc_desc): Add mpc_cc_c union field.
10177         (test_functions): Add cpow.
10178         (special_fill_2pi): New function.
10179         (special_real_inputs): Add 2pi.
10180         (calc_generic_results): Handle mpc_cc_c.
10181         * sysdeps/i386/fpu/libm-test-ulps: Update.
10182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10183
10184         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
10185         csqrt, ctan and ctanh.
10186         * math/auto-libm-test-out: Regenerated.
10187         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10188         (TEST_COND_x86): Likewise.
10189         (ccos_test_data): Use AUTO_TESTS_c_c.
10190         (ccosh_test_data): Likewise.
10191         (cexp_test_data): Likewise.
10192         (clog_test_data): Likewise.
10193         (csqrt_test_data): Likewise.
10194         (ctan_test_data): Likewise.
10195         (ctan_tonearest_test_data): Likewise.
10196         (ctan_towardzero_test_data): Likewise.
10197         (ctan_downward_test_data): Likewise.
10198         (ctan_upward_test_data): Likewise.
10199         (ctanh_test_data): Likewise.
10200         (ctanh_tonearest_test_data): Likewise.
10201         (ctanh_towardzero_test_data): Likewise.
10202         (ctanh_downward_test_data): Likewise.
10203         (ctanh_upward_test_data): Likewise.
10204         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10205         mpc_c_c.
10206         (func_calc_desc): Add mpc_c_c union field.
10207         (FUNC_mpc_c_c): New macro.
10208         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
10209         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
10210         ctanh.
10211         (special_fill_min_subnorm_p120): New function.
10212         (special_real_inputs): Add min_subnorm_p120.
10213         (calc_generic_results): Handle mpc_c_c.
10214         * sysdeps/i386/fpu/libm-test-ulps: Update.
10215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10216
10217 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
10218
10219         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
10220         (do_sin_slow): New functions.
10221         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
10222         (cslow2, csloww1, csloww2): Use the new functions.
10223
10224         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
10225         Use M to change sign of result instead of X.  Assume X is
10226         positive.
10227         (csloww1): Likewise.
10228         (__sin): Adjust.
10229         (__cos): Adjust.
10230
10231         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
10232         arguments A and DA.
10233         (__sin): Adjust.
10234         (__cos): Likewise.
10235
10236         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
10237         (__cos): Likewise.
10238         (sloww1): Don't adjust sign of DX.
10239         (csloww1): Likewise.
10240         (sloww2): Use X directly and don't adjust sign of DX.
10241         (csloww2): Likewise.
10242
10243 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
10244
10245         * math/auto-libm-test-in: Add tests of cabs and carg.
10246         * math/auto-libm-test-out: Regenerated.
10247         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
10248         (carg_test_data): Likewise.
10249         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10250         mpc_c_f.
10251         (func_calc_desc): Add mpc_c_f union field.
10252         (test_functions): Add cabs and carg.
10253         (calc_generic_results): Handle mpc_c_f.
10254
10255         * sysdeps/powerpc/powerpc32/libgcc-compat.S
10256         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
10257         as a macro and a compat symbol.
10258         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
10259         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
10260         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
10261         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
10262         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
10263         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
10264         not use .hidden.
10265         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
10266         Likewise.
10267         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
10268         Likewise.
10269         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
10270         Likewise.
10271         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
10272         Likewise.
10273         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
10274         Likewise.
10275         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
10276         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
10277         from GLIBC_2.3.2.
10278
10279 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10280
10281         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10282
10283 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
10284
10285         * manual/texinfo.tex: Update to version 2013-11-26.10 with
10286         trailing whitespace removed.
10287         * scripts/config.guess: Update to version 2013-11-29.
10288         * scripts/config.sub: Update to version 2013-10-01.
10289
10290         * math/auto-libm-test-in: Add tests of sincos.
10291         * math/auto-libm-test-out: Regenerated.
10292         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
10293         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10294         mpfr_f_11.
10295         (func_calc_desc): Add mpfr_f_11 union field.
10296         (test_functions): Add sincos.
10297         (calc_generic_results): Handle mpfr_f_11.
10298         * sysdeps/i386/fpu/libm-test-ulps: Update.
10299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10300
10301 2013-12-19  Andreas Schwab  <schwab@suse.de>
10302
10303         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
10304         CALL_MCOUNT.
10305         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10306         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
10307         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
10308
10309 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
10310
10311         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
10312         * sysdeps/i386/fpu/libm-test-ulps: Update.
10313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10314
10315         [BZ #16293]
10316         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
10317         round-to-nearest mode when using frndint.
10318         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
10319         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
10320         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
10321         Likewise.
10322         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
10323         sinh test to fail.
10324         * math/auto-libm-test-out: Regenerated.
10325         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
10326         (TEST_COND_x86): Likewise.
10327         (expm1_tonearest_test_data): New array.
10328         (expm1_test_tonearest): New function.
10329         (expm1_towardzero_test_data): New array.
10330         (expm1_test_towardzero): New function.
10331         (expm1_downward_test_data): New array.
10332         (expm1_test_downward): New function.
10333         (expm1_upward_test_data): New array.
10334         (expm1_test_upward): New function.
10335         (main): Run the new test functions.
10336         * sysdeps/i386/fpu/libm-test-ulps: Update.
10337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10338
10339         * include/features.h: Update comment documenting feature test
10340         macros.  Mention _DEFAULT_SOURCE in comment.
10341         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
10342         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
10343         _BSD_SOURCE and _SVID_SOURCE.
10344         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
10345         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
10346         !_SVID_SOURCE]: Likewise.
10347         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
10348         (__USE_POSIX_IMPLICITLY): Define.
10349         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
10350         (_POSIX_SOURCE): Undefine and redefine.
10351         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
10352         (_POSIX_C_SOURCE): Likewise.
10353         * manual/creature.texi (_DEFAULT_SOURCE): Document.
10354         (Feature Test Macros): Update documentation of default features.
10355
10356 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10357
10358         * benchtests/Makefile: Add bench-strtok.
10359         * benchtests/bench-strtok.c: New file: strtok benchtest.
10360
10361 2013-12-19  Allan McRae  <allan@archlinux.org>
10362
10363         * manual/install.texi: Suppress menu for plain text output.
10364         * INSTALL: Regenerated.
10365
10366 2013-12-18  Brooks Moses  <bmoses@google.com>
10367
10368         [BZ #15846]
10369         * misc/getauxval.c: Include errno.h.
10370         (__getauxval): Set errno to ENOENT if the requested type is not
10371         found.
10372         * misc/sys/auxv.h (getauxval): Document that it may set errno;
10373         don't declare with __attribute_const__.
10374         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
10375         * manual/startup.texi: Document that getauxval sets errno.
10376
10377 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
10378
10379         * math/auto-libm-test-in: Add tests of jn and yn.
10380         * math/auto-libm-test-out: Regenerated.
10381         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
10382         (yn_test_data): Likewise.
10383         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10384         mpfr_if_f.
10385         (func_calc_desc): Add mpfr_if_f union field.
10386         (FUNC_mpfr_if_f): New macro.
10387         (test_functions): Add jn and yn.
10388         (calc_generic_results): Assert type of second input for
10389         mpfr_ff_f.  Handle mpfr_if_f.
10390         (output_for_one_input_case): Disable all checking for arguments
10391         fitting floating-point types in case of an integer argument.
10392         * sysdeps/i386/fpu/libm-test-ulps: Update.
10393         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10394
10395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
10396         Don't expect fegetround reference in libm.so.
10397
10398 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10399
10400         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
10401         $(config-cflags-nofma).
10402
10403 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
10404
10405         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
10406         * math/auto-libm-test-out: Regenerated.
10407
10408         [BZ #16338]
10409         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
10410         to determine exponent and adjust argument to have exponent of -1.
10411         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
10412         log2.
10413         * math/auto-libm-test-out: Regenerated.
10414         * sysdeps/i386/fpu/libm-test-ulps: Update.
10415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10416
10417 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
10418
10419         * manual/probes.texi: Remove cases when per-thread arenas are
10420         disabled.
10421
10422 2013-12-18  Andreas Schwab  <schwab@suse.de>
10423
10424         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
10425         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
10426         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
10427         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
10428         * sysdeps/i386/i686/multiarch/Makefile: Update.
10429         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
10430
10431 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
10432
10433         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
10434         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
10435
10436 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10437
10438         [BZ #15968]
10439         Support TZ transition times < 00:00:00.
10440         This is needed for version-3 tz-format files; it supports time
10441         stamps past 2037 for America/Godthab (the only entry in the tz
10442         database for which this change is relevant).
10443         * manual/time.texi (TZ Variable): Document transition times
10444         from -167:59:59 through -00:00:01.
10445         * time/tzset.c (tz_rule): Time of day is now signed.
10446         (__tzset_parse_tz): Parse negative time of day.
10447
10448         Document TZ transition times >= 25:00:00.
10449         * manual/time.texi (TZ Variable): Document transition times from
10450         25:00:00 through 167:59:59.  These are already supported, and this
10451         support will help with version-3 tz-format files.
10452
10453         * manual/time.texi (TZ Variable): Modernize North America example
10454         to reflect current (i.e., 2007-and-later) daylight saving rules.
10455
10456         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
10457
10458 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
10459
10460         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
10461         * sysdeps/unix/bsd/bits/stat.h: Likewise.
10462         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
10463         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
10464         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
10465         * sysdeps/unix/bsd/bsdstat.h: Likewise.
10466         * sysdeps/unix/bsd/clock.c: Likewise.
10467         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
10468         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
10469         * sysdeps/unix/bsd/init-posix.c: Likewise.
10470         * sysdeps/unix/bsd/poll.c: Likewise.
10471         * sysdeps/unix/bsd/ptsname.c: Likewise.
10472         * sysdeps/unix/bsd/seekdir.c: Likewise.
10473         * sysdeps/unix/bsd/setegid.c: Likewise.
10474         * sysdeps/unix/bsd/seteuid.c: Likewise.
10475         * sysdeps/unix/bsd/setgid.c: Likewise.
10476         * sysdeps/unix/bsd/setrgid.c: Likewise.
10477         * sysdeps/unix/bsd/setruid.c: Likewise.
10478         * sysdeps/unix/bsd/setsid.c: Likewise.
10479         * sysdeps/unix/bsd/setuid.c: Likewise.
10480         * sysdeps/unix/bsd/sigaction.c: Likewise.
10481         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
10482         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
10483         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
10484         * sysdeps/unix/bsd/telldir.c: Likewise.
10485         * sysdeps/unix/bsd/times.c: Likewise.
10486         * sysdeps/unix/bsd/usleep.c: Likewise.
10487
10488         * misc/Makefile (install-lib): Remove libbsd-compat.a.
10489         ($(objpfx)libbsd-compat.a): Remove rule.
10490
10491         * include/features.h (__FAVOR_BSD): Do not define.
10492         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
10493         features conflicting with POSIX.
10494         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
10495         (_BSD_SOURCE): Remove description of not being a subset of other
10496         feature test macros.
10497         * manual/job.texi (getpgrp): Do not document BSD version.
10498         (getpgid): Do not document by reference to BSD getpgrp.
10499         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
10500         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
10501         * signal/signal.h [__FAVOR_BSD]: Likewise.
10502         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
10503         instead of making contents conditional on [__FAVOR_BSD].
10504         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
10505
10506 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10507
10508         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10509
10510 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
10511
10512         [BZ #16314]
10513         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
10514         values below 2**-450, not 2**-500.
10515         * math/auto-libm-test-in: Don't allow spurious underflow from
10516         hypot.
10517         * math/auto-libm-test-out: Regenerated.
10518
10519         [BZ #16316]
10520         [BZ #16330]
10521         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
10522         values of ha and hb and sort them after adjusting subnormal
10523         arguments.
10524         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
10525         Likewise.
10526         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
10527         values of ea and eb and sort them after adjusting subnormal
10528         arguments.
10529         * math/auto-libm-test-in: Do not expect some hypot tests of
10530         subnormals to fail.  Add more hypot tests.
10531         * math/auto-libm-test-out: Regenerated.
10532
10533 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10534
10535         [BZ #13304]
10536         * sysdeps/sh/s_fma.c: New file.
10537         * sysdeps/sh/s_fmaf.c: New file.
10538         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
10539         version.
10540         * sysdeps/sh/Implies: Add sh/soft-fp.
10541
10542 2013-12-16  Roland McGrath  <roland@hack.frob.com>
10543
10544         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
10545         level of indirection to members `objname', `errstring', `malloced'.
10546         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
10547         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
10548         it as the __longjmp argument (just pass 1 instead).
10549         (_dl_catch_error): Initialize C with argument pointers and address of
10550         volatile local ERRCODE rather than copying values out of C at return.
10551
10552 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
10553
10554         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
10555         * math/auto-libm-test-out: Regenerated.
10556         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
10557         (hypot_test_data): Likewise.
10558         (pow_test_data): Likewise.
10559         (pow_tonearest_test_data): Likewise.
10560         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10561         mpfr_ff_f.
10562         (func_calc_desc): Add mpfr_ff_f union field.
10563         (FUNC_mpfr_ff_f): New macro.
10564         (test_functions): Add atan2, hypot and pow.
10565         (special_fill_min): New function.
10566         (special_fill_minus_min): Likewise.
10567         (special_fill_min_subnorm): Likewise.
10568         (special_fill_minus_min_subnorm): Likewise.
10569         (special_real_inputs): Add min, -min, min_subnorm and
10570         -min_subnorm.
10571         (calc_generic_results): Handle mpfr_ff_f.
10572         * sysdeps/i386/fpu/libm-test-ulps: Update.
10573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10574
10575 2013-12-16  Will Newton  <will.newton@linaro.org>
10576
10577         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
10578         (Aligned Memory Blocks): Add documentation for aligned_alloc
10579         and suggest it as an alternative to posix_memalign.
10580         (Hooks for Malloc): Document __memalign_hook is also called
10581         for aligned_alloc.  (Summary of Malloc): Add summary for
10582         aligned alloc.  Document __memalign_hook is also called
10583         for aligned_alloc.
10584
10585 2013-12-16  Will Newton  <will.newton@linaro.org>
10586
10587         * manual/memory.texi (Malloc Examples): Clarify default
10588         alignment documentation.  Suggest posix_memalign rather
10589         than memalign or valloc.
10590         (Aligned Memory Blocks): Remove suggestion to use memalign
10591         or valloc.  Remove obsolete comment about BSD.
10592         Document memalign errno values and mark the function obsolete.
10593         Document posix_memalign returned error codes.  Mark valloc
10594         as obsolete.  (Hooks for Malloc): __memalign_hook is also
10595         called for posix_memalign and valloc.
10596         (Summary of Malloc): Add posix_memalign to function summary.
10597         __memalign_hook is also called for posix_memalign and valloc.
10598
10599 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10600
10601         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
10602         TAYLOR_SIN.
10603         (__sin): Adjust.
10604         (__cos): Likewise.
10605         (sloww): Use mynumber union.  Expand ternary operator into
10606         if-else statements.
10607         (cslow): use mynumber union.
10608
10609 2013-12-16  Allan McRae  <allan@archlinux.org>
10610
10611         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
10612         * configure: Regenerated.
10613
10614         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
10615
10616         [BZ #14120]
10617         * configure.ac: Added --enable-maintainer-mode. Check for
10618         autoconf when enabled.
10619         * configure: Regenerated.
10620
10621         * nscd/nscd.service: New file.
10622         * nscd/nscd.tmpfiles: New file.
10623
10624 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
10625
10626         [BZ #12100]
10627         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
10628         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
10629         * sysdeps/x86_64/multiarch/strstr.c: ... here.
10630         (strstr): Add __strstr_sse2_unaligned ifunc.
10631         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
10632         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
10633         (strcasestr): Remove __strcasestr_sse42 ifunc.
10634         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
10635         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
10636         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
10637
10638 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10639
10640         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
10641         * sysdeps/sh/bits/fenv.h: ... here.
10642         * sysdeps/sh/sh4/fpu/bits: Remove directory.
10643
10644 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10645
10646         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
10647
10648         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
10649         hypotf multiarch implementations.
10650         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
10651         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
10652         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
10653         multiarch hypot for PPC64.
10654         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
10655         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
10656         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
10657         multiarch hypotf for PPC64.
10658
10659         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
10660         modff multiarch implementations.
10661         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
10662         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
10663         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
10664         multiarch modf for PPC64.
10665         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
10666         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
10667         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
10668         multiarch modff for PPC64.
10669
10670         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
10671         and logl multiarch implementations.
10672         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
10673         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
10674         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
10675         multiarch logb for PPC64.
10676         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
10677         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
10678         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
10679         multiarch logb for PPC64.
10680         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
10681         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
10682         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
10683         multiarch logb for PPC64.
10684
10685         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
10686         isinff multiarch implementation.
10687         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
10688         file.
10689         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
10690         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
10691         multiarch isinf for PPC64.
10692         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
10693         file.
10694         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
10695         multiarch isinff for PPC64.
10696
10697         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
10698         finitef multiarch implementation.
10699         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
10700         file.
10701         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
10702         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
10703         multiarch finite for PPC64.
10704         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
10705         file.
10706         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
10707         multiarch finitef for PPC64.
10708
10709         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
10710         lrint multiarch implementation.
10711         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
10712         file.
10713         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
10714         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
10715         multiarch llrint for PPC64.
10716         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
10717         multiarch lrint for PPC64.
10718
10719         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
10720         copysignf multiarch implementation.
10721         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
10722         file.
10723         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
10724         file.
10725         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
10726         multiarch copysign for PPC64.
10727         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
10728         multiarch copysignf for PPC64.
10729
10730         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
10731         multiarch implementation.
10732         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
10733         file.
10734         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
10735         file.
10736         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
10737         file.
10738         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
10739         file.
10740         multiarch llround for PPC64.
10741         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
10742         multiarch trunc for PPC64.
10743         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
10744         multiarch truncf for PPC64.
10745
10746         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
10747         multiarch implementation.
10748         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
10749         file.
10750         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
10751         file.
10752         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
10753         file.
10754         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
10755         file.
10756         multiarch llround for PPC64.
10757         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
10758         multiarch round for PPC64.
10759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
10760         multiarch roundf for PPC64.
10761
10762         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
10763         multiarch implementation.
10764         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
10765         file.
10766         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
10767         file.
10768         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
10769         file.
10770         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
10771         file.
10772         multiarch llround for PPC64.
10773         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
10774         multiarch floor for PPC64.
10775         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
10776         multiarch floorf for PPC64.
10777
10778         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
10779         multiarch implementation.
10780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
10781         file.
10782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
10783         file.
10784         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
10785         file.
10786         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
10787         file.
10788         multiarch llround for PPC64.
10789         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
10790         multiarch ceil for PPC64.
10791         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
10792         multiarch ceilf for PPC64.
10793
10794         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
10795         multiarch implementation.
10796         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
10797         file.
10798         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
10799         file.
10800         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
10801         file.
10802         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
10803         multiarch llround for PPC64.
10804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
10805         multiarch lround for PPC64.
10806
10807         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
10808         multiarch implementation.
10809         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
10810         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
10811         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
10812         file.
10813         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
10814         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
10815         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
10816         multiarch isnan for PPC64.
10817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
10818         multiarch isnanf for PPC64.
10819
10820         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
10821         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
10822         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
10823         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
10824         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
10825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
10826
10827         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
10828         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
10829         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
10830         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
10831
10832         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
10833         multiarch implementations.
10834         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10835         (__libc_ifunc_impl_list): Likewise.
10836         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
10837         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
10838         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
10839         multiarch stpcpy for PPC64.
10840
10841         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
10842         multiarch implementations.
10843         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10844         (__libc_ifunc_impl_list): Likewise.
10845         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
10846         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
10847         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
10848         multiarch strcpy for PPC64.
10849
10850         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
10851         redefine function name.
10852         (_wordcopy_fwd_dest_aligned): Likewise.
10853         (_wordcopy_bwd_aligned): Likewise.
10854         (_wordcopy_bwd_dest_aligned): Likewise.
10855         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
10856         multiarch implementations.
10857         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10858         (__libc_ifunc_impl_list): Likewise.
10859         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
10860         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
10861         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
10862         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
10863         multiarch wcscpy for PPC64.
10864
10865         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
10866         multiarch implementations.
10867         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10868         (__libc_ifunc_impl_list): Likewise.
10869         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
10870         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
10871         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
10872         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
10873         multiarch wcscpy for PPC64.
10874
10875         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
10876         multiarch implementations.
10877         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10878         (__libc_ifunc_impl_list): Likewise.
10879         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
10880         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
10881         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
10882         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
10883         multiarch wcsrchr for PPC64.
10884
10885         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
10886         multiarch implementations.
10887         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10888         (__libc_ifunc_impl_list): Likewise.
10889         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
10890         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
10891         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
10892         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
10893         multiarch wcschr for PPC64.
10894
10895         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
10896         multiarch implementations.
10897         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10898         (__libc_ifunc_impl_list): Likewise.
10899         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
10900         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
10901         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
10902         multiarch strchrnul for PPC64.
10903
10904         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
10905         implementations.
10906         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10907         (__libc_ifunc_impl_list): Likewise.
10908         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
10909         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
10910         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
10911         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
10912         strchr for PPC64.
10913
10914         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
10915         implementations.
10916         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10917         (__libc_ifunc_impl_list): Likewise.
10918         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
10919         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
10920         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
10921         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
10922         strncmp for PPC64.
10923
10924         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
10925         multiarch implementations.
10926         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10927         (__libc_ifunc_impl_list): Likewise.
10928         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
10929         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
10930         strncasecmp for PPC64.
10931         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
10932         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
10933         multiarch strncasecmp_l for PPC64.
10934
10935         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
10936         multiarch implementations.
10937         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10938         (__libc_ifunc_impl_list): Likewise.
10939         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
10940         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
10941         multiarch strcasecmp for PPC64.
10942         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
10943         file.
10944         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
10945         multiarch strcasecmp_l for PPC64.
10946
10947         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
10948         implementations.
10949         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10950         (__libc_ifunc_impl_list): Likewise.
10951         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
10952         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
10953         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
10954         strnlen for PPC64.
10955
10956         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
10957         implementations.
10958         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10959         (__libc_ifunc_impl_list): Likewise.
10960         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
10961         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
10962         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
10963         strlen for PPC64.
10964
10965         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
10966         implementations.
10967         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10968         (__libc_ifunc_impl_list): Likewise.
10969         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
10970         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
10971         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
10972         rawmemrchr for PPC64.
10973
10974         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
10975         implementation.
10976         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10977         (__libc_ifunc_impl_list): Likewise.
10978         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
10979         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
10980         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
10981         memrchr for PPC64.
10982
10983         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
10984         implementation.
10985         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10986         (__libc_ifunc_impl_list): Likewise.
10987         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
10988         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
10989         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
10990         memchr for PPC64.
10991
10992         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
10993         implementation.
10994         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10995         (__libc_ifunc_impl_list): Likewise.
10996         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
10997         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
10998         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
10999         mempcpy for PPC64.
11000
11001         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
11002         avoid cretion of __bzero symbol.
11003         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
11004         Likewise.
11005         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
11006         Likewise.
11007         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
11008         Likewise.
11009         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
11010         multiarch implementations.
11011         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11012         (__libc_ifunc_impl_list): Likewise.
11013         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
11014         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
11015         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
11016         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
11017         bzero for PPC32.
11018         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
11019         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
11020         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
11021         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
11022         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
11023         memset for PPC64.
11024         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
11025
11026         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
11027         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
11028         implementations.
11029         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11030         (__libc_ifunc_impl_list): Likewise.
11031         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
11032         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
11033         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
11034         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
11035         memcmp for PPC64.
11036
11037         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
11038         multiarch for POWER/PPC64.
11039         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
11040         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
11041         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
11042         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
11043         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
11044         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
11045         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
11046         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
11047         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
11048         memcpy for PPC64.
11049
11050         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
11051         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
11052         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
11053         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
11054         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
11055         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
11056         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
11057         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
11058         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
11059         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
11060         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
11061         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
11062         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
11063         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
11064         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
11065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
11066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
11067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
11068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
11069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
11070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
11071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
11072
11073 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11074
11075         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
11076
11077 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
11078
11079         * benchtests/Makefile (bench): Add exp2 and log2.
11080         (LDLIBS-bench-exp2): Add -lm.
11081         (LDLIBS-bench-log2): Likewise.
11082         * benchtests/exp2-inputs: New inputs file.
11083         * benchtests/log2-inputs: New inputs file.
11084         * benchtests/log-inputs: Add new inputs.
11085         * benchtests/tan-inputs: Likewise.
11086
11087 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11088
11089         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
11090         definition...
11091         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
11092         (csloww2): ... from here.
11093
11094         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
11095         instead of structures.
11096         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
11097         (POLYNOMIAL): Likewise.
11098         (TAYLOR_SLOW): Likewise.
11099         (__sin): Likewise.
11100         (__cos): Likewise.
11101         (slow1): Likewise.
11102         (slow2): Likewise.
11103         (sloww): Likewise.
11104         (sloww1); Likewise.
11105         (sloww2): Likewise.
11106         (bsloww1): Likewise.
11107         (bsloww2): Likewise.
11108         (cslow2): Likewise.
11109         (csloww): Likewise.
11110         (csloww1): Likewise.
11111         (csloww2): Likewise.
11112
11113 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
11114
11115         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
11116         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
11117         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
11118         * malloc/hooks.c (realloc_check): Likewise.
11119
11120         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
11121         * malloc/arena.c: Remove PER_THREAD conditional.
11122         [!PER_THREAD]: Remove code.
11123         (ptmalloc_unlock_all2): Likewise.
11124         (ptmalloc_init): Likewise.
11125         (_int_new_arena): Likewise.
11126         (arena_get2): Likewise.
11127         * malloc/hooks.c (__malloc_get_state): Likewise.
11128         (__malloc_set_state): Likewise.
11129         * malloc/malloc.c: Likewise.
11130         (struct malloc_state): Likewise.
11131         (struct malloc_par): Likewise.
11132         (__libc_realloc): Likewise.
11133         (__libc_mallopt): Likewise.
11134
11135 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11136
11137         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
11138
11139 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
11140
11141         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
11142         macro to a function.  Check for zero perturb_byte.
11143         (_int_malloc, _int_free): Remove zero perturb_byte checks.
11144
11145         * malloc/malloc.c: (force_reg): Remove.
11146         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
11147         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
11148         force_reg by atomic_forced_read.
11149         * malloc/arena.c (ptmalloc_init): Likewise.
11150         * malloc/hooks.c (top_check): Likewise.
11151
11152 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11153
11154         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11155
11156 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
11157
11158         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11159
11160 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
11161
11162         * math/auto-libm-test-in: Add tests of lgamma.
11163         * math/auto-libm-test-out: Regenerated.
11164         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
11165         (M_LOG_2_SQRT_PIl): Likewise.
11166         (lgamma_test_data): Use AUTO_TESTS_f_f1.
11167         * math/gen-auto-libm-tests.c (func_calc_method): Add value
11168         mpfr_f_f1.
11169         (func_calc_desc): Add mpfr_f_f1 union field.
11170         (ARGS1): New macro.
11171         (ARGS2): Likewise.
11172         (ARGS3): Likewise.
11173         (ARGS4): Likewise.
11174         (RET1): Likewise.
11175         (RET2): Likewise.
11176         (CALC): Likewise.
11177         (FUNC): Likewise.
11178         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
11179         (test_functions): Add lgamma.
11180         (calc_generic_results): Handle mpfr_f_f1.
11181         * sysdeps/i386/fpu/libm-test-ulps: Update.
11182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11183
11184 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11185
11186         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
11187         __mpn_add_n for PowerPC64/POWER7.
11188         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
11189         __mpn_sub_n for PowerPC64/POWER7.
11190
11191         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
11192         __mpn_addmul_1 for PowerPC64.
11193         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
11194         __mpn_submul_1 for PowerPC64.
11195         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
11196         for PowerPC64.
11197         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
11198         for PowerPC64.
11199
11200 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
11201
11202         [BZ #15089]
11203         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
11204
11205 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11206
11207         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
11208
11209         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
11210         add multiarch folders.
11211         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
11212         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
11213         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
11214         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
11215         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
11216         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
11217         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
11218         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
11219         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
11220         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
11221         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
11222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
11223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
11224         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
11225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
11226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
11227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
11228
11229         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
11230         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
11231         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
11232         New file.
11233         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
11234         New file.
11235         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
11236         multiarch __ieee754_hypot for PowerPC32.
11237         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
11238         New file.
11239         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
11240         New file.
11241         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
11242         multiarch __ieee754_hypotf for PowerPC32.
11243
11244         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
11245         long_double_symbol only if __logbl is defined.
11246         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
11247         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
11248         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
11249         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
11250         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
11251         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
11252         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
11253         path for implementation.
11254         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
11255         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
11256         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
11257         logb, and logbl multiarch implementations for PowerPC32.
11258         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
11259         file.
11260         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
11261         file.
11262         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
11263         multiarch logb for PowerPC32.
11264         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
11265         file.
11266         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
11267         file.
11268         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
11269         multiarch logbf for PowerPC32.
11270         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
11271         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
11272         file.
11273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
11274         multiarch logbl implementation for PowerPC32.
11275
11276         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
11277         and modff multiarch implementations.
11278         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
11279         New file.
11280         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
11281         New file.
11282         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
11283         multiarch modf for PowerPC32.
11284         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
11285         New file.
11286         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
11287         New file.
11288         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
11289         multiarch modff for PowerPC32.
11290
11291         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
11292         and lrintf multiarch implementations.
11293         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
11294         New file.
11295         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
11296         New file.
11297         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
11298         multiarch lrint for PowerPC32.
11299         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
11300         file: multiarch lrintf for PowerPC32.
11301
11302         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
11303         and lroundf multiarch implementations.
11304         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
11305         New file.
11306         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
11307         New file.
11308         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
11309         New file.
11310         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
11311         multiarch lround for PowerPC32.
11312         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
11313         file: multiarch lroundf for PowerPC32.
11314
11315         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
11316         copysign and copysignf multiarch implementations.
11317         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
11318         New file.
11319         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
11320         New file.
11321         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
11322         file: multiarch copysign for PowerPC32.
11323         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
11324         file: multiarch copysignf for PowerPC32.
11325
11326         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
11327         and truncf multiarch implementations.
11328         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
11329         New file.
11330         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
11331         file.
11332         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
11333         multiarch trunc for PowerPC32.
11334         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
11335         New file.
11336         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
11337         New file.
11338         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
11339         multiarch truncf for PowerPC32.
11340
11341         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
11342         and roundf multiarch implementations.
11343         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
11344         New file.
11345         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
11346         file.
11347         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
11348         multiarch round for PowerPC32.
11349         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
11350         New file.
11351         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
11352         New file.
11353         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
11354         multiarch roundf for PowerPC32.
11355
11356         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
11357         and floorf multiarch implementations.
11358         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
11359         New file.
11360         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
11361         file.
11362         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
11363         multiarch floor for PowerPC32.
11364         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
11365         New file.
11366         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
11367         New file.
11368         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
11369         multiarch floorf for PowerPC32.
11370
11371         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
11372         and ceilf multiarch implementations.
11373         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
11374         New file.
11375         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
11376         file.
11377         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
11378         multiarch ceil for PowerPC32.
11379         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
11380         New file.
11381         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
11382         file.
11383         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
11384         multiarch ceilf for PowerPC32.
11385
11386         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
11387         is defined.
11388         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
11389         FINITEF is defined.
11390         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
11391         and finitef multiarch implementations.
11392         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
11393         New file.
11394         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
11395         file.
11396         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
11397         multiarch finite for PowerPC32.
11398         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
11399         New file.
11400         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
11401         file: multiarch finitef for PowerPC32.
11402
11403         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
11404         and isinff multiarch implementations.
11405         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
11406         file.
11407         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
11408         file.
11409         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
11410         multiarch isinf for PowerPC32.
11411         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
11412         New file.
11413         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
11414         multiarch isinff for PowerPC32.
11415
11416         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
11417         alias when __isnan is defined.
11418         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
11419         and isnanf multiarch implementations.
11420         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
11421         file.
11422         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
11423         file.
11424         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
11425         file.
11426         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
11427         file.
11428         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
11429         multiarch isnan for PowerPC32.
11430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
11431         New file.
11432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
11433         New file.
11434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
11435         multiarch isnanf for PowerPC32.
11436
11437         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
11438         and sqrtf multiarch implementations.
11439         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
11440         file.
11441         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
11442         file.
11443         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
11444         multiarch sqrt for PowerPC32.
11445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
11446         file.
11447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
11448         file.
11449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
11450         multiarch sqrtf for PowerPC32.
11451
11452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
11453         and llroundf multiarch implementations.
11454         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
11455         New file.
11456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
11457         New file.
11458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
11459         New file.
11460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
11461         file: multiarch llround for PowerPC32.
11462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
11463         file: multiarch llroundf for PowerPC32.
11464
11465         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
11466         multiarch PowerPC32 fpu implementations.
11467         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
11468         New file.
11469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
11470         New file.
11471         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
11472         multiarch llrint for PowerPC32.
11473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
11474         New file.
11475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
11476         New file.
11477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
11478         file.
11479
11480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
11481
11482         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
11483         file.
11484         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
11485         file.
11486         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
11487         file.
11488         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
11489         multiarch wordcopy for PPC32.
11490         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
11491         wordcopy objects.
11492         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11493         (__libc_ifunc_impl_list): Likewise.
11494         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
11495         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
11496         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
11497         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
11498         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
11499         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
11500
11501         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
11502         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
11503         file.
11504         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
11505         file.
11506         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
11507         file.
11508         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
11509         multiarch wcscpy for PPC32.
11510         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
11511         multiarch objects.
11512         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11513         (__libc_ifunc_impl_list): Likewise.
11514         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
11515         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
11516         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
11517         sysdeps/powerpc/power6/wcscpy.c.
11518
11519         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
11520         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
11521         file.
11522         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
11523         file.
11524         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
11525         file.
11526         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
11527         multiarch wcsrchr for PPC32.
11528         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
11529         multiarch objects.
11530         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11531         (__libc_ifunc_impl_list): Likewise.
11532         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
11533         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
11534         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
11535         sysdeps/powerpc/power6/wcsrchr.c.
11536
11537         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
11538         file.
11539         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
11540         file.
11541         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
11542         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
11543         multiarch wcschr for PPc32.
11544         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
11545         multiarch objects.
11546         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11547         (__libc_ifunc_impl_list): Likewise.
11548         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
11549         * sysdeps/powerpc/power6/wcschr.c: ... to here.
11550         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
11551         sysdeps/powerpc/power6/wcschr.c.
11552
11553         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
11554         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
11555         file.
11556         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
11557         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
11558         file: multiarch strchr for PPC32.
11559         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
11560         multiarch objects.
11561         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11562         (__libc_ifunc_impl_list): Likewise.
11563
11564         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
11565         name.
11566         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
11567         file.
11568         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
11569         file.
11570         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
11571         multiarch strchrnul for PPC32.
11572         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
11573         multiarch objects.
11574         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11575         (__libc_ifunc_impl_list): Likewise.
11576
11577         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
11578         file.
11579         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
11580         multiarch strncasecmp for PPC32.
11581         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
11582         file.
11583         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
11584         multiarch strncasecmp_l for PPC32.
11585         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
11586         strncasecmp multiarch objects.
11587         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11588         (__libc_ifunc_impl_list): Likewise.
11589
11590         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
11591         file.
11592         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
11593         multiarch strncasecmp for PPC32.
11594         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
11595         New file.
11596         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
11597         multiarch strcasecmp_l for PPC32.
11598         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
11599         multiarch objects.
11600         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11601         (__libc_ifunc_impl_list): Likewise.
11602
11603         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
11604         file.
11605         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
11606         file.
11607         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
11608         multiarch strncmp for PPC32.
11609         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
11610         multiarch objects.
11611         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11612         (__libc_ifunc_impl_list): Likewise.
11613
11614         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
11615         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
11616         file.
11617         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
11618         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
11619         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
11620         multiarch objects.
11621         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11622         (__libc_ifunc_impl_list): Likewise.
11623
11624         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
11625         file.
11626         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
11627         file.
11628         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
11629         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
11630         multiarch objects.
11631         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11632         (__libc_ifunc_impl_list): Likewise.
11633
11634         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
11635         file.
11636         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
11637         file.
11638         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
11639         multiarch rawmemchr for PPC32.
11640         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
11641         multiarch objects.
11642         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11643         (__libc_ifunc_impl_list): Likewise.
11644
11645         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
11646         file.
11647         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
11648         file.
11649         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
11650         file: memrchr multiarch for PPC32.
11651         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
11652         multiarch objects.
11653         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
11654         (__libc_ifunc_impl_list): Likewise.
11655
11656         * string/memchr.c (__memchr): Using macro to redefine symbol name.
11657         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
11658         file.
11659         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
11660         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
11661         multiarch memchr for PPC32.
11662         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
11663         multiarch objects.
11664         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11665         (__libc_ifunc_impl_list): Likewise.
11666
11667         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
11668         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
11669         file.
11670         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
11671         file.
11672         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
11673         file: multiarch mempcpy for PPC32.
11674         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
11675         multiarch objects.
11676         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11677         (__libc_ifunc_impl_list): Likewise.
11678
11679         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
11680         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
11681         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
11682         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
11683         multiarch bzero for PPC32.
11684         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
11685         file.
11686         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
11687         file.
11688         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
11689         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
11690         file: multiarch memset for PPC32.
11691         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
11692         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
11693         memset multiarch objects.
11694         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11695         (__libc_ifunc_impl_list): Likewise.
11696
11697         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
11698         file.
11699         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
11700         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
11701         memcmp for PPC32.
11702         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
11703         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
11704         multiarch objects.
11705         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11706         (__libc_ifunc_impl_list): Likewise.
11707
11708         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
11709         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
11710         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
11711         file.
11712         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
11713         file.
11714         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
11715         file.
11716         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
11717         multiarch memcpy for PPC32.
11718         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
11719         multiarch objects.
11720         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
11721         (__libc_ifunc_impl_list): Likewise.
11722
11723         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
11724         support multiarch for POWER/PPC32.
11725         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
11726         Likewise.
11727         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
11728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
11729         Implies file to make multiarch folder appers before the fpu and
11730         default folder for power4 configuration.
11731
11732 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11733
11734         * scripts/bench.pl: Append volatile keyword to type.
11735
11736 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11737
11738         * sysdeps/sh/sotruss-lib.c: New file.
11739         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
11740
11741 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11742
11743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11744
11745 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
11746
11747         [BZ #6810]
11748         * math/w_tgamma.c: Include <errno.h>.
11749         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
11750         * math/w_tgammaf.c: Include <errno.h>.
11751         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
11752         * math/w_tgammal.c: Include <errno.h>.
11753         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
11754         * math/auto-libm-test-in: Do not allow missing errno on tgamma
11755         underflow.  Add more tgamma tests.
11756         * math/auto-libm-test-out: Regenerated.
11757         * sysdeps/i386/fpu/libm-test-ulps: Update.
11758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11759
11760         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
11761         sin, sinh, tan, tanh, tgamma, y0 and y1.
11762         * math/auto-libm-test-out: Regenerated.
11763         * math/libm-test.inc (TEST_COND_x86_64): New macro.
11764         (TEST_COND_x86): Likewise.
11765         (M_E2l): Remove macro.
11766         (M_E3l): Likewise.
11767         (M_2_SQRT_PIl): Likewise.
11768         (M_SQRT_PIl): Likewise.
11769         (M_1_DIV_El): Likewise.
11770         (log_test_data): Use AUTO_TESTS_f_f.
11771         (log10_test_data): Likewise.
11772         (log1p_test_data): Likewise.
11773         (log2_test_data): Likewise.
11774         (sin_test_data): Likewise.
11775         (sin_tonearest_test_data): Likewise.
11776         (sin_towardzero_test_data): Likewise.
11777         (sin_downward_test_data): Likewise.
11778         (sin_upward_test_data): Likewise.
11779         (sinh_test_data): Likewise.
11780         (sinh_tonearest_test_data): Likewise.
11781         (sinh_towardzero_test_data): Likewise.
11782         (sinh_downward_test_data): Likewise.
11783         (sinh_upward_test_data): Likewise.
11784         (tan_test_data): Likewise.
11785         (tan_tonearest_test_data): Likewise.
11786         (tan_towardzero_test_data): Likewise.
11787         (tan_downward_test_data): Likewise.
11788         (tan_upward_test_data): Likewise.
11789         (tanh_test_data): Likewise.
11790         (tgamma_test_data): Likewise.
11791         (y0_test_data): Likewise.
11792         (y1_test_data): Likewise.
11793         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
11794         (special_real_inputs): Add pi/4.
11795         * sysdeps/i386/fpu/libm-test-ulps: Update.
11796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11797
11798 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11799
11800         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
11801         "longjmp_target" static probes.
11802         (__longjmp): Rename to __longjmp_symbol.
11803         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
11804         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
11805         on which longjmp to generate.
11806         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
11807         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
11808         probe.
11809         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11810         (__sigjmp_save): Rename to __sigjmp_save_symbol.
11811         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
11812         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
11813         and __sigjmp_save_symbol based on which sigsetjmp to generated.
11814         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
11815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
11816         __longjmp_symbol based on which __longjmp to generate.
11817         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
11818         probe.
11819         (setjmp): Rename to setjmp_symbol.
11820         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11821         (_setjmp): Rename to _setjmp_symbol.
11822         (__sigsetjmp): Rename to __sigsetjmp_symbol.
11823         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
11824         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
11825         which setjmp to generate.
11826         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
11827         "longjmp_target" static probes.
11828
11829 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
11830
11831         * benchtests/README: Add note about output arguments.
11832         * benchtests/bench-sincos.c: Remove file.
11833         * benchtests/sincos-inputs: New file.
11834         * scripts/bench.pl: Identify output arguments and define
11835         static variables for them.
11836
11837         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
11838
11839         [BZ #15941]
11840         * Makefile (INSTALL): Add install-plain.texi as the primary
11841         dependency.
11842         * manual/install-plain.texi: New file.
11843         * manual/install.texi: Include node directive only for
11844         non-plaintext output.
11845
11846 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
11847
11848         * stdlib/longlong.h: Update from GCC.
11849
11850         [BZ #6807]
11851         [BZ #15901]
11852         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
11853         * math/w_j0f.c (y0f): Likewise.
11854         * math/w_j0l.c (__y0l): Likewise.
11855         * math/w_j1.c (y1): Likewise.
11856         * math/w_j1f.c (y1f): Likewise.
11857         * math/w_j1l.c (__y1l): Likewise
11858         * math/w_jn.c (yn): Likewise.
11859         * math/w_jnf.c (ynf): Likewise.
11860         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
11861         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
11862         value for Bessel function domain errors outside _SVID_ mode.
11863         Adjust sign of return value for yn (negative integer, 0).
11864         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
11865         by zero in return for negative x and set sign appropriately for
11866         negative n.
11867         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
11868         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
11869         * math/libm-test.inc (y0_test_data): Add more tests and adjust
11870         expectations in error cases.
11871         (y1_test_data): Likewise.
11872         (yn_test_data): Likewise.
11873         * sysdeps/i386/fpu/libm-test-ulps: Update.
11874         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11875
11876 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11877
11878         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
11879         "64" to "64-v1".  Add "64-v2".
11880         (abi-64-options): Rename to ...
11881         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
11882         (abi-64-condition): Rename to ...
11883         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
11884         (abi-64-ld-soname): Rename to ...
11885         (abi-64-v1-ld-soname): ... this.
11886         (abi-64-v2-options): Define.
11887         (abi-64-v2-condition): Likewise.
11888         (abi-64-v2-ld-soname): Likewise.
11889         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
11890         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
11891         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
11892         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
11893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
11894
11895 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11896             Alan Modra  <amodra@gmail.com>
11897
11898         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
11899         New versions for use with the ELFv2 ABI.
11900         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
11901         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
11902         declaration.
11903         (struct La_ppc64v2_retval): Likewise.
11904         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
11905         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
11906         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
11907         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
11908         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
11909         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11910         Do not save or restore CR.
11911         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
11912         (_dl_profile_resolve): Do no save or restore CR.  Support extended
11913         return values for ELFv2 ABI.  Fix location of FPR return registers.
11914         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
11915         updated values for _CALL_ELF == 2.
11916         (La_regs, La_retval, int_retval): Likewise.
11917
11918 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11919
11920         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
11921         (FRAME_MIN_SIZE_PARM): Likewise.
11922         (FRAME_BACKCHAIN): Likewise.
11923         (FRAME_CR_SAVE): Likewise.
11924         (FRAME_LR_SAVE): Likewise.
11925         (FRAME_TOC_SAVE): Likewise.
11926         (FRAME_PARM_SAVE): Likewise.
11927         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
11928         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
11929         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11930         (call_mcount_parm_offset): New macro.
11931         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
11932         (PROF): Use symbolic stack frame offsets.
11933         (TAIL_CALL_SYSCALL_ERROR): Likewise.
11934         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
11935         Redefine in terms of FRAME_MIN_SIZE.
11936         (_dl_runtime_resolve): Use symbolic stack frame offsets.
11937         (_dl_profile_resolve): Likewise.  Update comment.
11938         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
11939         symbols stack frame offsets.
11940         (__sigsetjmp): Likewise.
11941         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
11942         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
11943         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
11944         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
11945
11946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
11947         (FRAME_BACKCHAIN): Remove.
11948         (FRAME_CR_SAVE): Likewise.
11949         (FRAME_LR_SAVE): Likewise.
11950         (FRAME_COMPILER_DW): Likewise.
11951         (FRAME_LINKER_DW): Likewise.
11952         (FRAME_TOC_SAVE): Likewise.
11953         (FRAME_PARM_SAVE): Likewise.
11954         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
11955         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
11956         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
11957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
11958         (CHECK_SP): Use symbolic stack frame offsets.
11959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
11960         zone" instead of caller's parameter save area for temp storage.
11961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11962         Likewise.  Also, use symbolic stack frame offsets.
11963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
11964         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
11965         our own stack frame instead of the caller's.
11966         (__socket): Use symbolic stack frame offsets.
11967
11968 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11969             Alan Modra  <amodra@gmail.com>
11970
11971         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
11972         Define.
11973         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
11974         (PPC64_LOCAL_ENTRY_OFFSET): Define.
11975         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
11976         New function.
11977         (elf_machine_fixup_plt): Call it.
11978         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
11979         reloc arguments.
11980         (elf_machine_rela): Update call to elf_machine_plt_conflict.
11981         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
11982         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
11983         r2 before calling target.
11984
11985 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11986             Alan Modra  <amodra@gmail.com>
11987
11988         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
11989         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
11990         versions of macros to support ELFv2 ABI.
11991         (LOCALENTRY): New macro.
11992         (ENTRY, EALIGN): Use it.
11993         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
11994         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
11995         fall through into ENTRY entry point.
11996         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
11997         Only define if _CALL_ELF != 2.
11998
11999         (elf_machine_matches_host): Verify ABI version matches.
12000         (RTLD_START): Use LOCALENTRY.
12001         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
12002         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
12003         (PLT_ENTRY_WORDS): New macro.
12004         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
12005         (elf_machine_runtime_setup): Support ELFv2 ABI.
12006         (elf_machine_fixup_plt): Likewise.
12007         (elf_machine_plt_conflict): Likewise.
12008         (resolve_ifunc): Likewise.
12009         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
12010         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12011         Likewise.
12012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12013         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
12014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12015         (makecontext): Support ELFv2 ABI.
12016         * elf/elf.h (EF_PPC64_ABI): Define.
12017
12018 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12019
12020         * sysdeps/powerpc/powerpc64/sysdep.h
12021         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
12022         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
12023         (ENTRY) [ASSEMBLER]: ... but instead here ...
12024         (EALIGN) [ASSEMBLER]: ... and here.
12025         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
12026         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
12027         (ENTRY_2) [!ASSEMBLER]: Use it.
12028         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
12029         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
12030         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
12031         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
12032         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
12033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
12034         Use PPC64_LOAD_FUNCPTR.
12035
12036         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
12037
12038 2013-12-04  Alan Modra  <amodra@gmail.com>
12039
12040         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
12041         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
12042         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
12043         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
12044
12045         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
12046         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
12047         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
12048         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
12049         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
12050         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
12051
12052 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12053
12054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12055         (__makecontext): Fix incorrect CFI when backtracing out of
12056         context created via makecontext.
12057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
12058         (__setcontext): Fix incorrect CFI during switch to new context.
12059         (__novec_setcontext): Likewise.
12060
12061 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
12062
12063         [BZ #4772]
12064         * time/strptime_l.c (__strptime_internal): Allow modifiers
12065         in strptime.
12066         * time/tst-strptime.c (day_tests): Add testcase.
12067
12068 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12069
12070         * scripts/bench.pl: Skip over blank lines.
12071
12072 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12073
12074         [BZ #926]
12075         * manual/time.texi (Calendar Time): Clarify what timezone functions
12076         use.
12077
12078 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12079
12080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12081
12082 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
12083
12084         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
12085         implementation.
12086         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
12087         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
12088         * debug/memset_chk.c (__memset_chk): Likewise.
12089         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
12090         * debug/strncpy_chk.c: Likewise.
12091
12092 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
12093
12094         [BZ #15268]
12095         [BZ #15425]
12096         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
12097         (__ieee754_exp): For possibly underflowing results, check size of
12098         result and force underflow exception if required.
12099         * math/auto-libm-test-in: Add more tests of exp.
12100         * math/auto-libm-test-out: Regenerated.
12101         * sysdeps/i386/fpu/libm-test-ulps: Update.
12102         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12103
12104         [BZ #16283]
12105         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
12106         * math/w_exp2f.c (__exp2f): Likewise.
12107         * math/w_exp2l.c (__exp2l): Likewise.
12108         * math/auto-libm-test-in: Do not allow missing errno on exp2
12109         underflow.
12110         * math/auto-libm-test-out: Regenerated.
12111
12112 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
12113
12114         [BZ #16274]
12115         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
12116         handle filename validation.
12117         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
12118         (do_open): Delete.
12119
12120 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
12121
12122         [BZ #6786]
12123         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
12124         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
12125         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
12126         <float.h>.
12127         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
12128         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
12129         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12130         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
12131         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12132         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
12133         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12134         * math/auto-libm-test-in: Don't allow missing errno from erfc.
12135         Add more erfc tests.
12136         * math/auto-libm-test-out: Regenerated.
12137         * sysdeps/i386/fpu/libm-test-ulps: Update.
12138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12139
12140         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
12141         exp2, expm1, j0 and j1.
12142         * math/auto-libm-test-out: Regenerated.
12143         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
12144         (erfc_test_data): Likewise.
12145         (exp_test_data): Likewise.
12146         (exp_tonearest_test_data): Likewise.
12147         (exp_towardzero_test_data): Likewise.
12148         (exp_downward_test_data): Likewise.
12149         (exp_upward_test_data): Likewise.
12150         (exp10_test_data): Likewise.
12151         (exp2_test_data): Likewise.
12152         (expm1_test_data): Likewise.
12153         (j0_test_data): Likewise.
12154         (j1_test_data): Likewise.
12155         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
12156         (input_flag_type): Add flag_xfail_rounding.
12157         (input_flags): Add xfail-rounding.
12158         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
12159         (output_for_one_input_case): Handle flag_xfail_rounding.
12160         * sysdeps/i386/fpu/libm-test-ulps: Update.
12161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12162
12163 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
12164
12165         [BZ #16289]
12166         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
12167         division by 0.
12168
12169 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
12170
12171         [BZ #16195]
12172         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
12173         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
12174         (STAP_PROBE0): New macro.
12175         (STAP_PROBE1): Likewise.
12176         (STAP_PROBE2): Likewise.
12177         (STAP_PROBE3): Likewise.
12178         (STAP_PROBE4): Likewise.
12179
12180 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
12181
12182         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
12183
12184 2013-12-02  Steve Ellcey  <sellcey@mips.com>
12185
12186         * benchtests/Makefile (bench): Add sqrt.
12187         (LDLIBS-bench-sqrt): New.
12188         * benchtests/sqrt-input: New.
12189
12190 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
12191
12192         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
12193         (GAIH_EAI): Likewise.
12194         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
12195         (gaih_inet): Likewise.
12196         (getaddrinfo): Don't use GAIH_EAI.
12197
12198         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
12199         (struct gaih): Remove definition.
12200
12201 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
12202
12203         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
12204         Use HERRNOP directly.
12205
12206 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12207
12208         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12209
12210 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
12211
12212         * math/gen-auto-libm-tests.c (test_functions): Add more
12213         single-argument functions.
12214         (special_fill_pi_2): New function.
12215         (special_fill_minus_pi_2): Likewise.
12216         (special_fill_pi_6): Likewise.
12217         (special_fill_minus_pi_6): Likewise.
12218         (special_fill_pi_3): Likewise.
12219         (special_fill_2pi_3): Likewise.
12220         (special_fill_e): Likewise.
12221         (special_fill_1_e): Likewise.
12222         (special_fill_e_minus_1): Likewise.
12223         (special_real_inputs): Add more special inputs.
12224         (output_for_one_input_case): Do not require ERANGE on underflow to
12225         zero if round-to-nearest result does not underflow to zero, unless
12226         exact results required.
12227         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
12228         atan, atanh, cbrt, cos and cosh.
12229         * math/auto-libm-test-out: Regenerated.
12230         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
12231         (acos_tonearest_test_data): Likewise.
12232         (acos_towardzero_test_data): Likewise.
12233         (acos_downward_test_data): Likewise.
12234         (acos_upward_test_data): Likewise.
12235         (acosh_test_data): Likewise.
12236         (asin_test_data): Likewise.
12237         (asin_tonearest_test_data): Likewise.
12238         (asin_towardzero_test_data): Likewise.
12239         (asin_upward_test_data): Likewise.
12240         (asinh_test_data): Likewise.
12241         (atan_test_data): Likewise.
12242         (atanh_test_data): Likewise.
12243         (cbrt_test_data): Likewise.
12244         (cos_test_data): Likewise.
12245         (cos_tonearest_test_data): Likewise.
12246         (cos_towardzero_test_data): Likewise.
12247         (cos_downward_test_data): Likewise.
12248         (cos_upward_test_data): Likewise.
12249         (cosh_test_data): Likewise.
12250         (cosh_tonearest_test_data): Likewise.
12251         (cosh_towardzero_test_data): Likewise.
12252         (cosh_downward_test_data): Likewise.
12253         (cosh_upward_test_data): Likewise.
12254         * sysdeps/i386/fpu/libm-test-ulps: Update.
12255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12256
12257 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
12258
12259         [BZ #6787]
12260         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
12261         * math/w_exp10f.c (__exp10f): Likewise.
12262         * math/w_exp10l.c (__exp10l): Likewise.
12263         * math/libm-test.inc (exp10_test_data): Add more tests and expect
12264         errno settings in existing tests.
12265
12266         [BZ #14032]
12267         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
12268         precision control set to double precision.
12269         * sysdeps/i386/fpu/w_sqrt.c: New file.
12270         * math/auto-libm-test-in: Add more tests.
12271         * math/auto-libm-test-out: Update.
12272
12273         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
12274         (sqrt_test_tonearest): New function.
12275         (sqrt_towardzero_test_data): New variable.
12276         (sqrt_test_towardzero): New function.
12277         (sqrt_downward_test_data): New variable.
12278         (sqrt_test_downward): New function.
12279         (sqrt_upward_test_data): New variable.
12280         (sqrt_test_upward): New function.
12281         (main): Call the new functions.
12282
12283         * math/gen-auto-libm-tests.c: New file.
12284         * math/auto-libm-test-in: Likewise.
12285         * math/auto-libm-test-out: New generated file.
12286         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
12287         variables.
12288         (%beautify): Add generated representations of zero.
12289         (top level): Set $auto_input and call parse_auto_input.
12290         (beautify): Remove trailing "f" from hex float constants.
12291         (parse_args): Handle XFAIL_TEST.
12292         (convert_condition): New function.
12293         (or_value): Likewise.
12294         (or_cond_value): Likewise.
12295         (generate_testfile): Handle AUTO_TESTS_* lines.
12296         (parse_auto_input): New function.
12297         * math/libm-test.inc (XFAIL_TEST): New macro.
12298         (ERRNO_UNCHANGED): Update value.
12299         (ERRNO_EDOM): Likewise.
12300         (ERRNO_ERANGE): Likewise.
12301         (IGNORE_RESULT): Likewise.
12302         (TEST_COND_flt_32): New macro.
12303         (TEST_COND_dbl_64): Likewise.
12304         (TEST_COND_ldbl_96_intel): Likewise.
12305         (TEST_COND_ldbl_96_m68k): Likewise.
12306         (TEST_COND_ldbl_128): Likewise.
12307         (TEST_COND_ldbl_128ibm): Likewise.
12308         (TEST_COND_long32): Likewise.
12309         (TEST_COND_long64): Likewise.
12310         (TEST_COND_before_rounding): Likewise.
12311         (TEST_COND_after_rounding): Likewise.
12312         (enable_test): Handle XFAIL_TEST flag.
12313         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
12314         with finite results.
12315         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
12316         auto-libm-test-out.
12317
12318 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
12319             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12320
12321         [BZ #16214]
12322         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
12323         __tls_get_addr_internal instead of __tls_get_offset in order to
12324         avoid GOT pointer dependency.  Make rtld export
12325         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
12326         __tls_get_addr since we are a __tls_get_offset platform.
12327         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
12328         GOT pointer being set up before.
12329         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
12330
12331 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
12332
12333         * manual/math.texi (Errors in Math Functions): Document accuracy
12334         goals.
12335
12336         [BZ #15004]
12337         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
12338         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
12339         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
12340         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
12341         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
12342         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
12343         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
12344         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
12345         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
12346         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
12347         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
12348         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
12349         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
12350         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
12351         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
12352         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
12353
12354         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
12355         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
12356         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
12357         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
12358         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
12359         Likewise.
12360         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
12361         Likewise.
12362         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
12363         Likewise.
12364         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
12365         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
12366         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
12367         atomic-feupdateenv and flt-rounds.
12368         * sysdeps/powerpc/nofpu/Versions (libc): Add
12369         __atomic_feholdexcept, __atomic_feclearexcept,
12370         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
12371         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
12372         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
12373         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
12374         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
12375         here.
12376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
12377         Update.
12378
12379         * manual/arith.texi (FP Exceptions): Document that exceptions may
12380         not be raised when matherr is used.
12381         (Math Error Reporting): Document overflow in directed rounding
12382         modes.  Document that errno may not be set when finite values are
12383         returned on overflow.  Document intent to set errno on underflow
12384         only for underflow to zero.
12385
12386         [BZ #16271]
12387         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
12388         round-to-nearest then adjust result for other rounding modes.
12389         * include/fenv.h (fegetround): Use libm_hidden_proto.
12390         * math/fegetround.c (fegetround): Use libm_hidden_def.
12391         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
12392         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
12393         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12394         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
12395         Likewise.
12396         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
12397         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
12398         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
12399         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
12400
12401 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12402
12403         [BZ #16077]
12404         * nss/Versions (libnss_files): Add
12405         _nss_files_gethostbyname3_r.
12406         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
12407         New function.
12408         (HOST_DB_LOOKUP): Remove macro.
12409         (_nss_files_gethostbyname_r): Implement function without the
12410         HOST_DB_LOOKUP macro.
12411         (_nss_files_gethostbyname2_r): Likewise.
12412
12413 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
12414
12415         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
12416
12417 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
12418
12419         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
12420         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
12421         warning.
12422
12423 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12424
12425         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
12426         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
12427         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
12428         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
12429         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
12430         __fe_nomask_env_priv and attribute_hidden.
12431         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
12432         (libc_feupdateenv_test_ppc): Likewise.
12433         (libc_feresetround_ppc): Likewise.
12434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12435         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
12436         compat_symbol macro.
12437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12438         (__fe_nomask_env): Likewise.
12439         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
12440
12441 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12442
12443         * string/Makefile: Remove ifunc tests.
12444         * string/test-string.h: Define TEST_IFUNC.
12445         * string/test-bcopy-ifunc.c: Remove.
12446         * string/test-bzero-ifunc.c: Likewise.
12447         * string/test-memccpy-ifunc.c: Likewise.
12448         * string/test-memchr-ifunc.c: Likewise.
12449         * string/test-memcmp-ifunc.c: Likewise.
12450         * string/test-memcpy-ifunc.c: Likewise.
12451         * string/test-memmem-ifunc.c: Likewise.
12452         * string/test-memmove-ifunc.c: Likewise.
12453         * string/test-mempcpy-ifunc.c: Likewise.
12454         * string/test-memrchr-ifunc.c: Likewise.
12455         * string/test-memset-ifunc.c: Likewise.
12456         * string/test-rawmemchr-ifunc.c: Likewise.
12457         * string/test-stpcpy-ifunc.c: Likewise.
12458         * string/test-stpncpy-ifunc.c: Likewise.
12459         * string/test-strcasecmp-ifunc.c: Likewise.
12460         * string/test-strcasestr-ifunc.c: Likewise.
12461         * string/test-strcat-ifunc.c: Likewise.
12462         * string/test-strchr-ifunc.c: Likewise.
12463         * string/test-strchrnul-ifunc.c: Likewise.
12464         * string/test-strcmp-ifunc.c: Likewise.
12465         * string/test-strcpy-ifunc.c: Likewise.
12466         * string/test-strcspn-ifunc.c: Likewise.
12467         * string/test-strlen-ifunc.c: Likewise.
12468         * string/test-strncasecmp-ifunc.c: Likewise.
12469         * string/test-strncat-ifunc.c: Likewise.
12470         * string/test-strncmp-ifunc.c: Likewise.
12471         * string/test-strncpy-ifunc.c: Likewise.
12472         * string/test-strnlen-ifunc.c: Likewise.
12473         * string/test-strpbrk-ifunc.c: Likewise.
12474         * string/test-strrchr-ifunc.c: Likewise.
12475         * string/test-strspn-ifunc.c: Likewise.
12476         * string/test-strstr-ifunc.c: Likewise.
12477
12478 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12479
12480         * benchtests/Makefile: Remove ifunc tests.
12481         * benchtests/bench-string.h: Define TEST_IFUNC.
12482         * benchtests/bench-bcopy-ifunc.c: Remove.
12483         * benchtests/bench-bzero-ifunc.c: Likewise.
12484         * benchtests/bench-memccpy-ifunc.c: Likewise.
12485         * benchtests/bench-memchr-ifunc.c: Likewise.
12486         * benchtests/bench-memcmp-ifunc.c: Likewise.
12487         * benchtests/bench-memcpy-ifunc.c: Likewise.
12488         * benchtests/bench-memmem-ifunc.c: Likewise.
12489         * benchtests/bench-memmove-ifunc.c: Likewise.
12490         * benchtests/bench-mempcpy-ifunc.c: Likewise.
12491         * benchtests/bench-memrchr-ifunc.c: Likewise.
12492         * benchtests/bench-memset-ifunc.c: Likewise.
12493         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
12494         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
12495         * benchtests/bench-stpcpy-ifunc.c: Likewise.
12496         * benchtests/bench-stpncpy-ifunc.c: Likewise.
12497         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
12498         * benchtests/bench-strcasestr-ifunc.c: Likewise.
12499         * benchtests/bench-strcat-ifunc.c: Likewise.
12500         * benchtests/bench-strchr-ifunc.c: Likewise.
12501         * benchtests/bench-strchrnul-ifunc.c: Likewise.
12502         * benchtests/bench-strcmp-ifunc.c: Likewise.
12503         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
12504         * benchtests/bench-strcpy-ifunc.c: Likewise.
12505         * benchtests/bench-strcspn-ifunc.c: Likewise.
12506         * benchtests/bench-strlen-ifunc.c: Likewise.
12507         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
12508         * benchtests/bench-strncat-ifunc.c: Likewise.
12509         * benchtests/bench-strncmp-ifunc.c: Likewise.
12510         * benchtests/bench-strncpy-ifunc.c: Likewise.
12511         * benchtests/bench-strnlen-ifunc.c: Likewise.
12512         * benchtests/bench-strpbrk-ifunc.c: Likewise.
12513         * benchtests/bench-strrchr-ifunc.c: Likewise.
12514         * benchtests/bench-strsep-ifunc.c: Likewise.
12515         * benchtests/bench-strspn-ifunc.c: Likewise.
12516         * benchtests/bench-strstr-ifunc.c: Likewise.
12517
12518 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12519
12520         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
12521
12522 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
12523
12524         * resolv/netdb.h: Use __glibc_reserved instead __unused.
12525         * rt/aio.h: Likewise.
12526         * sysdeps/gnu/bits/utmp.h: Likewise.
12527         * sysdeps/gnu/bits/utmpx.h: Likewise.
12528         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
12529         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
12530         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
12531         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
12532         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
12533         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
12534         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
12535         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
12536         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
12537         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
12538         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
12539         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
12540         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
12541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
12542         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
12543         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
12544         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
12545         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
12546         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12547         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
12548         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
12549         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
12550         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
12551         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12552         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
12553         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12554         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
12555         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
12556         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
12557         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
12558         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
12559         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
12560         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
12561         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
12562         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12563         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
12564         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
12565         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
12566         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
12567         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
12568         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
12569         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
12570
12571 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
12572
12573         [BZ #16245]
12574         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
12575         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
12576
12577 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
12578
12579         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
12580         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
12581         Likewise.
12582
12583 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12584
12585         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
12586         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
12587         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
12588         (__fesetround): Remove define.
12589         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
12590         rounding and exceptions handling.
12591         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
12592         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
12593         (__fe_nomask_env): Likewise.
12594         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
12595         __fegetround instead of fegetround.
12596         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
12597         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
12598
12599 2013-11-21  Roland McGrath  <roland@hack.frob.com>
12600
12601         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
12602         it's there.
12603
12604         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
12605
12606 2013-11-21  Meador Inge  <meadori@codesourcery.com>
12607
12608         [BZ #11157]
12609         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
12610         (encrypt_r): Likewise.
12611         * malloc/obstack.h (obstack_free): Likewise.
12612         * posix/unistd.h (encrypt): Likewise.
12613
12614 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
12615
12616         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
12617         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
12618         DL_CALL_DT_FINI() that call the functions directly.
12619         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
12620         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
12621         * elf/dl-fini.c: Likewise.
12622
12623 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
12624
12625         * malloc/hooks.c (memalign_check): Add alignment rounding.
12626         * malloc/malloc.c (_mid_memalign): New function.
12627         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
12628         Implement by calling _mid_memalign.
12629         * manual/probes.texi (Memory Allocation Probes): Remove
12630         memory_valloc_retry and memory_pvalloc_retry.
12631
12632 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12633
12634         * locale/programs/locarchive.c (open_archive): Add const
12635         qualifier to ARCHIVEFNAME and copy default fname to
12636         DEFAULT_FNAME.
12637
12638         [BZ #15601]
12639         * libio/tst-widetext.input: Rename Oriya to Odia.
12640         * locale/iso-639.def: Likewise.
12641
12642         * manual/probes.texi (Mathematical Function Probes): Add
12643         documentation for sin, cos, asin and acos probes.
12644         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
12645         (__sin32): Add slowasin probe.
12646         (__cos32): Add slowacos probe.
12647         (__mpsin): Add slowsin probe.
12648         (__mpcos): Add slowcos probe.
12649
12650 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
12651
12652         [BZ #15483]
12653         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
12654         thread-local __sim_exceptions_thread and global
12655         __sim_exceptions_global.
12656         (__sim_disabled_exceptions): Change to thread-local
12657         __sim_disabled_exceptions_thread and global
12658         __sim_disabled_exceptions_global.
12659         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12660         and global __sim_round_mode_global.
12661         (__simulate_exceptions): Use thread-local floating-point state and
12662         set global state from it as needed.
12663         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
12664         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
12665         __sim_round_mode_thread.
12666         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
12667         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
12668         and global __sim_exceptions_global.
12669         (__sim_disabled_exceptions): Change to thread-local
12670         __sim_disabled_exceptions_thread and global
12671         __sim_disabled_exceptions_global.
12672         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
12673         and global __sim_round_mode_global.
12674         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
12675         (SIM_SET_GLOBAL): Likewise.
12676         * sysdeps/powerpc/soft-fp/sfp-machine.h
12677         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
12678         __sim_round_mode_thread.
12679         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
12680         __sim_disabled_exceptions_thread.
12681         (__sim_exceptions): Change to __sim_exceptions_thread.
12682         (__sim_disabled_exceptions): Change to
12683         __sim_disabled_exceptions_thread.
12684         (__sim_round_mode): Change to __sim_round_mode_thread.
12685         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
12686         thread-local floating-point state and set global state from it as
12687         needed.
12688         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
12689         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
12690         (__sim_disabled_exceptions): Remove extern declaration.
12691         (feenableexcept): Use thread-local floating-point state and set
12692         global state from it as needed.
12693         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
12694         extern declaration.
12695         (__sim_disabled_exceptions): Likewise.
12696         (__sim_round_mode): Likewise.
12697         (__fegetenv): Use thread-local floating-point state.
12698         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
12699         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
12700         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
12701         floating-point state and set global state from it as needed.
12702         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
12703         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
12704         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
12705         Likewise.
12706         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
12707         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
12708         Likewise.
12709         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
12710         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
12711         Use __sim_round_mode_thread.
12712         * math/test-fenv-tls.c: New file.
12713         * math/Makefile (tests): Add test-fenv-tls.
12714         ($(objpfx)test-fenv-tls): Depend on
12715         $(common-objpfx)nptl/libpthread.so.
12716
12717 2013-11-19  Andreas Schwab  <schwab@suse.de>
12718
12719         * locale/programs/locale.c (show_info): Decode wordarray elements.
12720         * locale/categories.def (LC_MONETARY): Add element for
12721         _NL_MONETARY_CRNCYSTR.
12722         * locale/C-monetary.c (conversion_rate): New variable.
12723         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
12724         element.
12725
12726 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
12727
12728         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
12729         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
12730
12731 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12732
12733         * elf/Makefile (tst-auxv): New test.
12734         * elf/tst-auxv.c: New
12735         * elf/rtld.c (dl_main): Adjust AT_EXECFN
12736
12737 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
12738
12739         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
12740         (hidden_proto): Caller changed.
12741         (hidden_tls_proto): New macro.
12742         (libc_hidden_tls_proto): Likewise.
12743         (rtld_hidden_tls_proto): Likewise.
12744         (libm_hidden_tls_proto): Likewise.
12745         (libresolv_hidden_tls_proto): Likewise.
12746         (librt_hidden_tls_proto): Likewise.
12747         (libdl_hidden_tls_proto): Likewise.
12748         (libnss_files_hidden_tls_proto): Likewise.
12749         (libnsl_hidden_tls_proto): Likewise.
12750         (libnss_nisplus_hidden_tls_proto): Likewise.
12751         (libutil_hidden_tls_proto): Likewise.
12752
12753 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
12754
12755         [BZ #10253]
12756         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
12757         (decompose_rpath): Defer expansion to fillin_rpath.
12758         (_dl_init_paths): Pass linkmap to fillin_rpath.
12759
12760 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12761
12762         * benchtests/Makefile: Add strsep.
12763         * benchtests/bench-strsep.c: New file: strsep benchtest.
12764         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
12765
12766 2013-11-18  Andreas Schwab  <schwab@suse.de>
12767
12768         * locale/programs/locale.c (show_info) [case byte]: Check for
12769         '\377' instead of '\177'.
12770         * locale/C-monetary.c (not_available): Always use "\377".
12771         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
12772         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
12773         detect unavailable sign_posn locale elements.
12774         * locale/localeconv.c (__localeconv): For grouping and
12775         mon_grouping handle "\177" and "\377" like no grouping.
12776         (INT_ELEM): New macro.  Use it to set all numeric members.
12777         * locale/programs/ld-monetary.c (monetary_read)
12778         <tok_mon_grouping>: Normalize single -1 to the empty string.
12779         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
12780         Likewise.
12781
12782 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
12783
12784         [BZ #16055]
12785         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
12786         when we match (nil).
12787         * stdio-common/tst-sscanf.c (struct test): Add testcase.
12788
12789 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
12790
12791         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
12792         (NO_TEST_INLINE): Update value.
12793         (ERRNO_UNCHANGED): Likewise.
12794         (ERRNO_EDOM): Likewise.
12795         (ERRNO_ERANGE): Likewise.
12796         (IGNORE_RESULT): Likewise.
12797         (check_float_internal): Check signs of NaN results if
12798         TEST_NAN_SIGN used.
12799         (check_complex): Pass TEST_NAN_SIGN flag through to second
12800         check_float_internal call.
12801         (copysign_test_data): Add tests with quiet NaNs as second
12802         argument.  Use TEST_NAN_SIGN.
12803         (fabs_test_data): Add test of negative quiet NaN argument.  Use
12804         TEST_NAN_SIGN.
12805         (signbit_test_data): Add tests of quiet NaN argument.
12806         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
12807
12808         * math/gen-libm-test.pl (show_exceptions): Take extra argument
12809         $ignore_result.
12810         (parse_args): Handle function results specified as IGNORE.
12811         * math/libm-test.inc (IGNORE_RESULT): New macro.
12812         (check_float_internal): Do not check numerical result if flag
12813         IGNORE_RESULT set.
12814         (check_complex): Pass through IGNORE_RESULT to second
12815         check_float_internal call.
12816         (check_int): Do not check numerical result if flag IGNORE_RESULT
12817         set.
12818         (check_long): Likewise.
12819         (check_bool): Likewise.
12820         (check_longlong): Likewise.
12821         (lrint_test_data): Add tests of infinite and NaN arguments.
12822         (lrint_tonearest_test_data): Likewise.
12823         (lrint_towardzero_test_data): Likewise.
12824         (lrint_downward_test_data): Likewise.
12825         (lrint_upward_test_data): Likewise.
12826         (llrint_test_data): Likewise.
12827         (llrint_tonearest_test_data): Likewise.
12828         (llrint_towardzero_test_data): Likewise.
12829         (llrint_downward_test_data): Likewise.
12830         (llrint_upward_test_data): Likewise.
12831         (lround_test_data): Likewise.
12832         (llround_test_data): Likewise.
12833
12834         * math/libm-test.inc (NO_TEST_INLINE): New macro.
12835         (ERRNO_UNCHANGED): Update value.
12836         (ERRNO_EDOM): Likewise.
12837         (ERRNO_ERANGE): Likewise.
12838         (NO_TEST_INLINE_FLOAT): New macro.
12839         (NO_TEST_INLINE_DOUBLE): Likewise.
12840         (enable_test): New function.
12841         (RUN_TEST_f_f): Check enable_test before running test.
12842         (RUN_TEST_2_f): Likewise.
12843         (RUN_TEST_fff_f): Likewise.
12844         (RUN_TEST_c_f): Likewise.
12845         (RUN_TEST_f_f1): Likewise.
12846         (RUN_TEST_fF_f1): Likewise.
12847         (RUN_TEST_fI_f1): Likewise.
12848         (RUN_TEST_ffI_f1): Likewise.
12849         (RUN_TEST_c_c): Likewise.
12850         (RUN_TEST_cc_c): Likewise.
12851         (RUN_TEST_f_i): Likewise.
12852         (RUN_TEST_f_i_tg): Likewise.
12853         (RUN_TEST_ff_i_tg): Likewise.
12854         (RUN_TEST_f_b): Likewise.
12855         (RUN_TEST_f_b_tg): Likewise.
12856         (RUN_TEST_f_l): Likewise.
12857         (RUN_TEST_f_L): Likewise.
12858         (RUN_TEST_fFF_11): Likewise.
12859         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
12860         conditionals.
12861         (cosh_test_data): Likewise.
12862         (exp_test_data): Likewise.
12863         (expm1_test_data): Likewise.
12864         (hypot_test_data): Likewise.
12865         (pow_test_data): Likewise.
12866         (sinh_test_data): Likewise.
12867         (tanh_test_data): Likewise.
12868         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
12869         flags argument.
12870
12871         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
12872         tests with quiet NaN input and output.
12873         (acosh_test_data): Likewise.
12874         (asin_test_data): Likewise.
12875         (asinh_test_data): Likewise.
12876         (atan_test_data): Likewise.
12877         (atanh_test_data): Likewise.
12878         (atan2_test_data): Likewise.
12879         (cbrt_test_data): Likewise.
12880         (cos_test_data): Likewise.
12881         (cosh_test_data): Likewise.
12882         (erf_test_data): Likewise.
12883         (erfc_test_data): Likewise.
12884         (exp_test_data): Likewise.
12885         (exp10_test_data): Likewise.
12886         (exp2_test_data): Likewise.
12887         (expm1_test_data): Likewise.
12888         (hypot_test_data): Likewise.
12889         (j0_test_data): Likewise.
12890         (j1_test_data): Likewise.
12891         (jn_test_data): Likewise.
12892         (lgamma_test_data): Likewise.
12893         (log_test_data): Likewise.
12894         (log10_test_data): Likewise.
12895         (log1p_test_data): Likewise.
12896         (log2_test_data): Likewise.
12897         (pow_test_data): Likewise.
12898         (scalb_test_data): Likewise.
12899         (sin_test_data): Likewise.
12900         (sincos_test_data): Likewise.
12901         (sinh_test_data): Likewise.
12902         (tan_test_data): Likewise.
12903         (tanh_test_data): Likewise.
12904         (tgamma_test_data): Likewise.
12905         (y0_test_data): Likewise.
12906         (y1_test_data): Likewise.
12907         (yn_test_data): Likewise.
12908
12909         [BZ #16167]
12910         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
12911         argument being NaN and avoid computations with second argument in
12912         that case.
12913         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
12914         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
12915         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
12916
12917 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
12918
12919         * locale/iso-639.def: Add Chitwani Tharu (the).
12920
12921 2013-11-14  Andreas Schwab  <schwab@suse.de>
12922
12923         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
12924         word instead of empty string.
12925
12926 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12927
12928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12929         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
12930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12931         (__fe_nomask_env): Likewise.
12932
12933 2013-11-13  Steve Ellcey  <sellcey@mips.com>
12934
12935         * benchtests/bench-timing.h: Include time.h.
12936
12937 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
12938
12939         [BZ #15997]
12940         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
12941         to 3.4.0 for x32.
12942         * sysdeps/unix/sysv/linux/configure: Regenerated.
12943
12944 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
12945
12946         [BZ #16151]
12947         * stdlib/strtod_l.c (round_and_return): Do not consider
12948         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
12949         exponent one less than half the least subnormal exponent.
12950         * stdlib/test-strtod-round-data: Add more tests.
12951         * stdlib/tst-strtod-round.c (tests): Regenerated.
12952
12953 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12954
12955         [BZ #14143]
12956         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
12957         (__fe_mask_env): Likewise.
12958         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
12959         libm_hidden_proto and add function prototype.
12960         (__fe_mask_env): Add function prototype.
12961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
12962         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
12963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
12964         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
12965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
12966         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
12967
12968 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12969
12970         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
12971         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
12972
12973 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12974
12975         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
12976         of htab_find_slot().
12977
12978 2013-11-11  David S. Miller  <davem@davemloft.net>
12979
12980         [BZ #16150]
12981         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
12982         symbol in the non-vis3 case in static builds.
12983         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
12984         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
12985         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
12986         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
12987
12988 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
12989
12990         [BZ #387]
12991         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
12992         it is empty.
12993
12994 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12995
12996         * benchtests/Makefile: Add bench-strtod.
12997         * benchtests/bench-strtod.c: New file: strtod benchtest
12998
12999 2013-11-11  Andreas Schwab  <schwab@suse.de>
13000
13001         [BZ #16153]
13002         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
13003         terminating NUL in key length.
13004
13005 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13006
13007         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
13008         Add artificial ODP entry for vDSO symbol for PPC64.
13009         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
13010         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
13011
13012 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
13013
13014         [BZ #15374]
13015         * nss/getent.c (services_keys): Recognize services starting with digit.
13016
13017 2013-11-06  David S. Miller  <davem@davemloft.net>
13018
13019         [BZ #15985]
13020         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
13021         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
13022
13023 2013-11-06  Will Newton  <will.newton@linaro.org>
13024
13025         * manual/memory.texi (Malloc Examples): Remove register
13026         keyword from examples.
13027
13028 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
13029
13030         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
13031
13032 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
13033
13034         [BZ #6981]
13035         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
13036         depending on [__GCC_IEC_559 > 0].
13037         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
13038         depending on [__GCC_IEC_559_COMPLEX > 0].
13039
13040 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
13041
13042         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
13043         to iso-639.def.
13044
13045 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
13046
13047         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
13048
13049 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
13050
13051         [BZ #16112]
13052         * malloc/malloc (malloc_info): Do not handle first bin as
13053         special case.
13054
13055 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
13056
13057         * locale/iso-639.def: Add Central Nahuatl (nhn).
13058
13059 2013-11-01  Bruno Haible  <bruno@clisp.org>
13060
13061         [BZ #7003]
13062         * manual/math.texi (BSD Random): Specify range upper bound as
13063         in POSIX.
13064
13065 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
13066
13067         * locale/iso-639.def: Add Meadow Mari (mhr).
13068
13069 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
13070
13071         [BZ #14752], [BZ #15763]
13072         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
13073         Validate name.
13074         * rt/tst_shm.c: Add test for escaping directory.
13075
13076 2013-10-31  Andreas Schwab  <schwab@suse.de>
13077
13078         [BZ #15917]
13079         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
13080         followed by 'x' as part of digit sequence.
13081         * stdio-common/tst-sscanf.c (double_tests2): New tests.
13082
13083 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
13084
13085         [BZ #16037]
13086         * configure.ac: allow GNU Make 4.0 and greater.
13087         * configure: Regenerated.
13088
13089 2013-10-30  Will Newton  <will.newton@linaro.org>
13090
13091         [BZ #16038]
13092         * malloc/hooks.c (memalign_check): Limit alignment to the
13093         maximum representable power of two.
13094         * malloc/malloc.c (__libc_memalign): Likewise.
13095         * malloc/tst-memalign.c (do_test): Add test for very
13096         large alignment values.
13097         * malloc/tst-posix_memalign.c (do_test): Likewise.
13098
13099 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
13100
13101         [BZ #11087]
13102         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
13103         (munmap_chunk): Likewise.
13104         (mremap_chunk): Likewise.
13105
13106 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
13107
13108         [BZ #15799]
13109         * stdlib/div.c (div): Remove obsolete code.
13110         * stdlib/ldiv.c (ldiv): Likewise.
13111         * stdlib/lldiv.c (lldiv): Likewise.
13112
13113 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
13114
13115         [BZ #16071]
13116         * nss/nss_files/files-XXX.c (get_contents_ret): New
13117         enumerator.
13118         (get_contents): New function.
13119         (internal_getent): Use it.  Expand size of LINEBUFLEN.
13120
13121 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
13122
13123         * configure.in: Moved to ...
13124         * configure.ac: ... here. Change reference to configure.in
13125         to configure.ac.
13126         * sysdeps/arm/preconfigure.ac: ... here.
13127         configure.in to configure.ac.
13128         * sysdeps/gnu/configure.in: Moved to ...
13129         * sysdeps/gnu/configure.ac: ... here.
13130         * sysdeps/i386/configure.in: Moved to ...
13131         * sysdeps/i386/configure.ac: ... here.
13132         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
13133         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
13134         * sysdeps/mach/configure.in: Moved to ...
13135         * sysdeps/mach/configure.ac: ... here.
13136         * sysdeps/mach/hurd/configure.in: Moved to ...
13137         * sysdeps/mach/hurd/configure.ac: ... here.
13138         * sysdeps/powerpc/configure.in: Moved to ...
13139         * sysdeps/powerpc/configure.ac: ... here.
13140         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
13141         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
13142         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
13143         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
13144         * sysdeps/s390/s390-32/configure.in: Moved to ...
13145         * sysdeps/s390/s390-32/configure.ac: ... here.
13146         * sysdeps/s390/s390-64/configure.in: Moved to ...
13147         * sysdeps/s390/s390-64/configure.ac: ... here.
13148         * sysdeps/sh/configure.in: Moved to ...
13149         * sysdeps/sh/configure.ac: ... here.
13150         * sysdeps/sparc/configure.in: Moved to ...
13151         * sysdeps/sparc/configure.ac: ... here.
13152         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
13153         * sysdeps/unix/sysv/linux/configure.ac: ... here.
13154         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
13155         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
13156         * sysdeps/x86_64/configure.in: Moved to ...
13157         * sysdeps/x86_64/configure.ac: ... here.
13158         * sysdeps/x86_64/preconfigure.in: Moved to ...
13159         * sysdeps/x86_64/preconfigure.ac: ... here.
13160         * aclocal.m4: Change reference to configure.in to configure.ac.
13161         * config.h.in: Likewise.
13162         * manual/install.texi: Likewise.
13163         * manual/maint.texi: Likewise.
13164         * Makefile: Likewise.
13165         * malloc/Makefile: Likewise.
13166         * nscd/Makefile: Likewise.
13167         * Makeconfig: Change reference to configure.in and
13168         preconfigure.in to configure.ac and preconfigure.ac
13169         respectively.
13170         * INSTALL: Regenerated.
13171         * configure: Likewise.
13172         * sysdeps/gnu/configure: Likewise.
13173         * sysdeps/i386/configure: Likewise.
13174         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
13175         * sysdeps/mach/configure: Likewise.
13176         * sysdeps/mach/hurd/configure: Likewise.
13177         * sysdeps/powerpc/configure: Likewise.
13178         * sysdeps/powerpc/powerpc32/configure: Likewise.
13179         * sysdeps/powerpc/powerpc64/configure: Likewise.
13180         * sysdeps/s390/s390-32/configure: Likewise.
13181         * sysdeps/s390/s390-64/configure: Likewise.
13182         * sysdeps/sh/configure: Likewise.
13183         * sysdeps/sparc/configure: Likewise.
13184         * sysdeps/unix/sysv/linux/configure: Likewise.
13185         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
13186         * sysdeps/x86_64/configure: Likewise.
13187         * sysdeps/x86_64/preconfigure: Likewise.
13188
13189 2013-10-29  Andreas Schwab  <schwab@suse.de>
13190
13191         * stdio-common/Makefile (tst-swscanf-ENV): Define.
13192
13193 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13194
13195         * benchtests/pow-inputs: Add new inputs.
13196
13197         * benchtests/exp-inputs: Add new inputs.
13198
13199         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
13200         conditional check for return value.
13201         (__cos32): Likewise.
13202
13203 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13204
13205         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
13206         to provide a boost for large inputs with word alignment.
13207         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
13208         implementation based on optimized PPC64 strcpy.
13209         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
13210         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
13211         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
13212         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
13213
13214 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13215
13216         [BZ #2801]
13217         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
13218
13219 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13220
13221         [BZ #14876]
13222         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
13223         * time/tst-strptime.c (day_tests): Add testcase.
13224
13225 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13226
13227         [BZ #14029]
13228         * manual/pattern.texi: Acknowledge that fnmatch can fail.
13229
13230 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
13231
13232         [BZ #16074]
13233         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
13234         MAP_FAILED on error.
13235
13236 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13237
13238         [BZ #16072]
13239         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
13240         heap for large requests.
13241
13242 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
13243
13244         [BZ #9954]
13245         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
13246         result if the result has no associated interface.
13247         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
13248         interface for all 127.X.Y.Z addresses.
13249
13250 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
13251
13252         * locale/iso-639.def: Add Ligurian (lij)
13253
13254 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
13255
13256         [BZ #15825]
13257         * sunrpc/rpc_main.c: Document rpcgen -5.
13258
13259 2013-10-19  Michael Stahl  <mstahl@redhat.com>
13260
13261         * elf/rtld.c (do_preload): Print the reason why preloading failed.
13262
13263 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
13264
13265         [BZ #10278]
13266         * posix/glob.c: Match only directories when trailing slash is present.
13267         * posix/tst-gnuglob.c (my_opendir): Do not open files.
13268         (main): Add testcase.
13269
13270 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
13271
13272         [BZ #15670]
13273         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
13274
13275 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
13276
13277         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
13278         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
13279         AUTH_DES and cindex for FIPS 140-2.
13280         (DES Encryption): Add cindex FIPS 46-3.
13281
13282         * locale/locarchive.h (struct locarhandle): Add fname.
13283         * locale/programs/localedef.c (main): Pass ARGV[remaining]
13284         if an optional argument was specified to --list-archive,
13285         otherwise NULL.
13286         * locale/programs/locarchive.c (show_archive_content): Take new
13287         argument fname and pass it via ah.fname to open_archive.
13288         * locale/programs/localedef.h: Update decl.
13289         (open_archive): If AH->fname is non-null, open that file
13290         rather than the default file name, and don't ignore ENOENT.
13291         (create_archive): Set AH.fname to NULL.
13292         (delete_locales_from_archive): Likewise.
13293         (add_locales_to_archive): Likewise.
13294         * locale/programs/locfile.c (write_all_categories): Likewise.
13295
13296 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
13297             Aldy Hernandez  <aldyh@redhat.com>
13298
13299         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
13300         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
13301         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
13302         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
13303         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
13304         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
13305         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
13306         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
13307         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
13308         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
13309         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
13310         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
13311         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
13312         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
13313         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
13314         Likewise.
13315         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
13316         Likewise.
13317         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
13318         Likewise.
13319         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
13320         Likewise.
13321         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
13322         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
13323         Likewise.
13324         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
13325         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
13326         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
13327         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
13328         Likewise.
13329         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
13330         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
13331         * sysdeps/powerpc/preconfigure: Likewise.
13332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13333         Likewise.
13334         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
13335         Replace contents of file by #include of <fenv_libc.h>.
13336         * sysdeps/powerpc/soft-fp/sfp-machine.h
13337         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
13338         and <sys/prctl.h>.
13339         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
13340         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
13341         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
13342         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
13343         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
13344         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
13345         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
13346         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
13347         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
13348         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
13349         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
13350         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
13351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
13352         Allow copysignl PLT reference to be missing.
13353
13354 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
13355             Joseph Myers  <joseph@codesourcery.com
13356
13357         [BZ #15948]
13358         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
13359         single character.
13360         (add_to_tablewc): Assert sequence of wide characters is nonempty.
13361
13362 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13363
13364         * elf/tst-tls-dlinfo.c: Don't include tls.h.
13365         * elf/tst-tls1.c: Likewise.
13366         * elf/tst-tls10.h: Likewise.
13367         * elf/tst-tls14.c: Likewise.
13368         * elf/tst-tls2.c: Likewise.
13369         * elf/tst-tls3.c: Likewise.
13370         * elf/tst-tls4.c: Likewise.
13371         * elf/tst-tls5.c: Likewise.
13372         * elf/tst-tls6.c: Likewise.
13373         * elf/tst-tls7.c: Likewise.
13374         * elf/tst-tls8.c: Likewise.
13375         * elf/tst-tls9.c: Likewise.
13376         * elf/tst-tlsmod1.c: Likewise.
13377         * elf/tst-tlsmod13.c: Likewise.
13378         * elf/tst-tlsmod13a.c: Likewise.
13379         * elf/tst-tlsmod14a.c: Likewise.
13380         * elf/tst-tlsmod16a.c: Likewise.
13381         * elf/tst-tlsmod16b.c: Likewise.
13382         * elf/tst-tlsmod2.c: Likewise.
13383         * elf/tst-tlsmod3.c: Likewise.
13384         * elf/tst-tlsmod4.c: Likewise.
13385         * elf/tst-tlsmod5.c: Likewise.
13386         * elf/tst-tlsmod6.c: Likewise.
13387
13388 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
13389
13390         [BZ #12486]
13391         * malloc/malloc.c: remove checks for statistics.
13392
13393 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
13394
13395         [BZ #15277]
13396         * inet/inet_net.c (inet_network): Detect additional invalid strings.
13397         * inet/tst-network.c: Add testcase.
13398
13399 2013-10-17  Andreas Schwab  <schwab@suse.de>
13400
13401         [BZ #15218]
13402         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
13403         to determine canonical name.
13404
13405 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
13406
13407         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
13408         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
13409         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13410         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
13411         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13412         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
13413         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13414         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
13415         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13416         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
13417         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
13418         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13419         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13420         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13421         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
13422         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
13423         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13424         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13425         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13426         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
13427         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13428         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13429         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13430         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
13431         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
13432         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13433         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13434         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
13435         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13436         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
13437         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
13438         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13439         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
13440         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13441         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13442         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13443         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13444         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13445         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13446         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13447         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13448         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
13449         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
13450         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13451         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13452         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13453         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13454         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13455         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
13456         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13457         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
13458         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13459         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
13460         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
13461         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13462         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13463         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13464         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13465
13466 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
13467
13468         [BZ #16041]
13469         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
13470         make result into a quiet NaN.
13471
13472 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
13473
13474         * soft-fp/adddf3.c: Fix horizontal whitespace.
13475         * soft-fp/addsf3.c: Likewise.
13476         * soft-fp/addtf3.c: Likewise.
13477         * soft-fp/divdf3.c: Likewise.
13478         * soft-fp/divsf3.c: Likewise.
13479         * soft-fp/divtf3.c: Likewise.
13480         * soft-fp/double.h: Likewise.
13481         * soft-fp/eqdf2.c: Likewise.
13482         * soft-fp/eqsf2.c: Likewise.
13483         * soft-fp/eqtf2.c: Likewise.
13484         * soft-fp/extenddftf2.c: Likewise.
13485         * soft-fp/extended.h: Likewise.
13486         * soft-fp/extendsfdf2.c: Likewise.
13487         * soft-fp/extendsftf2.c: Likewise.
13488         * soft-fp/extendxftf2.c: Likewise.
13489         * soft-fp/fixdfdi.c: Likewise.
13490         * soft-fp/fixdfsi.c: Likewise.
13491         * soft-fp/fixdfti.c: Likewise.
13492         * soft-fp/fixsfdi.c: Likewise.
13493         * soft-fp/fixsfsi.c: Likewise.
13494         * soft-fp/fixsfti.c: Likewise.
13495         * soft-fp/fixtfdi.c: Likewise.
13496         * soft-fp/fixtfsi.c: Likewise.
13497         * soft-fp/fixtfti.c: Likewise.
13498         * soft-fp/fixunsdfdi.c: Likewise.
13499         * soft-fp/fixunsdfsi.c: Likewise.
13500         * soft-fp/fixunsdfti.c: Likewise.
13501         * soft-fp/fixunssfdi.c: Likewise.
13502         * soft-fp/fixunssfsi.c: Likewise.
13503         * soft-fp/fixunssfti.c: Likewise.
13504         * soft-fp/fixunstfdi.c: Likewise.
13505         * soft-fp/fixunstfsi.c: Likewise.
13506         * soft-fp/fixunstfti.c: Likewise.
13507         * soft-fp/floatdidf.c: Likewise.
13508         * soft-fp/floatdisf.c: Likewise.
13509         * soft-fp/floatditf.c: Likewise.
13510         * soft-fp/floatsidf.c: Likewise.
13511         * soft-fp/floatsisf.c: Likewise.
13512         * soft-fp/floatsitf.c: Likewise.
13513         * soft-fp/floattidf.c: Likewise.
13514         * soft-fp/floattisf.c: Likewise.
13515         * soft-fp/floattitf.c: Likewise.
13516         * soft-fp/floatundidf.c: Likewise.
13517         * soft-fp/floatundisf.c: Likewise.
13518         * soft-fp/floatunditf.c: Likewise.
13519         * soft-fp/floatunsidf.c: Likewise.
13520         * soft-fp/floatunsisf.c: Likewise.
13521         * soft-fp/floatunsitf.c: Likewise.
13522         * soft-fp/floatuntidf.c: Likewise.
13523         * soft-fp/floatuntisf.c: Likewise.
13524         * soft-fp/floatuntitf.c: Likewise.
13525         * soft-fp/fmadf4.c: Likewise.
13526         * soft-fp/fmasf4.c: Likewise.
13527         * soft-fp/fmatf4.c: Likewise.
13528         * soft-fp/gedf2.c: Likewise.
13529         * soft-fp/gesf2.c: Likewise.
13530         * soft-fp/getf2.c: Likewise.
13531         * soft-fp/ledf2.c: Likewise.
13532         * soft-fp/lesf2.c: Likewise.
13533         * soft-fp/letf2.c: Likewise.
13534         * soft-fp/muldf3.c: Likewise.
13535         * soft-fp/mulsf3.c: Likewise.
13536         * soft-fp/multf3.c: Likewise.
13537         * soft-fp/negdf2.c: Likewise.
13538         * soft-fp/negsf2.c: Likewise.
13539         * soft-fp/negtf2.c: Likewise.
13540         * soft-fp/op-1.h: Likewise.
13541         * soft-fp/op-2.h: Likewise.
13542         * soft-fp/op-4.h: Likewise.
13543         * soft-fp/op-8.h: Likewise.
13544         * soft-fp/op-common.h: Likewise.
13545         * soft-fp/quad.h: Likewise.
13546         * soft-fp/single.h: Likewise.
13547         * soft-fp/soft-fp.h: Likewise.
13548         * soft-fp/sqrtdf2.c: Likewise.
13549         * soft-fp/sqrtsf2.c: Likewise.
13550         * soft-fp/sqrttf2.c: Likewise.
13551         * soft-fp/subdf3.c: Likewise.
13552         * soft-fp/subsf3.c: Likewise.
13553         * soft-fp/subtf3.c: Likewise.
13554         * soft-fp/truncdfsf2.c: Likewise.
13555         * soft-fp/trunctfdf2.c: Likewise.
13556         * soft-fp/trunctfsf2.c: Likewise.
13557         * soft-fp/trunctfxf2.c: Likewise.
13558         * soft-fp/unorddf2.c: Likewise.
13559         * soft-fp/unordsf2.c: Likewise.
13560         * soft-fp/unordtf2.c: Likewise.
13561
13562 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
13563
13564         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
13565         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
13566
13567 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
13568
13569         * elf/dl-libc.c: Clear initfini list after freeing.
13570
13571 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
13572
13573         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
13574         * soft-fp/addsf3.c: Likewise.
13575         * soft-fp/addtf3.c: Likewise.
13576         * soft-fp/divdf3.c: Likewise.
13577         * soft-fp/divsf3.c: Likewise.
13578         * soft-fp/divtf3.c: Likewise.
13579         * soft-fp/double.h: Likewise.
13580         * soft-fp/eqdf2.c: Likewise.
13581         * soft-fp/eqsf2.c: Likewise.
13582         * soft-fp/eqtf2.c: Likewise.
13583         * soft-fp/extenddftf2.c: Likewise.
13584         * soft-fp/extended.h: Likewise.
13585         * soft-fp/extendsfdf2.c: Likewise.
13586         * soft-fp/extendsftf2.c: Likewise.
13587         * soft-fp/extendxftf2.c: Likewise.
13588         * soft-fp/fixdfdi.c: Likewise.
13589         * soft-fp/fixdfsi.c: Likewise.
13590         * soft-fp/fixdfti.c: Likewise.
13591         * soft-fp/fixsfdi.c: Likewise.
13592         * soft-fp/fixsfsi.c: Likewise.
13593         * soft-fp/fixsfti.c: Likewise.
13594         * soft-fp/fixtfdi.c: Likewise.
13595         * soft-fp/fixtfsi.c: Likewise.
13596         * soft-fp/fixtfti.c: Likewise.
13597         * soft-fp/fixunsdfdi.c: Likewise.
13598         * soft-fp/fixunsdfsi.c: Likewise.
13599         * soft-fp/fixunsdfti.c: Likewise.
13600         * soft-fp/fixunssfdi.c: Likewise.
13601         * soft-fp/fixunssfsi.c: Likewise.
13602         * soft-fp/fixunssfti.c: Likewise.
13603         * soft-fp/fixunstfdi.c: Likewise.
13604         * soft-fp/fixunstfsi.c: Likewise.
13605         * soft-fp/fixunstfti.c: Likewise.
13606         * soft-fp/floatdidf.c: Likewise.
13607         * soft-fp/floatdisf.c: Likewise.
13608         * soft-fp/floatditf.c: Likewise.
13609         * soft-fp/floatsidf.c: Likewise.
13610         * soft-fp/floatsisf.c: Likewise.
13611         * soft-fp/floatsitf.c: Likewise.
13612         * soft-fp/floattidf.c: Likewise.
13613         * soft-fp/floattisf.c: Likewise.
13614         * soft-fp/floattitf.c: Likewise.
13615         * soft-fp/floatundidf.c: Likewise.
13616         * soft-fp/floatundisf.c: Likewise.
13617         * soft-fp/floatunsidf.c: Likewise.
13618         * soft-fp/floatunsisf.c: Likewise.
13619         * soft-fp/floatuntidf.c: Likewise.
13620         * soft-fp/floatuntisf.c: Likewise.
13621         * soft-fp/floatuntitf.c: Likewise.
13622         * soft-fp/fmadf4.c: Likewise.
13623         * soft-fp/fmasf4.c: Likewise.
13624         * soft-fp/fmatf4.c: Likewise.
13625         * soft-fp/gedf2.c: Likewise.
13626         * soft-fp/gesf2.c: Likewise.
13627         * soft-fp/getf2.c: Likewise.
13628         * soft-fp/ledf2.c: Likewise.
13629         * soft-fp/lesf2.c: Likewise.
13630         * soft-fp/letf2.c: Likewise.
13631         * soft-fp/muldf3.c: Likewise.
13632         * soft-fp/mulsf3.c: Likewise.
13633         * soft-fp/multf3.c: Likewise.
13634         * soft-fp/negdf2.c: Likewise.
13635         * soft-fp/negsf2.c: Likewise.
13636         * soft-fp/negtf2.c: Likewise.
13637         * soft-fp/op-1.h: Likewise.
13638         * soft-fp/op-2.h: Likewise.
13639         * soft-fp/op-4.h: Likewise.
13640         * soft-fp/op-8.h: Likewise.
13641         * soft-fp/op-common.h: Likewise.
13642         * soft-fp/quad.h: Likewise.
13643         * soft-fp/single.h: Likewise.
13644         * soft-fp/soft-fp.h: Likewise.
13645         * soft-fp/sqrtdf2.c: Likewise.
13646         * soft-fp/sqrtsf2.c: Likewise.
13647         * soft-fp/sqrttf2.c: Likewise.
13648         * soft-fp/subdf3.c: Likewise.
13649         * soft-fp/subsf3.c: Likewise.
13650         * soft-fp/subtf3.c: Likewise.
13651         * soft-fp/truncdfsf2.c: Likewise.
13652         * soft-fp/trunctfdf2.c: Likewise.
13653         * soft-fp/trunctfsf2.c: Likewise.
13654         * soft-fp/trunctfxf2.c: Likewise.
13655         * soft-fp/unorddf2.c: Likewise.
13656         * soft-fp/unordsf2.c: Likewise.
13657         * soft-fp/unordtf2.c: Likewise.
13658
13659 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
13660
13661         [BZ #15672]
13662         * misc/error.c (error_tail): Fix possible buffer overflow.
13663
13664 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
13665
13666         [BZ #13028]
13667         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
13668         address.
13669
13670 2013-10-14  P. J. McDermott  <pj@pehjota.net>
13671
13672         [BZ #832]
13673         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
13674         testing pipefail option.
13675
13676 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13677
13678         * soft-fp/double.h: Indent preprocessor directives inside #if.
13679         * soft-fp/extended.h: Likewise.
13680         * soft-fp/op-2.h: Likewise.
13681         * soft-fp/op-4.h: Likewise.
13682         * soft-fp/op-common.h: Likewise.
13683         * soft-fp/quad.h: Likewise.
13684         * soft-fp/single.h: Likewise.
13685         * soft-fp/soft-fp.h: Likewise.
13686
13687 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
13688
13689         * iconv/iconv_prog.c: Fix typos.
13690         * stdio-common/psiginfo-data.h: Likewise.
13691
13692 2013-10-12   Reuben Thomas <rrt@sc3d.org>
13693
13694         [BZ #15764]
13695         * locale/setlocale.c: Fix typo.
13696
13697 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
13698
13699         [BZ #16036]
13700         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
13701         signaling NaN arguments.
13702         * soft-fp/unordsf2.c (__unordsf2): Likewise.
13703         * soft-fp/unordtf2.c (__unordtf2): Likewise.
13704
13705         [BZ #14910]
13706         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
13707         unordered operands.
13708         * soft-fp/gesf2.c (__gesf2): Likewise.
13709         * soft-fp/getf2.c (__getf2): Likewise.
13710         * soft-fp/ledf2.c (__ledf2): Likewise.
13711         * soft-fp/lesf2.c (__lesf2): Likewise.
13712         * soft-fp/letf2.c (__letf2): Likewise.
13713
13714         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
13715         * soft-fp/eqsf2.c (__eqsf2): Likewise.
13716         * soft-fp/eqtf2.c (__eqtf2): Likewise.
13717         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
13718         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
13719         * soft-fp/fixdfti.c (__fixdfti): Likewise.
13720         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
13721         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
13722         * soft-fp/fixsfti.c (__fixsfti): Likewise.
13723         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
13724         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
13725         * soft-fp/fixtfti.c (__fixtfti): Likewise.
13726         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
13727         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
13728         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
13729         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
13730         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
13731         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
13732         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
13733         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
13734         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
13735         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
13736         * soft-fp/floatdisf.c (__floatdisf): Likewise.
13737         * soft-fp/floatsisf.c (__floatsisf): Likewise.
13738         * soft-fp/floattidf.c (__floattidf): Likewise.
13739         * soft-fp/floattisf.c (__floattisf): Likewise.
13740         * soft-fp/floattitf.c (__floattitf): Likewise.
13741         * soft-fp/floatundidf.c (__floatundidf): Likewise.
13742         * soft-fp/floatundisf.c (__floatundisf): Likewise.
13743         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
13744         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
13745         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
13746         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
13747         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
13748         * soft-fp/gesf2.c (__gesf2): Likewise.
13749         * soft-fp/getf2.c (__getf2): Likewise.
13750         * soft-fp/ledf2.c (__ledf2): Likewise.
13751         * soft-fp/lesf2.c (__lesf2): Likewise.
13752         * soft-fp/letf2.c (__letf2): Likewise.
13753
13754         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
13755         Undefine and redefine.
13756         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
13757         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
13758         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
13759         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
13760         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13761         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
13762         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13763         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
13764         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13765         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
13766         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13767         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
13768         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13769         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
13770         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
13771
13772         [BZ #16032]
13773         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
13774         without decrementing exponent if mantissa >= that for the
13775         denominator, not >.
13776         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
13777         denominator, not >.  Decrement exponent in < case instead of
13778         incrementing in >= case.
13779         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
13780         without decrementing exponent if mantissa >= that for the
13781         denominator, not >.
13782
13783         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
13784         computing saturated result for unsigned overflow.
13785
13786 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
13787             Jeff Law  <law@redhat.com>
13788
13789         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
13790         (atan2Mp): Add systemtap probe marker.
13791         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
13792         (__ieee754_log): Add systemtap probe marker.
13793         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
13794         (atanMp): Add systemtap probe marker.
13795         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
13796         (tanMp): Add systemtap probe marker.
13797         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
13798         (__slowexp): Add systemtap probe marker.
13799         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
13800         (__slowpow): Add systemtap probe marker.
13801         * manual/probes.texi: Document probes.
13802
13803 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
13804
13805         [BZ #15362]
13806         * libio/fileops.c (_IO_new_file_write): Return count of bytes
13807         written.
13808         (_IO_new_file_xsputn): Don't return EOF if nothing has been
13809         written.
13810         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
13811         written to buffer but not flushed.
13812         * libio/iofwrite_u.c:  Likewise.
13813         * libio/iopadn.c:  Return bytes returned even if EOF was
13814         encountered.
13815         * libio/iowpadn.c:  Likewise.
13816         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
13817         if _IO_padn does not write the whole buffer.
13818         [!COMPILE_WPRINTF] (PAD): Likewise.
13819
13820 2013-10-10  David S. Miller  <davem@davemloft.net>
13821
13822         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
13823         directory block.
13824
13825 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13826
13827         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
13828         instead of FSF address.
13829         * soft-fp/fixdfti.c: Likewise.
13830         * soft-fp/fixsfti.c: Likewise.
13831         * soft-fp/fixtfti.c: Likewise.
13832         * soft-fp/fixunsdfti.c: Likewise.
13833         * soft-fp/fixunssfti.c: Likewise.
13834         * soft-fp/fixunstfti.c: Likewise.
13835         * soft-fp/floattidf.c: Likewise.
13836         * soft-fp/floattisf.c: Likewise.
13837         * soft-fp/floattitf.c: Likewise.
13838         * soft-fp/floatuntidf.c: Likewise.
13839         * soft-fp/floatuntisf.c: Likewise.
13840         * soft-fp/floatuntitf.c: Likewise.
13841         * soft-fp/trunctfxf2.c: Likewise.
13842
13843         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
13844         * soft-fp/fixdfti.c: Likewise.
13845         * soft-fp/fixsfti.c: Likewise.
13846         * soft-fp/fixtfti.c: Likewise.
13847         * soft-fp/fixunsdfti.c: Likewise.
13848         * soft-fp/fixunssfti.c: Likewise.
13849         * soft-fp/fixunstfti.c: Likewise.
13850         * soft-fp/floattidf.c: Likewise.
13851         * soft-fp/floattisf.c: Likewise.
13852         * soft-fp/floattitf.c: Likewise.
13853         * soft-fp/floatuntidf.c: Likewise.
13854         * soft-fp/floatuntisf.c: Likewise.
13855         * soft-fp/floatuntitf.c: Likewise.
13856         * soft-fp/trunctfxf2.c: Likewise.
13857
13858 2013-10-10  David S. Miller  <davem@davemloft.net>
13859
13860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13861
13862 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
13863
13864         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
13865         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
13866         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
13867         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
13868         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
13869         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
13870         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
13871
13872         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
13873         for NaNs before doing comparisons on argument.
13874         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
13875         Likewise.
13876
13877 2013-10-10  Will Newton  <will.newton@linaro.org>
13878
13879         * malloc/hooks.c (memalign_check): Ensure the value of bytes
13880         passed to _int_memalign does not overflow.
13881
13882 2013-10-10  Torvald Riegel  <triegel@redhat.com>
13883
13884         * scripts/bench.pl: Add include-sources directive.
13885         * benchtests/README: Update documentation.
13886
13887 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
13888
13889         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
13890         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
13891         instead of FP_INIT_ROUNDMODE.
13892         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
13893         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
13894
13895         [BZ #16034]
13896         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
13897         copy class of input value.
13898         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
13899         not handle exceptions.
13900         * soft-fp/negsf2.c (__negsf2): Likewise.
13901         * soft-fp/negtf2.c (__negtf2): Likewise.
13902         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
13903
13904 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
13905
13906         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
13907         semicolon.  From Linux kernel.
13908
13909 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
13910
13911         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
13912
13913 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
13914
13915         [BZ #156]
13916         * manual/socket.texi: Added statement about buffer
13917         for gethostbyname2_r.
13918
13919 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
13920
13921         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
13922         Use .p2align directive instead, throughout.
13923         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
13924         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
13925         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
13926         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13927         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13928         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
13929         * sysdeps/x86_64/strchr.S: Likewise.
13930         * sysdeps/x86_64/strrchr.S: Likewise.
13931
13932 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
13933
13934         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
13935
13936         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
13937
13938         * sysdeps/generic/math_private.h (__mpsin1): Remove
13939         declaration.
13940         (__mpcos1): Likewise.
13941         (__mpsin): New argument __range_reduce.
13942         (__mpcos): Likewise.
13943         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13944         (slow): Use __mpsin and __mpcos.
13945         (slow1): Likewise.
13946         (slow2): Likewise.
13947         (sloww): Likewise.
13948         (sloww1): Likewise.
13949         (sloww2): Likewise.
13950         (bsloww): Likewise.
13951         (bsloww1): Likewise.
13952         (bsloww2): Likewise.
13953         (cslow2): Likewise.
13954         (csloww): Likewise.
13955         (csloww1): Likewise.
13956         (csloww2): Likewise.
13957         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
13958         range_reduce.  Merge in __mpsin1.
13959         (__mpcos): Likewise.
13960         (__mpsin1): Remove.
13961         (__mpcos1): Likewise.
13962
13963 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
13964
13965         * locale/loadlocale.c (_nl_intern_locale_data): Use
13966         LOCFILE_ALIGNED_P.
13967         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
13968         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
13969         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
13970         obstack data is appropriately aligned.
13971         (obstack_int32_grow_fast): Likewise.
13972         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
13973         * locale/programs/locfile.c (add_locale_uint32): Likewise.
13974         (add_locale_uint32_array): Likewise.
13975
13976 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13977
13978         * benchtests/Makefile: Remove ARGLIST and RET variables.
13979         ($(objpfx)bench-%.c): Pass only function name to the script.
13980         * benchtests/README: Update documentation.
13981         * benchtests/acos-inputs: Add new directives.
13982         * benchtests/acosh-inputs: Likewise.
13983         * benchtests/asin-inputs: Likewise.
13984         * benchtests/asinh-inputs: Likewise.
13985         * benchtests/atan-inputs: Likewise.
13986         * benchtests/atanh-inputs: Likewise.
13987         * benchtests/cos-inputs: Likewise.
13988         * benchtests/cosh-inputs: Likewise.
13989         * benchtests/exp-inputs: Likewise.
13990         * benchtests/log-inputs: Likewise.
13991         * benchtests/pow-inputs: Likewise.
13992         * benchtests/rint-inputs: Likewise.
13993         * benchtests/sin-inputs: Likewise.
13994         * benchtests/sinh-inputs: Likewise.
13995         * benchtests/tan-inputs: Likewise.
13996         * benchtests/tanh-inputs: Likewise.
13997         * scripts/bench.pl: Add support for new directives.
13998
13999 2013-10-07  Alan Modra  <amodra@gmail.com>
14000
14001         * README: Fix careless merge.
14002
14003 2013-10-05  Alan Modra  <amodra@gmail.com>
14004
14005         * NEWS: Mention powerpc64le support and bugs fixed.
14006         * README: Both big-endian and little-endian powerpc64 supported.
14007
14008 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14009
14010         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
14011         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
14012         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
14013         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
14014
14015 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
14016
14017         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
14018         match prototype.
14019
14020 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
14021
14022         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
14023         Move -mhard-float appending from
14024         ports/sysdeps/powerpc/powerpc32/Makefile.
14025         [$(with-fp) = yes] (ASFLAGS): Likewise.
14026         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
14027         * sysdeps/powerpc/nofpu: Move directory from
14028         ports/sysdeps/powerpc/nofpu.
14029         * sysdeps/powerpc/soft-fp: Move directory from
14030         ports/sysdeps/powerpc/soft-fp.
14031         * sysdeps/powerpc/powerpc32/405: Move directory from
14032         ports/sysdeps/powerpc/powerpc32/405.
14033         * sysdeps/powerpc/powerpc32/440: Move directory from
14034         ports/sysdeps/powerpc/powerpc32/440.
14035         * sysdeps/powerpc/powerpc32/464: Move directory from
14036         ports/sysdeps/powerpc/powerpc32/464.
14037         * sysdeps/powerpc/powerpc32/476: Move directory from
14038         ports/sysdeps/powerpc/powerpc32/476.
14039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
14040         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
14041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
14042         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
14043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
14044         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
14045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
14046         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
14047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
14048         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
14049         * README: Update for powerpc-*-linux-gnu software floating point
14050         support in libc.
14051
14052         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
14053         case to powerpc/powerpc32*.
14054         * sysdeps/unix/sysv/linux/configure: Regenerated.
14055
14056         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
14057         (_FPU_MASK_OM): Define as 0x04.
14058         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
14059         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
14060         0x00c10080.
14061         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
14062         0x0000003c.
14063         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
14064
14065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
14066         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
14067         getcontext_e500.
14068         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
14069         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
14070         setcontext_e500.
14071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
14072         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
14073         and setcontext_e500.
14074
14075 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
14076
14077         * locale/iso-3166.def: Update iso-1366.def and related occurrences
14078
14079 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14080
14081         * manual/threads.texi (Default Thread Attributes): Fix typo.
14082
14083 2013-10-04  Will Newton  <will.newton@linaro.org>
14084
14085         * malloc/Makefile: Add tst-memalign.
14086         * malloc/tst-memalign.c: New file.
14087
14088         * malloc/tst-posix_memalign.c: Add comments.
14089         (do_test): Add comments and call free on all potentially
14090         allocated pointers. Add space after cast.
14091
14092         * malloc/tst-pvalloc.c: Add comments.
14093         (do_test): Add comments and call free on all potentially
14094         allocated pointers. Remove duplicate check for NULL pointer.
14095         Add space after cast.
14096
14097         * malloc/tst-valloc.c: Add comments.
14098         (do_test): Add comments and call free on all potentially
14099         allocated pointers. Remove duplicate check for NULL pointer.
14100         Add space after cast.
14101
14102 2013-10-04  Alan Modra  <amodra@gmail.com>
14103
14104         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14105         Use stdint types in rather than __attribute__((mode())).
14106         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
14107
14108 2013-10-04  Alan Modra  <amodra@gmail.com>
14109
14110         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14111         Correct handling of unaligned relocs for little-endian.
14112         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
14113
14114 2013-10-04  Alan Modra  <amodra@gmail.com>
14115
14116         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
14117         * configure: Regenerate.
14118         * nptl/shlib-versions: Powerpc*le starts at 2.18.
14119         * shlib-versions: Likewise.
14120
14121 2013-10-04  Alan Modra  <amodra@gmail.com>
14122
14123         * string/tester.c (test_memrchr): Increment reported test cycle.
14124
14125 2013-10-04  Alan Modra  <amodra@gmail.com>
14126
14127         * string/test-memcpy.c (do_one_test): When reporting errors, print
14128         string address and don't overrun end of string.
14129
14130 2013-10-04  Alan Modra  <amodra@gmail.com>
14131
14132         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
14133         insrdi.  Make better use of reg selection to speed exit slightly.
14134         Schedule entry path a little better.  Remove useless "are we done"
14135         checks on entry to main loop.  Handle wrapping around zero address.
14136         Correct main loop count.  Handle single left-over word from main
14137         loop inline rather than by using loop_small.  Remove extra word
14138         case in loop_small caused by wrong loop count.  Add little-endian
14139         support.
14140         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14141         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
14142         cache hint.
14143         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14144         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
14145         support.  Avoid rlwimi.
14146         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
14147
14148 2013-10-04  Alan Modra  <amodra@gmail.com>
14149
14150         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
14151         insrdi.  Formatting.
14152         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
14153         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14154         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
14155         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
14156         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14157         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
14158
14159 2013-10-04  Alan Modra  <amodra@gmail.com>
14160
14161         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
14162         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14163         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
14164         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
14165         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14166         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14167         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14168         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14169         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
14170         use of regs.  Use power7 mtocrf.  Tidy function tails.
14171
14172 2013-10-04  Alan Modra  <amodra@gmail.com>
14173
14174         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
14175         Formatting.  Consistently use rXXX register defines or rN defines.
14176         Use early exit labels that avoid restoring unused non-volatile regs.
14177         Make cr field use more consistent with rWORDn compares.  Rename
14178         regs used as shift registers for unaligned loop, using rN defines
14179         for short lifetime/multiple use regs.
14180         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14181         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
14182         addi 1,1,64 to pop stack frame.  Simplify return value code.
14183         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14184
14185 2013-10-04  Alan Modra  <amodra@gmail.com>
14186
14187         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
14188         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
14189         rather than rlwimi.
14190         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
14191         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
14192         little-endian support.  Correct typos.
14193         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
14194         rather than rlwimi.
14195         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
14196         in loop and entry code to keep "and." results.
14197         (strchr): Add little-endian support.  Comment.  Move cntlzd
14198         earlier in tail.
14199         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
14200
14201 2013-10-04  Alan Modra  <amodra@gmail.com>
14202
14203         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
14204         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
14205         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14206         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
14207
14208 2013-10-04  Alan Modra  <amodra@gmail.com>
14209
14210         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
14211         (rTMP): Define as r11.
14212         (strcmp): Add little-endian support.  Optimise tail.
14213         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
14214         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14215         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14216         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14217         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14218         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14219         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14220
14221 2013-10-04  Alan Modra  <amodra@gmail.com>
14222
14223         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
14224         little-endian support.  Remove unnecessary "are we done" tests.
14225         Handle "s" wrapping around zero and extremely large "size".
14226         Correct main loop count.  Handle single left-over word from main
14227         loop inline rather than by using small_loop.  Correct comments.
14228         Delete "zero" tail, use "end_max" instead.
14229         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
14230
14231 2013-10-04  Alan Modra  <amodra@gmail.com>
14232
14233         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
14234         support.  Don't branch over align.
14235         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
14236         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
14237         support.  Rearrange tmp reg use to suit.  Comment.
14238         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
14239
14240 2013-10-04  Alan Modra  <amodra@gmail.com>
14241
14242         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
14243
14244 2013-10-04  Alan Modra  <amodra@gmail.com>
14245
14246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
14247         conditional form of branch and link when obtaining pc.
14248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
14249
14250 2013-10-04  Alan Modra  <amodra@gmail.com>
14251
14252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
14253         HIWORD/LOWORD.
14254         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
14255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
14256
14257 2013-10-04  Alan Modra  <amodra@gmail.com>
14258
14259         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
14260         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
14261         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
14262         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
14263         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
14264         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14265         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
14266         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14267         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
14268         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
14269
14270 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14271             Alistair Popple <alistair@ozlabs.au.ibm.com>
14272             Alan Modra <amodra@gmail.com>
14273
14274         [BZ #15723]
14275         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
14276         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
14277         _dl_hwcap access for little-endian.
14278         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
14279         destroy vmx regs when saving unaligned.
14280         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
14281         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
14282         destroy vmx regs when saving unaligned.
14283
14284 2013-10-04  Alan Modra  <amodra@gmail.com>
14285
14286         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
14287         Don't use a union to pack hi/low value.
14288
14289 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14290
14291         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
14292         for little-endian.
14293         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
14294         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
14295         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
14296         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
14297         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
14298
14299 2013-10-04  Alan Modra  <amodra@gmail.com>
14300
14301         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
14302         constants to usual value for .cst8 section, and remove redundant
14303         high address load.
14304         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
14305         constant for 0x1p52.  Load little-endian words of double from
14306         correct stack offsets.
14307
14308 2013-10-04  Alan Modra  <amodra@gmail.com>
14309
14310         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
14311         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
14312         words of double from correct stack offsets.
14313         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
14314         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
14315         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
14316         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
14317         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
14318         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
14319         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
14320         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
14321         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
14322         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
14323         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
14324         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
14325         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14326         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14327         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14328         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
14329         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
14330
14331 2013-10-04  Alan Modra  <amodra@gmail.com>
14332
14333         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
14334         64-bit int/double union.
14335         (_FPU_SETCW): Likewise.
14336         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
14337         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
14338
14339 2013-10-04  Alan Modra  <amodra@gmail.com>
14340
14341         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
14342         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
14343
14344 2013-10-04  Alan Modra  <amodra@gmail.com>
14345
14346         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
14347         use vector int constants.
14348         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
14349
14350 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14351
14352         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
14353         array with long long.
14354         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
14355         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
14356         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
14357         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
14358         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
14359         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
14360         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
14361         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
14362         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
14363         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
14364         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
14365         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
14366         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
14367
14368 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14369
14370         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
14371         (__signbit): Likewise.  Correct for little-endian.
14372         (__signbitl): Call __signbit.
14373         (lrint): Correct for little-endian.
14374         (lrintf): Call lrint.
14375
14376 2013-10-04  Alan Modra  <amodra@gmail.com>
14377
14378         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
14379         union 32-bit int array member with 64-bit int array.
14380         (t515, tm256): Double rather than long double.
14381         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
14382
14383 2013-10-04  Alan Modra  <amodra@gmail.com>
14384
14385         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
14386         Delete.
14387         (IEEE854_LONG_DOUBLE_BIAS): Delete.
14388         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
14389         version of math_ldbl.h.
14390
14391 2013-10-04  Alan Modra  <amodra@gmail.com>
14392
14393         [BZ #15734], [BZ #15735]
14394         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
14395         all uses of ieee875 long double macros and unions.  Simplify test
14396         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
14397         ldbl_extract_mantissa value for ix,iy exponents.  Properly
14398         normalize after ldbl_extract_mantissa, and don't add hidden bit
14399         already handled.  Don't treat low word of ieee854 mantissa like
14400         low word of IBM long double and mask off bit when testing for
14401         zero.
14402         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
14403         all uses of ieee875 long double macros and unions.  Simplify tests
14404         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
14405         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
14406         two1022, instead use their values.  Recognise that tests for large
14407         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
14408         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
14409         Rewrite all uses of ieee875 long double macros and unions.  Simplify
14410         test for 0.0L and nan.  Correct negation.
14411         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
14412         ieee875 long double macros and unions.  Correct output for large
14413         magnitude x.  Correct absolute value calculation.
14414         (__erfcl): Likewise.
14415         * math/libm-test.inc: Add tests for errors discovered in IBM long
14416         double versions of fmodl, remainderl, erfl and erfcl.
14417
14418 2013-10-04  Alan Modra  <amodra@gmail.com>
14419
14420         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
14421         all uses of ieee854 long double macros and unions.  Simplify tests
14422         for long doubles that are fully specified by the high double.
14423         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
14424         Likewise.
14425         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
14426         Remove dead code too.
14427         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14428         (__ieee754_ynl): Likewise.
14429         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
14430         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
14431         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14432         Remove dead code too.
14433         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
14434         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
14435         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
14436         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
14437         Simplify.
14438         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
14439         Simplify.
14440         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
14441         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
14442         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
14443         Comment on variable precision.
14444         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
14445         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14446         Likewise.
14447         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
14448         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
14449         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
14450         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
14451         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
14452
14453 2013-10-04  Alan Modra  <amodra@gmail.com>
14454
14455         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
14456         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
14457         all uses of ieee854 long double macros and unions.
14458         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14459         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14460         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
14461         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
14462         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
14463         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
14464         Likewise.
14465         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
14466         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
14467         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
14468         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
14469         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
14470         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
14471         Simplify sign and nan test too.
14472         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
14473         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
14474         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
14475         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
14476         Likewise.
14477         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
14478         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
14479         Likewise.
14480         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
14481         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
14482         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
14483         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
14484         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
14485         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
14486
14487 2013-10-04  Alan Modra  <amodra@gmail.com>
14488
14489         * stdio-common/printf_size.c (__printf_size): Don't use
14490         union ieee854_long_double in fpnum union.
14491         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
14492         signbit macro to retrieve sign from long double.
14493         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
14494         retrieve sign from long double.
14495         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
14496         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
14497         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
14498         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
14499         * math/test-misc.c (main): Don't use union ieee854_long_double.
14500
14501 2013-10-04  Alan Modra  <amodra@gmail.com>
14502
14503         [BZ #15680]
14504         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
14505         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
14506         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
14507         calculation.  Remove unnecessary test for denormal exponent.
14508         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
14509         Correct handling of denormals.  Avoid undefined shift behaviour.
14510         Correct normalisation of low mantissa when low double is denormal.
14511         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
14512         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
14513         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
14514         Correct normalisation of low mantissa.  Test for overflow of high
14515         mantissa and normalise.
14516         (ldbl_nearbyint): Use more readable constant for two52.
14517         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
14518         (__mpn_construct_long_double): Fix test for overflow of high
14519         mantissa and correct normalisation.  Avoid undefined shift.
14520
14521 2013-10-04  Alan Modra  <amodra@gmail.com>
14522
14523         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14524         (union ibm_extended_long_double): Define as an array of ieee754_double.
14525         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
14526         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
14527         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
14528         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
14529         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14530         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
14531         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
14532         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
14533         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
14534         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
14535         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
14536
14537 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
14538
14539         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
14540         page size instead of calling getpagesize.
14541
14542         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
14543         (LOCFILE_ALIGN_MASK): Likewise.
14544         (LOCFILE_ALIGN_UP): Likewise.
14545         (LOCFILE_ALIGNED_P): Likewise.
14546         * locale/programs/ld-collate.c (collate_output): Use the new
14547         macros instead of __alignof__ (int32_t).
14548         * locale/weight.h (findidx): Likewise.
14549
14550 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
14551
14552         [BZ #431]
14553         * manual/string.texi: Fix strncat and wcsncat.
14554
14555 2013-10-03  Brooks Moses  <bmoses@google.com>
14556
14557         [BZ #15915]
14558         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
14559         * Makerules: ...here, and adjust associated comments.
14560
14561 2013-10-02  Will Newton  <will.newton@linaro.org>
14562
14563         * malloc/Makefile: Add tst-pvalloc.
14564         * malloc/tst-pvalloc.c: New file.
14565
14566 2013-10-02  Will Newton  <will.newton@linaro.org>
14567
14568         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
14569         improve test coverage.
14570
14571 2013-10-02  Will Newton  <will.newton@linaro.org>
14572
14573         * malloc/Makefile: Add tst-posix_memalign.
14574         * malloc/tst-posix_memalign.c: New file.
14575
14576 2013-10-01  Eric Blake  <eblake@redhat.com>
14577
14578         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
14579         Use __THROWNL rather than __THROW on static functions.
14580
14581 2013-09-30  Petr Machata  <pmachata@redhat.com>
14582
14583         * elf/elf.h (R_AARCH64_ABS16): New macro.
14584         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
14585         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
14586         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
14587         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
14588         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
14589         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
14590         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
14591         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
14592         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
14593         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
14594         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
14595         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
14596         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
14597         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
14598         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
14599         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
14600         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
14601         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
14602         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
14603         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
14604         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
14605         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
14606         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
14607         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
14608         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
14609         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
14610         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
14611         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
14612         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
14613         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
14614         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
14615         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
14616         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
14617         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
14618         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
14619         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
14620         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
14621         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
14622         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
14623         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
14624         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
14625         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
14626         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
14627         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
14628         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
14629         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
14630         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
14631         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
14632         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
14633         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
14634         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
14635         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
14636         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
14637         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
14638         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
14639         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
14640         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
14641         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
14642         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
14643         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
14644         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
14645         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
14646         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
14647         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
14648         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
14649         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
14650         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
14651         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
14652         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
14653         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
14654         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
14655         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
14656         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
14657         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
14658         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
14659         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
14660         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
14661         (R_AARCH64_TLSDESC_LDR): Likewise.
14662         (R_AARCH64_TLSDESC_ADD): Likewise.
14663         (R_AARCH64_TLSDESC_CALL): Likewise.
14664
14665 2013-09-30  Andreas Schwab  <schwab@suse.de>
14666
14667         [BZ #15048]
14668         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
14669         the nss database lookup.
14670         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14671         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14672
14673 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
14674
14675         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
14676
14677 2013-09-28  P. J. McDermott  <pj@pehjota.net>
14678
14679         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
14680         ${Bash-specific parameter/pattern/string} parameter expansion.
14681         * sysdeps/unix/make-syscalls.sh: Likewise.
14682
14683 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14684
14685         * sysdeps/sh/stackguard-macros.h: New file.
14686
14687 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
14688
14689         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
14690         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
14691         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
14692         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
14693         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14694         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
14695
14696 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14697
14698         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
14699         Fix thread ID register.
14700
14701 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
14702
14703         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
14704         [POSIX || UNIX98]: Require rather than permitting all symbols from
14705         <time.h>.
14706         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
14707         element of struct sched_param.
14708         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
14709         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
14710         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
14711         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
14712         constant.
14713
14714 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
14715
14716         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
14717         argument calculation.
14718
14719 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14720
14721         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
14722         Expect macro.
14723         [POSIX] (pthread_attr_t): Do not require type.
14724         [POSIX] (pthread_cond_t): Likewise.
14725         [POSIX] (pthread_condattr_t): Likewise.
14726         [POSIX] (pthread_key_t): Likewise.
14727         [POSIX] (pthread_mutex_t): Likewise.
14728         [POSIX] (pthread_mutexattr_t): Likewise.
14729         [POSIX] (pthread_once_t): Likewise.
14730         [POSIX] (pthread_t): Likewise.
14731         [POSIX-based standards] (pthread_atfork): Expect function.
14732
14733 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
14734             Richard Sandiford  <richard@codesourcery.com>
14735
14736         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
14737         (swap_endianness_p): New extern variable.
14738         (set_big_endian): New inline function.
14739         (maybe_swap_uint32): Likewise.
14740         (maybe_swap_uint32_array): Likewise.
14741         (maybe_swap_uint32_obstack): Likewise.
14742         * locale/programs/locfile.c: Include <stdbool.h>.
14743         (swap_endianness_p): New variable.
14744         (add_locale_uint32): Call maybe_swap_uint32.
14745         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
14746         (write_locale_data): Call maybe_swap_uint32_array.
14747         * locale/programs/ld-collate.c (obstack_int32_grow): Call
14748         maybe_swap_uint32.
14749         (obstack_int32_grow_fast): Likewise.
14750         (output_weightwc): Call maybe_swap_uint32_obstack.
14751         (collate_output): Likewise.
14752         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
14753         (OPT_LITTLE_ENDIAN): Likewise.
14754         (options): Add --little-endian and --big-endian options.
14755         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
14756         * locale/programs/locarchive.c: Include "locfile.h".
14757         (GET): New macro.
14758         (SET): Likewise.
14759         (INC): Likewise.
14760         (create_archive): Use the new macros to access fields of
14761         structures directly mapped from or written to locale archives.
14762         (oldlocrecentcmp): Likewise.
14763         (enlarge_archive): Likewise.
14764         (insert_name): Likewise.
14765         (add_alias): Likewise.
14766         (add_locale): Likewise.
14767         (delete_locales_from_archive): Likewise.
14768         (show_archive_content): Likewise.
14769         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
14770         locale data.
14771
14772 2013-09-24  Roland McGrath  <roland@hack.frob.com>
14773
14774         * manual/freemanuals.texi: Updated from (newly) canonical copy at
14775         http://www.gnu.org/doc/freemanuals.texi.
14776         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
14777
14778 2013-09-24  Will Newton  <will.newton@linaro.org>
14779
14780         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
14781         macro.
14782
14783 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
14784
14785         * locale/hashval.h (compute_hashval): Interpret bytes of key as
14786         unsigned char.
14787
14788 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
14789
14790         * manual/threads.texi (POSIX Threads): Fix a typo.
14791
14792 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14793
14794         [BZ #14547]
14795         * string/tst-strcoll-overflow.c: New test case.
14796         * string/Makefile (xtests): Add tst-strcoll-overflow.
14797         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
14798         cache if string sizes may cause integer overflow.
14799
14800         [BZ #14547]
14801         * string/strcoll_l.c (coll_seq): New members rule, idx,
14802         save_idx and back_us.
14803         (get_next_seq_nocache): New function.
14804         (do_compare_nocache): New function.
14805         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
14806         when malloc fails.
14807
14808 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
14809
14810         [BZ #15754]
14811         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
14812         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
14813         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
14814
14815         [BZ #15754]
14816         * elf/Makefile (tests): Add tst-ptrguard1.
14817         (tests-static): Add tst-ptrguard1-static.
14818         (tst-ptrguard1-ARGS): Define.
14819         (tst-ptrguard1-static-ARGS): Define.
14820         * elf/tst-ptrguard1.c: New file.
14821         * elf/tst-ptrguard1-static.c: New file.
14822         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
14823         * sysdeps/i386/stackguard-macros.h: Likewise.
14824         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
14825         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
14826         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
14827         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
14828         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
14829         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
14830
14831 2013-09-23  Hector Marco  <hecmargi@upv.es>
14832             Ismael Ripoll  <iripoll@disca.upv.es>
14833             Carlos O'Donell  <carlos@redhat.com>
14834
14835         [BZ #15754]
14836         * sysdeps/generic/stackguard-macros.h: Define
14837         __pointer_chk_guard_local and POINTER_CHK_GUARD.
14838         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
14839         Define __pointer_chk_guard_local.
14840         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
14841         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
14842
14843 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
14844
14845         [BZ #15859]
14846         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
14847
14848 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
14849
14850         * include/string.h (__ffs): Declare as hidden.
14851         * string/ffs.c (__ffs): Define as hidden.
14852         * sysdeps/i386/ffs.c (__ffs): Likewise.
14853         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
14854         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
14855         * sysdeps/s390/ffs.c (__ffs): Likewise.
14856         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
14857
14858 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
14859
14860         * NEWS: Mention malloc probes.
14861
14862         * malloc/arena.c (new_heap): New memory_heap_new probe.
14863         (grow_heap): New memory_heap_more probe.
14864         (shrink_heap): New memory_heap_less probe.
14865         (heap_trim): New memory_heap_free probe.
14866         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
14867         (systrim): New memory_sbrk_less probe.
14868         * manual/probes.texi: Document them.
14869
14870         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
14871         * manual/probes.texi: Document it.
14872
14873         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
14874         (__libc_realloc): Add memory_realloc_retry probe.
14875         (__libc_memalign): Add memory_memalign_retry probe.
14876         (__libc_valloc): Add memory_valloc_retry probe.
14877         (__libc_pvalloc): Add memory_pvalloc_retry probe.
14878         (__libc_calloc): Add memory_calloc_retry probe.
14879         * manual/probes.texi: Document them.
14880
14881         * malloc/arena.c (get_free_list): Add probe
14882         memory_arena_reuse_free_list.
14883         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
14884         and memory_arena_reuse.
14885         (arena_get2) [!PER_THREAD]: Likewise.
14886         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
14887         memory_arena_reuse_realloc.
14888         * manual/probes.texi: Document them.
14889
14890         * malloc/malloc.c (__libc_free): Add
14891         memory_mallopt_free_dyn_thresholds probe.
14892         (__libc_mallopt): Add multiple memory_mallopt probes.
14893         * manual/probes.texi: Document them.
14894
14895         * malloc/malloc.c: Include stap-probe.h.
14896         (__libc_mallopt): Add memory_mallopt probe.
14897         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
14898         * manual/probes.texi: New.
14899         * manual/Makefile (chapters): Add probes.
14900         * manual/threads.texi: Set next node.
14901
14902 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
14903
14904         [BZ #15963, #13985]
14905         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
14906         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
14907         Add `Chinese' to `nan' entry name.
14908
14909 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14910
14911         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
14912         (POLYNOMIAL): Likewise.
14913         (TAYLOR_SINCOS): Likewise.
14914         (TAYLOR_SLOW): Likewise.
14915         (__sin): Use TAYLOR_SINCOS.
14916         (__cos): Likewise.
14917         (slow): Use TAYLOR_SLOW.
14918         (sloww): Likewise.
14919         (bsloww): Likewise.
14920         (csloww): Likewise.
14921
14922 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14923
14924         * stdlib/strtod_l.c: Fix buffer overrun.
14925
14926 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
14927
14928         * benchtests/Makefile (bench): Add sincos.
14929         * benchtests/bench-sincos.c: New file.
14930
14931         * math/libm-test.inc (cos_test_data): New test inputs.
14932         (sin_test_data): Likewise.
14933
14934         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
14935         macro.
14936         (__sin): Use it.
14937         (__cos): Likewise.
14938         (slow1): Likewise.
14939         (slow2): Likewise.
14940         (sloww1): Likewise.
14941         (sloww2): Likewise.
14942         (bsloww1): Likewise.
14943         (bsloww2): Likewise.
14944         (cslow2): Likewise.
14945         (csloww1): Likewise.
14946         (csloww2): Likewise.
14947
14948         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
14949         function.
14950         (__sin): Use it.
14951         (__cos): Likewise.
14952
14953         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
14954         gotos.
14955         (__cos): Likewise.
14956
14957 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
14958
14959         * config.h.in (HAVE_MIPS_NAN2008): New macro.
14960         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
14961         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
14962         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
14963         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
14964         * elf/cache.c (print_entry): Handle the new cache flags.
14965
14966 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14967             Aldy Hernandez  <aldyh@redhat.com>
14968
14969         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
14970         Change condition to [_SOFT_FLOAT].
14971         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
14972         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
14973         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
14974         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
14975         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
14976         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
14977         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
14978         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
14979         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
14980         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
14981         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
14982         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
14983         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
14984         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
14985         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
14986         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
14987         declaration.
14988
14989 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
14990
14991         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
14992         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14993         (__longjmp): Use LOAD_GP to load saved GPRs.
14994         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
14995         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
14996         (__sigsetjmp): Use SAVE_GP to save GPRs.
14997
14998         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
14999         Do not append -msoft-float.
15000         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
15001
15002 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
15003
15004         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
15005
15006 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
15007
15008         [BZ #15966]
15009         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
15010         (_FPU_GETCW): Use initial "__" on variable and field names but not
15011         on macro parameter name.
15012         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
15013         parentheses around reference to macro parameter.
15014
15015 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
15016
15017         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
15018         prototype.
15019         (ctype_startup): Use uint32_t in cast and sizeof for
15020         ctype->charnames.
15021
15022 2013-09-11  Jia Liu  <proljc@gmail.com>
15023
15024         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
15025         __daddr_t_defined.
15026         [__FreeBSD__]: Likewise.
15027
15028 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
15029
15030         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15031         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
15032         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
15033         (strchr): Remove __strchr_sse42 ifunc selection.
15034         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
15035         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
15036
15037 2013-09-11  Will Newton  <will.newton@linaro.org>
15038
15039         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
15040         parameter to RES. Remove hardcoded 1000 value.
15041         * benchtests/bench-skeleton.c (main): Pass RES parameter
15042         to TIMING_INIT and multiply result by 1000.
15043
15044 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15045
15046         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15047
15048 2013-09-11  Andreas Schwab  <schwab@suse.de>
15049
15050         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
15051         if not defined.
15052         (O_TMPFILE) [__USE_GNU]: Define.
15053         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
15054         Define.
15055
15056 2013-09-11  Will Newton  <will.newton@linaro.org>
15057
15058         [BZ #15857]
15059         * malloc/malloc.c (__libc_memalign): Check the value of bytes
15060         does not overflow.
15061
15062 2013-09-11  Will Newton  <will.newton@linaro.org>
15063
15064         [BZ #15856]
15065         * malloc/malloc.c (__libc_valloc): Check the value of bytes
15066         does not overflow.
15067
15068 2013-09-11  Will Newton  <will.newton@linaro.org>
15069
15070         [BZ #15855]
15071         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
15072         does not overflow.
15073
15074 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
15075
15076         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
15077         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15078         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15079         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15080         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15081
15082 2013-09-10  Allan McRae  <allan@archlinux.org>
15083
15084         [BZ #15748]
15085         * manual/arith.texi (Parsing of Floats): Clarify
15086         cross-reference.
15087
15088         [BZ #15849]
15089         * manual/install.texi (Running make install): Mention
15090         --enable-pt-chown.
15091         * INSTALL: Regenerated.
15092
15093 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
15094
15095         * csu/init-first.c (_init): Remove the !SHARED condition around
15096         FPU control word initialization.
15097         * elf/dl-support.c (_dl_fpu_control): New variable.
15098         (_dl_aux_init) <AT_FPUCW>: Initialize it.
15099         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
15100         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
15101         * math/test-fpucw-static.c: New file.
15102         * math/test-fpucw-ieee.c: New file.
15103         * math/test-fpucw-ieee-static.c: New file.
15104         * math/Makefile (tests): Add `test-fpucw-ieee' and
15105         `$(tests-static)'.
15106         (tests-static): New variable.
15107         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
15108         dependency to...
15109         [($(build-shared),yes)]
15110         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
15111         ... this.
15112         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
15113         New dependency.
15114
15115 2013-09-09  Allan McRae  <allan@archlinux.org>
15116
15117         [BZ #15939]
15118         * manual/string.texi (Collation Functions): Fix typo in
15119         strcoll example.
15120         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
15121
15122         [BZ #15893]
15123         * stdlib/isomac.c (get_null_defines): Fix memory leak.
15124
15125         [BZ #15892]
15126         * libio/memstream.c (open_memstream): Fix memory leak.
15127         * libio/wmemstream.c (open_wmemstream): Likewise.
15128
15129         [BZ #15895]
15130         * nscd/netgroupcache.c: Fix nesting of ifdefs.
15131
15132 2013-09-09  Will Newton  <will.newton@linaro.org>
15133
15134         * malloc/Makefile: Add tst-realloc to tests.
15135         * malloc/tst-realloc.c: New file.
15136
15137 2013-09-09  Allan McRae  <allan@archlinux.org>
15138
15139         [BZ #15844]
15140         * COPYING: Update from GNU website to fix FSF address.
15141         * COPYING.LIB: Likewise.
15142
15143 2013-09-06  David S. Miller  <davem@davemloft.net>
15144
15145         * po/zh_TW.po: Update Chinese (traditional) translation from
15146         translation project.
15147
15148 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
15149             Joseph Myers  <joseph@codesourcery.com>
15150
15151         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
15152         "localeinfo.h".
15153         (obstack_chunk_alloc): New macro.
15154         (obstack_chunk_free): Likewise.
15155         (record_offset): New function.
15156         (init_locale_data): Likewise.
15157         (align_locale_data): Likewise.
15158         (add_locale_empty): Likewise.
15159         (add_locale_raw_data): Likewise.
15160         (add_locale_raw_obstack): Likewise.
15161         (add_locale_string): Likewise.
15162         (add_locale_wstring): Likewise.
15163         (add_locale_uint32): Likewise.
15164         (add_locale_uint32_array): Likewise.
15165         (add_locale_char): Likewise.
15166         (start_locale_structure): Likewise.
15167         (end_locale_structure): Likewise.
15168         (start_locale_prelude): Likewise.
15169         (end_locale_prelude): Likewise.
15170         (write_locale_data): Take locale_file structure rather than an
15171         iovec.
15172         * locale/programs/locfile.h: Include "obstack.h".
15173         (struct locale_file): Change to store locale file contents instead
15174         of header.
15175         (init_locale_data): New prototype.
15176         (align_locale_data): Likewise.
15177         (add_locale_empty): Likewise.
15178         (add_locale_raw_data): Likewise.
15179         (add_locale_raw_obstack): Likewise.
15180         (add_locale_string): Likewise.
15181         (add_locale_wstring): Likewise.
15182         (add_locale_uint32): Likewise.
15183         (add_locale_uint32_array): Likewise.
15184         (add_locale_char): Likewise.
15185         (start_locale_structure): Likewise.
15186         (end_locale_structure): Likewise.
15187         (start_locale_prelude): Likewise.
15188         (end_locale_prelude): Likewise.
15189         (write_locale_data): Update prototype.
15190         * locale/programs/3level.h (struct TABLE): Remove result field.
15191         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
15192         Use new locale_file interface.
15193         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
15194         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
15195         * locale/programs/ld-address.c (address_output): Use new
15196         locale_file interface.
15197         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
15198         NO_ADD_LOCALE.
15199         (collate_finish): Don't call collseq_table_finalize.
15200         (collate_output): Use new locale_file interface.
15201         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
15202         in file.
15203         (NO_FINALIZE): Change to NO_ADD_LOCALE.
15204         (TABLE): Move defines earlier in file.
15205         (ELEMENT): Likewise.
15206         (DEFAULT): Likewise.
15207         (wctrans_table_add): Move macro and inline function earlier in
15208         file.
15209         (struct wctype_table): Move type earlier in file.
15210         (add_locale_wctype_table): New static prototype.
15211         (struct locale_ctype_t): Use logical types instead of struct iovec
15212         pointers for members.
15213         (ctype_output): Use new locale_file interface.
15214         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
15215         new locale_file interface.
15216         (allocate_arrays): Update for use of new locale_file interface.
15217         * locale/programs/ld-identification.c (identification_output): Use
15218         new locale_file interface.
15219         * locale/programs/ld-measurement.c (measurement_output): Likewise.
15220         * locale/programs/ld-messages.c (messages_output): Likewise.
15221         * locale/programs/ld-monetary.c (monetary_output): Likewise.
15222         * locale/programs/ld-name.c (name_output): Likewise.
15223         * locale/programs/ld-numeric.c (numeric_output): Likewise.
15224         * locale/programs/ld-paper.c (paper_output): Likewise.
15225         * locale/programs/ld-telephone.c (telephone_output): Likewise.
15226         * locale/programs/ld-time.c (time_output): Likewise.
15227
15228 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15229
15230         * benchtests/Makefile: Add memrchr benchmark.
15231         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
15232         benchmark as memrchr.
15233         * benchtests/bench-memrchr-ifunc.c: New file.
15234         * benchtests/bench-memrchr.c: New file.
15235
15236 2013-09-06   Will Newton  <will.newton@linaro.org>
15237
15238         * benchtests/Makefile (string-bench): Add memcpy.
15239
15240 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
15241             Cong Wang  <amwang@redhat.com>
15242
15243         [BZ #15850]
15244         * sysdeps/unix/sysv/linux/bits/in.h
15245         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
15246         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
15247         before __USE_KERNEL_IPV6_DEFS uses.
15248         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
15249         IPPROTO_BEETPH.
15250         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
15251         sockaddr_in6, or ipv6_mreq.
15252
15253 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15254
15255         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
15256         memory access for final bytes in some large inputs.
15257         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
15258
15259 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15260
15261         * string/test-memrchr.c: New file.
15262         * string/test-memrchr-ifunc.c: New file.
15263         * string/Makefile: Add new memrchr testcase.
15264
15265 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
15266
15267         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
15268         fanotify_init returns EPERM.
15269
15270 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
15271
15272         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
15273         errors.
15274         (top level): Treat second token from macro or constant entries for
15275         allowed headers as allowed.
15276         * include/complex.h: Condition internal declarations on
15277         [!_ISOMAC].
15278         * include/fenv.h: Condition include of <stdbool.h> and internal
15279         declarations on [!_ISOMAC].
15280
15281 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
15282
15283         [BZ #15923]
15284         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
15285
15286 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
15287
15288         * configure.in (--enable-versioning): Remove configure option.
15289         (libc_cv_asm_symver_directive): Remove configure test.
15290         (libc_cv_ld_version_script_option): Likewise.
15291         (VERSIONING): Remove variable and AC_SUBST.
15292         (DO_VERSIONING): Remove AC_DEFINE.
15293         * configure: Regenerated.
15294         * config.h.in (DO_VERSIONING): Remove macro.
15295         * Makerules [$(versioning) = yes]: Change conditionals to
15296         [$(build-shared) = yes].
15297         * config.make.in (versioning): Remove variable.
15298         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
15299         [$(build-shared) = yes].
15300         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
15301         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
15302         * elf/Makefile [$(versioning) = yes]: Change conditionals to
15303         [$(build-shared) = yes].
15304         * extra-lib.mk [$(versioning) = yes]: Likewise.
15305         * hurd/Makefile [$(versioning) = yes]: Likewise.
15306         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
15307         [SHARED].
15308         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
15309         [SHARED].
15310         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
15311         [SHARED && !NO_HIDDEN].
15312         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
15313         [SHARED].
15314         [SHARED && DO_VERSIONING]: Likewise..
15315         * libio/Makefile [$(versioning) = yes]: Change conditionals to
15316         [$(build-shared) = yes].
15317         * manual/install.texi (--disable-versioning): Remove
15318         documentation.
15319         * INSTALL: Regenerated.
15320         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
15321         to [SHARED].
15322         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
15323         [$(build-shared) = yes].
15324         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
15325         * sysdeps/i386/i686/multiarch/strstr-c.c
15326         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
15327         [SHARED && !NO_HIDDEN].
15328         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
15329         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
15330         * sysdeps/powerpc/powerpc32/dl-machine.c
15331         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
15332         * sysdeps/powerpc/powerpc32/sysdep.h
15333         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
15334         to [SHARED && PIC && !NO_HIDDEN].
15335         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
15336         conditional to [SHARED].
15337
15338 2013-09-04   Will Newton  <will.newton@linaro.org>
15339
15340         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
15341         * benchtests/bench-string.h: Include bench-timing.h instead
15342         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
15343         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
15344         call to HP_TIMING_DIFF_INIT.
15345         * benchtests/bench-memccpy.c: Use bench-timing.h macros
15346         instead of hp-timing.h macros.
15347         * benchtests/bench-memchr.c: Likewise.
15348         * benchtests/bench-memcmp.c: Likewise.
15349         * benchtests/bench-memcpy.c: Likewise.
15350         * benchtests/bench-memmem.c: Likewise.
15351         * benchtests/bench-memmove.c: Likewise.
15352         * benchtests/bench-memset.c: Likewise.
15353         * benchtests/bench-rawmemchr.c: Likewise.
15354         * benchtests/bench-strcasecmp.c: Likewise.
15355         * benchtests/bench-strcasestr.c: Likewise.
15356         * benchtests/bench-strcat.c: Likewise.
15357         * benchtests/bench-strchr.c: Likewise.
15358         * benchtests/bench-strcmp.c: Likewise.
15359         * benchtests/bench-strcpy.c: Likewise.
15360         * benchtests/bench-strcpy_chk.c: Likewise.
15361         * benchtests/bench-strlen.c: Likewise.
15362         * benchtests/bench-strncasecmp.c: Likewise.
15363         * benchtests/bench-strncat.c: Likewise.
15364         * benchtests/bench-strncmp.c: Likewise.
15365         * benchtests/bench-strncpy.c: Likewise.
15366         * benchtests/bench-strnlen.c: Likewise.
15367         * benchtests/bench-strpbrk.c: Likewise.
15368         * benchtests/bench-strrchr.c: Likewise.
15369         * benchtests/bench-strspn.c: Likewise.
15370         * benchtests/bench-strstr.c: Likewise.
15371
15372 2013-09-04  Will Newton  <will.newton@linaro.org>
15373
15374         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
15375
15376 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
15377
15378         [BZ #15427]
15379         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
15380         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
15381         * math/libm-test.inc (lgamma_test_data): Add more tests.
15382         * sysdeps/i386/fpu/libm-test-ulps: Update.
15383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15384
15385 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
15386
15387         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
15388         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
15389         Add ifunc.
15390         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
15391         Add strcmp-sse2-unaligned
15392         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
15393
15394 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
15395
15396         * Versions.def (libc): Add GLIBC_2.19.
15397
15398 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
15399
15400         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
15401         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
15402
15403 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
15404
15405         [BZ #14155]
15406         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
15407         intermediate calculations in recurrence.
15408         (__ieee754_ynf): Likewise.
15409         * math/libm-test.inc (jn_test_data): Do not allow spurious
15410         underflow exception.  Add more tests.
15411         (yn_test_data): Add more tests.
15412         * sysdeps/i386/fpu/libm-test-ulps: Update.
15413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15414
15415 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
15416
15417         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
15418
15419 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
15420
15421         * csu/init-first.c: Fix then/than typos.
15422         * locale/programs/ld-collate.c: Likewise.
15423         * locale/programs/linereader.h: Likewise.
15424         * manual/charset.texi: Likewise.
15425         * manual/filesys.texi: Likewise.
15426         * manual/stdio.texi: Likewise.
15427         * manual/string.texi: Likewise.
15428         * stdlib/fmtmsg.c: Likewise.
15429         * sysdeps/i386/stpncpy.S: Likewise.
15430         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15431         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
15432         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15433         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
15434
15435 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
15436
15437         * elf/dl-open.c: Fix typos.
15438         * iconvdata/gbbig5.c: Likewise.
15439         * iconvdata/iso-2022-jp.c: Likewise.
15440         * iconv/gconv_int.h: Likewise.
15441         * iconv/loop.c: Likewise.
15442         * nis/rpcsvc/nis.h: Likewise.
15443         * resolv/ns_name.c: Likewise.
15444         * stdio-common/vfscanf.c: Likewise.
15445         * streams/stropts.h: Likewise.
15446         * sunrpc/rpc_thread.c: Likewise.
15447         * sysdeps/i386/strpbrk.S: Likewise.
15448         * sysdeps/ieee754/k_standard.c: Likewise.
15449         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15450         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15451         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
15452         * sysdeps/mach/hurd/profil.c: Likewise.
15453         * sysdeps/s390/dl-procinfo.h: Likewise.
15454         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
15455         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
15456         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
15457         * sysdeps/x86_64/dl-trampoline.S: Likewise.
15458         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
15459
15460 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
15461
15462         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
15463         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
15464
15465 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
15466
15467         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
15468         aix specific files.
15469         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
15470         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
15471         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
15472         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
15473         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
15474         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
15475         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
15476         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
15477
15478 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
15479             Roland McGrath  <roland@hack.frob.com>
15480
15481         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
15482         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
15483
15484 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15485
15486         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
15487         __executable_start symbol instead of _start.
15488
15489 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
15490
15491         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
15492         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
15493         Move macros to...
15494         * sysdeps/gnu/ldsodefs.h: ... this new file.
15495
15496         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
15497         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
15498         instead of ELFOSABI_LINUX.
15499
15500         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
15501         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
15502         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
15503         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
15504         Likewise.
15505         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
15506         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
15507         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
15508         Likewise.
15509         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
15510         (ibm_extended_long_double): Add ieee_nan member.
15511         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
15512         (do_test): New function.
15513
15514         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
15515         TEST_TRUNC.
15516         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
15517         functions, renamed from truncdfsf_test, trunctfsf_test,
15518         trunctfdf_test.
15519         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
15520         functions.
15521         (do_test): Run all these.
15522
15523 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
15524
15525         * argp/argp-help.c: Fix typos.
15526         * argp/argp-parse.c: Likewise.
15527         * debug/backtracesyms.c: Likewise.
15528         * elf/elf.h: Likewise.
15529         * malloc/malloc.c: Likewise.
15530         * nis/nis_print.c: Likewise.
15531         * resolv/res_comp.c: Likewise.
15532         * stdlib/stdlib.h: Likewise.
15533         * sunrpc/clnt_tcp.c: Likewise.
15534         * sunrpc/clnt_udp.c: Likewise.
15535         * sunrpc/clnt_unix.c: Likewise.
15536         * sysdeps/unix/bsd/ptsname.c: Likewise.
15537         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
15538         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
15539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
15540         Likewise.
15541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
15542         Likewise.
15543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
15544         Likewise.
15545         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
15546
15547 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15548
15549         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
15550         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
15551
15552 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
15553
15554         [BZ #15897]
15555         * dlfcn/Makefile (tests): Add bug-dl-leaf.
15556         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
15557         ($(objpfx)bug-dl-leaf): New rule.
15558         ($(objpfx)bug-dl-leaf.so): Likewise.
15559         ($(objpfx)bug-dl-leaf.out): Likewise.
15560         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
15561         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
15562         * dlfcn/bug-dl-leaf.c: New test.
15563         * dlfcn/bug-dl-leaf-lib.c: Likewise.
15564         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
15565         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
15566         (dlclose): Likewise.
15567         (dlmopen): Likewise.
15568
15569 2013-08-27  Roland McGrath  <roland@hack.frob.com>
15570
15571         * include/netdb.h [!_ISOMAC]:
15572         Don't include <tls.h>.
15573         (h_errno, __libc_h_errno): Move declaration and macros out of
15574         [_LIBC_REENTRANT].
15575
15576         * include/resolv.h [_RESOLV_H_]:
15577         Don't include <tls.h>.
15578         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
15579         * resolv/res_libc.c: Don't include <tls.h>.
15580         (_res): Use __attribute__ ((nocommon)) in place of
15581         __attribute__ ((section (".bss"))).
15582
15583         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
15584         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
15585
15586         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
15587
15588         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
15589         only under [SIOCGIFCONF && SIOCGIFNETMASK].
15590
15591         * resolv/res_mkquery.c: Include <sys/time.h>.
15592
15593         * inet/ifreq.c: Moved to ...
15594         * sysdeps/unix/ifreq.c: ... here.
15595         * inet/ifreq.c: New file, true stub version.
15596
15597         * socket/sa_len.c: New file.
15598         * socket/Makefile (aux): Add it.
15599         * sysdeps/unix/sysv/linux/Makefile
15600         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
15601         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
15602         and #include <socket/sa_len.c>.
15603         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
15604         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
15605
15606         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
15607         * bits/socket.h: ... here.
15608
15609         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
15610         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
15611         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
15612
15613 2013-08-27  Andreas Schwab  <schwab@suse.de>
15614
15615         [BZ #15736]
15616         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
15617         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
15618         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
15619         * string/test-strcasecmp.c (test_main): Run tests in several
15620         locales.
15621         * string/test-strncasecmp.c (test_main): Likewise.
15622
15623         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
15624         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
15625         to __strcasecmp_nonascii and __strncasecmp_nonascii.
15626         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
15627         (__strncasecmp_ssse3) [PIC]: Likewise.
15628
15629 2013-08-26  Roland McGrath  <roland@hack.frob.com>
15630
15631         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
15632
15633         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
15634         instead of explicitly declaring xdecrypt.
15635         * nis/nss_nis/nis-publickey.c: Likewise.
15636
15637 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15638
15639         [BZ #15890]
15640         * nscd/aicache.c: Include res_hconf.h.
15641         (addhstaiX): Initialize res_hconf.
15642
15643 2013-08-26  Andreas Schwab  <schwab@suse.de>
15644
15645         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
15646         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
15647
15648 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
15649
15650         * nscd/aicache.c (addhstaiX): Fix indentation.
15651
15652 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
15653
15654         * configure.ac: Quote $build_pt_chown test.
15655         * configure: Regenerated.
15656
15657 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
15658
15659         [BZ #15532]
15660         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
15661         * math/s_cexpf.c (__cexpf): Likewise.
15662         * math/s_cexpl.c (__cexpl): Likewise.
15663         * math/libm-test.inc (cexp_test_data): Correct expected return
15664         value for NaN + i0.  Add another test.
15665
15666 2013-08-22  David S. Miller  <davem@davemloft.net>
15667
15668         * po/ca.po: Update Catalan translation from translation project.
15669         * po/uk.po: Add Ukrainian translations from translation project.
15670
15671 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
15672
15673         [BZ #15797]
15674         * math/s_fdim.c (__fdim): Check for infinite arguments if result
15675         is infinite, not alongside NaN test.
15676         * math/s_fdimf.c (__fdimf): Likewise.
15677         * math/s_fdiml.c (__fdiml): Likewise.
15678         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
15679         errno is unchanged.
15680
15681 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
15682
15683         * argp/argp-help.c: Fix typos.
15684         * crypt/speeds.c: Likewise.
15685         * csu/check_fds.c: Likewise.
15686         * elf/dl-load.c: Likewise.
15687         * elf/dl-open.c: Likewise.
15688         * elf/reldep3.c: Likewise.
15689         * elf/reldep.c: Likewise.
15690         * elf/sprof.c: Likewise.
15691         * iconv/iconv_charmap.c: Likewise.
15692         * iconv/skeleton.c: Likewise.
15693         * iconv/strtab.c: Likewise.
15694         * io/lockf64.c: Likewise.
15695         * libio/libioP.h: Likewise.
15696         * resolv/gai_notify.c: Likewise.
15697         * resolv/ns_name.c: Likewise.
15698         * resolv/ns_samedomain.c: Likewise.
15699         * resolv/res_send.c: Likewise.
15700         * stdlib/random.c: Likewise.
15701         * sunrpc/rpc/xdr.h: Likewise.
15702         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
15703         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
15704         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
15705         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
15706         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
15707         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
15708         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
15709         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
15710         * sysdeps/mach/hurd/check_fds.c: Likewise.
15711         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
15712         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
15713         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15714         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
15715         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
15716         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
15717         * sysdeps/pthread/aio_notify.c: Likewise.
15718         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
15719         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
15720         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
15721         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15722         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
15723
15724 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15725
15726         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
15727         version if bit_Slow_SSE4_2 is set.
15728         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15729         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15730
15731 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15732
15733         [BZ #15867]
15734         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
15735         trampoline stack frame information.
15736         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
15737         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
15738         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
15739         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
15740         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
15741         * sysdeps/unix/sysv/linux/powerpc/init-first.c
15742         (_libc_vdso_platform_setup): Initialize the signal trampolines.
15743         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
15744         sa_flags value.
15745         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
15746         interrupting a syscall and set with option SA_SIGINFO.
15747
15748 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15749
15750         [BZ #15531]
15751         * math/s_cproj.c (__cproj): Only return an infinity if one part of
15752         argument is infinite.
15753         * math/s_cprojf.c (__cprojf): Likewise.
15754         * math/s_cprojl.c (__cprojl): Likewise.
15755         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
15756         * math/libm-test.inc (cproj_test_data): Add more tests.
15757
15758         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
15759
15760         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
15761         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15762         size.  Use __ffs to determine corresponding shift.
15763
15764 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
15765             Roland McGrath  <roland@hack.frob.com>
15766
15767         * Makefile (INSTALL): Remove trailing blank lines from output of
15768         makeinfo.
15769
15770 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15771
15772         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
15773         Align 32 bit compat elf_greg to 8 bytes.
15774
15775 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15776
15777         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
15778
15779 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15780
15781         * string/strcoll_l.c (coll_seq): New structure.
15782         (get_next_seq_cached): New function.
15783         (get_next_seq): New function.
15784         (do_compare): New function.
15785         (STRCOLL): Use GNU style definition.  Simplify implementation
15786         by using get_next_seq, get_next_seq_cached and do_compare.
15787
15788 2013-08-16  Florian Weimer  <fweimer@redhat.com>
15789
15790         [BZ #14699]
15791         CVE-2013-4237
15792         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
15793         member.
15794         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
15795         member.
15796         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
15797         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
15798         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
15799         conditional.
15800         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
15801         GETDENTS_64BIT_ALIGNED.
15802         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15803         * manual/filesys.texi (Reading/Closing Directory): Document
15804         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
15805         strongly.
15806         * manual/conf.texi (Limits for Files): Add portability note to
15807         NAME_MAX, PATH_MAX.
15808         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
15809
15810 2013-08-13  Andreas Schwab  <schwab@suse.de>
15811
15812         [BZ #15749]
15813         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
15814         of fabs.
15815         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
15816         LDBL_MAX_EXP >= 16384]: Add tests for it.
15817
15818 2013-08-12  David S. Miller  <davem@davemloft.net>
15819
15820         * version.h (RELEASE): Set to "development".
15821         (VERSION): Set to "2.18.90".
15822         * NEWS: Add 2.19 section.
15823
15824 2013-08-03  David S. Miller  <davem@davemloft.net>
15825
15826         * po/ko.po: Update Korean translation from translation project.
15827
15828 2013-08-01  David S. Miller  <davem@davemloft.net>
15829
15830         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
15831         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
15832         Bilka.
15833
15834 2013-07-30  David S. Miller  <davem@davemloft.net>
15835
15836         * po/fr.po: Update French translation from translation project.
15837
15838 2013-07-28  David S. Miller  <davem@davemloft.net>
15839
15840         * po/cs.po: Update Czech translation from translation project.
15841
15842         * po/sv.po: Update Swedish translation from translation project.
15843
15844 2013-07-27  David S. Miller  <davem@davemloft.net>
15845
15846         * po/eo.po: Update Esperanto translation from translation project.
15847
15848         * po/vi.po: Update Vietnamese translation from translation project.
15849
15850         * po/de.po: Update German translation from translation project.
15851
15852 2013-07-26  David S. Miller  <davem@davemloft.net>
15853
15854         * po/bg.po: Update Bulgarian translation from translation project.
15855
15856         * po/nl.po: Update Dutch translation from translation project.
15857         * po/pl.po: Update Polish translation from translation project.
15858         * po/ru.po: Update Russian translation from translation project.
15859
15860 2013-07-24  David S. Miller  <davem@davemloft.net>
15861
15862         * po/libc.pot: Update.
15863
15864 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15865
15866         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
15867         variable page size.
15868         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
15869         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
15870         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
15871
15872 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15873
15874         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
15875
15876 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
15877             Andreas Schwab  <schwab@suse.de>
15878             Roland McGrath  <roland@hack.frob.com>
15879             Joseph Myers  <joseph@codesourcery.com>
15880             Carlos O'Donell  <carlos@redhat.com>
15881
15882         [BZ #15755]
15883         * config.h.in: Define HAVE_PT_CHOWN.
15884         * config.make.in (build-pt-chown): New variable.
15885         * configure.in (--enable-pt_chown): New configure option.
15886         * configure: Regenerate.
15887         * login/Makefile: Include Makeconfig.  Build pt_chown only if
15888         build-pt-chown is enabled.
15889         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
15890         pt_chown to fix pty ownership.
15891         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
15892         CLOSE_ALL_FDS.
15893         * manual/install.texi (Configuring and compiling): Mention
15894         --enable-pt_chown. Add @findex for grantpt.
15895         * INSTALL: Regenerate.
15896
15897 2013-07-20  David S. Miller  <davem@davemloft.net>
15898
15899         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
15900         difference between 32-bit and 64-bit.
15901
15902 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
15903
15904         [BZ #15711]
15905         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
15906         Avoid system header dependency with -ffreestanding.
15907         ($(objpfx)bits/syscall%d): Likewise.
15908
15909 2013-07-13  David S. Miller  <davem@davemloft.net>
15910
15911         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
15912         underflows from atanl/atan2l due to bug 15319.
15913         (casinh_test_data): Likewise.
15914
15915 2013-07-07  David S. Miller  <davem@davemloft.net>
15916
15917         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
15918
15919 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
15920
15921         * sysdeps/i386/fpu/libm-test-ulps: Update.
15922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15923
15924 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15925
15926         * configure.in (--enable-lock-elision): Fix message text.
15927         * INSTALL: Regenerate.
15928         * configure: Regenerate.
15929
15930 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15931
15932         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15933
15934 2013-07-03  Andreas Jaeger  <aj@suse.de>
15935
15936         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
15937         define.
15938         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
15939         (ptrace_peeksiginfo_args): Add.
15940         (__ptrace_peeksiginfo_flags): Add.
15941         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15942         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15943         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15944
15945 2013-07-03  Allan McRae  <allan@archlinux.org>
15946
15947         * sysdeps/i386/fpu/libm-test-ulps: Update.
15948
15949 2013-07-02  David S. Miller  <davem@davemloft.net>
15950
15951         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15952
15953 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
15954
15955         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15956
15957 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15958
15959         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
15960         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15961
15962 2013-07-02  Andi Kleen <ak@linux.intel.com>
15963
15964         * config.h.in (ENABLE_LOCK_ELISION): Add.
15965         * configure.in (--enable-lock-elision): Add option.
15966         * manual/install.texi: Document --enable lock elision.
15967         * configure: Regenerate
15968         * INSTALL: Regenerate.
15969
15970 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
15971
15972         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
15973         SSE4.2 strcasecmp for libc.a.
15974         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
15975
15976 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
15977
15978         [BZ #13304]
15979         * soft-fp/op-common.h (_FP_FMA): New macro.
15980         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
15981         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
15982         (_FP_MUL_MEAT_1_imm): ... here.
15983         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
15984         (_FP_MUL_MEAT_1_wide): ... here.
15985         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
15986         (_FP_MUL_MEAT_1_hard): ... here.
15987         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
15988         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
15989         (_FP_MUL_MEAT_2_wide): ... here.
15990         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
15991         (_FP_MUL_MEAT_2_wide_3mul): ... here.
15992         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
15993         (_FP_MUL_MEAT_2_gmp): ... here.
15994         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
15995         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
15996         (_FP_MUL_MEAT_4_wide): ... here.
15997         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
15998         (_FP_MUL_MEAT_4_gmp): ... here.
15999         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
16000         (_FP_WFRACBITS_DW_S): Likewise.
16001         (_FP_WFRACXBITS_DW_S): Likewise.
16002         (_FP_HIGHBIT_DW_S): Likewise.
16003         (FP_FMA_S): Likewise.
16004         (_FP_FRAC_HIGH_DW_S): Likewise.
16005         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
16006         (_FP_WFRACBITS_DW_D): Likewise.
16007         (_FP_WFRACXBITS_DW_D): Likewise.
16008         (_FP_HIGHBIT_DW_D): Likewise.
16009         (FP_FMA_D): Likewise.
16010         (_FP_FRAC_HIGH_DW_D): Likewise.
16011         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
16012         (_FP_WFRACBITS_DW_E): Likewise.
16013         (_FP_WFRACXBITS_DW_E): Likewise.
16014         (_FP_HIGHBIT_DW_E): Likewise.
16015         (FP_FMA_E): Likewise.
16016         (_FP_FRAC_HIGH_DW_E): Likewise.
16017         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
16018         (_FP_WFRACBITS_DW_Q): Likewise.
16019         (_FP_WFRACXBITS_DW_Q): Likewise.
16020         (_FP_HIGHBIT_DW_Q): Likewise.
16021         (FP_FMA_Q): Likewise.
16022         (_FP_FRAC_HIGH_DW_Q): Likewise.
16023         * soft-fp/fmasf4.c: New file.
16024         * soft-fp/fmadf4.c: Likewise.
16025         * soft-fp/fmatf4.c: Likewise.
16026
16027 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16028
16029         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
16030         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
16031         Silvermont.
16032         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
16033         macro.
16034         (index_Slow_SSE4_2): Likewise.
16035         (index_Prefer_PMINUB_for_stringop): Likewise.
16036         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
16037         bit_Slow_SSE4_2 is set.
16038         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
16039         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16040
16041 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16042
16043         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
16044         rtld_global._dl_hwcap2.
16045         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
16046         POWER8.
16047         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
16048         POWER8 feature descriptions defined in _dl_hwcap2.
16049         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
16050         string handling for POWER8 feature bits.
16051         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
16052         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
16053         _dl_powerpc_cap_flags.
16054         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
16055         * sysdeps/powerpc/rtld-global-offsets.sym
16056         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
16057         _dl_hwcap2 in the rtld_global_ro structure.
16058
16059 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16060
16061         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
16062         hardware capabilities in support of AT_HWCAP2.
16063         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
16064         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
16065         GLRO(dl_hwcap2).
16066         (_dl_show_auxv): Add support for calling _dl_procinfo to display
16067         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
16068         explicitly the unknown a_type display mechanism is used.
16069         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
16070         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
16071         struct member.
16072         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
16073         to macro prototype for AT_HWCAP2 support.
16074         * sysdeps/i386/dl-procinfo.h: Likewise.
16075         * sysdeps/s390/dl-procinfo.h: Likewise.
16076         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
16077         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
16078         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
16079         return -1 for unknown a_type display fallback.
16080         * sysdeps/sparc/dl-procinfo.h: Likewise.
16081         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
16082         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
16083
16084 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
16085
16086         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
16087         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
16088
16089 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
16090
16091         [BZ #12492]
16092         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
16093         mprotect making __stack_prot writable.
16094
16095 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
16096             Joseph Myers  <joseph@codesourcery.com>
16097
16098         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
16099         as being properly aligned.
16100
16101 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
16102
16103         * dlfcn/modstatic5.c: New file.
16104         * dlfcn/tststatic5.c: New file.
16105         * dlfcn/Makefile (tests): Add tststatic5.
16106         (tests-static): Likewise.
16107         (modules-names): Add modstatic5.
16108         (tststatic5-ENV): New variable.
16109         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
16110
16111         [BZ #15022]
16112         * elf/dl-support.c (_dl_main_map): New variable.
16113         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
16114         (_dl_nns, _dl_load_adds): Set to 1.
16115         (_dl_initial_searchlist): Refer to _dl_main_map.
16116         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
16117         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
16118         call to _dl_get_origin.
16119         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
16120         around call_map.
16121         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
16122         * dlfcn/modstatic3.c: New file.
16123         * dlfcn/tststatic3.c: New file.
16124         * dlfcn/tststatic4.c: New file.
16125         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
16126         (tests-static): Likewise.
16127         (modules-names): Add modstatic3.
16128         (tststatic3-ENV, tststatic4-ENV): New variables.
16129         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
16130         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
16131
16132 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
16133
16134         * configure.in (CC): Require GCC version 4.4 or later.
16135         * configure: Regenerated.
16136         * manual/install.texi (Tools for Compilation): Update GCC version
16137         requirement.
16138         * INSTALL: Regenerated.
16139
16140 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16141
16142         [BZ #15674]
16143         * string/test-memcmp.c (check2): New.
16144         (main): Call check2.
16145
16146         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
16147
16148 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
16149
16150         [BZ #15022]
16151         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
16152         over to...
16153         (dl_open_worker) [!SHARED]: ... here.
16154
16155 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16156
16157         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
16158
16159 2013-06-25  Richard Henderson  <rth@redhat.com>
16160
16161         * locale/programs/locarchive.c: Include <libc-internal.h>
16162
16163 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
16164
16165         * manual/texinfo.tex: Update to version 2013-06-21.17, with
16166         trailing whitespace removed.
16167
16168 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
16169
16170         [BZ #10283]
16171         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
16172         * locale/programs/locarchive.c: Include libc-mmap.h.
16173         (prepare_address_space): Take two new outputs (the mmap base and len).
16174         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
16175         values.
16176         (create_archive): Declare new mmap base and len values for
16177         prepare_address_space, and store the result in ah.
16178         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
16179         (enlarge_archive): If ah->mmap_base is not NULL, use that and
16180         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
16181         Declare new mmap base and len values for
16182         prepare_address_space, and store the result in new_ah.
16183         (open_archive): Declare new mmap base and len values for
16184         prepare_address_space, and store the result in ah.
16185         (close_archive): If ah->mmap_base is not NULL, use that and
16186         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
16187         * sysdeps/generic/libc-mmap.h: New file.
16188
16189 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
16190
16191         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
16192         (ALIGN_UP): Likewise.
16193         (PTR_ALIGN_DOWN): Likewise.
16194         (PTR_ALIGN_UP): Likewise.
16195
16196 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16197
16198         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
16199         entry mapped to PPC_PLATFORM_POWER8.
16200         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
16201         POWER8.
16202         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
16203         (_dl_string_platform): Add case for exporting platform position for
16204         POWER8.
16205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
16206         search path to sysdeps/powerpc/powerpc32/power8 directory.
16207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
16208         search path to sysdeps/powerpc/powerpc64/power8 directory.
16209         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
16210         power7 directories.
16211         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
16212         power7 directories.
16213
16214 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
16215
16216         * INSTALL: Regenerate.
16217
16218         * nscd/connections.c (nscd_init): Fix comment.
16219
16220 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
16221
16222         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
16223
16224         [BZ #15667]
16225         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
16226         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
16227
16228 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
16229
16230         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
16231         DL_DST_REQ_STATIC.
16232         (DL_DST_REQ_STATIC): Remove macro.
16233
16234 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
16235
16236         [BZ #7006]
16237         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
16238         with a shift of 0 bits.
16239
16240 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
16241
16242         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
16243         $(tststatic-ENV).
16244
16245 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16246
16247         [BZ #15655]
16248         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
16249
16250 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16251
16252         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
16253         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
16254         accepts -fno-tree-loop-distribute-patterns.
16255         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
16256         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
16257         recursive call.
16258         * string/memset.c (memset): Likewise.
16259         * string/test-memmove.c (simple_memmove): Disable loop transformation
16260         to library calls.
16261         * string/test-memset.c (simple_memset): Likewise.
16262         * benchtests/bench-memmove.c (simple_memmove): Likewise.
16263         * benchtests/bench-memset.c (simple_memset): Likewise.
16264         * configure: Regenerated.
16265
16266 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
16267
16268         * math/test-misc.c (main): Ignore fesetround failure when failures
16269         of subsequent rounding tests would be ignored.
16270
16271         [BZ #15654]
16272         * math/fedisblxcpt.c (fedisableexcept): Return 0.
16273         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
16274         * math/fegetenv.c (__fegetenv): Return 0.
16275         * math/fegetexcept.c (fegetexcept): Return 0.
16276         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
16277         FE_TONEAREST.
16278         * math/feholdexcpt.c (feholdexcept): Return 0.
16279         * math/fesetenv.c (__fesetenv): Return 0.
16280         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
16281         argument FE_TONEAREST.
16282         * math/feupdateenv.c (__feupdateenv): Return 0.
16283         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
16284
16285 2013-06-18  Roland McGrath  <roland@hack.frob.com>
16286
16287         * elf/rtld-Rules (rtld-compile-command.S): New variable.
16288         (rtld-compile-command.s, rtld-compile-command.c): New variables.
16289         ($(objpfx)rtld-%.os rules): Use them.
16290
16291 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16292
16293         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
16294         fields.
16295
16296 2013-06-17  Roland McGrath  <roland@hack.frob.com>
16297
16298         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
16299         length of target pattern, then descending length of dependency pattern.
16300         * configure.in (AWK): Require gawk 3.1.2 or newer.
16301         * manual/install.texi (Tools for Compilation): Say that we do.
16302         * configure: Regenerated.
16303
16304         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
16305         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
16306         * scripts/sysd-rules.awk: ... this new script.
16307         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
16308         than a glob-style pattern.
16309
16310 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
16311
16312         * math/test-misc.c (main): Do not treat incorrectly rounded
16313         conversions as failure unless ROUNDING_TESTS passes.
16314
16315 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
16316
16317         [BZ #15631]
16318         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
16319         restore exception state around main square root computation, then
16320         check for inexactness explicitly.
16321
16322         * math/libm-test.inc (fma_test_data): Add another test.
16323
16324 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
16325
16326         * manual/threads.texi (Non-POSIX Extensions): New document
16327         node.  Document pthread_getattr_default_np and
16328         pthread_setattr_default_np.
16329
16330         * Versions.def (libpthread): Add GLIBC_2.18.
16331         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
16332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
16333         Likewise.
16334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
16335         Likewise.
16336         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16337         Likewise.
16338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16339         Likewise.
16340         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
16341         Likewise.
16342         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
16343         Likewise.
16344         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
16345         Likewise.
16346         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
16347         Likewise.
16348         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
16349         Likewise.
16350
16351 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16352
16353         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16354         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
16355
16356 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
16357             H.J. Lu  <hjl.tools@gmail.com>
16358
16359         [BZ #15627]
16360         * sysdeps/x86_64/rtld-memset.c: Remove file.
16361         * sysdeps/x86_64/rtld-memset.S: New file.
16362
16363 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
16364
16365         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
16366         (test_in_one_mode): Take arguments for whether the rounding mode
16367         is supported for each floating-point type.
16368         (do_test): Pass new arguments to test_in_one_mode using
16369         ROUNDING_TESTS.
16370
16371 2013-06-13  Roland McGrath  <roland@hack.frob.com>
16372
16373         * posix/tst-waitid.c (do_test): Distinguish different instances of
16374         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
16375         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
16376         before entering the kernel for waitpid.
16377
16378 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
16379
16380         * NEWS: Fix note on clock function precision.  Text by Roland
16381         McGrath.
16382
16383 2013-06-13  Roland McGrath  <roland@hack.frob.com>
16384
16385         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
16386         it into place only when and if the sanity check passes.
16387
16388 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
16389
16390         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
16391         output for whether conversion result is exact.  Take argument
16392         indicating whether type is IBM long double.
16393         (round_for_all): Change need_exact field to ibm_ld.
16394         * stdlib/tst-strtod-round.c (struct exactness): New type.
16395         (struct test): Change bool ld_ok field to struct exactness exact.
16396         (TEST): Update all definitions for change to field.
16397         (tests): Regenerate array contents.
16398         (test_in_one_mode): Take pointer to new field instead of old ld_ok
16399         field value.  Check for IBM long double here.
16400         (do_test): Update calls to test_in_one_mode.
16401
16402 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
16403
16404         [BZ #12515]
16405         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
16406         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
16407
16408 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16409
16410         [BZ #15605]
16411         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
16412         generated by the compiler on loop optimizations.
16413         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
16414         general definitions.
16415
16416 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
16417
16418         * math/bug-nextafter.c: Include <math-tests.h>.
16419         (main): Only test for exceptions if EXCEPTION_TESTS is true for
16420         the relevant type.
16421         * math/bug-nexttoward.c: Include <math-tests.h>.
16422         (main): Only test for exceptions if EXCEPTION_TESTS is true for
16423         the relevant type.
16424         * math/test-misc.c: Include <math-tests.h>.
16425         (main): Only test for exceptions if EXCEPTION_TESTS is true for
16426         the relevant type.
16427
16428 2013-06-12  Andreas Jaeger  <aj@suse.de>
16429
16430         * po/ia.po: Update Interlingua translation from translation
16431         project.
16432
16433 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
16434
16435         * include/fenv.h: Include stdbool.h.
16436         (struct rm_ctx): New structure.
16437         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
16438         Define macro.
16439         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
16440         (SET_RESTORE_ROUNDF): Likewise.
16441         (SET_RESTORE_ROUNDL): Likewise.
16442         (SET_RESTORE_ROUND_NOEX): Likewise.
16443         (SET_RESTORE_ROUND_NOEXF): Likewise.
16444         (SET_RESTORE_ROUND_NOEXL): Likewise.
16445         (SET_RESTORE_ROUND_53BIT): Likewise.
16446         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
16447         (libc_feresetround_noexf_ctx): Likewise.
16448         (libc_feresetround_noexl_ctx): Likewise.
16449         (libc_feholdsetround_53bit_ctx): Likewise.
16450         (libc_feresetround_53bit_ctx): Likewise.
16451         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
16452         (libc_feholdexcept_setround_sse_ctx): New function.
16453         (libc_fesetenv_sse_ctx): Likewise.
16454         (libc_feupdateenv_sse_ctx): Likewise.
16455         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
16456         (libc_feholdexcept_setround_387_ctx): Likewise.
16457         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
16458         (libc_feholdsetround_387_prec_ctx): Likewise.
16459         (libc_feholdsetround_387_ctx): Likewise.
16460         (libc_feholdsetround_387_53bit_ctx): Likewise.
16461         (libc_feholdsetround_sse_ctx): Likewise.
16462         (libc_feresetround_sse_ctx): Likewise.
16463         (libc_feresetround_387_ctx): Likewise.
16464         (libc_feupdateenv_387_ctx): Likewise.
16465         (libc_feholdexcept_setroundf_ctx): Define macro.
16466         (libc_fesetenvf_ctx): Likewise.
16467         (libc_feupdateenvf_ctx): Likewise.
16468         (libc_feholdsetroundf_ctx): Likewise.
16469         (libc_feresetroundf_ctx): Likewise.
16470         (libc_feholdexcept_setround_ctx): Likewise.
16471         (libc_fesetenv_ctx): Likewise.
16472         (libc_feupdateenv_ctx): Likewise.
16473         (libc_feholdsetround_ctx): Likewise.
16474         (libc_feresetround_ctx): Likewise.
16475         (libc_feholdexcept_setroundl_ctx): Likewise.
16476         (libc_feupdateenvl_ctx): Likewise.
16477         (libc_feholdsetroundl_ctx): Likewise.
16478         (libc_feresetroundl_ctx): Likewise.
16479         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
16480         (libc_feresetround_53bit_ctx): Likewise.
16481
16482 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16483
16484         * locale/iso-639.def: Convert to UTF-8.
16485
16486 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
16487
16488         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
16489         (EXCEPTION_TESTS_double): Likewise.
16490         (EXCEPTION_TESTS_long_double): Likewise.
16491         (EXCEPTION_TESTS): Likewise.
16492         * math/libm-test.inc (test_exceptions): Only test exceptions if
16493         EXCEPTION_TESTS (FLOAT).
16494
16495 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16496
16497         * benchtests/Makefile (string-bench): Add strcpy_chk and
16498         stpcpy_chk.
16499         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
16500         * benchtests/bench-stpcpy_chk.c: New file.
16501         * benchtests/bench-strcpy_chk-ifunc.c: New file.
16502         * benchtests/bench-strcpy_chk.c: New file.
16503         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
16504         code.
16505         (do_test): Likewise.
16506
16507 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16508
16509         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
16510         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
16511         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
16512         with tabs where appropriate.
16513         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
16514         dl-procinfo.h.
16515         [PPC_PLATFORM_PPC440]: Likewise.
16516         [PPC_PLATFORM_PPC464]: Likewise.
16517         [PPC_PLATFORM_PPC476]: Likewise.
16518         (_dl_string_platform): Add support for detecting ppc405, ppc440,
16519         ppc464, and ppc476 platform strings merging from ports/
16520         dl-procinfo.h.
16521
16522 2013-06-11  Andreas Schwab  <schwab@suse.de>
16523
16524         [BZ #14991]
16525         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
16526         (from_ucs4_idx): Regenerate.
16527         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
16528         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
16529         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
16530         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
16531         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
16532         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
16533         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
16534         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
16535         from FROM_LOOP and TO_LOOP specific macros.
16536         (BODY): Handle combining characters.
16537         * iconvdata/BIG5HKSCS.irreversible: Update.
16538         * iconvdata/BIG5HKSCS.precomposed: New file.
16539         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
16540         characters.
16541         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
16542
16543 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16544
16545         * include/sys/time.h: Fix indentation and add copyright header.
16546
16547         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
16548         (do_test): Likewise.
16549         * string/test-memchr.c (do_one_test): Likewise.
16550         (do_test): Likewise.
16551         * string/test-memcmp.c (do_one_test): Likewise.
16552         (do_test): Likewise.
16553         * string/test-memcpy.c (do_one_test): Likewise.
16554         (do_test): Likewise.
16555         * string/test-memmem.c (do_one_test): Likewise.
16556         (do_test): Likewise.
16557         (do_random_tests): Likewise.
16558         * string/test-memmove.c (do_one_test): Likewise.
16559         (do_test): Likewise.
16560         * string/test-memset.c (do_one_test): Likewise.
16561         (do_test): Likewise.
16562         * string/test-rawmemchr.c (do_one_test): Likewise.
16563         (do_test): Likewise.
16564         * string/test-strcasecmp.c (do_one_test): Likewise.
16565         (do_test): Likewise.
16566         * string/test-strcasestr.c (do_one_test): Likewise.
16567         (do_test): Likewise.
16568         * string/test-strcat.c (do_one_test): Likewise.
16569         (do_test): Likewise.
16570         * string/test-strchr.c (do_one_test): Likewise.
16571         (do_test): Likewise.
16572         * string/test-strcmp.c (do_one_test): Likewise.
16573         (do_test): Likewise.
16574         * string/test-strcpy.c (do_one_test): Likewise.
16575         (do_test): Likewise.
16576         * string/test-string.h: Likewise.
16577         (test_init): Likewise.
16578         * string/test-strlen.c (do_one_test): Likewise.
16579         (do_test): Likewise.
16580         * string/test-strncasecmp.c (do_one_test): Likewise.
16581         (do_test): Likewise.
16582         * string/test-strncat.c (do_one_test): Likewise.
16583         (do_test): Likewise.
16584         * string/test-strncmp.c (do_one_test): Likewise.
16585         (do_test_limit): Likewise.
16586         (do_test): Likewise.
16587         * string/test-strncpy.c (do_one_test): Likewise.
16588         (do_test): Likewise.
16589         * string/test-strnlen.c (do_one_test): Likewise.
16590         (do_test): Likewise.
16591         * string/test-strpbrk.c (do_one_test): Likewise.
16592         (do_test): Likewise.
16593         * string/test-strrchr.c (do_one_test): Likewise.
16594         (do_test): Likewise.
16595         * string/test-strspn.c (do_one_test): Likewise.
16596         (do_test): Likewise.
16597         * string/test-strstr.c (do_one_test): Likewise.
16598         (do_test): Likewise.
16599
16600         * benchtests/Makefile (string-bench): Add string benchmarks.
16601         * benchtests/bench-bcopy-ifunc.c: New file.
16602         * benchtests/bench-bcopy.c: New file.
16603         * benchtests/bench-bzero-ifunc.c: New file.
16604         * benchtests/bench-bzero.c: New file.
16605         * benchtests/bench-memccpy-ifunc.c: New file.
16606         * benchtests/bench-memccpy.c: New file.
16607         * benchtests/bench-memchr-ifunc.c: New file.
16608         * benchtests/bench-memchr.c: New file.
16609         * benchtests/bench-memcmp-ifunc.c: New file.
16610         * benchtests/bench-memcmp.c: New file.
16611         * benchtests/bench-memmem-ifunc.c: New file.
16612         * benchtests/bench-memmem.c: New file.
16613         * benchtests/bench-memmove-ifunc.c: New file.
16614         * benchtests/bench-memmove.c: New file.
16615         * benchtests/bench-mempcpy-ifunc.c: New file.
16616         * benchtests/bench-mempcpy.c: New file.
16617         * benchtests/bench-memset-ifunc.c: New file.
16618         * benchtests/bench-memset.c: New file.
16619         * benchtests/bench-rawmemchr-ifunc.c: New file.
16620         * benchtests/bench-rawmemchr.c: New file.
16621         * benchtests/bench-stpcpy-ifunc.c: New file.
16622         * benchtests/bench-stpcpy.c: New file.
16623         * benchtests/bench-stpncpy-ifunc.c: New file.
16624         * benchtests/bench-stpncpy.c: New file.
16625         * benchtests/bench-strcasecmp-ifunc.c: New file.
16626         * benchtests/bench-strcasecmp.c: New file.
16627         * benchtests/bench-strcasestr-ifunc.c: New file.
16628         * benchtests/bench-strcasestr.c: New file.
16629         * benchtests/bench-strcat-ifunc.c: New file.
16630         * benchtests/bench-strcat.c: New file.
16631         * benchtests/bench-strchr-ifunc.c: New file.
16632         * benchtests/bench-strchr.c: New file.
16633         * benchtests/bench-strchrnul-ifunc.c: New file.
16634         * benchtests/bench-strchrnul.c: New file.
16635         * benchtests/bench-strcmp-ifunc.c: New file.
16636         * benchtests/bench-strcmp.c: New file.
16637         * benchtests/bench-strcpy-ifunc.c: New file.
16638         * benchtests/bench-strcpy.c: New file.
16639         * benchtests/bench-strcspn-ifunc.c: New file.
16640         * benchtests/bench-strcspn.c: New file.
16641         * benchtests/bench-strlen-ifunc.c: New file.
16642         * benchtests/bench-strlen.c: New file.
16643         * benchtests/bench-strncasecmp-ifunc.c: New file.
16644         * benchtests/bench-strncasecmp.c: New file.
16645         * benchtests/bench-strncat-ifunc.c: New file.
16646         * benchtests/bench-strncat.c: New file.
16647         * benchtests/bench-strncmp-ifunc.c: New file.
16648         * benchtests/bench-strncmp.c: New file.
16649         * benchtests/bench-strncpy-ifunc.c: New file.
16650         * benchtests/bench-strncpy.c: New file.
16651         * benchtests/bench-strnlen-ifunc.c: New file.
16652         * benchtests/bench-strnlen.c: New file.
16653         * benchtests/bench-strpbrk-ifunc.c: New file.
16654         * benchtests/bench-strpbrk.c: New file.
16655         * benchtests/bench-strrchr-ifunc.c: New file.
16656         * benchtests/bench-strrchr.c: New file.
16657         * benchtests/bench-strspn-ifunc.c: New file.
16658         * benchtests/bench-strspn.c: New file.
16659         * benchtests/bench-strstr-ifunc.c: New file.
16660         * benchtests/bench-strstr.c: New file.
16661
16662         * benchtests/Makefile: Disable parallel execution of targets.
16663         (string-bench): Add memcpy.
16664         (benchset): New variable to store a list of benchmark sets.
16665         (bench-func): Renamed from bench.
16666         (bench-set): New target.
16667         (bench): Depend on bench-func and bench-set.
16668         * benchtests/README: Add section on benchmark sets.
16669         * benchtests/bench-memcpy-ifunc.c: New file.
16670         * benchtests/bench-memcpy.c: New file.
16671         * benchtests/bench-string.h: New file.
16672
16673 2013-06-11  Andreas Schwab  <schwab@suse.de>
16674
16675         [BZ #15577]
16676         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
16677         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
16678         values in the triple.
16679         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
16680         terminator in the group key.
16681
16682 2013-06-11  Andreas Jaeger  <aj@suse.de>
16683
16684         * po/zh_TW.po: Update Chinese (traditional) translation from
16685         translation project.
16686
16687 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
16688
16689         * include/time.h (__clock_gettime): Add libc_hidden_proto.
16690         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
16691         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
16692         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16693         (clock_getcpuclockid): Likewise.
16694         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
16695         Add weak_alias and libc_hidden_def.
16696         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
16697         * rt/clock_gettime.c (clock_gettime): Rename to
16698         __clock_gettime.  Add weak_alias and libc_hidden_def.
16699         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
16700         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
16701         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
16702         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
16703         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
16704         Likewise.
16705         * rt/clock_settime.c (clock_settime): Rename to
16706         __clock_settime.  Add weak_alias and libc_hidden_def.
16707         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
16708
16709 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
16710
16711         * mach/err_boot.sub: Remove trailing whitespace.
16712         * mach/err_ipc.sub: Likewise.
16713         * mach/err_mach.sub: Likewise.
16714
16715         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
16716         (ROUNDING_TESTS_double): Likewise.
16717         (ROUNDING_TESTS_long_double): Likewise.
16718         (ROUNDING_TESTS): Likewise.
16719         * math/libm-test.inc: Include <math-tests.h>.
16720         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
16721         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
16722         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
16723         (IF_ROUND_INIT_FE_UPWARD): Likewise.
16724
16725 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16726
16727         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
16728         of assigning.
16729
16730 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
16731
16732         * sysdeps/gnu/errlist.awk: Do not generate space at end of
16733         otherwise empty TRANS lines.
16734         * sysdeps/gnu/errlist.c: Regenerated.
16735
16736         * catgets/gencat.c (error_print): Use (void) in function
16737         definition.
16738         * crypt/crypt_util.c (__init_des): Likewise.
16739         * crypt/speeds.c (Stop): Likewise.
16740         (main): Likewise.
16741         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
16742         * inet/ruserpass.c (token): Likewise.
16743         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
16744         * intl/localealias.c (extend_alias_table): Likewise.
16745         * intl/plural-exp.c (init_germanic_plural): Likewise.
16746         * libio/fcloseall.c (__fcloseall): Likewise.
16747         * libio/genops.c (_IO_flush_all): Likewise.
16748         (_IO_flush_all_linebuffered): Likewise.
16749         (_IO_cleanup): Likewise.
16750         (_IO_iter_begin): Likewise.
16751         (_IO_iter_end): Likewise.
16752         (_IO_list_lock): Likewise.
16753         (_IO_list_unlock): Likewise.
16754         (_IO_list_resetlock): Likewise.
16755         * libio/getchar.c (getchar): Likewise.
16756         * libio/getchar_u.c (getchar_unlocked): Likewise.
16757         * libio/getwchar.c (getwchar): Likewise.
16758         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
16759         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
16760         * login/getpt.c (__getpt): Likewise.
16761         * login/tst-utmp.c (main): Likewise.
16762         * malloc/hooks.c (__malloc_check_init): Likewise.
16763         * malloc/malloc.c (__malloc_stats): Likewise.
16764         * malloc/mtrace.c (tr_break): Likewise.
16765         (mtrace): Likewise.
16766         (muntrace): Likewise.
16767         * misc/fstab.c (endfsent): Likewise.
16768         * misc/getclktck.c (__getclktck): Likewise.
16769         * misc/getdtsz.c (__getdtablesize): Likewise.
16770         * misc/gethostid.c (gethostid): Likewise.
16771         * misc/getpagesize.c (__getpagesize): Likewise.
16772         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
16773         (__get_nprocs): Likewise.
16774         (__get_phys_pages): Likewise.
16775         (__get_avphys_pages): Likewise.
16776         * misc/getttyent.c (getttyent): Likewise.
16777         (setttyent): Likewise.
16778         (endttyent): Likewise.
16779         * misc/getusershell.c (getusershell): Likewise.
16780         (endusershell): Likewise.
16781         (setusershell): Likewise.
16782         (initshells): Likewise.
16783         * misc/hsearch.c (__hdestroy): Likewise.
16784         * misc/sync.c (sync): Likewise.
16785         * misc/syslog.c (closelog_internal): Likewise.
16786         (closelog): Likewise.
16787         * misc/ttyslot.c (ttyslot): Likewise.
16788         * misc/vhangup.c (vhangup): Likewise.
16789         * posix/fork.c (__fork): Likewise.
16790         * posix/getegid.c (__getegid): Likewise.
16791         * posix/geteuid.c (__geteuid): Likewise.
16792         * posix/getgid.c (__getgid): Likewise.
16793         * posix/getpid.c (__getpid): Likewise.
16794         * posix/getppid.c (__getppid): Likewise.
16795         * posix/getuid.c (__getuid): Likewise.
16796         * posix/pause.c (pause): Likewise.
16797         * posix/setpgrp.c (setpgrp): Likewise.
16798         * posix/setsid.c (__setsid): Likewise.
16799         * posix/test-vfork.c (noop): Likewise.
16800         * resolv/gethnamaddr.c (_endhtent): Likewise.
16801         (_gethtent): Likewise.
16802         (ht_endhostent): Likewise.
16803         (gethostent): Likewise.
16804         (dns_service): Likewise.
16805         * stdlib/drand48.c (drand48): Likewise.
16806         * stdlib/lrand48.c (lrand48): Likewise.
16807         * stdlib/mrand48.c (mrand48): Likewise.
16808         * stdlib/rand.c (rand): Likewise.
16809         * stdlib/random.c (__random): Likewise.
16810         * stdlib/setenv.c (clearenv): Likewise.
16811         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
16812         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
16813         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
16814         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
16815         (__get_nprocs): Likewise.
16816         (__get_phys_pages): Likewise.
16817         (__get_avphys_pages): Likewise.
16818         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
16819         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
16820         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
16821         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
16822         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
16823         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
16824         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
16825         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
16826         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
16827         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
16828         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
16829         * sysdeps/mach/hurd/sync.c (sync): Likewise.
16830         * sysdeps/posix/clock.c (clock): Likewise.
16831         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
16832         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
16833         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
16834         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
16835         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
16836         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
16837         (__get_nprocs_conf): Likewise.
16838         (__get_phys_pages): Likewise.
16839         (__get_avphys_pages): Likewise.
16840         * time/clock.c (clock): Likewise.
16841         * time/tzset.c (__tzname_max): Likewise.
16842
16843 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
16844
16845         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
16846         (__bswap_32): Do not use "register".
16847         * crypt/crypt.c (_ufc_doit_r): Likewise.
16848         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
16849         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
16850         * gmon/gmon.c (__monstartup): Likewise.
16851         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
16852         * hurd/hurdmalloc.c (more_memory): Likewise.
16853         (malloc): Likewise.
16854         (free): Likewise.
16855         (realloc): Likewise.
16856         (malloc_fork_prepare): Likewise.
16857         (malloc_fork_parent): Likewise.
16858         (malloc_fork_child): Likewise.
16859         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
16860         (_svcauth_des): Likewise.
16861         * inet/inet_lnaof.c (inet_lnaof): Likewise.
16862         * inet/inet_net.c (inet_network): Likewise.
16863         * inet/inet_netof.c (inet_netof): Likewise.
16864         * inet/rcmd.c (__validuser2_sa): Likewise.
16865         * io/fts.c (fts_open): Likewise.
16866         (fts_load): Likewise.
16867         (fts_close): Likewise.
16868         (fts_read): Likewise.
16869         (fts_children): Likewise.
16870         (fts_build): Likewise.
16871         (fts_stat): Likewise.
16872         (fts_sort): Likewise.
16873         (fts_alloc): Likewise.
16874         (fts_lfree): Likewise.
16875         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
16876         (_IO_file_xsgetn): Likewise.
16877         (_IO_file_xsgetn_mmap): Likewise.
16878         * libio/iofopncook.c (_IO_cookie_read): Likewise.
16879         (_IO_cookie_write): Likewise.
16880         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
16881         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
16882         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
16883         * malloc/obstack.c (_obstack_begin): Likewise.
16884         (_obstack_begin_1): Likewise.
16885         (_obstack_newchunk): Likewise.
16886         (_obstack_allocated_p): Likewise.
16887         (obstack_free): Likewise.
16888         (_obstack_memory_used): Likewise.
16889         * misc/getttyent.c (getttynam): Likewise.
16890         (getttyent): Likewise.
16891         (skip): Likewise.
16892         (value): Likewise.
16893         * misc/getusershell.c (initshells): Likewise.
16894         * misc/syslog.c (__vsyslog_chk): Likewise.
16895         * misc/ttyslot.c (ttyslot): Likewise.
16896         * nis/nis_hash.c (__nis_hash): Likewise.
16897         * posix/fnmatch_loop.c (FCT): Likewise.
16898         * posix/getconf.c (print_all): Likewise.
16899         (main): Likewise.
16900         * posix/getopt.c (exchange): Likewise.
16901         * posix/glob.c (globfree): Likewise.
16902         (prefix_array): Likewise.
16903         (__glob_pattern_type): Likewise.
16904         * resolv/arpa/nameser.h (NS_GET16): Likewise.
16905         (NS_GET32): Likewise.
16906         (NS_PUT16): Likewise.
16907         (NS_PUT32): Likewise.
16908         * resolv/gethnamaddr.c (getanswer): Likewise.
16909         (gethostbyname2): Likewise.
16910         (gethostbyaddr): Likewise.
16911         (_gethtent): Likewise.
16912         (_gethtbyname2): Likewise.
16913         (_gethtbyaddr): Likewise.
16914         * resolv/ns_print.c (dst_s_get_int16): Likewise.
16915         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
16916         * resolv/res_init.c (__res_vinit): Likewise.
16917         (net_mask): Likewise.
16918         * resolv/res_mkquery.c (outchar): Likewise.
16919         (PRINT): Likewise.
16920         * stdio-common/printf_fp.c (outchar): Likewise.
16921         (PRINT): Likewise.
16922         * stdio-common/printf_fphex.c (outchar): Likewise.
16923         (PRINT): Likewise.
16924         * stdio-common/printf_size.c (outchar): Likewise.
16925         (PRINT): Likewise.
16926         * stdio-common/test_rdwr.c (main): Likewise.
16927         * stdio-common/tfformat.c (matches): Likewise.
16928         * stdio-common/vfprintf.c (outchar): Likewise.
16929         (printf_unknown): Likewise.
16930         (buffered_vfprintf): Likewise.
16931         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
16932         * stdio-common/xbug.c (AppendToBuffer): Likewise.
16933         (ReadFile): Likewise.
16934         * stdlib/qsort.c (SWAP): Likewise.
16935         (_quicksort): Likewise.
16936         * stdlib/setenv.c (__add_to_environ): Likewise.
16937         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
16938         * stdlib/strtol_l.c (__strtol_l): Likewise.
16939         * stdlib/tst-strtod.c (main): Likewise.
16940         * stdlib/tst-strtol.c (main): Likewise.
16941         * stdlib/tst-strtoll.c (main): Likewise.
16942         * string/bits/string2.h (__strcmp_cc): Likewise.
16943         (__strcmp_cg): Likewise.
16944         (__strcspn_c1): Likewise.
16945         (__strcspn_c2): Likewise.
16946         (__strcspn_c3): Likewise.
16947         (__strspn_c1): Likewise.
16948         (__strspn_c2): Likewise.
16949         (__strspn_c3): Likewise.
16950         (__strsep_1c): Likewise.
16951         (__strsep_2c): Likewise.
16952         (__strsep_3c): Likewise.
16953         * string/memccpy.c (__memccpy): Likewise.
16954         * string/stpcpy.c (__stpcpy): Likewise.
16955         * string/strcmp.c (strcmp): Likewise.
16956         * string/strrchr.c (strrchr): Likewise.
16957         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
16958         Likewise.
16959         * sysdeps/mach/hurd/getcwd.c
16960         (_hurd_canonicalize_directory_name_internal): Likewise.
16961         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
16962         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
16963         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
16964         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
16965         Likewise, in both definitions.
16966         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
16967         definitions.
16968         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
16969         64] (__bswap_64): Likewise.
16970         * time/test_time.c (main): Likewise.
16971         * time/tzfile.c (__tzfile_read): Likewise.
16972         (__tzfile_compute): Likewise.
16973         * time/tzset.c (__tzset_parse_tz): Likewise.
16974         (tzset_internal): Likewise.
16975         (compute_change): Likewise.
16976         * wcsmbs/wcscat.c (__wcscat): Likewise.
16977         * wcsmbs/wcschr.c (wcschr): Likewise.
16978         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
16979         * wcsmbs/wcscspn.c (wcscspn): Likewise.
16980         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
16981         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
16982         * wcsmbs/wcsspn.c (wcsspn): Likewise.
16983         * wcsmbs/wcsstr.c (wcsstr): Likewise.
16984         * wcsmbs/wmemchr.c (wmemchr): Likewise.
16985         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16986         * wcsmbs/wmemset.c (wmemset): Likewise.
16987
16988 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
16989
16990         * scripts/config.guess: Update to version 2013-05-16.
16991         * scripts/config.sub: Update to version 2013-04-24.
16992         * scripts/install-sh: Update to version 2011-11-20.07.
16993         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
16994         * scripts/move-if-change: Update to version 2012-01-06 07:23.
16995
16996 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
16997
16998         * debug/fgetws_u_chk.c: Fix leading whitespaces.
16999         * elf/sln.c: Likewise.
17000         * hurd/hurd/ioctl.h: Likewise.
17001         * hurd/hurdmalloc.c: Likewise.
17002         * hurd/xattr.c: Likewise.
17003         * include/shlib-compat.h: Likewise.
17004         * inet/ruserpass.c: Likewise.
17005         * libio/iofgets_u.c: Likewise.
17006         * libio/iofgetws_u.c: Likewise.
17007         * locale/programs/ld-identification.c: Likewise.
17008         * locale/programs/ld-time.c: Likewise.
17009         * mach/msg-destroy.c: Likewise.
17010         * nss/nss_files/files-netgrp.c: Likewise.
17011         * resolv/res_data.c: Likewise.
17012         * soft-fp/op-1.h: Likewise.
17013         * soft-fp/op-2.h: Likewise.
17014         * soft-fp/op-4.h: Likewise.
17015         * soft-fp/op-common.h: Likewise.
17016         * stdio-common/printf_fphex.c: Likewise.
17017         * stdlib/strtod_l.c: Likewise.
17018         * sunrpc/rpc/clnt.h: Likewise.
17019         * sysdeps/generic/framestate.c: Likewise.
17020         * sysdeps/i386/bsd-_setjmp.S: Likewise.
17021         * sysdeps/i386/bsd-setjmp.S: Likewise.
17022         * sysdeps/i386/__longjmp.S: Likewise.
17023         * sysdeps/i386/setjmp.S: Likewise.
17024         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17025         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
17026         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17027         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17028         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17029         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
17030         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17031         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
17032         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
17033         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
17034         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
17035         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
17036         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
17037         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
17038         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
17039         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17040         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
17041         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
17042         * sysdeps/ieee754/support.c: Likewise.
17043         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
17044         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
17045         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
17046         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
17047         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
17048         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
17049         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
17050         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
17051         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
17052         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
17053         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
17054         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
17055         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
17056         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
17057         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
17058         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
17059         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
17061
17062 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
17063
17064         * posix/transbug.c: Remove executable mode.
17065
17066 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
17067
17068         * crypt/speeds.c: Remove trailing whitespace.
17069         * dlfcn/default.c: Likewise.
17070         * elf/ifuncdep2.c: Likewise.
17071         * elf/ifuncmain1.c: Likewise.
17072         * elf/ifuncmain1vis.c: Likewise.
17073         * elf/testobj.h: Likewise.
17074         * elf/tst-stackguard1.c: Likewise.
17075         * gmon/sys/gmon.h: Likewise.
17076         * hurd/hurdmsg.c: Likewise.
17077         * hurd/new-fd.c: Likewise.
17078         * hurd/ports-get.c: Likewise.
17079         * iconvdata/ibm1008_420.c: Likewise.
17080         * inet/tst-getni1.c: Likewise.
17081         * inet/tst-getni2.c: Likewise.
17082         * libio/ioungetc.c: Likewise.
17083         * libio/wfiledoalloc.c: Likewise.
17084         * manual/libm-err-tab.pl: Likewise.
17085         * math/w_dremf.c: Likewise.
17086         * misc/ftruncate.c: Likewise.
17087         * posix/bug-glob2.c: Likewise.
17088         * posix/tst-pcre.c: Likewise.
17089         * posix/wait4.c: Likewise.
17090         * resolv/README: Likewise.
17091         * resolv/res_debug.h: Likewise.
17092         * resolv/tst-inet_ntop.c: Likewise.
17093         * setjmp/bug269-setjmp.c: Likewise.
17094         * soft-fp/extended.h: Likewise.
17095         * soft-fp/op-1.h: Likewise.
17096         * soft-fp/op-2.h: Likewise.
17097         * soft-fp/op-4.h: Likewise.
17098         * soft-fp/op-8.h: Likewise.
17099         * soft-fp/testit.c: Likewise.
17100         * stdio-common/bug16.c: Likewise.
17101         * stdlib/random.c: Likewise.
17102         * sunrpc/rpcsvc/rquota.x: Likewise.
17103         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
17104         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
17105         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17106         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17107         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17108         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17109         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
17110         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17111         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
17112         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
17113         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
17114         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
17115         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17116         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17117         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17118         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17119         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17120         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17121         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
17122         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
17123         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
17124         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
17125         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
17126         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
17127         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17128         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17129         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17130         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17131         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17132         * sysdeps/ieee754/s_lib_version.c: Likewise.
17133         * sysdeps/mach/hurd/check_fds.c: Likewise.
17134         * sysdeps/mach/hurd/getsockname.c: Likewise.
17135         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
17136         * sysdeps/mach/hurd/recvfrom.c: Likewise.
17137         * sysdeps/powerpc/bits/link.h: Likewise.
17138         * sysdeps/powerpc/dl-procinfo.c: Likewise.
17139         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
17140         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
17141         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
17142         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
17143         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
17144         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
17145         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
17146         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
17147         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
17148         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
17149         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
17150         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
17151         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
17152         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
17153         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
17154         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
17155         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
17156         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
17157         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
17158         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
17159         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
17160         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
17161         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
17162         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
17163         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
17164         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
17165         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
17166         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
17167         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
17168         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
17169         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
17170         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
17171         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17172         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
17173         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
17174         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
17175         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
17176         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
17177         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
17178         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
17179         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
17180         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
17181         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
17182         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
17183         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
17184         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
17185         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
17186         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
17187         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
17188         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
17189         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
17190         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
17191         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
17192         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
17193         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
17194         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
17195         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
17196         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
17197         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
17198         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
17199         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
17200         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
17201         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
17202         * sysdeps/powerpc/sysdep.h: Likewise.
17203         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17204         * sysdeps/s390/s390-64/sub_n.S: Likewise.
17205         * sysdeps/sh/dl-trampoline.S: Likewise.
17206         * sysdeps/sh/memset.S: Likewise.
17207         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
17208         * sysdeps/sh/strlen.S: Likewise.
17209         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
17210         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
17211         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
17212         * sysdeps/sparc/sparc32/rem.S: Likewise.
17213         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17214         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
17215         * sysdeps/sparc/sparc32/strchr.S: Likewise.
17216         * sysdeps/sparc/sparc32/udiv.S: Likewise.
17217         * sysdeps/sparc/sparc32/urem.S: Likewise.
17218         * sysdeps/sparc/sparc64/add_n.S: Likewise.
17219         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17220         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
17221         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
17222         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
17223         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
17224         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
17225         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
17226         * sysdeps/unix/bsd/times.c: Likewise.
17227         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
17228         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
17229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
17230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
17231         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
17232         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
17233         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
17234         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
17235         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
17236         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
17237         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
17238         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
17239         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
17240         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17241         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
17242         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17243         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
17244         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
17245         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
17246         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
17247         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
17248         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
17249         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17250         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
17251         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
17252         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
17253         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
17254         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17255         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
17256         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
17257         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
17258         * sysdeps/x86_64/strcspn.S: Likewise.
17259
17260 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17261
17262         * locale/C-translit.h: Revert #include <stdint.h> because this is a
17263         generated file.  Regenerate properly from gen-translit.pl.
17264         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
17265         locale/C-translit.h.
17266
17267 2013-06-05  Andreas Schwab  <schwab@suse.de>
17268
17269         [BZ #15100]
17270         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
17271         week as 6 instead of -1.
17272         * time/tst-strptime.c (day_tests): Add test case.
17273
17274 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
17275
17276         * sysdeps/generic/math_private.h
17277         (libc_feholdexcept_setround_53bit): Replace with
17278         libc_feholdsetround_53bit.
17279         (libc_feupdateenv_53bit): Replace with
17280         libc_feresetround_53bit.
17281         (SET_RESTORE_ROUND_53BIT): Adjust.
17282
17283 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
17284
17285         * string/test-strchrnul.c: Add copyright header.
17286
17287         * posix/tst-getaddrinfo4.c: Increase test timeout.
17288
17289 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
17290
17291         [BZ #15536]
17292         * math/libm-test.inc (MAX_EXP): Remove
17293         (MIN_EXP): Define.
17294         (ulp): Use MIN_EXP - MANT_DIG.
17295         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
17296
17297 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
17298
17299         * po/be.po: Revert last change.
17300         * po/zh_CN.po: Likewise.
17301         * po/header.pot: Likewise.
17302
17303 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
17304
17305         * Makefile ($(common-objpfx)linkobj/libc.so): Define
17306         link-libc-deps to empty as target-specific variable.
17307         * Makerules (link-libc-args): New variable.
17308         (libc-for-link): Likewise.
17309         (link-libc-deps): Likewise.
17310         (lib%.so): Depend on $(link-libc-deps).  Link with
17311         $(link-libc-args).
17312         (build-module): Link with $(link-libc-args).
17313         (build-module-asneeded): Likewise.
17314         (build-module-helper-objlist): Filter out $(link-libc-deps) from
17315         list of objects.
17316         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
17317         target-specific variable.
17318         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
17319         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
17320         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
17321         libc.
17322         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
17323         libc and ld.so.
17324         ($(objpfx)libpcprofile.so): Likewise.
17325         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
17326         libc_nonshared.a.
17327         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
17328         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
17329         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
17330         $(link-libc-deps).
17331         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
17332         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
17333         * login/Makefile ($(objpfx)libutil.so): Likewise.
17334         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
17335         * math/Makefile ($(objpfx)libm.so): Likewise.
17336         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
17337         $(objpfx)libnsl.so): Define libc-for-link as target-specific
17338         variable instead of depending directly on libc.
17339         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
17340         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
17341         $(link-libc-deps).
17342         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
17343         libc.
17344         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
17345         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
17346         ($(objpfx)libanl.so): Likewise.
17347         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
17348         ld.so.
17349         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
17350         $(link-libc-deps).
17351         * sysdeps/i386/fpu/Makefile: Remove file.
17352         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
17353         ($(objpfx)libm.so): Remove dependency on ld.so.
17354
17355 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
17356
17357         [BZ # 15553]
17358         * nis/yp_xdr.c (XDRMAXNAME): Define.
17359         (XDRMAXRECORD): Define.
17360         (xdr_domainname): Use XDRMAXNAME.
17361         (xdr_mapname): Likewise.
17362         (xdr_peername): Likewise.
17363         (xdr_keydat): Use XDRMAXRECORD.
17364         (xdr_valdat): Likewise.
17365
17366 2013-05-30  Jeff Law  <law@redhat.com>
17367
17368         [BZ #14256]
17369         * manual/errno.texi (ESTALE): Update to account for more than
17370         just NFS file systems.
17371         * sysdeps/gnu/errlist.c: Regenerated.
17372
17373 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
17374
17375         [BZ #15465]
17376         * elf/Makefile (tests): Add tst-null-argv.
17377         (modules-names):  Add tst-null-argv-lib.
17378         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
17379         (tst-null-argv-ENV): Set environment for tst-null-argv.
17380         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
17381         (RTLD_PROGNAME): New macro.
17382         * elf/tst-null-argv.c: New test case.
17383         * elf/tst-null-argv-lib.c: Library for test case.
17384         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
17385         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
17386         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
17387         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
17388         * elf/dl-init.c (call_init): Likewise.
17389         (_dl_init): Likewise.
17390         * elf/dl-load.c (print_search_path): Likewise.
17391         (_dl_map_object): Likewise.
17392         * elf/dl-lookup.c (do_lookup_x): Likewise.
17393         (add_dependency): Likewise.
17394         (_dl_lookup_symbol_x): Likewise.
17395         (_dl_debug_bindings): Likewise.
17396         * elf/dl-open.c (_dl_show_scope): Likewise.
17397         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
17398         * elf/dl-version.c (match_symbol): Likewise.
17399         (_dl_check_map_versions): Likewise.
17400         * elf/rtld.c (dl_main): Likewise.
17401         (print_unresolved): Use RTLD_PROGNAME.
17402         (print_missing_version): Likewise.
17403         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
17404         (elf_machine_rela): Likewise.
17405         * sysdeps/powerpc/powerpc32/dl-machine.c
17406         (__process_machine_rela): Likewise.
17407         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17408         Likewise.
17409         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17410         Likewise.
17411         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
17412         Likewise.
17413         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17414         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
17415         Likewise.
17416         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
17417         Likewise.
17418         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17419
17420 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
17421
17422         * po/be.po: Add descriptive title.
17423         * po/zh_CN.po: Likewise.
17424         * po/header.pot: Likewise.
17425
17426 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
17427
17428         * locale/programs/locarchive.c (create_archive): Inlucde fname in
17429         error message.
17430         (enlarge_archive): Likewise.
17431
17432 2013-05-28  Ben North  <ben@redfrontdoor.org>
17433
17434         * manual/arith.texi (frexp): It is the magnitude of the return
17435         value which lies in [0.5, 1), not the return value itself.
17436
17437 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17438
17439         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17440
17441 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
17442
17443         * stdio-common/bug26.c (main): Correct fscanf template.
17444
17445         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
17446         declare _dl_skip_args.
17447
17448         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
17449         Don't declare.
17450
17451         * manual/platform.texi: Add missing @end deftypefun.
17452
17453 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
17454
17455         [BZ #15529]
17456         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
17457         bit of mantissa of 2^16382.
17458         * math/libm-test.inc (hypot_test_data): Add more tests.
17459
17460         * math/libm-test.inc: Add drem and pow10 to list of tested
17461         functions.
17462         (pow10_test): New function.
17463         (drem_test): Likewise.
17464         (drem_test_tonearest): Likewise.
17465         (drem_test_towardzero): Likewise.
17466         (drem_test_downward): Likewise.
17467         (drem_test_upward): Likewise.
17468         (main): Call the new functions.
17469
17470         * math/libm-test.inc (finite_test_data): Remove.
17471         (finite_test): Run tests from isfinite_test_data.
17472         (gamma_test_data): Remove.
17473         (gamma_test): Run tests from lgamma_test_data.
17474         * sysdeps/i386/fpu/libm-test-ulps: Update.
17475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17476
17477 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17478
17479         * manual/platform.texi: Add PowerPC PPR function set documentation.
17480         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
17481         implementation.
17482
17483 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
17484
17485         * math/libm-test.inc (MAX_EXP): Define.
17486         (ULPDIFF): Define.
17487         (ulp): New function.
17488         (check_float_internal): Use ULPDIFF.
17489         (cpow_test): Disable failing test.
17490         (check_ulp): Test ulp() implemetnation.
17491         (main): Call check_ulp before starting tests.
17492
17493 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
17494
17495         * math/gen-libm-test.pl (generate_testfile): Do not handle
17496         START_DATA and END_DATA.
17497         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
17498         END_DATA.
17499         (acos_tonearest_test_data): Likewise.
17500         (acos_towardzero_test_data): Likewise.
17501         (acos_downward_test_data): Likewise.
17502         (acos_upward_test_data): Likewise.
17503         (acosh_test_data): Likewise.
17504         (asin_test_data): Likewise.
17505         (asin_tonearest_test_data): Likewise.
17506         (asin_towardzero_test_data): Likewise.
17507         (asin_downward_test_data): Likewise.
17508         (asin_upward_test_data): Likewise.
17509         (asinh_test_data): Likewise.
17510         (atan_test_data): Likewise.
17511         (atanh_test_data): Likewise.
17512         (atan2_test_data): Likewise.
17513         (cabs_test_data): Likewise.
17514         (cacos_test_data): Likewise.
17515         (cacosh_test_data): Likewise.
17516         (carg_test_data): Likewise.
17517         (casin_test_data): Likewise.
17518         (casinh_test_data): Likewise.
17519         (catan_test_data): Likewise.
17520         (catanh_test_data): Likewise.
17521         (cbrt_test_data): Likewise.
17522         (ccos_test_data): Likewise.
17523         (ccosh_test_data): Likewise.
17524         (ceil_test_data): Likewise.
17525         (cexp_test_data): Likewise.
17526         (cimag_test_data): Likewise.
17527         (clog_test_data): Likewise.
17528         (clog10_test_data): Likewise.
17529         (conj_test_data): Likewise.
17530         (copysign_test_data): Likewise.
17531         (cos_test_data): Likewise.
17532         (cos_tonearest_test_data): Likewise.
17533         (cos_towardzero_test_data): Likewise.
17534         (cos_downward_test_data): Likewise.
17535         (cos_upward_test_data): Likewise.
17536         (cosh_test_data): Likewise.
17537         (cosh_tonearest_test_data): Likewise.
17538         (cosh_towardzero_test_data): Likewise.
17539         (cosh_downward_test_data): Likewise.
17540         (cosh_upward_test_data): Likewise.
17541         (cpow_test_data): Likewise.
17542         (cproj_test_data): Likewise.
17543         (creal_test_data): Likewise.
17544         (csin_test_data): Likewise.
17545         (csinh_test_data): Likewise.
17546         (csqrt_test_data): Likewise.
17547         (ctan_test_data): Likewise.
17548         (ctan_tonearest_test_data): Likewise.
17549         (ctan_towardzero_test_data): Likewise.
17550         (ctan_downward_test_data): Likewise.
17551         (ctan_upward_test_data): Likewise.
17552         (ctanh_test_data): Likewise.
17553         (ctanh_tonearest_test_data): Likewise.
17554         (ctanh_towardzero_test_data): Likewise.
17555         (ctanh_downward_test_data): Likewise.
17556         (ctanh_upward_test_data): Likewise.
17557         (erf_test_data): Likewise.
17558         (erfc_test_data): Likewise.
17559         (exp_test_data): Likewise.
17560         (exp_tonearest_test_data): Likewise.
17561         (exp_towardzero_test_data): Likewise.
17562         (exp_downward_test_data): Likewise.
17563         (exp_upward_test_data): Likewise.
17564         (exp10_test_data): Likewise.
17565         (exp2_test_data): Likewise.
17566         (expm1_test_data): Likewise.
17567         (fabs_test_data): Likewise.
17568         (fdim_test_data): Likewise.
17569         (finite_test_data): Likewise.
17570         (floor_test_data): Likewise.
17571         (fma_test_data): Likewise.
17572         (fma_towardzero_test_data): Likewise.
17573         (fma_downward_test_data): Likewise.
17574         (fma_upward_test_data): Likewise.
17575         (fmax_test_data): Likewise.
17576         (fmin_test_data): Likewise.
17577         (fmod_test_data): Likewise.
17578         (fpclassify_test_data): Likewise.
17579         (frexp_test_data): Likewise.
17580         (gamma_test_data): Likewise.
17581         (hypot_test_data): Likewise.
17582         (ilogb_test_data): Likewise.
17583         (isfinite_test_data): Likewise.
17584         (isgreater_test_data): Likewise.
17585         (isgreaterequal_test_data): Likewise.
17586         (isinf_test_data): Likewise.
17587         (isless_test_data): Likewise.
17588         (islessequal_test_data): Likewise.
17589         (islessgreater_test_data): Likewise.
17590         (isnan_test_data): Likewise.
17591         (isnormal_test_data): Likewise.
17592         (issignaling_test_data): Likewise.
17593         (isunordered_test_data): Likewise.
17594         (j0_test_data): Likewise.
17595         (j1_test_data): Likewise.
17596         (jn_test_data): Likewise.
17597         (ldexp_test_data): Likewise.
17598         (lgamma_test_data): Likewise.
17599         (lrint_test_data): Likewise.
17600         (lrint_tonearest_test_data): Likewise.
17601         (lrint_towardzero_test_data): Likewise.
17602         (lrint_downward_test_data): Likewise.
17603         (lrint_upward_test_data): Likewise.
17604         (llrint_test_data): Likewise.
17605         (llrint_tonearest_test_data): Likewise.
17606         (llrint_towardzero_test_data): Likewise.
17607         (llrint_downward_test_data): Likewise.
17608         (llrint_upward_test_data): Likewise.
17609         (log_test_data): Likewise.
17610         (log10_test_data): Likewise.
17611         (log1p_test_data): Likewise.
17612         (log2_test_data): Likewise.
17613         (logb_test_data): Likewise.
17614         (logb_downward_test_data): Likewise.
17615         (lround_test_data): Likewise.
17616         (llround_test_data): Likewise.
17617         (modf_test_data): Likewise.
17618         (nearbyint_test_data): Likewise.
17619         (nextafter_test_data): Likewise.
17620         (nexttoward_test_data): Likewise.
17621         (pow_test_data): Likewise.
17622         (pow_tonearest_test_data): Likewise.
17623         (pow_towardzero_test_data): Likewise.
17624         (pow_downward_test_data): Likewise.
17625         (pow_upward_test_data): Likewise.
17626         (remainder_test_data): Likewise.
17627         (remainder_tonearest_test_data): Likewise.
17628         (remainder_towardzero_test_data): Likewise.
17629         (remainder_downward_test_data): Likewise.
17630         (remainder_upward_test_data): Likewise.
17631         (remquo_test_data): Likewise.
17632         (rint_test_data): Likewise.
17633         (rint_tonearest_test_data): Likewise.
17634         (rint_towardzero_test_data): Likewise.
17635         (rint_downward_test_data): Likewise.
17636         (rint_upward_test_data): Likewise.
17637         (round_test_data): Likewise.
17638         (scalb_test_data): Likewise.
17639         (scalbn_test_data): Likewise.
17640         (scalbln_test_data): Likewise.
17641         (signbit_test_data): Likewise.
17642         (sin_test_data): Likewise.
17643         (sin_tonearest_test_data): Likewise.
17644         (sin_towardzero_test_data): Likewise.
17645         (sin_downward_test_data): Likewise.
17646         (sin_upward_test_data): Likewise.
17647         (sincos_test_data): Likewise.
17648         (sinh_test_data): Likewise.
17649         (sinh_tonearest_test_data): Likewise.
17650         (sinh_towardzero_test_data): Likewise.
17651         (sinh_downward_test_data): Likewise.
17652         (sinh_upward_test_data): Likewise.
17653         (sqrt_test_data): Likewise.
17654         (tan_test_data): Likewise.
17655         (tan_tonearest_test_data): Likewise.
17656         (tan_towardzero_test_data): Likewise.
17657         (tan_downward_test_data): Likewise.
17658         (tan_upward_test_data): Likewise.
17659         (tanh_test_data): Likewise.
17660         (tgamma_test_data): Likewise.
17661         (trunc_test_data): Likewise.
17662         (y0_test_data): Likewise.
17663         (y1_test_data): Likewise.
17664         (yn_test_data): Likewise.
17665         (significand_test_data): Likewise.
17666
17667         * math/gen-libm-test.pl (@functions): Remove variable.
17668         (generate_testfile): Don't handle START and END lines.
17669         * math/libm-test.inc (START): New macro.
17670         (END): Likewise.
17671         (END_COMPLEX): Likewise.
17672         (acos_test): Use END macro without arguments.
17673         (acos_test_tonearest): Likewise.
17674         (acos_test_towardzero): Likewise.
17675         (acos_test_downward): Likewise.
17676         (acos_test_upward): Likewise.
17677         (acosh_test): Likewise.
17678         (asin_test): Likewise.
17679         (asin_test_tonearest): Likewise.
17680         (asin_test_towardzero): Likewise.
17681         (asin_test_downward): Likewise.
17682         (asin_test_upward): Likewise.
17683         (asinh_test): Likewise.
17684         (atan_test): Likewise.
17685         (atanh_test): Likewise.
17686         (atan2_test): Likewise.
17687         (cabs_test): Likewise.
17688         (cacos_test): Use END_COMPLEX macro without arguments.
17689         (cacosh_test): Likewise.
17690         (carg_test): Use END macro without arguments.
17691         (casin_test): Use END_COMPLEX macro without arguments.
17692         (casinh_test): Likewise.
17693         (catan_test): Likewise.
17694         (catanh_test): Likewise.
17695         (cbrt_test): Use END macro without arguments.
17696         (ccos_test): Use END_COMPLEX macro without arguments.
17697         (ccosh_test): Likewise.
17698         (ceil_test): Use END macro without arguments.
17699         (cexp_test): Use END_COMPLEX macro without arguments.
17700         (cimag_test): Use END macro without arguments.
17701         (clog_test): Use END_COMPLEX macro without arguments.
17702         (clog10_test): Likewise.
17703         (conj_test): Likewise.
17704         (copysign_test): Use END macro without arguments.
17705         (cos_test): Likewise.
17706         (cos_test_tonearest): Likewise.
17707         (cos_test_towardzero): Likewise.
17708         (cos_test_downward): Likewise.
17709         (cos_test_upward): Likewise.
17710         (cosh_test): Likewise.
17711         (cosh_test_tonearest): Likewise.
17712         (cosh_test_towardzero): Likewise.
17713         (cosh_test_downward): Likewise.
17714         (cosh_test_upward): Likewise.
17715         (cpow_test): Use END_COMPLEX macro without arguments.
17716         (cproj_test): Likewise.
17717         (creal_test): Use END macro without arguments.
17718         (csin_test): Use END_COMPLEX macro without arguments.
17719         (csinh_test): Likewise.
17720         (csqrt_test): Likewise.
17721         (ctan_test): Likewise.
17722         (ctan_test_tonearest): Likewise.
17723         (ctan_test_towardzero): Likewise.
17724         (ctan_test_downward): Likewise.
17725         (ctan_test_upward): Likewise.
17726         (ctanh_test): Likewise.
17727         (ctanh_test_tonearest): Likewise.
17728         (ctanh_test_towardzero): Likewise.
17729         (ctanh_test_downward): Likewise.
17730         (ctanh_test_upward): Likewise.
17731         (erf_test): Use END macro without arguments.
17732         (erfc_test): Likewise.
17733         (exp_test): Likewise.
17734         (exp_test_tonearest): Likewise.
17735         (exp_test_towardzero): Likewise.
17736         (exp_test_downward): Likewise.
17737         (exp_test_upward): Likewise.
17738         (exp10_test): Likewise.
17739         (exp2_test): Likewise.
17740         (expm1_test): Likewise.
17741         (fabs_test): Likewise.
17742         (fdim_test): Likewise.
17743         (finite_test): Likewise.
17744         (floor_test): Likewise.
17745         (fma_test): Likewise.
17746         (fma_test_towardzero): Likewise.
17747         (fma_test_downward): Likewise.
17748         (fma_test_upward): Likewise.
17749         (fmax_test): Likewise.
17750         (fmin_test): Likewise.
17751         (fmod_test): Likewise.
17752         (fpclassify_test): Likewise.
17753         (frexp_test): Likewise.
17754         (gamma_test): Likewise.
17755         (hypot_test): Likewise.
17756         (ilogb_test): Likewise.
17757         (isfinite_test): Likewise.
17758         (isgreater_test): Likewise.
17759         (isgreaterequal_test): Likewise.
17760         (isinf_test): Likewise.
17761         (isless_test): Likewise.
17762         (islessequal_test): Likewise.
17763         (islessgreater_test): Likewise.
17764         (isnan_test): Likewise.
17765         (isnormal_test): Likewise.
17766         (issignaling_test): Likewise.
17767         (isunordered_test): Likewise.
17768         (j0_test): Likewise.
17769         (j1_test): Likewise.
17770         (jn_test): Likewise.
17771         (ldexp_test): Likewise.
17772         (lgamma_test): Likewise.
17773         (lrint_test): Likewise.
17774         (lrint_test_tonearest): Likewise.
17775         (lrint_test_towardzero): Likewise.
17776         (lrint_test_downward): Likewise.
17777         (lrint_test_upward): Likewise.
17778         (llrint_test): Likewise.
17779         (llrint_test_tonearest): Likewise.
17780         (llrint_test_towardzero): Likewise.
17781         (llrint_test_downward): Likewise.
17782         (llrint_test_upward): Likewise.
17783         (log_test): Likewise.
17784         (log10_test): Likewise.
17785         (log1p_test): Likewise.
17786         (log2_test): Likewise.
17787         (logb_test): Likewise.
17788         (logb_test_downward): Likewise.
17789         (lround_test): Likewise.
17790         (llround_test): Likewise.
17791         (modf_test): Likewise.
17792         (nearbyint_test): Likewise.
17793         (nextafter_test): Likewise.
17794         (nexttoward_test): Likewise.
17795         (pow_test): Likewise.
17796         (pow_test_tonearest): Likewise.
17797         (pow_test_towardzero): Likewise.
17798         (pow_test_downward): Likewise.
17799         (pow_test_upward): Likewise.
17800         (remainder_test): Likewise.
17801         (remainder_test_tonearest): Likewise.
17802         (remainder_test_towardzero): Likewise.
17803         (remainder_test_downward): Likewise.
17804         (remainder_test_upward): Likewise.
17805         (remquo_test): Likewise.
17806         (rint_test): Likewise.
17807         (rint_test_tonearest): Likewise.
17808         (rint_test_towardzero): Likewise.
17809         (rint_test_downward): Likewise.
17810         (rint_test_upward): Likewise.
17811         (round_test): Likewise.
17812         (scalb_test): Likewise.
17813         (scalbn_test): Likewise.
17814         (scalbln_test): Likewise.
17815         (signbit_test): Likewise.
17816         (sin_test): Likewise.
17817         (sin_test_tonearest): Likewise.
17818         (sin_test_towardzero): Likewise.
17819         (sin_test_downward): Likewise.
17820         (sin_test_upward): Likewise.
17821         (sincos_test): Likewise.
17822         (sinh_test): Likewise.
17823         (sinh_test_tonearest): Likewise.
17824         (sinh_test_towardzero): Likewise.
17825         (sinh_test_downward): Likewise.
17826         (sinh_test_upward): Likewise.
17827         (sqrt_test): Likewise.
17828         (tan_test): Likewise.
17829         (tan_test_tonearest): Likewise.
17830         (tan_test_towardzero): Likewise.
17831         (tan_test_downward): Likewise.
17832         (tan_test_upward): Likewise.
17833         (tanh_test): Likewise.
17834         (tgamma_test): Likewise.
17835         (trunc_test): Likewise.
17836         (y0_test): Likewise.
17837         (y1_test): Likewise.
17838         (yn_test): Likewise.
17839         (significand_test): Likewise.
17840
17841 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
17842
17843         [BZ #15381]
17844         * libio/genops.c (_IO_no_init): Initialize wide struct info.
17845
17846 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17847
17848         [BZ #14894]
17849         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
17850         __ppc_mdoio and __ppc_mdoom.
17851         * manual/platform.texi: Document new functions __ppc_yield,
17852         __ppc_mdoio and __ppc_mdoom.
17853
17854 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
17855
17856         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
17857         (main): Mention "tls" pseudo-hwcap is legacy.
17858         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
17859
17860 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17861
17862         * math/gen-libm-test.pl (parse_args): Output only string of
17863         arguments as text for test name, not full call or descriptions of
17864         tests for extra outputs.
17865         (generate_testfile): Do not pass function name to parse_args.
17866         Generate this_func variable from START.
17867         * math/libm-test.inc (struct test_f_f_data): Rename test_name
17868         field to arg_str.
17869         (struct test_ff_f_data): Likewise.
17870         (test_ff_f_data_nexttoward): Likewise.
17871         (struct test_fi_f_data): Likewise.
17872         (struct test_fl_f_data): Likewise.
17873         (struct test_if_f_data): Likewise.
17874         (struct test_fff_f_data): Likewise.
17875         (struct test_c_f_data): Likewise.
17876         (struct test_f_f1_data): Likewise.  Remove field extra_name.
17877         (struct test_fF_f1_data): Likewise.
17878         (struct test_ffI_f1_data): Likewise.
17879         (struct test_c_c_data): Rename test_name field to arg_str.
17880         (struct test_cc_c_data): Likewise.
17881         (struct test_f_i_data): Likewise.
17882         (struct test_ff_i_data): Likewise.
17883         (struct test_f_l_data): Likewise.
17884         (struct test_f_L_data): Likewise.
17885         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
17886         and extra2_name.
17887         (COMMON_TEST_SETUP): New macro.
17888         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
17889         (COMMON_TEST_CLEANUP): Likewise.
17890         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
17891         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
17892         macros.
17893         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
17894         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
17895         macros.
17896         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
17897         (RUN_TEST_fff_f): Take argument string.  Call new setup and
17898         cleanup macros.
17899         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
17900         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
17901         macros.
17902         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
17903         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
17904         macros.
17905         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
17906         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
17907         cleanup macros.
17908         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
17909         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
17910         cleanup macros.
17911         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
17912         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
17913         cleanup macros.
17914         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
17915         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
17916         macros.
17917         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
17918         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
17919         macros.
17920         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
17921         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
17922         macros.
17923         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
17924         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
17925         cleanup macros.
17926         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
17927         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
17928         cleanup macros.
17929         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
17930         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
17931         macros.
17932         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
17933         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
17934         cleanup macros.
17935         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
17936         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
17937         macros.
17938         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
17939         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
17940         macros.
17941         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
17942         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
17943         cleanup macros.
17944         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
17945
17946 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
17947
17948         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
17949         to _sifields.sigfault.
17950         (si_addr_lsb): Define new macro.
17951         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17952         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17953         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
17954
17955 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
17956
17957         [BZ #15441]
17958         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
17959         returns -1.
17960         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
17961         null return -1.
17962         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
17963         loading the domain.
17964
17965 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
17966
17967         * math/gen-libm-test.pl (parse_args): Do not include expected
17968         result in test name.
17969         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
17970         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17971         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17972         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
17973         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17974         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17975
17976 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
17977
17978         * benchtests/Makefile: Sort function entries.
17979
17980         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
17981         tanh, asinh, acosh, atanh.
17982         * benchtests/acos-inputs: New file.
17983         * benchtests/acosh-inputs: New file.
17984         * benchtests/asin-inputs: New file.
17985         * benchtests/asinh-inputs: New file.
17986         * benchtests/atanh-inputs: New file.
17987         * benchtests/cosh-inputs: New file.
17988         * benchtests/log-inputs: New file.
17989         * benchtests/sinh-inputs: New file.
17990         * benchtests/tanh-inputs: New file.
17991
17992 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
17993
17994         [BZ #15339]
17995         * posix/tst-getaddrinfo4.c: New test.
17996         * posix/Makefile (tests): Add it.
17997
17998 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
17999
18000         [BZ #15339]
18001         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
18002         when no services were used.
18003         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
18004         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
18005
18006 2013-05-21  Andreas Schwab  <schwab@suse.de>
18007
18008         [BZ #15014]
18009         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
18010         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
18011         successful.
18012         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
18013         redundant variable declarations and reallocation of buffer when
18014         parsing as IPv6 address.  Always set NSS status when called from
18015         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
18016         buffer too small.  Correct computation of needed size.
18017         * nss/Makefile (tests): Add test-digits-dots.
18018         * nss/test-digits-dots.c: New test.
18019
18020 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18021
18022         * benchtests/Makefile: Remove instructions for adding
18023         benchmark tests.
18024         * benchtests/README: New file to explain how to execute and
18025         enhance the benchmark tests.
18026
18027 2013-05-21  Andreas Schwab  <schwab@suse.de>
18028
18029         [BZ #15493]
18030         * setjmp/Makefile (tests): Add tst-sigsetjmp.
18031         * setjmp/tst-sigsetjmp.c: New test.
18032
18033 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
18034
18035         * sysdeps/x86_64/memset.S (memset): New implementation.
18036         (__bzero): Likewise.
18037         (__memset_tail): New function.
18038
18039 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
18040
18041         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
18042         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
18043         __memcpy_sse2_unaligned ifunc selection.
18044         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
18045         Add memcpy-sse2-unaligned.S.
18046         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
18047         Add: __memcpy_sse2_unaligned.
18048
18049 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
18050
18051         [BZ #15490]
18052         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
18053         math_force_eval before restoring floating-point envrionment.
18054         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
18055         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
18056         Likewise.
18057         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
18058         <math_private.h>.
18059         (__nearbyintl): Use math_force_eval before restoring
18060         floating-point environment.
18061         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
18062
18063         * math/gen-libm-test.pl (special_functions): Remove.
18064         (parse_args): Don't handle TEST_extra.  Handle functions with no
18065         return value.
18066         * math/libm-test.inc (struct test_sincos_data): Replace with
18067         struct test_fFF_11_data.
18068         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
18069         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
18070         (sincos_test_data): Change element type to struct
18071         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
18072         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
18073         RUN_TEST_LOOP_sincos.
18074         * math/README.libm-test: Don't mention special handling of
18075         individual functions.
18076         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
18077         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18078         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18079         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18080         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18082
18083         * math/gen-libm-test.pl (get_variable): Remove function.
18084         (parse_args): Don't show pointer parameters to call in test
18085         names.  Use "extra output N" in test names for extra outputs
18086         rather than naming variables.
18087
18088 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
18089
18090         [BZ #15488]
18091         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
18092         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
18093         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
18094         double tests.
18095         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
18096         disable.
18097         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
18098         check_long_double.
18099
18100         * math/gen-libm-test.pl (@tests): Remove variable.
18101         ($count): Likewise.
18102         (new_test): Remove function.
18103         (show_exceptions): New function.
18104         (special_functions): Use show_exceptions instead of new_test.
18105         (parse_args): Likewise.
18106         (generate_testfile): Pass only function name in generated call to
18107         print_max_error or print_complex_max_error.
18108         (get_ulps): Do not handle complex tests specially.
18109         (output_test): Rename to ...
18110         (get_all_ulps_for_test): ... this.  Return a string rather than
18111         printing to a file.  Require ulps to be present.
18112         (output_ulps): Generate arrays rather than #defines.
18113         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
18114         (struct ulp_data): New type.
18115         (BUILD_COMPLEX_ULP): Remove macro.
18116         (compare_ulp_data): New function.
18117         (find_ulps): Likewise.
18118         (find_test_ulps): Likewise.
18119         (find_function_ulps): Likewise.
18120         (find_complex_function_ulps): Likewise.
18121         (print_max_error): Determine allowed ulps using
18122         find_function_ulps.
18123         (print_complex_max_error): Determine allowed ulps using
18124         find_complex_function_ulps.
18125         (check_float_internal): Determine max ulps using find_test_ulps.
18126         (check_float): Do not take max_ulp parameter.  Update call to
18127         check_float_internal.
18128         (check_complex): Likewise.
18129         (check_int): Do not take max_ulp parameter.
18130         (check_long): Likewise.
18131         (check_bool): Likewise.
18132         (check_longlong): Likewise.
18133         (struct test_f_f_data): Remove max_ulp field.
18134         (struct test_ff_f_data): Likewise.
18135         (struct test_ff_f_data_nexttoward): Likewise.
18136         (struct test_fi_f_data): Likewise.
18137         (struct test_fl_f_data): Likewise.
18138         (struct test_if_f_data): Likewise.
18139         (struct test_fff_f_data): Likewise.
18140         (struct test_c_f_data): Likewise.
18141         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
18142         (struct test_fF_f1_data): Likewise.
18143         (struct test_ffI_f1_data): Likewise.
18144         (struct test_c_c_data): Remove max_ulp field.
18145         (struct test_cc_c_data): Likewise.
18146         (struct test_f_i_data): Likewise.
18147         (struct test_ff_i_data): Likewise.
18148         (struct test_f_l_data): Likewise.
18149         (struct test_f_L_data): Likewise.
18150         (struct test_sincos_data): Likewise.
18151         (RUN_TEST_f_f): Do not handle ulps.
18152         (RUN_TEST_LOOP_f_f): Likewise.
18153         (RUN_TEST_2_f): Likewise.
18154         (RUN_TEST_LOOP_2_f): Likewise.
18155         (RUN_TEST_fff_f): Likewise.
18156         (RUN_TEST_LOOP_fff_f): Likewise.
18157         (RUN_TEST_c_f): Likewise.
18158         (RUN_TEST_LOOP_c_f): Likewise.
18159         (RUN_TEST_f_f1): Likewise.
18160         (RUN_TEST_LOOP_f_f1): Likewise.
18161         (RUN_TEST_fF_f1): Likewise.
18162         (RUN_TEST_LOOP_fF_f1): Likewise.
18163         (RUN_TEST_fI_f1): Likewise.
18164         (RUN_TEST_LOOP_fI_f1): Likewise.
18165         (RUN_TEST_ffI_f1): Likewise.
18166         (RUN_TEST_LOOP_ffI_f1): Likewise.
18167         (RUN_TEST_c_c): Likewise.
18168         (RUN_TEST_LOOP_c_c): Likewise.
18169         (RUN_TEST_cc_c): Likewise.
18170         (RUN_TEST_LOOP_cc_c): Likewise.
18171         (RUN_TEST_f_i): Likewise.
18172         (RUN_TEST_LOOP_f_i): Likewise.
18173         (RUN_TEST_f_i_tg): Likewise.
18174         (RUN_TEST_LOOP_f_i_tg): Likewise.
18175         (RUN_TEST_ff_i_tg): Likewise.
18176         (RUN_TEST_LOOP_ff_i_tg): Likewise.
18177         (RUN_TEST_f_b): Likewise.
18178         (RUN_TEST_LOOP_f_b): Likewise.
18179         (RUN_TEST_f_b_tg): Likewise.
18180         (RUN_TEST_LOOP_f_b_tg): Likewise.
18181         (RUN_TEST_f_l): Likewise.
18182         (RUN_TEST_LOOP_f_l): Likewise.
18183         (RUN_TEST_f_L): Likewise.
18184         (RUN_TEST_LOOP_f_L): Likewise.
18185         (RUN_TEST_sincos): Likewise.
18186         (RUN_TEST_LOOP_sincos): Likewise.
18187
18188 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
18189
18190         [BZ #15480]
18191         [BZ #15485]
18192         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
18193         main case of finite arguments, set rounding mode to FE_TONEAREST
18194         and discard exceptions.
18195         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
18196         exceptions.
18197         (remainder_tonearest_test_data): New variable.
18198         (remainder_test_tonearest): New function.
18199         (remainder_towardzero_test_data): New variable.
18200         (remainder_test_towardzero): New function.
18201         (remainder_downward_test_data): New variable.
18202         (remainder_test_downward): New function.
18203         (remainder_upward_test_data): New variable.
18204         (remainder_test_upward): New function.
18205         (main): Call the new test functions.
18206
18207         * math/libm-test.inc (struct test_f_f1_data): Remove field
18208         extra_init.
18209         (struct test_fF_f1_data): Likewise.
18210         (struct test_ffI_f1_data): Likewise.
18211         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
18212         based on value of EXTRA_EXPECTED.
18213         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
18214         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
18215         EXTRA_VAR based on value of EXTRA_EXPECTED.
18216         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
18217         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
18218         EXTRA_VAR based on value of EXTRA_EXPECTED.
18219         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
18220         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
18221         EXTRA_VAR based on value of EXTRA_EXPECTED.
18222         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
18223         * math/gen-libm-test.pl (parse_args): Don't output initializers
18224         for extra output values.
18225
18226         * math/libm-test.inc (check_int): Expect result to be exactly
18227         equal to expected value and do not handle ulps.
18228         (check_long): Likewise.
18229         (check_longlong): Likewise.
18230
18231         * math/libm-test.inc (ceil_test_data): Test for "inexact"
18232         exceptions.
18233         (cimag_test_data): Likewise.
18234         (conj_test_data): Likewise.
18235         (copysign_test_data): Likewise.
18236         (cproj_test_data): Likewise.
18237         (creal_test_data): Likewise.
18238         (fabs_test_data): Likewise.
18239         (fdim_test_data): Likewise.
18240         (finite_test_data): Likewise.
18241         (floor_test_data): Likewise.
18242         (fmax_test_data): Likewise.
18243         (fmin_test_data): Likewise.
18244         (fmod_test_data): Likewise.
18245         (fpclassify_test_data): Likewise.
18246         (frexp_test_data): Likewise.
18247         (ilogb_test_data): Likewise.
18248         (isfinite_test_data): Likewise.
18249         (isgreater_test_data): Likewise.
18250         (isgreaterequal_test_data): Likewise.
18251         (isinf_test_data): Likewise.
18252         (isless_test_data): Likewise.
18253         (islessequal_test_data): Likewise.
18254         (islessgreater_test_data): Likewise.
18255         (isnan_test_data): Likewise.
18256         (isnormal_test_data): Likewise.
18257         (issignaling_test_data): Likewise.
18258         (isunordered_test_data): Likewise.
18259         (ldexp_test_data): Likewise.
18260         (lrint_test_data): Likewise.
18261         (lrint_test_data) [TEST_FLOAT]: Disable one test.
18262         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
18263         (lrint_tonearest_test_data): Test for "inexact" exceptions.
18264         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
18265         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
18266         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
18267         test input.
18268         (lrint_towardzero_test_data): Test for "inexact" exceptions.
18269         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
18270         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
18271         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
18272         that test input.
18273         (lrint_downward_test_data): Test for "inexact" exceptions.
18274         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
18275         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
18276         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
18277         test input.
18278         (lrint_upward_test_data): Test for "inexact" exceptions.
18279         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
18280         test input.
18281         (llrint_test_data): Test for "inexact" exceptions.
18282         (llrint_test_data) [TEST_FLOAT]: Disable one test.
18283         (llrint_tonearest_test_data): Test for "inexact" exceptions.
18284         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
18285         (llrint_towardzero_test_data): Test for "inexact" exceptions.
18286         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
18287         (llrint_downward_test_data): Test for "inexact" exceptions.
18288         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
18289         (llrint_upward_test_data): Test for "inexact" exceptions.
18290         (logb_test_data): Likewise.
18291         (logb_downward_test_data): Likewise.
18292         (nextafter_test_data): Likewise.
18293         (nexttoward_test_data): Likewise.
18294         (remainder_test_data): Likewise.
18295         (remquo_test_data): Likewise.
18296         (scalbn_test_data): Likewise.
18297         (scalbln_test_data): Likewise.
18298         (signbit_test_data): Likewise.
18299         (sqrt_test_data): Likewise.
18300         (significand_test_data): Likewise.
18301
18302 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
18303
18304         [BZ #15424]
18305         * benchtests/bench-modf.c (struct args): Mark arg0 as
18306         volatile.
18307         * scripts/bench.pl: Mark members of struct args as volatile.
18308
18309 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18310
18311         [BZ # 15497]
18312         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
18313         negative infinity on POWER6 or lower.
18314         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
18315
18316 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
18317
18318         [BZ #15442]
18319         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
18320         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
18321         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
18322         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
18323         (_FP_SETQNAN): New macro.
18324         (_FP_SETQNAN_SEMIRAW): Likewise.
18325         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
18326         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
18327         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
18328         (FP_EXTEND): Use _FP_FRAC_SNANP.
18329         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
18330         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
18331         into account.
18332         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
18333         New macro.
18334         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
18335         Likewise.
18336
18337 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18338
18339         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
18340         with DIVIDE_BY_ZERO_EXCEPTION.
18341         (gamma_test_data): Likewise.
18342         (lgamma_test_data): Likewise.
18343         (log_test_data): Likewise.
18344         (log10_test_data): Likewise.
18345         (log2_test_data): Likewise.
18346         (tgamma_test_data): Likewise.
18347
18348         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
18349         (acos_test_tonearest): Likewise.
18350         (acos_test_towardzero): Likewise.
18351         (acos_test_downward): Likewise.
18352         (acos_test_upward): Likewise.
18353         (acosh_test): Likewise.
18354         (asin_test): Likewise.
18355         (asin_test_tonearest): Likewise.
18356         (asin_test_towardzero): Likewise.
18357         (asin_test_downward): Likewise.
18358         (asin_test_upward): Likewise.
18359         (asinh_test): Likewise.
18360         (atan_test): Likewise.
18361         (atanh_test): Likewise.
18362         (atan2_test): Likewise.
18363         (cabs_test): Likewise.
18364         (cacos_test): Likewise.
18365         (cacosh_test): Likewise.
18366         (casin_test): Likewise.
18367         (casinh_test): Likewise.
18368         (catan_test): Likewise.
18369         (catanh_test): Likewise.
18370         (cbrt_test): Likewise.
18371         (ccos_test): Likewise.
18372         (ccosh_test): Likewise.
18373         (cexp_test): Likewise.
18374         (clog_test): Likewise.
18375         (clog10_test): Likewise.
18376         (cos_test): Likewise.
18377         (cos_test_tonearest): Likewise.
18378         (cos_test_towardzero): Likewise.
18379         (cos_test_downward): Likewise.
18380         (cos_test_upward): Likewise.
18381         (cosh_test): Likewise.
18382         (cosh_test_tonearest): Likewise.
18383         (cosh_test_towardzero): Likewise.
18384         (cosh_test_downward): Likewise.
18385         (cosh_test_upward): Likewise.
18386         (cpow_test): Likewise.
18387         (csin_test): Likewise.
18388         (csinh_test): Likewise.
18389         (csqrt_test): Likewise.
18390         (ctan_test): Likewise.
18391         (ctan_test_tonearest): Likewise.
18392         (ctan_test_towardzero): Likewise.
18393         (ctan_test_downward): Likewise.
18394         (ctan_test_upward): Likewise.
18395         (ctanh_test): Likewise.
18396         (ctanh_test_tonearest): Likewise.
18397         (ctanh_test_towardzero): Likewise.
18398         (ctanh_test_downward): Likewise.
18399         (ctanh_test_upward): Likewise.
18400         (erf_test): Likewise.
18401         (erfc_test): Likewise.
18402         (exp_test): Likewise.
18403         (exp_test_tonearest): Likewise.
18404         (exp_test_towardzero): Likewise.
18405         (exp_test_downward): Likewise.
18406         (exp_test_upward): Likewise.
18407         (exp10_test): Likewise.
18408         (exp2_test): Likewise.
18409         (expm1_test): Likewise.
18410         (fmod_test): Likewise.
18411         (gamma_test): Likewise.
18412         (hypot_test): Likewise.
18413         (j0_test): Likewise.
18414         (j1_test): Likewise.
18415         (jn_test): Likewise.
18416         (lgamma_test): Likewise.
18417         (log_test): Likewise.
18418         (log10_test): Likewise.
18419         (log1p_test): Likewise.
18420         (log2_test): Likewise.
18421         (logb_test_downward): Likewise.
18422         (pow_test): Likewise.
18423         (pow_test_tonearest): Likewise.
18424         (pow_test_towardzero): Likewise.
18425         (pow_test_downward): Likewise.
18426         (pow_test_upward): Likewise.
18427         (remainder_test): Likewise.
18428         (remquo_test): Likewise.
18429         (sin_test): Likewise.
18430         (sin_test_tonearest): Likewise.
18431         (sin_test_towardzero): Likewise.
18432         (sin_test_downward): Likewise.
18433         (sin_test_upward): Likewise.
18434         (sincos_test): Likewise.
18435         (sinh_test): Likewise.
18436         (sinh_test_tonearest): Likewise.
18437         (sinh_test_towardzero): Likewise.
18438         (sinh_test_downward): Likewise.
18439         (sinh_test_upward): Likewise.
18440         (sqrt_test): Likewise.
18441         (tan_test): Likewise.
18442         (tan_test_tonearest): Likewise.
18443         (tan_test_towardzero): Likewise.
18444         (tan_test_downward): Likewise.
18445         (tan_test_upward): Likewise.
18446         (tanh_test): Likewise.
18447         (tgamma_test): Likewise.
18448         (y0_test): Likewise.
18449         (y1_test): Likewise.
18450         (yn_test): Likewise.
18451
18452         * math/gen-libm-test.pl (adjust_arg): Remove function.
18453         (special_function): Remove argument $in_func.  Only handle
18454         generating output for tables of tests, not inside functions.
18455         (parse_args): Likewise.
18456         (generate_testfile): Remove variable $in_func.  Update call to
18457         parse_args.
18458         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
18459         (MINUS_ZERO_INIT): Rename macro to minus_zero.
18460         (PLUS_INFTY_INIT): Rename macro to plus_infty.
18461         (MINUS_INFTY_INIT): Rename macro to minus_infty.
18462         (QNAN_VALUE_INIT): Rename macro to qnan_value.
18463         (MAX_VALUE_INIT): Rename macro to max_value.
18464         (MIN_VALUE_INIT): Rename macro to min_value.
18465         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
18466         (plus_zero): Remove variable.
18467         (minus_zero): Likewise.
18468         (plus_infty): Likewise.
18469         (minus_infty): Likewise.
18470         (qnan_value): Likewise.
18471         (max_value): Likewise.
18472         (min_value): Likewise.
18473         (min_subnorm_value): Likewise.
18474
18475 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
18476
18477         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
18478         uint64_t or uint32_t usage.
18479         * crypt/sha256-block.c: Likewise.
18480         * crypt/sha256-crypt.c: Likewise.
18481         * crypt/sha256.c: Likewise.
18482         * crypt/sha512-block.c: Likewise.
18483         * crypt/sha512-crypt.c: Likewise.
18484         * crypt/sha512.c: Likewise.
18485         * debug/backtrace-tst.c: Likewise.
18486         * debug/pcprofiledump.c: Likewise.
18487         * elf/cache.c: Likewise.
18488         * elf/dl-cache.c: Likewise.
18489         * elf/dl-misc.c: Likewise.
18490         * elf/dl-profile.c: Likewise.
18491         * elf/dl-support.c: Likewise.
18492         * elf/ldconfig.c: Likewise.
18493         * elf/sprof.c: Likewise.
18494         * iconv/dummy-repertoire.c: Likewise.
18495         * iconv/iconv_charmap.c: Likewise.
18496         * iconv/skeleton.c: Likewise.
18497         * iconvdata/8bit-generic.c: Likewise.
18498         * iconvdata/cp737.h: Likewise.
18499         * iconvdata/cp775.h: Likewise.
18500         * iconvdata/ibm1008.h: Likewise.
18501         * iconvdata/ibm1025.h: Likewise.
18502         * iconvdata/ibm1046.h: Likewise.
18503         * iconvdata/ibm1097.h: Likewise.
18504         * iconvdata/ibm1112.h: Likewise.
18505         * iconvdata/ibm1122.h: Likewise.
18506         * iconvdata/ibm1123.h: Likewise.
18507         * iconvdata/ibm1124.h: Likewise.
18508         * iconvdata/ibm1129.h: Likewise.
18509         * iconvdata/ibm1130.h: Likewise.
18510         * iconvdata/ibm1132.h: Likewise.
18511         * iconvdata/ibm1133.h: Likewise.
18512         * iconvdata/ibm1137.h: Likewise.
18513         * iconvdata/ibm1140.h: Likewise.
18514         * iconvdata/ibm1141.h: Likewise.
18515         * iconvdata/ibm1142.h: Likewise.
18516         * iconvdata/ibm1143.h: Likewise.
18517         * iconvdata/ibm1144.h: Likewise.
18518         * iconvdata/ibm1145.h: Likewise.
18519         * iconvdata/ibm1146.h: Likewise.
18520         * iconvdata/ibm1147.h: Likewise.
18521         * iconvdata/ibm1148.h: Likewise.
18522         * iconvdata/ibm1149.h: Likewise.
18523         * iconvdata/ibm1153.h: Likewise.
18524         * iconvdata/ibm1154.h: Likewise.
18525         * iconvdata/ibm1155.h: Likewise.
18526         * iconvdata/ibm1156.h: Likewise.
18527         * iconvdata/ibm1157.h: Likewise.
18528         * iconvdata/ibm1158.h: Likewise.
18529         * iconvdata/ibm1160.h: Likewise.
18530         * iconvdata/ibm1161.h: Likewise.
18531         * iconvdata/ibm1162.h: Likewise.
18532         * iconvdata/ibm1163.h: Likewise.
18533         * iconvdata/ibm1164.h: Likewise.
18534         * iconvdata/ibm1166.h: Likewise.
18535         * iconvdata/ibm1167.h: Likewise.
18536         * iconvdata/ibm12712.h: Likewise.
18537         * iconvdata/ibm1390.h: Likewise.
18538         * iconvdata/ibm1399.h: Likewise.
18539         * iconvdata/ibm16804.h: Likewise.
18540         * iconvdata/ibm4517.h: Likewise.
18541         * iconvdata/ibm4899.h: Likewise.
18542         * iconvdata/ibm4909.h: Likewise.
18543         * iconvdata/ibm4971.h: Likewise.
18544         * iconvdata/ibm5347.h: Likewise.
18545         * iconvdata/ibm803.h: Likewise.
18546         * iconvdata/ibm856.h: Likewise.
18547         * iconvdata/ibm901.h: Likewise.
18548         * iconvdata/ibm902.h: Likewise.
18549         * iconvdata/ibm9030.h: Likewise.
18550         * iconvdata/ibm9066.h: Likewise.
18551         * iconvdata/ibm921.h: Likewise.
18552         * iconvdata/ibm922.h: Likewise.
18553         * iconvdata/ibm9448.h: Likewise.
18554         * iconvdata/isiri-3342.h: Likewise.
18555         * iconvdata/jis0201.h: Likewise.
18556         * include/link.h: Likewise.
18557         * include/netdb.h: Likewise.
18558         * inet/check_native.c: Likewise.
18559         * inet/check_pf.c: Likewise.
18560         * inet/getipv4sourcefilter.c: Likewise.
18561         * inet/getnameinfo.c: Likewise.
18562         * inet/getsourcefilter.c: Likewise.
18563         * inet/htonl.c: Likewise.
18564         * inet/setipv4sourcefilter.c: Likewise.
18565         * inet/setsourcefilter.c: Likewise.
18566         * inet/test-inet6_opt.c: Likewise.
18567         * inet/tst-network.c: Likewise.
18568         * locale/C-collate.c: Likewise.
18569         * locale/C-ctype.c: Likewise.
18570         * locale/C-time.c: Likewise.
18571         * locale/C-translit.h: Likewise.
18572         * locale/loadarchive.c: Likewise.
18573         * locale/programs/3level.h: Likewise.
18574         * locale/programs/charmap.c: Likewise.
18575         * locale/programs/charmap.h: Likewise.
18576         * locale/programs/ld-address.c: Likewise.
18577         * locale/programs/ld-collate.c: Likewise.
18578         * locale/programs/ld-ctype.c: Likewise.
18579         * locale/programs/ld-identification.c: Likewise.
18580         * locale/programs/ld-measurement.c: Likewise.
18581         * locale/programs/ld-messages.c: Likewise.
18582         * locale/programs/ld-monetary.c: Likewise.
18583         * locale/programs/ld-name.c: Likewise.
18584         * locale/programs/ld-numeric.c: Likewise.
18585         * locale/programs/ld-paper.c: Likewise.
18586         * locale/programs/ld-telephone.c: Likewise.
18587         * locale/programs/ld-time.c: Likewise.
18588         * locale/programs/linereader.c: Likewise.
18589         * locale/programs/locale.c: Likewise.
18590         * locale/programs/locarchive.c: Likewise.
18591         * locale/programs/locfile.h: Likewise.
18592         * locale/programs/repertoire.c: Likewise.
18593         * locale/programs/simple-hash.c: Likewise.
18594         * locale/programs/simple-hash.h: Likewise.
18595         * malloc/memusage.c: Likewise.
18596         * malloc/memusagestat.c: Likewise.
18597         * nis/nis_defaults.c: Likewise.
18598         * nis/nis_hash.c: Likewise.
18599         * nis/nis_print.c: Likewise.
18600         * nis/nis_xdr.c: Likewise.
18601         * nscd/connections.c: Likewise.
18602         * nscd/hstcache.c: Likewise.
18603         * nscd/nscd_gethst_r.c: Likewise.
18604         * nscd/nscd_getserv_r.c: Likewise.
18605         * nscd/nscd_helper.c: Likewise.
18606         * nscd/servicescache.c: Likewise.
18607         * nss/makedb.c: Likewise.
18608         * nss/nss_db/db-XXX.c: Likewise.
18609         * nss/nss_db/db-initgroups.c: Likewise.
18610         * nss/nss_db/db-netgrp.c: Likewise.
18611         * nss/nss_files/files-network.c: Likewise.
18612         * nss/nss_files/files-parse.c: Likewise.
18613         * posix/bug-regex5.c: Likewise.
18614         * posix/fnmatch_loop.c: Likewise.
18615         * posix/regcomp.c: Likewise.
18616         * posix/regexec.c: Likewise.
18617         * posix/tst-rfc3484-2.c: Likewise.
18618         * posix/tst-rfc3484-3.c: Likewise.
18619         * posix/tst-rfc3484.c: Likewise.
18620         * resolv/nss_dns/dns-canon.c: Likewise.
18621         * resolv/nss_dns/dns-network.c: Likewise.
18622         * resolv/res_init.c: Likewise.
18623         * resolv/res_mkquery.c: Likewise.
18624         * resolv/tst-aton.c: Likewise.
18625         * stdlib/cxa_atexit.c: Likewise.
18626         * stdlib/cxa_finalize.c: Likewise.
18627         * stdlib/gen-fpioconst.c: Likewise.
18628         * stdlib/strtol_l.c: Likewise.
18629         * string/tst-endian.c: Likewise.
18630         * sunrpc/auth_des.c: Likewise.
18631         * sunrpc/clnt_udp.c: Likewise.
18632         * sunrpc/rtime.c: Likewise.
18633         * sunrpc/svcauth_des.c: Likewise.
18634         * sunrpc/xdr.c: Likewise.
18635         * sunrpc/xdr_intXX_t.c: Likewise.
18636         * sunrpc/xdr_rec.c: Likewise.
18637         * sysdeps/generic/ldconfig.h: Likewise.
18638         * sysdeps/generic/ldsodefs.h: Likewise.
18639         * sysdeps/generic/memusage.h: Likewise.
18640         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
18641         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
18642         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
18643         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
18644         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
18645         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
18646         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
18647         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
18648         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
18649         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
18650         * sysdeps/posix/getaddrinfo.c: Likewise.
18651         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18652         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18653         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
18654         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
18655         * sysdeps/powerpc/test-gettimebase.c: Likewise.
18656         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
18657         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
18658         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
18659         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
18660         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
18661         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
18662         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
18663         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
18664         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
18665         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
18666         * sysdeps/x86_64/dl-tls.h: Likewise.
18667         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
18668         * time/alt_digit.c: Likewise.
18669         * time/era.c: Likewise.
18670         * wcsmbs/tst-c16c32-1.c: Likewise.
18671
18672 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18673
18674         * math/libm-test.inc (struct test_sincos_data): New type.
18675         (RUN_TEST_LOOP_sincos): New macro.
18676         (sincos_test_data): New variable.
18677         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
18678
18679 2013-05-16  Richard Henderson  <rth@redhat.com>
18680
18681         * math/atest-exp2.c (LIMB64): New macro.
18682         (CONSTSZ): New macro.
18683         (mp_exp1, mp_exp_m1, mp_log2): New variables.
18684         (hexdig): Move ...
18685         (print_mpn_fp): ... to function scope.
18686         (read_mpn_hex): Remove.
18687         (get_log2): Remove.
18688         (exp2_mpn): Use mp_log2.
18689         (main): Use mp_exp1.
18690
18691 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
18692
18693         * math/libm-test.inc: Remove comment about not testing "inexact"
18694         exceptions.
18695         (INEXACT_EXCEPTION): New macro.
18696         (NO_INEXACT_EXCEPTION): Likewise.
18697         (INVALID_EXCEPTION_OK): Update value.
18698         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
18699         (OVERFLOW_EXCEPTION_OK): Likewise.
18700         (UNDERFLOW_EXCEPTION_OK): Likewise.
18701         (IGNORE_ZERO_INF_SIGN): Likewise.
18702         (ERRNO_UNCHANGED): Likewise.
18703         (ERRNO_EDOM): Likewise.
18704         (ERRNO_ERANGE): Likewise.
18705         (test_exceptions): Handle testing "inexact" exceptions.
18706         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
18707         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
18708         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
18709         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
18710         INEXACT_EXCEPTION.
18711         (rint_towardzero_test_data): Likewise.
18712         (rint_downward_test_data): Likewise.
18713         (rint_upward_test_data): Likewise.
18714
18715         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
18716         with OVERFLOW_EXCEPTION.
18717         (exp10_test_data): Likewise.
18718         (exp2_test_data): Likewise.
18719         (expm1_test_data): Likewise.
18720         (lgamma_test_data): Likewise.
18721         (pow_test_data): Likewise.
18722         (tgamma_test_data): Likewise.
18723         (yn_test_data): Remove duplicate test of overflow.
18724
18725         * math/libm-test.inc (struct test_cc_c_data): New type.
18726         (RUN_TEST_LOOP_cc_c): New macro.
18727         (cpow_test_data): New variable.
18728         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
18729
18730         * math/libm-test.inc (struct test_f_L_data): New type.
18731         (RUN_TEST_LOOP_f_L): New macro.
18732         (llrint_test_data): New variable.
18733         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
18734         (llrint_tonearest_test_data): New variable.
18735         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
18736         (llrint_towardzero_test_data): New variable.
18737         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
18738         (llrint_downward_test_data): New variable.
18739         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
18740         (llrint_upward_test_data): New variable.
18741         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
18742         (llround_test_data): New variable.
18743         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
18744
18745 2013-05-13  Peter Collingbourne  <pcc@google.com>
18746
18747         * math/atest-exp2.c (get_log2): Remove const attribute.
18748
18749 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18750
18751         * math/libm-test.inc (struct test_f_l_data): New type.
18752         (RUN_TEST_LOOP_f_l): New macro.
18753         (lrint_test_data): New variable.
18754         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
18755         (lrint_tonearest_test_data): New variable.
18756         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
18757         (lrint_towardzero_test_data): New variable.
18758         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
18759         (lrint_downward_test_data): New variable.
18760         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
18761         (lrint_upward_test_data): New variable.
18762         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
18763         (lround_test_data): New variable.
18764         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
18765
18766 2013-05-15  Peter Collingbourne  <pcc@google.com>
18767
18768         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
18769         (EXTRACT_WORDS64) Use where appropriate.
18770         (INSERT_WORDS64) Likewise.
18771
18772         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
18773         constraints with x constraints.
18774         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
18775
18776         * malloc/obstack.c (_obstack_compat): Add initializer.
18777
18778 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18779
18780         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
18781         si_trapno and add si_addr_lsb to _sifields.sigfault.
18782         (si_trapno): Remove macro.
18783         (si_addr_lsb): Define new macro.
18784         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18785
18786 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
18787
18788         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
18789         instead of TEST_f_l.
18790         (llrint_test_tonearest): Likewise.
18791         (llrint_test_towardzero): Likewise.
18792         (llrint_test_downward): Likewise.
18793         (llrint_test_upward): Likewise.
18794         (llround_test): Likewise.
18795
18796         * math/libm-test.inc (struct test_f_i_data): Add comment.
18797         (RUN_TEST_LOOP_f_b): New macro.
18798         (RUN_TEST_LOOP_f_b_tg): Likewise.
18799         (finite_test_data): New variable.
18800         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
18801         (isfinite_test_data): New variable.
18802         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18803         (isinf_test_data): New variable.
18804         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18805         (isnan_test_data): New variable.
18806         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18807         (isnormal_test_data): New variable.
18808         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18809         (issignaling_test_data): New variable.
18810         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18811         (signbit_test_data): New variable.
18812         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
18813
18814         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
18815         with INVALID_EXCEPTION.
18816         (acosh_test_data): Likewise.
18817         (asin_test_data): Likewise.
18818         (atanh_test_data): Likewise.
18819         (fmod_test_data): Likewise.
18820         (log_test_data): Likewise.
18821         (log10_test_data): Likewise.
18822         (log2_test_data): Likewise.
18823         (pow_test_data): Likewise.
18824         (sqrt_test_data): Likewise.
18825         (y0_test_data): Likewise.
18826         (y1_test_data): Likewise.
18827         (yn_test_data): Likewise.
18828
18829         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
18830         function contents.
18831
18832         * math/libm-test.inc (struct test_ff_i_data): New type.
18833         (RUN_TEST_LOOP_ff_i_tg): New macro.
18834         (isgreater_test_data): New variable.
18835         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18836         (isgreaterequal_test_data): New variable.
18837         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18838         (isless_test_data): New variable.
18839         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18840         (islessequal_test_data): New variable.
18841         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18842         (islessgreater_test_data): New variable.
18843         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18844         (isunordered_test_data): New variable.
18845         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
18846
18847 2013-05-14  David S. Miller  <davem@davemloft.net>
18848
18849         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18850
18851 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
18852
18853         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
18854
18855         * math/libm-test.inc (struct test_fF_f1_data): Change type of
18856         extra_test to int.
18857         (struct test_f_i_data): Change type of max_ulp to int.
18858
18859         * math/libm-test.inc (test_ffI_f1_data): New type.
18860         (RUN_TEST_LOOP_ffI_f1): New macro.
18861         (remquo_test_data): New variable.
18862         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
18863
18864         * setjmp/tst-setjmp-fp.c: New file.
18865         * setjmp/Makefile (tests): Add tst-setjmp-fp.
18866         (link-libm): New variable.
18867         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
18868
18869         * math/libm-test.inc (struct test_f_i_data): New type.
18870         (RUN_TEST_LOOP_f_i): New macro.
18871         (RUN_TEST_LOOP_f_i_tg): Likewise.
18872         (fpclassify_test_data): New variable.
18873         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
18874         (ilogb_test_data): New variable.
18875         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
18876
18877         * math/libm-test.inc (scalbln_test): Correct function name in END
18878         call.
18879
18880         * math/libm-test.inc (struct test_f_f1_data): Add comment.
18881         (RUN_TEST_LOOP_fI_f1): New macro.
18882         (frexp_test_data): New variable.
18883         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
18884
18885         * math/libm-test.inc (struct test_fF_f1_data): New type.
18886         (RUN_TEST_LOOP_fF_f1): New macro.
18887         (modf_test_data): New variable.
18888         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
18889
18890         * math/libm-test.inc (struct test_f_f1_data): New type.
18891         (RUN_TEST_LOOP_f_f1): New macro.
18892         (gamma_test_data): New variable.
18893         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18894         (lgamma_test_data): New variable.
18895         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
18896
18897 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
18898
18899         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
18900         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
18901         (main): Comment "tls" pseudo-hwcap.
18902
18903 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
18904
18905         * math/libm-test.inc (struct test_fl_f_data): New type.
18906         (RUN_TEST_LOOP_fl_f): New variable.
18907         (scalbln_test_data): New variable.
18908         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
18909
18910         * math/libm-test.inc (struct test_fi_f_data): New type.
18911         (RUN_TEST_LOOP_fi_f): New macro.
18912         (ldexp_test_data): New variable.
18913         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
18914         (scalbn_test_data): New variable.
18915         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
18916
18917         * math/libm-test.inc (struct test_c_f_data): New type.
18918         (RUN_TEST_LOOP_c_f): New macro.
18919         (cabs_test_data): New variable.
18920         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
18921         (carg_test_data): New variable.
18922         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
18923         (cimag_test_data): New variable.
18924         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
18925         (creal_test_data): New variable.
18926         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
18927
18928         * math/libm-test.inc (struct test_if_f_data): New type.
18929         (RUN_TEST_LOOP_if_f): New macro.
18930         (jn_test_data): New variable.
18931         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
18932         (yn_test_data): New variable.
18933         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
18934
18935         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
18936
18937 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18938
18939         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
18940         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
18941
18942 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
18943
18944         * benchtests/Makefile (CPPFLAGS-nonlib): Add
18945         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
18946         (bench-deps): Add bench-timing.h.
18947         * benchtests-bench-skeleton.c: Include bench-timing.h.
18948         (main): Use TIMING_* macros instead of clock_gettime.
18949         * benchtests/bench-timing.h: New file.
18950
18951         [BZ #14582]
18952         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
18953         Renamed from _LIB_VERSION.
18954         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
18955
18956 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
18957
18958         * math/libm-test.inc (struct test_fff_f_data): New type.
18959         (RUN_TEST_LOOP_fff_f): New macro.
18960         (fma_test_data): New variable.
18961         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
18962         (fma_towardzero_test_data): New variable.
18963         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
18964         (fma_downward_test_data): New variable.
18965         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
18966         (fma_upward_test_data): New variable.
18967         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
18968
18969         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
18970         (struct test_c_c_data): New type.
18971         (RUN_TEST_LOOP_c_c): New macro.
18972         (cacos_test_data): New variable.
18973         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
18974         (cacosh_test_data): New variable.
18975         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
18976         (casin_test_data): New variable.
18977         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
18978         (casinh_test_data): New variable.
18979         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
18980         (catan_test_data): New variable.
18981         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
18982         (catanh_test_data): New variable.
18983         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
18984         (ccos_test_data): New variable.
18985         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
18986         (ccosh_test_data): New variable.
18987         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
18988         (cexp_test_data): New variable.
18989         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
18990         (clog_test_data): New variable.
18991         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
18992         (clog10_test_data): New variable.
18993         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
18994         (conj_test_data): New variable.
18995         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
18996         (cproj_test_data): New variable.
18997         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
18998         (csin_test_data): New variable.
18999         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
19000         (csinh_test_data): New variable.
19001         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
19002         (csqrt_test_data): New variable.
19003         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
19004         (ctan_test_data): New variable.
19005         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
19006         (ctan_tonearest_test_data): New variable.
19007         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
19008         (ctan_towardzero_test_data): New variable.
19009         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
19010         (ctan_downward_test_data): New variable.
19011         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
19012         (ctan_upward_test_data): New variable.
19013         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
19014         (ctanh_test_data): New variable.
19015         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
19016         (ctanh_tonearest_test_data): New variable.
19017         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
19018         (ctanh_towardzero_test_data): New variable.
19019         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
19020         (ctanh_downward_test_data): New variable.
19021         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
19022         (ctanh_upward_test_data): New variable.
19023         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
19024         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
19025         of BUILD_COMPLEX.
19026
19027         * math/libm-test.inc (struct test_ff_f_data): New type.
19028         (struct test_ff_f_data_nexttoward): Likewise.
19029         (RUN_TEST_LOOP_2_f): New macro.
19030         (RUN_TEST_LOOP_ff_f): Likewise.
19031         (atan2_test_data): New variable.
19032         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
19033         (copysign_test_data): New variable.
19034         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
19035         (fdim_test_data): New variable.
19036         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
19037         (fmax_test_data): New variable.
19038         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
19039         (fmin_test_data): New variable.
19040         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
19041         (fmod_test_data): New variable.
19042         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
19043         (hypot_test_data): New variable.
19044         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
19045         (nextafter_test_data): New variable.
19046         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
19047         (nexttoward_test_data): New variable.
19048         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
19049         (pow_test_data): New variable.
19050         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
19051         (pow_tonearest_test_data): New variable.
19052         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
19053         (pow_towardzero_test_data): New variable.
19054         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
19055         (pow_downward_test_data): New variable.
19056         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
19057         (pow_upward_test_data): New variable.
19058         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
19059         (remainder_test_data): New variable.
19060         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
19061         (scalb_test_data): New variable.
19062         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
19063         * sysdeps/i386/fpu/libm-test-ulps: Update.
19064
19065 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
19066
19067         * math/libm-test.inc (fma_test): Use max_value instead of local
19068         variable fltmax.
19069         (nextafter_test): Likewise.
19070
19071         * math/libm-test.inc (acos_towardzero_test_data): New variable.
19072         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19073         (acos_downward_test_data): New variable.
19074         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19075         (acos_upward_test_data): New variable.
19076         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19077         (acosh_test_data): New variable.
19078         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
19079         (asin_test_data): New variable.
19080         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
19081         (asin_tonearest_test_data): New variable.
19082         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19083         (asin_towardzero_test_data): New variable.
19084         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19085         (asin_downward_test_data): New variable.
19086         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19087         (asin_upward_test_data): New variable.
19088         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19089         (asinh_test_data): New variable.
19090         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
19091         (atan_test_data): New variable.
19092         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
19093         (atanh_test_data): New variable.
19094         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
19095         (cbrt_test_data): New variable.
19096         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
19097         (ceil_test_data): New variable.
19098         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
19099         (cos_test_data): New variable.
19100         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
19101         (cos_tonearest_test_data): New variable.
19102         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19103         (cos_towardzero_test_data): New variable.
19104         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19105         (cos_downward_test_data): New variable.
19106         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19107         (cos_upward_test_data): New variable.
19108         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19109         (cosh_test_data): New variable.
19110         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
19111         (cosh_tonearest_test_data): New variable.
19112         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19113         (cosh_towardzero_test_data): New variable.
19114         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19115         (cosh_downward_test_data): New variable.
19116         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19117         (cosh_upward_test_data): New variable.
19118         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19119         (erf_test_data): New variable.
19120         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
19121         (erfc_test_data): New variable.
19122         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
19123         (exp_test_data): New variable.
19124         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
19125         (exp_tonearest_test_data): New variable.
19126         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19127         (exp_towardzero_test_data): New variable.
19128         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19129         (exp_downward_test_data): New variable.
19130         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19131         (exp_upward_test_data): New variable.
19132         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19133         (exp10_test_data): New variable.
19134         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
19135         (exp2_test_data): New variable.
19136         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
19137         (expm1_test_data): New variable.
19138         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
19139         (fabs_test_data): New variable.
19140         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
19141         (floor_test_data): New variable.
19142         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
19143         (j0_test_data): New variable.
19144         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
19145         (j1_test_data): New variable.
19146         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
19147         (log_test_data): New variable.
19148         (log_test): Run tests with RUN_TEST_LOOP_f_f.
19149         (log10_test_data): New variable.
19150         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
19151         (log1p_test_data): New variable.
19152         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
19153         (log2_test_data): New variable.
19154         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
19155         (logb_test_data): New variable.
19156         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
19157         (logb_downward_test_data): New variable.
19158         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19159         (nearbyint_test_data): New variable.
19160         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
19161         (rint_test_data): New variable.
19162         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
19163         (rint_tonearest_test_data): New variable.
19164         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19165         (rint_towardzero_test_data): New variable.
19166         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19167         (rint_downward_test_data): New variable.
19168         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19169         (rint_upward_test_data): New variable.
19170         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19171         (round_test_data): New variable.
19172         (round_test): Run tests with RUN_TEST_LOOP_f_f.
19173         (sin_test_data): New variable.
19174         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
19175         (sin_tonearest_test_data): New variable.
19176         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19177         (sin_towardzero_test_data): New variable.
19178         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19179         (sin_downward_test_data): New variable.
19180         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19181         (sin_upward_test_data): New variable.
19182         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19183         (sinh_test_data): New variable.
19184         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
19185         (sinh_tonearest_test_data): New variable.
19186         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19187         (sinh_towardzero_test_data): New variable.
19188         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19189         (sinh_downward_test_data): New variable.
19190         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19191         (sinh_upward_test_data): New variable.
19192         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19193         (sqrt_test_data): New variable.
19194         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
19195         (tan_test_data): New variable.
19196         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
19197         (tan_tonearest_test_data): New variable.
19198         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19199         (tan_towardzero_test_data): New variable.
19200         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19201         (tan_downward_test_data): New variable.
19202         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19203         (tan_upward_test_data): New variable.
19204         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19205         (tanh_test_data): New variable.
19206         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
19207         (tgamma_test_data): New variable.
19208         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
19209         (trunc_test_data): New variable.
19210         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
19211         (y0_test_data): New variable.
19212         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
19213         (y1_test_data): New variable.
19214         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
19215         (significand_test_data): New variable.
19216         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
19217
19218 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
19219
19220         [BZ #12387]
19221         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
19222
19223 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19224
19225         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
19226
19227 2013-05-10  Andreas Jaeger  <aj@suse.de>
19228
19229         [BZ #15448]
19230         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
19231         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
19232
19233 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
19234
19235         * math/gen-libm-test.pl (adjust_arg): New function.
19236         (special_functions): Handle generating output in both functions
19237         and arrays.
19238         (parse_args): Likewise.
19239         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
19240         $in_func argument to parse_args.
19241         * math/libm-test.inc (struct test_f_f_data): New type.
19242         (IF_ROUND_INIT_): New macro.
19243         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
19244         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
19245         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
19246         (IF_ROUND_INIT_FE_UPWARD): Likewise.
19247         (ROUND_RESTORE_): Likewise.
19248         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
19249         (ROUND_RESTORE_FE_TONEAREST): Likewise.
19250         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
19251         (ROUND_RESTORE_FE_UPWARD): Likewise.
19252         (RUN_TEST_LOOP_f_f): New macro.
19253         (acos_test_data): New variable.
19254         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
19255         (acos_tonearest_test_data): New variable.
19256         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19257
19258 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19259
19260         * benchtests/bench-skeleton.c (startup): Fix coding style.
19261
19262 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
19263
19264         [BZ #6809]
19265         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
19266         negative infinity argument.
19267         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
19268         negative infinity argument.
19269         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
19270         negative infinity argument.
19271         * math/libm-test.inc (tgamma_test): Expect errno to be set for
19272         domain errors.
19273
19274 2013-05-10  Florian Weimer  <fweimer@redhat.com>
19275
19276         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
19277         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
19278         * iconv/iconv_prog.c (main): Likewise.
19279         * locale/programs/charmap-dir.c (charmap_readdir)
19280         (fopen_uncompressed): Likewise.
19281         * locale/programs/locfile.c (siblings_uncached)
19282         (write_locale_data): Use lstat64 instead of lstat.
19283         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
19284         stat.
19285
19286 2013-05-10  Andreas Jaeger  <aj@suse.de>
19287
19288         [BZ #15395]
19289         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
19290         localization.
19291         Include <locale.h>.
19292
19293 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
19294
19295         * elf/dl-close.c (_dl_close_worker): Add comments.
19296
19297 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
19298
19299         [BZ #15359]
19300         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
19301         high part of pi/2.
19302         (__ieee754_rem_pio2l): Update comments.
19303
19304         [BZ #15429]
19305         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
19306         high part of pi/2.
19307         (__ieee754_rem_pio2l): Update comments.
19308
19309         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
19310         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
19311
19312         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
19313         M_PI_4l.
19314
19315         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
19316         (M_PI_34_LOG10El): Likewise.
19317         (M_PI2_LOG10El): Likewise.
19318         (M_PI4_LOG10El): Likewise.
19319         (M_PI_LOG10El): Likewise.
19320
19321 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19322
19323         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19324
19325 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
19326
19327         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
19328         (MINUS_ZERO_INIT): Likewise.
19329         (PLUS_INFTY_INIT): Likewise.
19330         (MINUS_INFTY_INIT): Likewise.
19331         (QNAN_VALUE_INIT): Likewise.
19332         (MAX_VALUE_INIT): Likewise.
19333         (MIN_VALUE_INIT): Likewise.
19334         (MIN_SUBNORM_VALUE_INIT): Likewise.
19335         (plus_zero): Initialize with PLUS_ZERO_INIT.
19336         (minus_zero): Initialize with MINUS_ZERO_INIT.
19337         (plus_infty): Initialize with PLUS_INFTY_INIT.
19338         (minus_infty): Initialize with MINUS_INFTY_INIT.
19339         (qnan_value): Initialize with QNAN_VALUE_INIT.
19340         (max_value): Initialize with MAX_VALUE_INIT.
19341         (min_value): Initialize with MIN_VALUE_INIT.
19342         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
19343
19344         * math/libm-test.inc (RUN_TEST_if_f): New macro.
19345         (jn_test): Use TEST_if_f instead of TEST_ff_f.
19346         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
19347         (yn_test): Use TEST_if_f instead of TEST_ff_f.
19348
19349         * math/libm-test.inc (RUN_TEST_f_f): New macro.
19350         (RUN_TEST_2_f): Likewise.
19351         (RUN_TEST_ff_f): Likewise.
19352         (RUN_TEST_fi_f): Likewise.
19353         (RUN_TEST_fl_f): Likewise.
19354         (RUN_TEST_fff_f): Likewise.
19355         (RUN_TEST_c_f): Likewise.
19356         (RUN_TEST_f_f1): Likewise.
19357         (RUN_TEST_fF_f1): Likewise.
19358         (RUN_TEST_fI_f1): Likewise.
19359         (RUN_TEST_ffI_f1): Likewise.
19360         (RUN_TEST_c_c): Likewise.
19361         (RUN_TEST_cc_c): Likewise.
19362         (RUN_TEST_f_i): Likewise.
19363         (RUN_TEST_f_i_tg): Likewise.
19364         (RUN_TEST_ff_i_tg): Likewise.
19365         (RUN_TEST_f_b): Likewise.
19366         (RUN_TEST_f_b_tg): Likewise.
19367         (RUN_TEST_f_l): Likewise.
19368         (RUN_TEST_f_L): Likewise.
19369         (RUN_TEST_sincos): Likewise.
19370         * math/gen-libm-test.pl (new_test): Take new argument to indicate
19371         whether to show exceptions.  Do not include ");\n" in return
19372         value.
19373         (special_functions): Output call to RUN_TEST_sincos instead of
19374         check_float calls.  Update calls to new_test.
19375         (parse_args): Output call to single RUN_TEST_* macro instead of
19376         check_* calls and other assignments.  Update calls to new_test.
19377
19378         [BZ #2546]
19379         [BZ #2560]
19380         [BZ #5159]
19381         [BZ #15426]
19382         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
19383         input to result for tgamma overflow.
19384         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
19385         (gamma_coeff): New variable.
19386         (NCOEFF): New macro.
19387         (gamma_positive): New function.
19388         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
19389         underflow here.  Use gamma_positive instead of exp (lgamma) for
19390         other arguments.
19391         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
19392         (gamma_coeff): New variable.
19393         (NCOEFF): New macro.
19394         (gammaf_positive): New function.
19395         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
19396         underflow here.  Use gamma_positive instead of exp (lgamma) for
19397         other arguments.
19398         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
19399         (gamma_coeff): New variable.
19400         (NCOEFF): New macro.
19401         (gammal_positive): New function.
19402         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
19403         underflow here.  Use gamma_positive instead of exp (lgamma) for
19404         other arguments.
19405         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
19406         (gamma_coeff): New variable.
19407         (NCOEFF): New macro.
19408         (gammal_positive): New function.
19409         (__ieee754_gammal_r): Handle positive infinity, overflow and
19410         underflow here.  Handle NaN the same as positive infinity.  Remove
19411         check x < 0xffffffff for negative integers.  Use gamma_positive
19412         instead of exp (lgamma) for other arguments.
19413         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
19414         (gamma_coeff): New variable.
19415         (NCOEFF): New macro.
19416         (gammal_positive): New function.
19417         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
19418         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
19419         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
19420         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
19421         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
19422         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
19423         * sysdeps/generic/math_private.h (__gamma_productf): New
19424         prototype.
19425         (__gamma_product): Likewise.
19426         (__gamma_productl): Likewise.
19427         * math/Makefile (libm-calls): Add gamma_product.
19428         * math/libm-test.inc (tgamma_test): Add more tests.
19429         * sysdeps/i386/fpu/libm-test-ulps: Update.
19430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19431
19432 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
19433
19434         * benchtests/bench-skeleton.c (main): Preheat CPU.
19435
19436 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
19437
19438         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
19439
19440 2013-05-07  Roland McGrath  <roland@hack.frob.com>
19441
19442         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
19443         and _dl_skip_args_internal.
19444
19445 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
19446
19447         * manual/message.texi (Message Translation): Talk about users.
19448         Message to key mapping impacts design.
19449
19450 2013-05-06  Roland McGrath  <roland@hack.frob.com>
19451
19452         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
19453
19454         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
19455
19456         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
19457         * sysdeps/wordsize-64/glob64.c: ... here.
19458
19459         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
19460         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
19461         New macros.
19462
19463         * debug/getlogin_r_chk.c: Moved to ...
19464         * login/getlogin_r_chk.c: ... here.
19465         * debug/Makefile (routines): Move getlogin_r_chk to ...
19466         * login/Makefile (routines): ... here.
19467         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
19468         * login/Versions (libc: GLIBC_2.4): ... here.
19469
19470         * io/poll.c (__poll): Renamed from poll.
19471         Add libc_hidden_def.
19472         (poll): Define as weak alias.
19473
19474         * debug/ptsname_r_chk.c: Moved to ...
19475         * login/ptsname_r_chk.c: ... here.
19476         * debug/Makefile (routines): Move ptsname_r_chk to ...
19477         * login/Makefile (routines): ... here.
19478         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
19479         * login/Versions (libc: GLIBC_2.4): ... here.
19480
19481         * posix/getlogin.c: Moved to ...
19482         * login/getlogin.c: ... here.
19483         * posix/getlogin_r.c: Moved to ...
19484         * login/getlogin_r.c: ... here.
19485         * posix/getlogin_r.c: Moved to ...
19486         * login/getlogin_r.c: ... here.
19487         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
19488         * login/Makefile (routines): ... here.
19489         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
19490         * login/Versions (libc: GLIBC_2.0): ... here.
19491
19492         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
19493         (setrlimit): Define as weak alias.
19494
19495         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
19496         Call __ names for open, ftruncate, and close.
19497         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
19498         (truncate): Define as weak alias.
19499
19500 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
19501
19502         * math/gen-libm-test.pl (parse_args): Initialize x before each
19503         test of frexp, modf and remquo.
19504
19505         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
19506         test signgam value.
19507
19508 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19509
19510         [BZ #15418]
19511         [BZ #15419]
19512         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
19513         internal tests.
19514         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19515
19516 2013-05-06  Roland McGrath  <roland@hack.frob.com>
19517
19518         * elf/dl-writev.h: New file.
19519         * elf/dl-misc.c: Include it.
19520         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
19521         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
19522
19523 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
19524
19525         * math/libm-test.inc (noXFails): Remove variable.
19526         (noXPasses): Likewise.
19527         (BUILD_COMPLEX_INT): Remove macro.
19528         (print_screen): Remove xfail argument.
19529         (print_screen_max_error): Likewise.
19530         (update_stats): Likewise.
19531         (print_max_error): Likewise.  Update calls to other affected
19532         functions.
19533         (print_complex_max_error): Likewise.
19534         (test_single_exception): Update calls to print_screen.
19535         (test_single_errno): Likewise.
19536         (check_float_internal): Remove xfail argument.  Update calls to
19537         other affected functions.
19538         (check_float): Likewise.
19539         (check_complex): Likewise.
19540         (check_int): Likewise.
19541         (check_long): Likewise.
19542         (check_bool): Likewise.
19543         (check_longlong): Likewise.
19544         (main): Don't print noXFails and noXPasses.
19545         * math/gen-libm-test.pl (top level): Don't mention expected
19546         failure handling in comment.
19547         (new_test): Don't handle expected failures.
19548         (parse_args): Don't mention expected failure handling in comment.
19549         (generate_testfile): Don't handle expected failures.
19550         (parse_ulps): Likewise.
19551         (print_ulps_file): Likewise.
19552         (get_failure): Remove function.
19553         (output_test): Don't handle expected failures.
19554         * make/README.libm-test: Don't mention expected failure handling.
19555
19556         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
19557         (minus_zero): Likewise.
19558         (plus_infty): Likewise.
19559         (minus_infty): Likewise.
19560         (qnan_value): Likewise.
19561         (max_value): Likewise.
19562         (min_value): Likewise.
19563         (min_subnorm_value): Likewise.
19564         (initialize): Do not initialize those variables dynamically.
19565
19566 2013-05-03  Roland McGrath  <roland@hack.frob.com>
19567
19568         * io/open.c (__open_2): Moved to ...
19569         * io/open_2.c: ... this new file.
19570         * io/open64.c (__open64_2): Moved to ...
19571         * io/open64_2.c: ... this new file.
19572         * io/openat.c (__openat_2): Moved to ...
19573         * io/openat_2.c: ... this new file.
19574         * io/openat64.c (__openat64_2): Moved to ...
19575         * io/openat64_2.c: ... this new file.
19576         * io/Makefile (routines): Add them.
19577         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
19578         * sysdeps/unix/sysv/linux/open_2.c: File removed.
19579         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
19580         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
19581         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
19582         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
19583         (__openat64): Add hidden_ver.
19584         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
19585         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
19586
19587         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
19588         Separately conditionalize setting of GLRO(dl_sysinfo) so
19589         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
19590         as well, but the actual setting is only under [NEED_DL_SYSINFO].
19591
19592 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19593
19594         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
19595         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
19596         definition.
19597         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
19598         * sysdeps/unix/sysv/linux/powerpc/init-first.c
19599         (_libc_vdso_platform_setup): Add __vdso_time initialization.
19600         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
19601         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
19602
19603 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
19604
19605         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
19606         test signgam value.
19607
19608         * math/libm-test.inc (hypot_test): Do not use
19609         IGNORE_ZERO_INF_SIGN.
19610
19611 2013-05-03  Andreas Jaeger  <aj@suse.de>
19612
19613         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
19614         Linux 3.9.
19615         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
19616         (PF_MAX): Adjust for VSOCK change.
19617
19618 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19619
19620         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19621
19622 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
19623
19624         [BZ #15264]
19625         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
19626         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
19627         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
19628
19629 2013-05-02  David S. Miller  <davem@davemloft.net>
19630
19631         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19632
19633 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
19634
19635         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
19636
19637 2013-05-01  Roland McGrath  <roland@hack.frob.com>
19638
19639         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
19640
19641 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
19642
19643         [BZ #14952]
19644         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
19645         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19646         Use __attribute__ ((__gnu_inline__)).
19647         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
19648         Don't use __attribute__ ((__gnu_inline__)).
19649
19650 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
19651
19652         [BZ #15423]
19653         * math/s_catan.c (__catan): Handle small real or imaginary part of
19654         input specially to avoid spurious underflow.
19655         * math/s_catanf.c (__catanf): Likewise.
19656         * math/s_catanh.c (__catanh): Likewise.
19657         * math/s_catanhf.c (__catanhf): Likewise.
19658         * math/s_catanhl.c (__catanhl): Likewise.
19659         * math/s_catanl.c (__catanl): Likewise.
19660         * math/libm-test.inc (catan_test): Add more tests.
19661         (catanh_test): Likewise.
19662         * sysdeps/i386/fpu/libm-test-ulps: Update.
19663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19664
19665 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19666
19667         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19668
19669 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
19670
19671         [BZ #15416]
19672         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
19673         accurately for denominator in atan2.
19674         * math/s_catanf.c (__catanf): Likewise.
19675         * math/s_catanh.c (__catanh): Likewise.
19676         * math/s_catanhf.c (__catanhf): Likewise.
19677         * math/s_catanhl.c (__catanhl): Likewise.
19678         * math/s_catanl.c (__catanl): Likewise.
19679         * math/libm-test.inc (catan_test): Add more tests.
19680         (catanh_test): Likewise.
19681         * sysdeps/i386/fpu/libm-test-ulps: Update.
19682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19683
19684 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
19685
19686         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
19687
19688         * benchtests/Makefile (bench): Remove slow benchmarks.
19689         * benchtests/atan-inputs: Add slow benchmark inputs.
19690         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
19691         (BENCH_FUNC): Accept variant offset.
19692         (VARIANT): Define.
19693         * benchtests/bench-skeleton.c (main): Run benchmark for each
19694         variant.
19695         * benchtests/cos-inputs: Add slow benchmark inputs.
19696         * benchtests/exp-inputs: Likewise.
19697         * benchtests/pow-inputs: Likewise.
19698         * benchtests/sin-inputs: Likewise.
19699         * benchtests/slowatan-inputs: Remove.
19700         * benchtests/slowatan.c: Remove.
19701         * benchtests/slowcos-inputs: Remove.
19702         * benchtests/slowcos.c: Remove.
19703         * benchtests/slowexp-inputs: Remove.
19704         * benchtests/slowexp.c: Remove.
19705         * benchtests/slowpow-inputs: Remove.
19706         * benchtests/slowpow.c: Remove.
19707         * benchtests/slowsin-inputs: Remove.
19708         * benchtests/slowsin.c: Remove.
19709         * benchtests/slowtan-inputs: Remove.
19710         * benchtests/slowtan.c: Remove.
19711         * benchtests/tan-inputs: Add slow benchmark inputs.
19712         * scripts/bench.pl: Parse comments and directives.
19713
19714         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
19715         in CPPFLAGS.
19716         ($(objpfx)bench-%.c): Remove *-ITER.
19717         * benchtests/bench-modf.c: Remove definition of ITER.
19718         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
19719         (main): Loop for DURATION seconds instead of fixed number of
19720         iterations.
19721         * scripts/bench.pl: Don't expect iterations in parameters.
19722
19723 2013-04-29  Roland McGrath  <roland@hack.frob.com>
19724
19725         * io/fchdir.c (__fchdir): Renamed from fchdir.
19726         (fchdir): Define as weak alias.
19727
19728 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19729
19730         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
19731         (ERRNO_EDOM): Likewise.
19732         (ERRNO_ERANGE): Likewise.
19733         (noErrnoTests): New variable.
19734         (init_max_error): Set errno to 0.
19735         (test_single_errno): New function.
19736         (test_errno): Likewise.
19737         (check_float_internal): Call test_errno.  Set errno to 0.
19738         (check_complex): Refer to errno tests in comment.
19739         (check_int): Call test_errno.  Set errno to 0.
19740         (check_long): Likewise.
19741         (check_bool): Likewise.
19742         (check_longlong): Likewise.
19743         (cos_test): Use ERRNO_* flags for errno tests instead of
19744         check_int.
19745         (expm1_test): Likewise.
19746         (fmod_test): Likewise.
19747         (ilogb_test): Likewise.
19748         (lgamma_test): Likewise.
19749         (pow_test): Likewise.
19750         (remainder_test): Likewise.
19751         (sin_test): Likewise.
19752         (tan_test): Likewise.
19753         (yn_test): Likewise.
19754         (initialize): Set errno to 0.
19755         (main): Print number of errno tests.
19756         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
19757
19758 2013-04-29  Andreas Jaeger  <aj@suse.de>
19759
19760         [BZ #15084]
19761         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
19762         and RES_USEVC.
19763
19764         [BZ #15085]
19765         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
19766         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
19767         unimplemented.
19768
19769         [BZ #15380]
19770         * stdlib/random.c (__initstate): Return NULL if
19771         __initstate fails.
19772
19773         [BZ #15086]
19774         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
19775         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
19776         RES_SNGLKUPREOP.
19777
19778 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19779
19780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19781
19782 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
19783
19784         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
19785         of individual tests.
19786         (casin_test): Likewise.
19787         (casinh_test): Likewise.
19788
19789 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
19790
19791         [BZ #15409]
19792         * math/s_catan.c (__catan): Handle arguments with large real or
19793         imaginary part separately without squaring.
19794         * math/s_catanf.c (__catanf): Likewise.
19795         * math/s_catanh.c (__catanh): Likewise.
19796         * math/s_catanhf.c (__catanhf): Likewise.
19797         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19798         and redefine.
19799         (__catanhl): Handle arguments with large real or imaginary part
19800         separately without squaring.
19801         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
19802         and redefine.
19803         (__catanl): Handle arguments with large real or imaginary part
19804         separately without squaring.
19805         * math/libm-test.inc (catan_test): Add more tests.
19806         (catanh_test): Likewise.
19807         * sysdeps/i386/fpu/libm-test-ulps: Update.
19808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19809
19810 2013-04-27  Andreas Jaeger  <aj@suse.de>
19811
19812         [BZ #15007]
19813         * stdlib/stdlib.h: Update guards for qecvt.
19814         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
19815         <stdlib.h>.
19816
19817 2013-04-27  Allan McRae  <allan@archlinux.org>
19818
19819         * sysdeps/i386/fpu/libm-test-ulps: Update.
19820
19821 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
19822
19823         [BZ #15406]
19824         * math/s_catan.c: Include <float.h>.
19825         (__catan): Ensure underflow exception occurs for underflowed
19826         result.
19827         * math/s_catanf.c: Include <float.h>.
19828         (__catanf): Ensure underflow exception occurs for underflowed
19829         result.
19830         * math/s_catanh.c: Include <float.h>.
19831         (__catanh): Ensure underflow exception occurs for underflowed
19832         result.
19833         * math/s_catanhf.c: Include <float.h>.
19834         (__catanhf): Ensure underflow exception occurs for underflowed
19835         result.
19836         * math/s_catanhl.c: Include <float.h>.
19837         (__catanhl): Ensure underflow exception occurs for underflowed
19838         result.
19839         * math/s_catanl.c: Include <float.h>.
19840         (__catanl): Ensure underflow exception occurs for underflowed
19841         result.
19842         * math/libm-test.inc (catan_test): Add more tests.
19843         (catanh_test): Likewise.
19844
19845         [BZ #15405]
19846         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
19847         underflowed result.
19848         * math/s_ccoshf.c (__ccoshf): Likewise.
19849         * math/s_ccoshl.c (__ccoshl): Likewise.
19850         * math/s_csin.c (__csin): Likewise.
19851         * math/s_csinf.c (__csinf): Likewise.
19852         * math/s_csinh.c (__csinh): Likewise.
19853         * math/s_csinhf.c (__csinhf): Likewise.
19854         * math/s_csinhl.c (__csinhl): Likewise.
19855         * math/s_csinl.c (__csinl): Likewise.
19856         * math/libm-test.inc (ccos_test): Add more tests.
19857         (ccosh_test): Likewise.
19858         (csin_test): Likewise.
19859         (csinh_test): Likewise.
19860
19861 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19862
19863         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
19864         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
19865         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
19866         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
19867         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
19868         powerpc/power5+/fpu folders.
19869         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
19870
19871
19872 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19873
19874         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19875
19876 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
19877
19878         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
19879         additions to variable.
19880         [$(config-machine) = x86_64] (modules-names): Likewise.
19881         ($(objpfx)tst-audit3): Remove dependency.
19882         ($(objpfx)tst-audit3.out): Likewise.
19883         ($(objpfx)tst-audit4): Likewise.
19884         ($(objpfx)tst-audit4.out): Likewise.
19885         ($(objpfx)tst-audit5): Likewise.
19886         ($(objpfx)tst-audit5.out): Likewise.
19887         ($(objpfx)tst-audit6): Likewise.
19888         ($(objpfx)tst-audit6.out): Likewise.
19889         ($(objpfx)tst-audit7): Likewise.
19890         ($(objpfx)tst-audit7.out): Likewise.
19891         (tst-audit3-ENV): Remove variable.
19892         (tst-audit4-ENV): Likewise.
19893         (tst-audit5-ENV): Likewise.
19894         (tst-audit6-ENV): Likewise.
19895         (tst-audit7-ENV): Likewise.
19896         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
19897         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
19898         addition to variable.
19899         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
19900         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
19901         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
19902         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
19903         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
19904         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
19905         tst-audit3, tst-audit4 and tst-audit5.
19906         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
19907         tst-audit6 and tst-audit7.
19908         [$(subdir) = elf] (modules-names): Add audit modules for those
19909         tests.
19910         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
19911         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
19912         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
19913         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
19914         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
19915         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
19916         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
19917         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
19918         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
19919         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
19920         [$(subdir) = elf] (tst-audit3-ENV): New variable.
19921         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
19922         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
19923         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
19924         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
19925         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
19926         Likewise.
19927         [$(subdir) = elf && $(config-cflags-avx) = yes]
19928         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
19929         [$(subdir) = elf && $(config-cflags-avx) = yes]
19930         (CFLAGS-tst-auditmod4a.c): Likewise.
19931         [$(subdir) = elf && $(config-cflags-avx) = yes]
19932         (CFLAGS-tst-auditmod4b.c): Likewise.
19933         [$(subdir) = elf && $(config-cflags-avx) = yes]
19934         (CFLAGS-tst-auditmod6b.c): Likewise.
19935         [$(subdir) = elf && $(config-cflags-avx) = yes]
19936         (CFLAGS-tst-auditmod6c.c): Likewise.
19937         [$(subdir) = elf && $(config-cflags-avx) = yes]
19938         (CFLAGS-tst-auditmod7b.c): Likewise.
19939         * elf/tst-audit3.c: Move to ...
19940         * sysdeps/x86_64/tst-audit3.c: ... here.
19941         * elf/tst-audit4.c: Move to ...
19942         * sysdeps/x86_64/tst-audit4.c: ... here.
19943         * elf/tst-audit5.c: Move to ...
19944         * sysdeps/x86_64/tst-audit5.c: ... here.
19945         * elf/tst-audit6.c: Move to ...
19946         * sysdeps/x86_64/tst-audit6.c: ... here.
19947         * elf/tst-audit7.c: Move to ...
19948         * sysdeps/x86_64/tst-audit7.c: ... here.
19949         * elf/tst-auditmod3a.c: Move to ...
19950         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
19951         * elf/tst-auditmod3b.c: Move to ...
19952         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
19953         * elf/tst-auditmod4a.c: Move to ...
19954         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
19955         * elf/tst-auditmod4b.c: Move to ...
19956         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
19957         * elf/tst-auditmod5a.c: Move to ...
19958         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
19959         * elf/tst-auditmod5b.c: Move to ...
19960         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
19961         * elf/tst-auditmod6a.c: Move to ...
19962         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
19963         * elf/tst-auditmod6b.c: Move to ...
19964         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
19965         * elf/tst-auditmod6c.c: Move to ...
19966         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
19967         * elf/tst-auditmod7a.c: Move to ...
19968         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
19969         * elf/tst-auditmod7b.c: Move to ...
19970         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
19971
19972 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
19973
19974         [BZ #15366]
19975         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
19976         define unconditionally.
19977         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
19978         define unconditionally.
19979         (INT8_C, INT16_C, etc.): Likewise.
19980
19981 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
19982
19983         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
19984         __ehdr_start with hidden visibility.
19985
19986         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
19987
19988 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
19989
19990         * math/libm-test.inc (cos_test): Use accurate hex constants.
19991         (sincost_test): Likewise.
19992
19993 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
19994
19995         * math/libm-test.inc (catan_test): Add more tests.
19996         (catanh_test): Likewise.
19997
19998         * math/s_catanf.c (__catanf): Use suffixed floating-point
19999         constants.
20000         * math/s_catanhf.c (__catanhf): Likewise.
20001         * math/s_catanhl.c (__catanhl): Likewise.
20002         * math/s_catanl.c (__catanl): Likewise.
20003
20004         [BZ #15394]
20005         * math/s_catan.c (__catan): Calculate imaginary part of result
20006         with log1p not log unless computing log of number close to 0.
20007         * math/s_catanf.c (__catanf): Likewise.
20008         * math/s_catanl.c (__catanl): Likewise.
20009         * math/s_catanh.c (__catanh): Calculate real part of result with
20010         log1p not log unless computing log of number close to 0.
20011         * math/s_catanhf.c (__catanhf): Likewise.
20012         * math/s_catanhl.c (__catanhl): Likewise.
20013         * math/libm-test.inc (catan_test): Add more tests.
20014         (catanh_test): Likewise.
20015         * sysdeps/i386/fpu/libm-test-ulps: Update.
20016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20017
20018 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20019
20020         * benchtests/Makefile: Mention files in which fast and slow
20021         paths of math functions are implemented.
20022
20023 2013-04-23  Roland McGrath  <roland@hack.frob.com>
20024
20025         * sysdeps/posix/timespec_get.c: New file.
20026
20027 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20028
20029         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
20030         POWER.
20031         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
20032         for POWER.
20033         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
20034         powerpc/power5/fpu folders.
20035         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
20036         * benchtests/Makefile: Add modf testcase.
20037         * benchtests/bench-modf.c: New file: Benchmark test for mo
20038
20039 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20040
20041         [BZ #14888]
20042         * time/Makefile (tests): Add tst-strptime-whitespace.
20043         * time/strptime_l.c (get_number): Use ISSPACE.
20044         (__strptime_internal): Likewise.
20045         * time/tst-strptime-whitespace.c: New test case.
20046
20047 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
20048
20049         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
20050         member.
20051         (_nss_files_init): Set it here.
20052
20053 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
20054
20055         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
20056         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
20057         unsigned.
20058
20059 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
20060
20061         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
20062
20063 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
20064
20065         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
20066         size just once.
20067
20068 2013-04-21  David S. Miller  <davem@davemloft.net>
20069
20070         * po/ru.po: Update Russion translation from translation project.
20071
20072 2013-04-17  Adam Conrad  <adconrad@0c3.net>
20073
20074         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
20075         and setfsgid.
20076
20077 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
20078
20079         * configure.in: Remove i386 configure warning. Remove i386 case.
20080         * configure: Regenerate.
20081         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
20082         Add example to error message.
20083         * sysdeps/i386/configure: Regenerate.
20084
20085 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
20086
20087         * benchtests/Makefile (bench): Add cos, tan, slowcos and
20088         slowtan.
20089         * benchtests/cos-inputs: New file.
20090         * benchtests/slowcos-inputs: New file.
20091         * benchtests/slowcos.c: New file.
20092         * benchtests/slowtan-inputs: New file.
20093         * benchtests/slowtan.c: New file.
20094         * benchtests/tan-inputs: New file.
20095
20096 2013-04-16  Roland McGrath  <roland@hack.frob.com>
20097
20098         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
20099         considered kosher.
20100
20101 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
20102
20103         * benchtests/Makefile: Include cppflags-iterator.mk to add
20104         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
20105
20106         * Makefile.in (bench-clean): New target.
20107         * benchtests/Makefile (bench-clean): Likewise.
20108
20109 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
20110
20111         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
20112
20113 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
20114
20115         * stdio-common/tstdiomisc.c: Fix coding-style violation.
20116
20117 2013-04-15  Andreas Schwab  <schwab@suse.de>
20118
20119         * nscd/grpcache.c (cache_addgr): Properly check for short write.
20120         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20121         * nscd/pwdcache.c (cache_addpw): Likewise.
20122         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
20123         more than recsize.
20124
20125 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20126
20127         * benchtests/Makefile (bench): Write all output to
20128         bench-out.tmp together.
20129
20130 2013-04-15  Andreas Schwab  <schwab@suse.de>
20131
20132         * nscd/nscd.c (main): Don't fork again after closing files.
20133
20134 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20135
20136         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
20137
20138         * benchtests/Rules (bench-deps): Collect dependencies into a
20139         single variable.  Add Makefile to dependencies.
20140         ($(objpfx)bench-%.c): Depend on bench-deps.
20141
20142 2013-04-12  Roland McGrath  <roland@hack.frob.com>
20143             Xavier Roche  <roche+kml2@exalead.com>
20144
20145         [BZ #15361]
20146         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
20147         just that it's a file descriptor.
20148         * manual/llio.texi (Synchronizing AIO Operations): Update description
20149         for EBADF error from aio_fsync.
20150
20151 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
20152
20153         * Rules (bench): Move target definition...
20154         * benchtests/Makefile: ... here.
20155
20156 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
20157
20158         * math/libm-test.inc (cos_test): Fix PI/2 test.
20159         (sincos_test): Likewise.
20160         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
20161         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
20162
20163 2013-04-11  Andreas Schwab  <schwab@suse.de>
20164
20165         [BZ #13988]
20166         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
20167         accept exponent character only when digits were seen.
20168         * stdio-common/Makefile (tests): Add bug26.
20169         * stdio-common/bug26.c: New file.
20170
20171         [BZ #14293]
20172         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
20173         non-freeable.
20174
20175 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
20176
20177         * Makeconfig (rtld-prefix): Define built linker prefix.
20178         * Rules (run-bench): Use it.
20179         * math/Makefile (run-regen-ulps): Likewise.
20180
20181         * Rules (bench): Remove eval.
20182
20183 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
20184             Roland McGrath  <roland@hack.frob.com>
20185             Ondrej Bilka  <neleai@seznam.cz>
20186
20187         [BZ #15346]
20188         * time/getdate.c: Include ctype.h and alloca.h.
20189         (__getdate_r): Trim leading and trailing spaces of input.
20190         * time/tst-getdate.c (tests): Add tests with leading and
20191         trailing spaces.
20192
20193 2013-04-08  Roland McGrath  <roland@hack.frob.com>
20194
20195         [BZ #14280]
20196         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
20197         when computing value.
20198
20199 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20200
20201         * math/README.libm-test (How can I generate "libm-test-ulps"?):
20202         Use testrun.sh to run libm tests.
20203
20204         [BZ #15309]
20205         * elf/dl-open.c (dl_open_worker): memset all of seen array.
20206
20207 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
20208
20209         [BZ #15264]
20210         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
20211
20212 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20213
20214         * Makefile.in (regen-ulps): New target.
20215         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
20216         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
20217         [ifneq (no,$(PERL)] (regen-ulps): New target.
20218         [ifeq (no,$(PERL)] (regen-ulps): New target.
20219         * math/libm-test.inc (ulps_file_name): Define.
20220         (output_dir): New variable.
20221         (options): Add "output-dir" option.
20222         (parse_opt): Handle 'o' case.
20223         (main): If output_dir is non-NULL use it as a prefix
20224         otherwise use "".
20225         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
20226
20227 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20228
20229         [BZ #10060, #10062]
20230         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
20231         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
20232         fail configure if __sync_val_compare_and_swap is not inlined.
20233         * sysdeps/i386/configure: Regenerate.
20234         * configure.in: Build for i686 when configured for i386.
20235         * configure: Regenerate.
20236         * README: Remove i386 reference.
20237
20238 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20239
20240         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
20241         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20242
20243 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
20244
20245         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
20246         (lmsnanval): New variables.
20247         (F): Add conversion tests.
20248         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
20249         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
20250
20251         * stdio-common/tstdiomisc.c (F): Properly collect individual
20252         tests' results.
20253
20254         [BZ #14686, #15336]
20255         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
20256         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
20257         Instead, use input NaN values or generate a qNaN by arithmetic
20258         operation.  Also fix bugs to comply with the standard.
20259         * math/libm-test.inc (remainder_test): Add more tests.
20260
20261         [BZ #15335, #15342]
20262         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
20263         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
20264         input NaN values or generate a qNaN by arithmetic operation.
20265
20266         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
20267         unreachable code.
20268
20269         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
20270         definitions.
20271
20272 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
20273
20274         [BZ #14478]
20275         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
20276         underflowed result.
20277         * math/s_cexpf.c (__cexpf): Likewise.
20278         * math/s_cexpl.c (__cexpl): Likewise.
20279         * math/libm-test.inc (cexp_test): Add more tests.
20280
20281 2013-04-03  Andreas Schwab  <schwab@suse.de>
20282
20283         [BZ #15330]
20284         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
20285         order arrays from heap if bigger than alloca cutoff.
20286
20287 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
20288
20289         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
20290         (SNAN_TESTS_double): Refer to GCC PR56831.
20291         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
20292         GCC PR56828.
20293
20294 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
20295
20296         * Rules (bench): Move bench.out after the run is complete.
20297
20298         * Rules (bench): Echo currently running benchmark.
20299
20300         * benchtests/Makefile (bench): Add atan and slowatan.
20301         * benchtests/atan-inputs: New file.
20302         * benchtests/slowatan-inputs: New file.
20303         * benchtests/slowatan.c: New file.
20304
20305         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
20306         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
20307         its value.
20308
20309         [BZ #15305]
20310         * sysdeps/unix/sysv/linux/kernel-features.h
20311         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
20312         __ASSUME_XFS_RESTRICTED_CHOWN.
20313         * sysdeps/unix/sysv/linux/pathconf.c
20314         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
20315         Save and restore errno.
20316
20317 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
20318
20319         [BZ #15327]
20320         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
20321         arguments using __kernel_casinh.
20322         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
20323         arguments using __kernel_casinhf.
20324         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
20325         arguments using __kernel_casinhl.
20326         * math/libm-test.inc (cacosh_test): Add more tests.
20327         * sysdeps/i386/fpu/libm-test-ulps: Update.
20328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20329
20330 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
20331
20332         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
20333         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
20334
20335         * bench/Makefile (bench): Add sin and slowsin.
20336         * benchtests/sin-inputs: New file.
20337         * benchtests/slowsin-inputs: New file.
20338         * benchtests/slowsin.c: New file.
20339
20340         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
20341         (bench): Add slowexp and slowpow.
20342         (exp-ITER): Increase iterations.
20343         (pow-ITER): Likewise.
20344         * benchtests/exp-inputs: Change input.
20345         * benchtests/pow-inputs: Likewise.
20346         * benchtests/slowexp-inputs: New file.
20347         * benchtests/slowexp.c: New file.
20348         * benchtests/slowpow-inputs: New file.
20349         * benchtests/slowpow.c: New file.
20350
20351 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20352
20353         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
20354         instructions.
20355         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
20356         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
20357         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
20358         * benchtests/Makefile: Add rint benchtest.
20359         * benchtests/rint-inputs: Input for rint benchtest.
20360
20361 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
20362
20363         * Versions.def (libm): Add GLIBC_2.18.
20364         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
20365         hidden libm prototypes.
20366         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
20367         * math/Makefile (libm-calls): Add s_issignaling.
20368         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
20369         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
20370         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
20371         declaration.
20372         * math/math.h [__USE_GNU] (issignaling): New macro.
20373         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
20374         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
20375         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
20376         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
20377         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
20378         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
20379         * manual/arith.texi (issignaling): New section.
20380         * manual/libm-err-tab.pl (@all_functions): Update comment.
20381         * math/gen-libm-test.pl (parse_args): Apply special handling for
20382         issignaling.
20383         * math/libm-test.inc (print_float, issignaling_test): New
20384         functions.
20385         (check_float_internal): Add issignaling checks.
20386         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
20387         default definition.
20388         * sysdeps/powerpc/math-tests.h: New file.
20389         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
20390         tests.
20391         * math/test-snan.c (TEST_FUNC): Likewise.
20392
20393 2013-03-30  David S. Miller  <davem@davemloft.net>
20394
20395         * po/de.po: Update from translation team.
20396
20397 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
20398
20399         [BZ #10357]
20400         * math/k_casinh.c (__kernel_casinh): Handle arguments with
20401         imaginary part less than 1.0 and real part less than 0.5
20402         specially.
20403         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20404         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20405         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
20406         (cacos_test): Add more tests.
20407         (casin_test): Likewise.
20408         (casinh_test): Likewise.
20409         * sysdeps/i386/fpu/libm-test-ulps: Update.
20410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20411
20412 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
20413
20414         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
20415         ONE with its value.
20416
20417         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
20418         (__pow_mp): Replace ONE and MONE with their values.
20419         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
20420         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
20421         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
20422         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
20423         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
20424         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
20425
20426         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
20427
20428         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
20429         (__pow_mp): Replace ZERO and MZERO with their values.
20430         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
20431         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
20432         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
20433         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
20434         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
20435         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
20436         (__sqr): Likewise.
20437
20438         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
20439
20440         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
20441
20442 2013-03-28  Roland McGrath  <roland@hack.frob.com>
20443
20444         * include/stdlib.h [!SHARED] (__call_tls_dtors):
20445         Declare with __attribute__ ((weak)).
20446         * stdlib/exit.c (__libc_atexit) [!SHARED]:
20447         Call __call_tls_dtors only if it's not NULL.
20448
20449 2013-03-28  Roland McGrath  <roland@hack.frob.com>
20450
20451         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
20452         didn't do it already, then set _dl_phdr and _dl_phnum based on the
20453         magic __ehdr_start linker symbol if it's defined.
20454         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
20455         them up here if it was already done.
20456
20457         * elf/dl-support.c (_dl_phdr): Make pointer to const.
20458         (_dl_aux_init): Use const in cast when setting it.
20459         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
20460         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
20461         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
20462
20463         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
20464         Declare them here.
20465         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
20466         * csu/libc-tls.c: Nor here.
20467         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
20468
20469         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
20470         (__libc_message): Never call vsyslog.
20471
20472 2013-03-28  Alan Modra  <amodra@gmail.com>
20473
20474         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
20475         Define as empty.
20476         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
20477         Likewise.
20478
20479 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20480
20481         [BZ #15214]
20482         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
20483         underflow.
20484         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20485
20486 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20487
20488         [BZ #15304]
20489         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
20490         Don't add gid passed as argument.
20491
20492         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
20493
20494 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
20495
20496         [BZ #15307]
20497         * math/k_casinh.c (__kernel_casinh): Handle arguments with
20498         imaginary part between 1.0 and 1.5 and real part less than 0.5
20499         specially.
20500         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20501         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20502         * math/libm-test.inc (cacos_test): Add more tests.
20503         (casin_test): Likewise.
20504         (casinh_test): Likewise.
20505         * sysdeps/i386/fpu/libm-test-ulps: Update.
20506         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20507
20508 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20509
20510         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
20511         constants.
20512         (norm): Likewise.
20513         (denorm): Likewise.
20514         (__dbl_mp): Likewise.
20515         (add_magnitudes): Likewise.
20516         (sub_magnitudes): Likewise.
20517         (__add): Likewise.
20518         (__sub): Likewise.
20519         (__mul): Likewise.
20520         (__sqr): Likewise.
20521         (__inv): Likewise.
20522         (__dvd): Likewise.
20523
20524         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
20525         commented code.
20526         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
20527         (__dubcos): Likewise.
20528         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
20529         (__ieee754_acos): Likewise.
20530         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
20531         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
20532         (__exp1): Likewise.
20533         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
20534         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
20535         (log1): Likewise.
20536         (my_log2): Likewise.
20537         (checkint): Likewise.
20538         * sysdeps/ieee754/dbl-64/e_remainder.c
20539         (__ieee754_remainder): Likewise.
20540         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
20541         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
20542         (bsloww): Likewise.
20543         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
20544
20545         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20546         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
20547         MANTISSA_STORE_T to store computations on mantissa.  Use
20548         macros for rounding and division.
20549         (denorm): Likewise.
20550         (__dbl_mp): Likewise.
20551         (add_magnitudes): Likewise.
20552         (sub_magnitudes): Likewise.
20553         (__mul): Likewise.
20554         (__sqr): Likewise.
20555         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20556         powers of two in terms of TWOPOW macro.
20557         (mp_no): Make type of mantissa as MANTISSA_T.
20558         [!RADIXI]: Define RADIXI.
20559         [!TWO52]: Define TWO52.
20560         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20561
20562 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20563
20564         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
20565         llroundl symbol when building for PPC32.
20566
20567 2013-03-24  Mark H Weaver  <mhw@netris.org>
20568
20569         * manual/arith.texi (Normalization Functions): Fix prototypes for
20570         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
20571
20572 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20573
20574         [BZ #13889]
20575         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
20576         high value to check if expl overflow.
20577         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
20578         to check for underflow and overflow.
20579         * math/libm-test.inc: Add exp test.
20580
20581 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
20582
20583         [BZ #11120]
20584         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
20585         with NOT_IN_libc.
20586
20587 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20588
20589         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
20590         symbol.
20591
20592 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
20593
20594         * math/gen-libm-test.pl (parse_args, special_functions): Properly
20595         wrap blocks consisting of several statements.
20596
20597         * sysdeps/generic/math-tests.h: New file.
20598         * sysdeps/i386/fpu/math-tests.h: Likewise.
20599         * math/test-snan.c: Include it.
20600         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
20601
20602 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
20603
20604         [BZ #15285]
20605         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
20606         (__ieee754_j0l): Do not improve calculations using cos of twice
20607         input for inputs above LDBL_MAX / 2.0L.
20608         (__ieee754_y0l): Likewise.
20609         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
20610         (__ieee754_j1l): Do not improve calculations using cos of twice
20611         input for inputs above LDBL_MAX / 2.0L.
20612         (__ieee754_y1l): Likewise.
20613         * math/libm-test.inc (j0_test): Add another test.
20614         (j1_test): Likewise.
20615         (y0_test): Likewise.
20616         (y1_test): Likewise.
20617         * sysdeps/i386/fpu/libm-test-ulps: Update.
20618
20619 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20620
20621         * Rules ($(objpfx)bench-%.c): Include code from a C source
20622         file.
20623
20624 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
20625
20626         [BZ #15287]
20627         * math/k_casinh.c (__kernel_casinh): Handle arguments with
20628         imaginary part 1.0 and real part less than 0.5 specially.
20629         * math/k_casinhf.c (__kernel_casinhf): Likewise.
20630         * math/k_casinhl.c (__kernel_casinhl): Likewise.
20631         * math/libm-test.inc (cacos_test): Add more tests.
20632         (casin_test): Likewise.
20633         (casinh_test): Likewise.
20634         * sysdeps/i386/fpu/libm-test-ulps: Update.
20635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20636
20637 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20638
20639         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
20640         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
20641
20642 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
20643
20644         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
20645         * config.make.in (config-cflags-sse4): Remove variable.
20646         (config-cflags-avx): Likewise.
20647         (config-cflags-sse2avx): Likewise.
20648         (config-cflags-novzeroupper): Likewise.
20649         (config-asflags-i686): Likewise.
20650         (have-mfma4): Likewise.
20651         (have-as-vis3): Likewise.
20652         (MIG): Likewise.
20653         * configure.in (MIG): Do not AC_SUBST.
20654         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
20655         (libc_cv_cc_sse4): Do not AC_SUBST.
20656         (libc_cv_cc_avx): Likewise.
20657         (libc_cv_cc_sse2avx): Likewise.
20658         (libc_cv_cc_novzeroupper): Likewise.
20659         (libc_cv_cc_fma4): Likewise.
20660         (libc_cv_as_i686): Likewise.
20661         (libc_cv_sparc_as_vis3): Likewise.
20662         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
20663         LIBC_CONFIG_VAR.
20664         (config-asflags-i686): Likewise.
20665         (config-cflags-avx): Likewise.
20666         (config-cflags-sse2avx): Likewise.
20667         (have-mfma4): Likewise.
20668         (config-cflags-novzeroupper): Likewise.
20669         * sysdeps/mach/configure.in (MIG): Likewise.
20670         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
20671         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
20672         LIBC_CONFIG_VAR.
20673         (config-cflags-avx): Likewise.
20674         (config-cflags-sse2avx): Likewise.
20675         (have-mfma4): Likewise.
20676         (config-cflags-novzeroupper): Likewise.
20677         * configure: Regenerated.
20678         * sysdeps/i386/configure: Likewise.
20679         * sysdeps/mach/configure: Likewise.
20680         * sysdeps/sparc/configure: Likewise.
20681         * sysdeps/x86_64/configure: Likewise.
20682
20683 2013-03-20  Roland McGrath  <roland@hack.frob.com>
20684
20685         [BZ #14812]
20686         * locale/programs/localedef.c (options): Put N_ translation marker
20687         on argument names, not just descriptions.
20688
20689 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
20690
20691         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
20692
20693 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
20694
20695         [BZ #14176]
20696         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
20697
20698 2013-03-19  Roland McGrath  <roland@hack.frob.com>
20699
20700         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
20701         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
20702         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
20703         [!BEFORE_ABORT] (before_abort): New function.
20704         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
20705         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
20706         (writev_for_fatal): New function.
20707         (WRITEV_FOR_FATAL): New macro; call that.
20708         (backtrace_and_maps): New function.
20709         (BEFORE_ABORT): New macro; call that.
20710         (struct str_list): Type removed.
20711         (__libc_message, __libc_fatal): Functions removed.
20712         Include <sysdeps/posix/libc_fatal.c> instead.
20713
20714 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
20715
20716         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
20717         constants.
20718         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
20719         double constants.
20720
20721 2013-03-19  Andreas Schwab  <schwab@suse.de>
20722
20723         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
20724         * sysdeps/gnu/configure: Regenerate.
20725
20726         * configure.in: Substitute libc_cv_rtlddir.
20727         * configure: Regenerate.
20728         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
20729         * Makeconfig (rtlddir, inst_rtlddir): New variables.
20730         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
20731         * elf/Makefile (install-others, CFLAGS-interp.c)
20732         (ldso_install, common-ldd-rewrite): Likewise.
20733         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
20734         $(inst_slibdir)/$(rtld-installed-name).
20735         * scripts/rellns-sh: Add -p option.
20736         * Makerules (make-shlib-link): Use rellns-sh to get relative name
20737         for source.
20738
20739 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20740
20741         * manual/nptl.texi: Renamed to ...
20742         * manual/threads.texi: ... this.
20743         * manual/Makefile (chapters): Update.
20744
20745 2013-03-18  Roland McGrath  <roland@hack.frob.com>
20746
20747         [BZ #14812]
20748         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
20749         on argument names, not just descriptions.
20750         * malloc/memusagestat.c (options): Likewise.
20751         * nss/getent.c (options): Likewise.
20752
20753 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
20754
20755         [BZ #14812]
20756         * iconv/iconv_prog.c (options): Put N_ translation marker
20757         on argument names, not just descriptions.
20758         * iconv/iconvconfig.c (options): Likewise.
20759
20760 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
20761
20762         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
20763         implementation which is faster on all x86_64 architectures.
20764         Tested on AMD, Intel Nehalem, SNB, IVB.
20765         * sysdeps/x86_64/strnlen.S: Likewise.
20766
20767         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
20768         Remove all multiarch strlen and strnlen versions.
20769         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
20770         Remove strlen and strnlen related parts.
20771
20772         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
20773         Inline strlen part.
20774         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
20775
20776         * sysdeps/x86_64/multiarch/strlen.S: Remove.
20777         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
20778         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
20779         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
20780         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
20781         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
20782
20783 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
20784
20785         * manual/memory.texi (Malloc Tunable Parameters):
20786         Sort parameters alphabetically. Add comments for missing entries.
20787
20788 2013-03-17  David S. Miller  <davem@davemloft.net>
20789
20790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20791
20792 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
20793
20794         [BZ #15283]
20795         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
20796         for arguments at most half maximum finite value.
20797         * math/libm-test.inc (j0_test): Add more tests.
20798         (j1_test): Likewise.
20799         (y0_test): Likewise.
20800         (y1_test): Likewise.
20801         * sysdeps/i386/fpu/libm-test-ulps: Update.
20802         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20803
20804         [BZ #14155]
20805         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
20806         1 / x and functions P and Q for arguments above 0x1p256L.
20807         (__ieee754_y0l): Likewise.
20808         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20809         (__ieee754_y1l): Likewise.
20810         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
20811         (j1_test): Likewise.
20812         (y0_test): Likewise.
20813         (y1_test): Likewise.
20814
20815 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
20816
20817         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
20818         variable.
20819
20820 2013-03-15  Roland McGrath  <roland@hack.frob.com>
20821
20822         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
20823         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
20824         zero since it's initialized to EXEC_PAGESIZE.
20825
20826         * sysdeps/unix/sysv/linux/ldsodefs.h
20827         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
20828         * sysdeps/generic/ldsodefs.h: ... here.
20829
20830 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
20831
20832         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
20833
20834         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
20835         math/test-snan.c.
20836         * math/test-snan.c: Renamed from
20837         sysdeps/powerpc/fpu/test-powerpc-snan.c.
20838         * math/Makefile (tests): Add test-snan.
20839         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
20840         test-powerpc-snan.
20841
20842         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
20843         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
20844         functions.
20845         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
20846         __builtin_nan family of functions.
20847         * math/libm-test.inc (initialize): Initialize qnan_value with
20848         __builtin_nan family of functions.
20849         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
20850         Remove variables.
20851         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
20852         Remove functions.
20853         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
20854         storage class.  Initialize qNaN_var and sNaN_var with
20855         __builtin_nan and __builtin_nans families of functions,
20856         respectively.
20857
20858         * math/libm-test.inc (acosh_test): Also test with qNaN input.
20859         (sqrt_test): Remove duplicate test with qNaN input.
20860         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
20861         (round_test, signbit_test, significand_test): Note missing +/-Inf
20862         as well as qNaN tests.
20863
20864         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
20865         qNaN_var.  Fix a few strings, too.
20866         * math/libm-test.inc (nan_value): Rename to qnan_value.
20867         * math/gen-libm-test.pl (%beautify): Adjust to that.
20868         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
20869         * math/test-misc.c (main): Likewise.
20870         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
20871         to __qnan_bytes, and __qnan_union, respectively.
20872         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
20873         Likewise.
20874         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
20875         and lqnanval, respectively.
20876         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
20877         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
20878         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
20879         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
20880
20881         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
20882         * math/test-misc.c (main) [__x86_64__]: Enable test for long
20883         doubles.
20884
20885         * math/test-misc.c (main): Fix copy'n'pastos.
20886         * misc/tst-efgcvt.c (special): Likewise.
20887
20888         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
20889         Remove declarations.
20890
20891 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20892
20893         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
20894         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
20895         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
20896         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
20897
20898 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20899
20900         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
20901         macro to return vdso values correctly in IFUNC implementations.
20902         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
20903         Optimization by using IFUNC.
20904
20905 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20906             Richard Henderson  <rth@redhat.com>
20907             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20908
20909         * Makefile.in (bench): New target.
20910         * NEWS: Mention the benchmark framework.
20911         * Rules (bench): Likewise.
20912         (binaries-bench): Generate binaries for functions to
20913         benchmark.
20914         * benchtests/Makefile: New makefile for benchmark tests.
20915         * benchtests/bench-skeleton.c: New skeleton file for benchmark
20916         programs.
20917         * benchtests/exp-inputs: New input file for EXP function.
20918         * benchtests/pow-inputs: New input file for POW function.
20919         * scripts/bench.pl: New script to generate source files for
20920         benchmark programs.
20921
20922 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20923
20924         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
20925         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
20926         computations on mantissa.  Use macros for rounding and
20927         division.
20928         (denorm): Likewise.
20929         (__dbl_mp): Likewise.
20930         (add_magnitudes): Likewise.
20931         (sub_magnitudes): Likewise.
20932         (__mul): Likewise.
20933         (__sqr): Likewise.
20934         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
20935         powers of two in terms of TWOPOW macro.
20936         (mp_no): Make type of mantissa as MANTISSA_T.
20937         [!RADIXI]: Define RADIXI.
20938         [!TWO52]: Define TWO52.
20939         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
20940
20941         * manual/nptl.texi (cindex): Modify threads to pthreads.
20942
20943 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
20944
20945         * sysdeps/x86_64/preconfigure: Regenerated.
20946
20947 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
20948
20949         [BZ #14155]
20950         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
20951         0x1p28 and above.
20952         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
20953         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
20954         0x1p28 and above.
20955         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
20956         * math/libm-test.inc (j0_test): Do not allow one spurious
20957         underflow exception.
20958         (y1_test): Likewise.
20959
20960 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20961
20962         * manual/Makefile (chapters): Add nptl.
20963         * manual/debug.texi (Debugging Support): Add link to Threads
20964         chapter.
20965         * manual/nptl.texi: New file.
20966
20967         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
20968
20969 2013-03-14  Petr Baudis  <pasky@ucw.cz>
20970
20971         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
20972         for non-NULL pointer before the memory validity test. Pointed
20973         out by Holger Brunck <holger.brunck@keymile.com>.
20974
20975 2013-03-13  Andreas Schwab  <schwab@suse.de>
20976
20977         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
20978         instead of .os.
20979
20980 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
20981
20982         * timezone/zic.c: Update from tzcode 2013b.
20983
20984 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
20985
20986         * manual/install.texi (Configuring and compiling):
20987         Mention i686 and i586.
20988         * INSTALL: Regenerate.
20989
20990 2013-03-12  Roland McGrath  <roland@hack.frob.com>
20991
20992         * sysdeps/init_array/elf-init.c: New file.
20993         * csu/elf-init.c
20994         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
20995         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
20996
20997         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
20998         __gmon_start__ as global, but as static with a .preinit_array pointer.
20999         * sysdeps/init_array/gmon-start.c: New file.  Use that.
21000         * sysdeps/init_array/crti.S: New file, empty except for comments.
21001         * sysdeps/init_array/crtn.S: Likewise.
21002
21003 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
21004
21005         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
21006         definining bcopy.
21007         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21008         Remove Prefer_SSE_for_memop.
21009         * sysdeps/x86_64/multiarch/init-arch.h: Remove
21010         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
21011         HAS_PREFER_SSE_FOR_MEMOP.
21012         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
21013         memset-x86-64.
21014         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
21015         Remove bzero, memset ifunc support.
21016         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
21017         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
21018         * sysdeps/x86_64/multiarch/memset.S: Likewise.
21019         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
21020
21021 2013-03-11  Andreas Schwab  <schwab@suse.de>
21022
21023         [BZ #15234]
21024         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
21025         by SHLIB_COMPAT.
21026         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
21027         (GLIBC_2.16): Remove pthread_atfork.
21028
21029 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
21030
21031         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
21032         (ptestcases.h): Likewise.
21033
21034 2013-03-08  Roland McGrath  <roland@hack.frob.com>
21035
21036         * Makeconfig ($(common-objpfx)config.status): Depend on
21037         sysdeps/*/preconfigure{,.in} too.
21038
21039 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
21040
21041         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
21042         (__free_hook): Use void * instead of __malloc_ptr_t.
21043         (__malloc_hook): Likewise.
21044         (__realloc_hook): Likewise.
21045         (__memalign_hook): Likewise.
21046         (__after_morecore_hook): Likewise.
21047         * malloc/arena.c (save_malloc_hook): Likewise.
21048         (save_free_hook): Likewise.
21049         * malloc/hooks.c (malloc_hook_ini): Likewise.
21050         (realloc_hook_ini): Likewise.
21051         (memalign_hook_ini): Likewise.
21052         * malloc/malloc.c (malloc_hook_ini): Likewise.
21053         (realloc_hook_ini): Likewise.
21054         (memalign_hook_ini): Likewise.
21055         (__free_hook): Likewise.
21056         (__malloc_hook): Likewise.
21057         (__realloc_hook): Likewise.
21058         (__memalign_hook): Likewise.
21059         (__libc_malloc): Likewise.
21060         (__libc_free): Likewise.
21061         (__libc_realloc): Likewise.
21062         (__libc_memalign): Likewise.
21063         (__libc_valloc): Likewise.
21064         (__libc_pvalloc): Likewise.
21065         (__libc_calloc): Likewise.
21066         (__posix_memalign): Likewise.
21067         * malloc/morecore.c (__sbrk): Likewise.
21068         (__default_morecore): Likewise.
21069
21070         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
21071
21072         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
21073         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
21074         __malloc_ptrdiff_t.
21075
21076         * malloc/malloc.h (__malloc_size_t): Remove macro.
21077         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
21078         __malloc_size_t.
21079         (old_memalign_hook): Likewise.
21080         (old_realloc_hook): Likewise.
21081         (struct hdr): Likewise.
21082         (flood): Likewise.
21083         (mallochook): Likewise.
21084         (memalignhook): Likewise.
21085         (reallochook): Likewise.
21086         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
21087         (tr_old_realloc_hook): Likewise.
21088         (tr_old_memalign_hook): Likewise.
21089         (tr_mallochook): Likewise.
21090         (tr_reallochook): Likewise.
21091         (tr_memalignhook): Likewise.
21092
21093 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21094
21095         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
21096         default_ldbl_pack and using as default implementation.
21097         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
21098         implementation.
21099         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
21100         redundant definition.
21101         (ldbl_insert_mantissa): Likewise.
21102         (ldbl_canonicalize): Likewise.
21103         (ldbl_nearbyint): Likewise.
21104         (ldbl_pack): Rename to ldbl_pack_ppc.
21105         (ldbl_unpack): Rename to ldbl_unpack_ppc.
21106         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
21107         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
21108
21109 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
21110
21111         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
21112         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
21113         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
21114         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
21115         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
21116         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
21117         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
21118         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
21119
21120 2013-03-07  Andreas Jaeger  <aj@suse.de>
21121
21122         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21123         bits/mman-linux.h.
21124
21125 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
21126
21127         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
21128         Include mpa.h and declare __MPEXP.
21129         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
21130         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
21131         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
21132         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
21133         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
21134         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
21135         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
21136
21137         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
21138         (__slowpow): Use long double EXPL and LOGL functions to
21139         compute POW.
21140         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
21141         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
21142         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
21143         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
21144         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
21145         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
21146
21147         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
21148         intermediate variable to calculate exponent.
21149         (__sqr): Likewise.
21150         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21151         Likewise.
21152         (__sqr): Likewise.
21153
21154         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
21155         [!NO__SQR]: Define __sqr.
21156         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
21157         and NO__SQR.  Remove all code except __mul and __sqr.  Include
21158         sysdeps/ieee754/dbl-64/mpa.c.
21159         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21160
21161         [BZ #12723]
21162         * posix/Makefile (tests): Add tst-pathconf.
21163         * posix/tst-pathconf.c: New test case.
21164         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
21165         _PC_PIPE_BUF.
21166         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
21167
21168 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
21169
21170         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
21171
21172 2013-03-06  Andreas Jaeger  <aj@suse.de>
21173
21174         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
21175         definition via __MAP_ANONYMOUS.
21176
21177         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
21178         it's not part of Linux headers.
21179
21180         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
21181         (MAP_HUGE_MASK): Define.
21182
21183         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21184         Define.
21185         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21186         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21187         Define.
21188         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21189         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21190         Define.
21191         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21192         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
21193         Define.
21194         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21195
21196         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
21197         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
21198         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
21199         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
21200         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
21201         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
21202
21203         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21204         Handle f2fs.
21205
21206         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21207         Handle f2fs and efivarfs.
21208
21209         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
21210         f2fs.
21211
21212         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
21213         (EFIVARFS_MAGIC): Add.
21214         (F2FS_LINK_MAX): Add.
21215
21216 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
21217
21218         * stdio-common/vfprintf.c: Replace __builtin_expect with
21219         __glibc_unlikely.
21220
21221 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
21222
21223         [BZ #13550]
21224         * sysdeps/generic/bp-sym.h: Remove file.
21225         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
21226         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
21227         <bp-sym.h> and <bp-asm.h>.
21228         (__longjmp): Don't use BP_SYM.
21229         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
21230         and <bp-asm.h>.
21231         (memcpy): Don't use BP_SYM.
21232         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
21233         <bp-sym.h> and <bp-asm.h>.
21234         (memcpy): Don't use BP_SYM.
21235         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
21236         <bp-asm.h>.
21237         (memcpy): Don't use BP_SYM.
21238         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
21239         <bp-asm.h>.
21240         (memset): Don't use BP_SYM.
21241         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21242         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21243         (__bzero): Don't use BP_SYM.
21244         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21245         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21246         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
21247         <bp-sym.h> and <bp-asm.h>.
21248         (memcmp): Don't use BP_SYM.  Remove comment about bounded
21249         pointers.
21250         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
21251         <bp-sym.h> and <bp-asm.h>.
21252         (memcpy): Don't use BP_SYM.
21253         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
21254         <bp-sym.h> and <bp-asm.h>.
21255         (memset): Don't use BP_SYM.
21256         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21257         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21258         (__bzero): Don't use BP_SYM.
21259         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21260         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21261         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
21262         <bp-sym.h> and <bp-asm.h>.
21263         (strncmp): Don't use BP_SYM.  Remove comment about bounded
21264         pointers.
21265         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
21266         <bp-sym.h> and <bp-asm.h>.
21267         (memcpy): Don't use BP_SYM.
21268         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
21269         <bp-sym.h> and <bp-asm.h>.
21270         (memset): Don't use BP_SYM.
21271         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21272         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21273         (__bzero): Don't use BP_SYM.
21274         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21275         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21276         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
21277         <bp-sym.h> and <bp-asm.h>.
21278         (__memchr): Don't use BP_SYM.
21279         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
21280         <bp-sym.h> and <bp-asm.h>.
21281         (memcmp): Don't use BP_SYM.  Remove comment about bounded
21282         pointers.
21283         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
21284         <bp-sym.h> and <bp-asm.h>.
21285         (memcpy): Don't use BP_SYM.
21286         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
21287         <bp-sym.h> and <bp-asm.h>.
21288         (__mempcpy): Don't use BP_SYM.
21289         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
21290         <bp-sym.h> and <bp-asm.h>.
21291         (__memrchr): Don't use BP_SYM.
21292         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
21293         <bp-sym.h> and <bp-asm.h>.
21294         (memset): Don't use BP_SYM.
21295         (__bzero): Likewise.
21296         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
21297         <bp-sym.h> and <bp-asm.h>.
21298         (__rawmemchr): Don't use BP_SYM.
21299         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
21300         <bp-sym.h> and <bp-asm.h>.
21301         (__STRCMP): Don't use BP_SYM.
21302         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
21303         <bp-sym.h> and <bp-asm.h>.
21304         (strchr): Don't use BP_SYM.
21305         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
21306         <bp-sym.h> and <bp-asm.h>.
21307         (__strchrnul): Don't use BP_SYM.
21308         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
21309         <bp-sym.h> and <bp-asm.h>.
21310         (strlen): Don't use BP_SYM.
21311         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
21312         <bp-sym.h> and <bp-asm.h>.
21313         (strncmp): Don't use BP_SYM.  Remove comment about bounded
21314         pointers.
21315         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
21316         <bp-sym.h> and <bp-asm.h>.
21317         (__strnlen): Don't use BP_SYM.
21318         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
21319         <bp-sym.h> and <bp-asm.h>.
21320         (__GI__setjmp): Don't use BP_SYM.
21321         (_setjmp): Likewise.
21322         (__sigsetjmp): Likewise.
21323         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
21324         (L(start_addresses)): Don't use BP_SYM.
21325         (_start): Likewise.
21326         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
21327         <bp-asm.h>.
21328         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
21329         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
21330         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21331         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21332         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
21333         <bp-asm.h>.
21334         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
21335         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
21336         about bounded pointers.
21337         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21338         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21339         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
21340         <bp-asm.h>.
21341         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
21342         about bounded pointers.  Remove GKM FIXME comments.
21343         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21344         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
21345         <bp-asm.h>.
21346         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
21347         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
21348         Remove GKM FIXME comments.
21349         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21350         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21351         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
21352         <bp-asm.h>.
21353         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
21354         about bounded pointers.  Remove GKM FIXME comment.
21355         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
21356         and <bp-asm.h>.
21357         (strncmp): Don't use BP_SYM.  Remove comment about bounded
21358         pointers.
21359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
21360         <bp-sym.h> and <bp-asm.h>.
21361         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
21362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
21363         <bp-sym.h> and <bp-asm.h>.
21364         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
21365         comment.
21366
21367 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21368
21369         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
21370         call free(NULL).
21371
21372 2013-03-05  David S. Miller  <davem@davemloft.net>
21373
21374         * po/es.po: Update from translation team.
21375
21376 2013-03-05  Andreas Jaeger  <aj@suse.de>
21377
21378         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
21379         <bits/mman-linux.h>.
21380         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
21381         is fine.
21382         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
21383         <bits/mman-linux.h> to end of file.
21384         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
21385         is fine.
21386         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
21387         <bits/mman-linux.h> to end of file.
21388         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
21389         is fine.
21390         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
21391         <bits/mman-linux.h> to end of file.
21392
21393         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
21394         (MCL_CURRENT, MCL_FUTURE): Define here.
21395
21396 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21397
21398         [BZ #15232]
21399         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
21400         attribute_hidden.
21401         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
21402
21403 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21404
21405         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
21406         fourth parameter needed for rt_sigprocmask syscall.
21407         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
21408         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
21409         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
21410         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
21411         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
21412         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
21413
21414 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
21415
21416         [BZ #13550]
21417         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
21418         comment about bounded pointers.
21419         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
21420         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
21421
21422 2013-03-04  Andreas Jaeger  <aj@suse.de>
21423
21424         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
21425         common definitions.
21426
21427         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
21428         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
21429         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
21430         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
21431         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
21432         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21433
21434 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21435
21436         [BZ #15055]
21437         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
21438         __ieee754_sqrl instead of __sqrl.
21439
21440 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
21441
21442         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
21443         * sysdeps/powerpc/fpu_control.h: ... here.
21444         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
21445         * sysdeps/powerpc/bits/fenvinline.h: ... here.
21446         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
21447         * sysdeps/powerpc/bits/mathinline.h: ... here.
21448
21449 2013-03-01  Roland McGrath  <roland@hack.frob.com>
21450
21451         * elf/dl-hwcaps.c (_dl_important_hwcaps):
21452         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
21453         to just [NEED_DL_SYSINFO_DSO].
21454         * elf/dl-support.c: Likewise.
21455         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
21456         * elf/rtld.c (dl_main): Likewise.
21457         * elf/setup-vdso.h (setup_vdso): Likewise.
21458         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
21459         * sysdeps/unix/sysv/linux/dl-sysdep.c
21460         (_dl_discover_osversion): Likewise.
21461
21462 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
21463
21464         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
21465         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
21466
21467 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
21468
21469         * NEWS: Mention libm performance improvements and non-x86 PI
21470         futex support.
21471
21472         * csu/libc-start.c (__pthread_initialize_minimal): Change
21473         function arguments.
21474         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
21475
21476 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
21477
21478         [BZ #13550]
21479         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
21480         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
21481         <bp-sym.h> and <bp-asm.h>.
21482         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
21483         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
21484         and <bp-asm.h>.
21485         (memcpy): Don't use BP_SYM.
21486         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
21487         <bp-asm.h>.
21488         (__mpn_add_n): Don't use BP_SYM.
21489         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
21490         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
21491         and <bp-asm.h>.
21492         (__mpn_addmul_1): Don't use BP_SYM.
21493         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21494         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
21495         <bp-sym.h>.
21496         (_setjmp): Don't use BP_SYM.
21497         (__novmx_setjmp): Likewise.
21498         (__GI__setjmp): Likewise.
21499         (__vmx_setjmp): Likewise.
21500         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
21501         <bp-sym.h>.
21502         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
21503         (__bzero): Don't use BP_SYM.
21504         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21505         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21506         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
21507         <bp-sym.h> and <bp-asm.h>.
21508         (memcpy): Don't use BP_SYM.
21509         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
21510         <bp-sym.h> and <bp-asm.h>.
21511         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
21512         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
21513         <bp-sym.h> and <bp-asm.h>.
21514         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
21515         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
21516         <bp-asm.h>.
21517         (__mpn_lshift): Don't use BP_SYM.
21518         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21519         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
21520         <bp-asm.h>.
21521         (memset): Don't use BP_SYM.
21522         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21523         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21524         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
21525         <bp-asm.h>.
21526         (__mpn_mul_1): Don't use BP_SYM.
21527         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21528         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
21529         <bp-sym.h> and <bp-asm.h>.
21530         (memcmp): Don't use BP_SYM.
21531         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
21532         <bp-sym.h> and <bp-asm.h>.
21533         (memcpy): Don't use BP_SYM.
21534         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
21535         <bp-sym.h> and <bp-asm.h>.
21536         (memset): Don't use BP_SYM.
21537         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
21538         <bp-sym.h> and <bp-asm.h>.
21539         (strncmp): Don't use BP_SYM.
21540         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
21541         <bp-sym.h> and <bp-asm.h>.
21542         (memcpy): Don't use BP_SYM.
21543         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
21544         <bp-sym.h> and <bp-asm.h>.
21545         (memset): Don't use BP_SYM.
21546         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
21547         <bp-sym.h> and <bp-asm.h>.
21548         (__memchr): Don't use BP_SYM.
21549         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
21550         <bp-sym.h> and <bp-asm.h>.
21551         (memcmp): Don't use BP_SYM.
21552         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
21553         <bp-sym.h> and <bp-asm.h>.
21554         (memcpy): Don't use BP_SYM.
21555         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
21556         <bp-sym.h> and <bp-asm.h>.
21557         (__mempcpy): Don't use BP_SYM.
21558         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
21559         <bp-sym.h> and <bp-asm.h>.
21560         (__memrchr): Don't use BP_SYM.
21561         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
21562         <bp-sym.h> and <bp-asm.h>.
21563         (memset): Don't use BP_SYM.
21564         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
21565         <bp-sym.h> and <bp-asm.h>.
21566         (__rawmemchr): Don't use BP_SYM.
21567         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
21568         <bp-sym.h> and <bp-asm.h>.
21569         (__STRCMP): Don't use BP_SYM.
21570         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
21571         <bp-sym.h> and <bp-asm.h>.
21572         (strchr): Don't use BP_SYM.
21573         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
21574         <bp-sym.h> and <bp-asm.h>.
21575         (__strchrnul): Don't use BP_SYM.
21576         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
21577         <bp-sym.h> and <bp-asm.h>.
21578         (strlen): Don't use BP_SYM.
21579         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
21580         <bp-sym.h> and <bp-asm.h>.
21581         (strncmp): Don't use BP_SYM.
21582         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
21583         <bp-sym.h> and <bp-asm.h>.
21584         (__strnlen): Don't use BP_SYM.
21585         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
21586         <bp-asm.h>.
21587         (__mpn_rshift): Don't use BP_SYM.
21588         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
21589         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
21590         <bp-sym.h> and <bp-asm.h>.
21591         (__sigsetjmp): Don't use BP_SYM.
21592         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
21593         (L(start_addresses)): Don't use BP_SYM.
21594         (_start): Likewise.
21595         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
21596         <bp-asm.h>.
21597         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
21598         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21599         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21600         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
21601         <bp-asm.h>.
21602         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
21603         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
21604         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
21605         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
21606         <bp-asm.h>.
21607         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
21608         comments.
21609         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
21610         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
21611         <bp-asm.h>.
21612         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
21613         FIXME comments.
21614         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
21615         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
21616         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
21617         <bp-asm.h>.
21618         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
21619         comment.
21620         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
21621         and <bp-asm.h>.
21622         (strncmp): Don't use BP_SYM,
21623         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
21624         <bp-asm.h>.
21625         (__mpn_sub_n): Don't use BP_SYM.
21626         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
21627         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
21628         and <bp-asm.h>.
21629         (__mpn_submul_1): Don't use BP_SYM.
21630         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
21631         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
21632         <bp-sym.h> and <bp-asm.h>.
21633         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
21634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
21635         <bp-sym.h> and <bp-asm.h>.
21636         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
21637         comment.
21638
21639 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21640
21641         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
21642         Use ZK to minimize writes to Z.
21643         (sub_magnitudes): Simplify code a bit.
21644         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
21645         Use ZK to minimize writes to Z.
21646         (sub_magnitudes): Simplify code a bit.
21647
21648 2013-02-27  Roland McGrath  <roland@hack.frob.com>
21649
21650         * csu/gmon-start.c: Add special exception to license text.
21651
21652 2013-02-27  Richard Henderson  <rth@redhat.com>
21653
21654         * scripts/config.guess: Update from config.git.
21655         * scripts/config.sub: Likewise.
21656
21657 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
21658
21659         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
21660
21661         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
21662
21663         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
21664
21665         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
21666
21667         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
21668
21669 2013-02-26  Roland McGrath  <roland@hack.frob.com>
21670
21671         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
21672         [$(build-shared = yes].
21673
21674 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21675
21676         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
21677         (__mul): Reduce iterations for calculating mantissa.
21678
21679         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
21680         MPTWO.
21681         (__mpranred): Likewise.
21682
21683         [BZ #15160]
21684         * malloc/memusagestat.c (main): Draw graphs for heap and stack
21685         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
21686
21687 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21688
21689         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
21690         Define __attribute__.
21691
21692 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21693
21694         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
21695         unused.
21696         * posix/regex_internal.h (__attribute): Remove.
21697         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
21698         (re_string_context_at): Likewise.
21699         (bitset_not): Use __attribute__ and mark function as possibly
21700         unused.
21701         (bitset_merge): Likewise.
21702         (bitset_mask): Likewise.
21703         (re_string_char_size_at): Likewise.
21704         (re_string_wchar_at): Likewise.
21705         (re_string_elem_size_at): Likewise.
21706
21707 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
21708
21709         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
21710         code.
21711         (cc32): Likewise.
21712
21713         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
21714         (__acr): Likewise.
21715         (__cpy): Likewise.
21716         (norm): Likewise.
21717         (denorm): Likewise.
21718         (__dbl_mp): Likewise.
21719         (add_magnitudes): Likewise.
21720         (sub_magnitudes): Likewise.
21721         (__mul): Likewise.
21722         (__inv): Likewise.
21723
21724         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
21725         style.
21726
21727         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
21728         style.
21729
21730         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
21731         code.
21732
21733         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
21734         up changes with default code.
21735         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
21736         Likewise.
21737
21738 2013-02-24  Allan McRae  <allan@archlinux.org>
21739
21740         * manual/socket.texi (The Internet Namespace): Order menu items
21741         to match that in the file.
21742
21743         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
21744         node listing of the info page menu.
21745
21746 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
21747
21748         [BZ #13550]
21749         * sysdeps/i386/bp-asm.h: Remove file.
21750         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
21751         (PARMS): Do not use macros from bp-asm.h.
21752         (S1): Likewise.
21753         (S2): Likewise.
21754         (SIZE): Likewise.
21755         (__mpn_add_n): Do not use BP_SYM
21756         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
21757         "bp-asm.h".
21758         (PARMS): Do not use macros from bp-asm.h.
21759         (S1): Likewise.
21760         (SIZE): Likewise.
21761         (__mpn_addmul_1): Do not use BP_SYM
21762         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
21763         "bp-asm.h".
21764         (PARMS): Do not use macros from bp-asm.h.
21765         (SIGMSK): Likewise.
21766         (_setjmp): Likewise.  Do not use BP_SYM.
21767         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
21768         "bp-asm.h".
21769         (PARMS): Do not use macros from bp-asm.h.
21770         (SIGMSK): Likewise.
21771         (setjmp): Likewise.  Do not use BP_SYM.
21772         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
21773         "bp-asm.h".
21774         (PARMS): Do not use macros from bp-asm.h.
21775         (__frexp): Do not use BP_SYM.
21776         (frexp): Likewise.
21777         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
21778         "bp-asm.h".
21779         (PARMS): Do not use macros from bp-asm.h.
21780         (__frexpf): Do not use BP_SYM.
21781         (frexpf): Likewise.
21782         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
21783         "bp-asm.h".
21784         (PARMS): Do not use macros from bp-asm.h.
21785         (__frexpl): Do not use BP_SYM.
21786         (frexpl): Likewise.
21787         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
21788         "bp-asm.h".
21789         (PARMS): Do not use macros from bp-asm.h.
21790         (__remquo): Do not use BP_SYM.
21791         (remquo): Likewise.
21792         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
21793         "bp-asm.h".
21794         (PARMS): Do not use macros from bp-asm.h.
21795         (__remquof): Do not use BP_SYM.
21796         (remquof): Likewise.
21797         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
21798         "bp-asm.h".
21799         (PARMS): Do not use macros from bp-asm.h.
21800         (__remquol): Do not use BP_SYM.
21801         (remquol): Likewise.
21802         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
21803         "bp-asm.h".
21804         (PARMS): Do not use macros from bp-asm.h.
21805         (DEST): Likewise.
21806         (SRC): Likewise.
21807         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
21808         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
21809         "bp-asm.h".
21810         (PARMS): Do not use macros from bp-asm.h.
21811         (strlen): Do not use BP_SYM.
21812         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
21813         "bp-asm.h".
21814         (PARMS): Do not use macros from bp-asm.h.
21815         (S1): Likewise.
21816         (S2): Likewise.
21817         (SIZE): Likewise.
21818         (__mpn_add_n): Do not use BP_SYM.
21819         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
21820         "bp-asm.h".
21821         (PARMS): Do not use macros from bp-asm.h.
21822         (S1): Likewise.
21823         (SIZE): Likewise.
21824         (__mpn_addmul_1): Do not use BP_SYM.
21825         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
21826         weak_alias.
21827         (bzero): Likewise.
21828         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
21829         "bp-asm.h".
21830         (PARMS): Do not use macros from bp-asm.h.
21831         (S): Likewise.
21832         (SIZE): Likewise.
21833         (__mpn_lshift): Do not use BP_SYM.
21834         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
21835         "bp-asm.h".
21836         (PARMS): Do not use macros from bp-asm.h.
21837         (DEST): Likewise.
21838         (SRC): Likewise.
21839         (LEN): Likewise.
21840         (memcpy): Likewise.  Do not use BP_SYM.
21841         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
21842         libc_hidden_def and weak_alias.
21843         (mempcpy): Do not use BP_SYM in weak_alias.
21844         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
21845         "bp-asm.h".
21846         (PARMS): Do not use macros from bp-asm.h.
21847         (DEST): Likewise.
21848         (LEN): Likewise.
21849         [!BZERO_P] (CHR): Likewise.
21850         (memset): Likewise.  Do not use BP_SYM.
21851         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
21852         "bp-asm.h".
21853         (PARMS): Do not use macros from bp-asm.h.
21854         (S1): Likewise.
21855         (SIZE): Likewise.
21856         (__mpn_mul_1): Do not use BP_SYM.
21857         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
21858         "bp-asm.h".
21859         (PARMS): Do not use macros from bp-asm.h.
21860         (S): Likewise.
21861         (SIZE): Likewise.
21862         (__mpn_rshift): Do not use BP_SYM.
21863         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
21864         "bp-asm.h".
21865         (PARMS): Do not use macros from bp-asm.h.
21866         (STR): Likewise.
21867         (CHR): Likewise.
21868         (strchr): Likewise.  Do not use BP_SYM.
21869         (index): Do not use BP_SYM in weak_alias.
21870         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
21871         "bp-asm.h".
21872         (PARMS): Do not use macros from bp-asm.h.
21873         (DEST): Likewise.
21874         (SRC): Likewise.
21875         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
21876         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
21877         "bp-asm.h".
21878         (PARMS): Do not use macros from bp-asm.h.
21879         (strlen): Do not use BP_SYM.
21880         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
21881         "bp-asm.h".
21882         (PARMS): Do not use macros from bp-asm.h.
21883         (S1): Likewise.
21884         (S2): Likewise.
21885         (SIZE): Likewise.
21886         (__mpn_sub_n): Do not use BP_SYM.
21887         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
21888         "bp-asm.h".
21889         (PARMS): Do not use macros from bp-asm.h.
21890         (S1): Likewise.
21891         (SIZE): Likewise.
21892         (__mpn_submul_1): Do not use BP_SYM.
21893         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
21894         "bp-asm.h".
21895         (PARMS): Do not use macros from bp-asm.h.
21896         (S1): Likewise.
21897         (S2): Likewise.
21898         (SIZE): Likewise.
21899         (__mpn_add_n): Do not use BP_SYM.
21900         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
21901         weak_alias.
21902         (bzero): Likewise.
21903         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
21904         "bp-asm.h".
21905         (PARMS): Do not use macros from bp-asm.h.
21906         (BLK2): Likewise.
21907         (LEN): Likewise.
21908         (memcmp): Do not use BP_SYM.
21909         (bcmp): Do not use BP_SYM in weak_alias.
21910         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
21911         "bp-asm.h".
21912         (PARMS): Do not use macros from bp-asm.h.
21913         (DEST): Likewise.
21914         (SRC): Likewise.
21915         (LEN): Likewise.
21916         (memcpy): Likewise.  Do not use BP_SYM.
21917         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
21918         "bp-asm.h".
21919         (PARMS): Do not use macros from bp-asm.h.
21920         (DEST): Likewise.
21921         (SRC): Likewise.
21922         (LEN): Likewise.
21923         (memmove): Likewise.  Do not use BP_SYM.
21924         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
21925         "bp-asm.h".
21926         (PARMS): Do not use macros from bp-asm.h.
21927         (DEST): Likewise.
21928         (SRC): Likewise.
21929         (LEN): Likewise.
21930         (__mempcpy): Likewise.  Do not use BP_SYM.
21931         (mempcpy): Do not use BP_SYM in weak_alias.
21932         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
21933         "bp-asm.h".
21934         (PARMS): Do not use macros from bp-asm.h.
21935         (DEST): Likewise.
21936         (LEN): Likewise.
21937         [!BZERO_P] (CHR): Likewise.
21938         (memset): Likewise.  Do not use BP_SYM.
21939         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
21940         "bp-asm.h".
21941         (PARMS): Do not use macros from bp-asm.h.
21942         (STR2): Likewise.
21943         (strcmp): Do not use BP_SYM.
21944         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
21945         "bp-asm.h".
21946         (PARMS): Do not use macros from bp-asm.h.
21947         (STR): Likewise.
21948         (DELIM): Likewise.
21949         [USE_AS_STRTOK_R] (SAVE): Likewise.
21950         (FUNCTION): Likewise.  Do not use BP_SYM.
21951         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
21952         aliases.
21953         (strtok_r): Likewise.
21954         (__GI___strtok_r): Likewise.
21955         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21956         (PARMS): Do not use macros from bp-asm.h.
21957         (S): Likewise.
21958         (SIZE): Likewise.
21959         (__mpn_lshift): Do not use BP_SYM.
21960         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
21961         (PARMS): Do not use macros from bp-asm.h.
21962         (STR): Likewise.
21963         (CHR): Likewise.
21964         (__memchr): Do not use BP_SYM.
21965         (memchr): Do not use BP_SYM in weak_alias.
21966         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21967         (PARMS): Do not use macros from bp-asm.h.
21968         (BLK2): Likewise.
21969         (LEN): Likewise.
21970         (memcmp): Do not use BP_SYM.
21971         (bcmp): Do not use BP_SYM in weak_alias.
21972         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
21973         (PARMS): Do not use macros from bp-asm.h.
21974         (S1): Likewise.
21975         (SIZE): Likewise.
21976         (__mpn_mul_1): Do not use BP_SYM.
21977         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
21978         "bp-asm.h".
21979         (PARMS): Do not use macros from bp-asm.h.
21980         (STR): Likewise.
21981         (CHR): Likewise.
21982         (__rawmemchr): Do not use BP_SYM.
21983         (rawmemchr): Do not use BP_SYM in weak_alias.
21984         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
21985         (PARMS): Do not use macros from bp-asm.h.
21986         (S): Likewise.
21987         (SIZE): Likewise.
21988         (__mpn_rshift): Do not use BP_SYM.
21989         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
21990         (PARMS): Do not use macros from bp-asm.h.
21991         (SIGMSK): Likewise.
21992         (__sigsetjmp): Likewise.  Do not use BP_SYM.
21993         * sysdeps/i386/start.S: Do not include "bp-sym.h".
21994         (_start): Do not use BP_SYM.
21995         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
21996         (PARMS): Do not use macros from bp-asm.h.
21997         (DEST): Likewise.
21998         (SRC): Likewise.
21999         (__stpcpy): Likewise.  Do not use BP_SYM.
22000         (stpcpy): Do not use BP_SYM in weak_alias.
22001         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
22002         "bp-asm.h".
22003         (PARMS): Do not use macros from bp-asm.h.
22004         (DEST): Likewise.
22005         (SRC): Likewise.
22006         (LEN): Likewise.
22007         (__stpncpy): Likewise.  Do not use BP_SYM.
22008         (stpncpy): Do not use BP_SYM in weak_alias.
22009         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
22010         (PARMS): Do not use macros from bp-asm.h.
22011         (STR): Likewise.
22012         (CHR): Likewise.
22013         (strchr): Likewise.  Do not use BP_SYM.
22014         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
22015         "bp-asm.h".
22016         (PARMS): Do not use macros from bp-asm.h.
22017         (STR): Likewise.
22018         (CHR): Likewise.
22019         (__strchrnul): Likewise.  Do not use BP_SYM.
22020         (strchrnul): Do not use BP_SYM in weak_alias.
22021         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
22022         "bp-asm.h".
22023         (PARMS): Do not use macros from bp-asm.h.
22024         (STOP): Likewise.
22025         (strcspn): Do not use BP_SYM.
22026         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
22027         "bp-asm.h".
22028         (PARMS): Do not use macros from bp-asm.h.
22029         (STR): Likewise.
22030         (STOP): Likewise.
22031         (strpbrk): Likewise.  Do not use BP_SYM.
22032         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
22033         "bp-asm.h".
22034         (PARMS): Do not use macros from bp-asm.h.
22035         (STR): Likewise.
22036         (CHR): Likewise.
22037         (strrchr): Likewise.  Do not use BP_SYM.
22038         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
22039         (PARMS): Do not use macros from bp-asm.h.
22040         (SKIP): Likewise.
22041         (strspn): Do not use BP_SYM.
22042         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
22043         (PARMS): Do not use macros from bp-asm.h.
22044         (STR): Likewise.
22045         (DELIM): Likewise.
22046         (SAVE): Likewise.
22047         (FUNCTION): Likewise.  Do not use BP_SYM.
22048         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
22049         aliases.
22050         (strtok_r): Likewise.
22051         (__GI___strtok_r): Likewise.
22052         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
22053         (PARMS): Do not use macros from bp-asm.h.
22054         (S1): Likewise.
22055         (S2): Likewise.
22056         (SIZE): Likewise.
22057         (__mpn_sub_n): Do not use BP_SYM.
22058         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
22059         "bp-asm.h".
22060         (PARMS): Do not use macros from bp-asm.h.
22061         (S1): Likewise.
22062         (SIZE): Likewise.
22063         (__mpn_submul_1): Do not use BP_SYM.
22064         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
22065         <bp-sym.h>.
22066         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
22067         and <bp-asm.h>.
22068         (PARMS): Do not use macros from bp-asm.h.
22069         (FLAGS): Likewise.
22070         (PTID): Likewise.
22071         (TLS): Likewise.
22072         (CTID): Likewise.
22073         (__clone): Do not use BP_SYM.
22074         (clone): Do not use BP_SYM in weak_alias.
22075         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
22076         and <bp-asm.h>.
22077         (PARMS): Do not use macros from bp-asm.h.
22078         (LEN): Likewise.
22079         (__mmap64): Do not use BP_SYM.
22080         (mmap64): Do not use BP_SYM in weak_alias.
22081         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
22082         <bp-sym.h> and <bp-asm.h>.
22083         (PARMS): Do not use macros from bp-asm.h.
22084         (__posix_fadvise64_l64): Do not use BP_SYM.
22085         * sysdeps/unix/sysv/linux/i386/semtimedop.S
22086         (PARMS): Do not use macros from bp-asm.h.
22087         (NSOPS): Likewise.
22088         (semtimedop): Do not use BP_SYM.
22089         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
22090         and <bp-asm.h>.
22091
22092 2013-02-21  Allan McRae  <allan@archlinux.org>
22093
22094         * manual/message.texi (Charset conversion in gettext):
22095         Move @end statement to beginning of line.
22096
22097 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
22098
22099         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
22100         static.
22101         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22102         Likewise.
22103
22104         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
22105         (denorm): Likewise.
22106         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
22107         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
22108
22109 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22110
22111         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
22112         tail-call to the resolved function if pltexit isn't needed.
22113
22114 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
22115
22116         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
22117         or Y being zero as being unlikely.
22118         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
22119         Likewise.
22120
22121 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
22122
22123         * manual/nss.texi (System Databases and Name Service Switch):
22124         Remove frobnicate @pxref.
22125
22126 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
22127
22128         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
22129         __attribute__ ((unused)) to __attribute__ ((__unused__)).
22130
22131 2013-02-20  Petr Machata  <pmachata@redhat.com>
22132
22133         * elf/elf.h (R_ARM_TARGET1): New macro.
22134         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
22135         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
22136         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
22137         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
22138         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
22139         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
22140         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
22141         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
22142         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
22143         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
22144         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
22145         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
22146         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
22147         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
22148         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
22149         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
22150         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
22151         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
22152         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
22153         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
22154         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
22155         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
22156         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
22157         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
22158         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
22159         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
22160         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
22161         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
22162         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
22163         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
22164         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
22165         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
22166         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
22167         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
22168         (R_ARM_THM_GOT_BREL12): Likewise.
22169         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
22170         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
22171         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
22172         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
22173         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
22174         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
22175         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
22176         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
22177         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
22178
22179 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
22180
22181         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
22182         __attribute_used__ to __attribute__ ((unused)).
22183
22184 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
22185
22186         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
22187         powerpc mpa.c.
22188         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
22189         comment formatting.
22190         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
22191
22192 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
22193
22194         [BZ #13550]
22195         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
22196         Remove macro.
22197         (ENTER): Remove both macro definitions.
22198         (LEAVE): Likewise.
22199         (CHECK_BOUNDS_LOW): Likewise.
22200         (CHECK_BOUNDS_HIGH): Likewise.
22201         (CHECK_BOUNDS_BOTH): Likewise.
22202         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
22203         (RETURN_BOUNDED_POINTER): Likewise.
22204         (RETURN_NULL_BOUNDED_POINTER): Likewise.
22205         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
22206         (POP_ERRNO_LOCATION_RETURN): Likewise.
22207         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
22208         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22209         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
22210         macros.
22211         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22212         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
22213         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
22214         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
22215         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
22216         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
22217         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
22218         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
22219         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
22220         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
22221         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
22222         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
22223         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22224         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
22225         removed macros.
22226         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22227         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
22228         macros.
22229         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22230         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
22231         * sysdeps/i386/i586/memset.S (memset): Likewise.
22232         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
22233         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22234         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
22235         macros.
22236         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22237         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
22238         Change uses of L(2) to L(out).
22239         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
22240         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
22241         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
22242         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22243         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
22244         removed macros.
22245         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22246         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
22247         macros.
22248         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22249         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
22250         (RETURN): Do not use macro LEAVE.
22251         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
22252         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
22253         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
22254         * sysdeps/i386/i686/memset.S (memset): Likewise.
22255         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
22256         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
22257         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
22258         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
22259         Likewise.
22260         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
22261         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
22262         L(1_2) and L(1_3) into L(1).
22263         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
22264         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
22265         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22266         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
22267         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
22268         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
22269         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
22270         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22271         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
22272         macros.
22273         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
22274         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22275         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
22276         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
22277         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
22278         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
22279         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
22280         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
22281         * sysdeps/i386/strcspn.S (strcspn): Likewise.
22282         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
22283         * sysdeps/i386/strrchr.S (strrchr): Likewise.
22284         * sysdeps/i386/strspn.S (strspn): Likewise.
22285         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
22286         conditional code.
22287         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
22288         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
22289         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
22290         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
22291         L(1_3) into L(1_1).
22292         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
22293         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22294         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
22295         macros.
22296         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22297
22298 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
22299
22300         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
22301         macro.
22302
22303 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
22304
22305         * math/atest-exp.c (exp_mpn): Remove ROUND.
22306         * math/atest-exp2.c (exp_mpn): Likewise.
22307         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
22308
22309         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
22310         * stdlib/tst-tls-atexit-lib.c: Likewise.
22311         * stdlib/tst-tls-atexit.c: Likewise.
22312
22313 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
22314
22315         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
22316         and __attribute_alloc_size__.
22317
22318 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
22319
22320         * include/programs/xmalloc.h: Change __attribute_alloc_size to
22321         __attribute_alloc_size__.
22322         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
22323         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
22324
22325 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
22326
22327         * include/programs/xmalloc.h: New file.
22328         * catgets/gencat.c: Include it.
22329         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
22330         * elf/pldd.c: Likewise.
22331         * iconv/iconv_charmap.c: Likewise.
22332         * iconv/iconvconfig.c: Likewise.
22333         * iconv/strtab.c: Likewise.
22334         * locale/programs/locale.c: Likewise.
22335         * locale/programs/localedef.h: Likewise.
22336         * locale/programs/simple-hash.c: Likewise.
22337         * nscd/nscd.h: Likewise.
22338         * nss/makedb.c: Likewise.
22339         * sysdeps/generic/ldconfig.h: Likewise.
22340
22341 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22342
22343         * Versions.def: Add GLIBC_2.18.
22344         * include/link.h (struct link_map): New member l_tls_dtor_count.
22345         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
22346         (__call_tls_dtors): Likewise.
22347         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
22348         __cxa_thread_atexit_impl.
22349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22350         Likewise.
22351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
22352         Likewise.
22353         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
22354         Likewise.
22355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
22356         Likewise.
22357         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
22358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
22359         Likewise.
22360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
22361         Likewise.
22362         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
22363         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
22364         Likewise.
22365         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
22366         (tests): Add test case tst-tls-atexit.
22367         (modules-names): Add shared library for tst-tls-atexit.
22368         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
22369         (GLIBC_PRIVATE): Add __call_tls_dtors.
22370         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
22371         for libstdc++.
22372         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
22373         * stdlib/tst-tls-atexit.c: New test case.
22374         * stdlib/tst-tls-atexit-lib.c: New test case.
22375
22376         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
22377
22378         * elf/Versions (ld): Add _dl_find_dso_for_object.
22379         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
22380         * elf/dl-open.c (_dl_find_dso_for_object): New function.
22381         (dl_open_worker): Use _dl_find_dso_for_object.
22382         * elf/dl-sym.c (do_sym): Likewise.
22383         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
22384
22385 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22386
22387         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
22388         Syntactic changes only.
22389         (_dl_runtime_profile): Do a tail-call to the resolved function.
22390
22391 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
22392
22393         [BZ #13550]
22394         * sysdeps/x86_64/bp-asm.h: Remove file.
22395         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
22396         <bp-sym.h> and <bp-asm.h>.
22397         (__clone): Do not use BP_SYM.
22398         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
22399         <bp-sym.h> and <bp-asm.h>.
22400         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22401         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
22402         "bp-asm.h".
22403         (_setjmp): Do not use BP_SYM.
22404         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
22405         "bp-asm.h".
22406         (setjmp): Do not use BP_SYM.
22407         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
22408         libc_hidden_def.
22409         (mempcpy): Do not use BP_SYM in weak_alias.
22410         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
22411         "bp-asm.h".
22412         (strchr): Do not use BP_SYM.
22413         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
22414         "bp-asm.h".
22415         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
22416         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
22417         (_start): Do not use BP_SYM.
22418         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
22419         "bp-asm.h".
22420         (strcat): Do not use BP_SYM.
22421         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
22422         "bp-asm.h".
22423         (STRCMP): Do not use BP_SYM.
22424         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
22425         "bp-asm.h".
22426         (STRCPY): Do not use BP_SYM.
22427         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
22428         "bp-asm.h".
22429         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
22430         "bp-asm.h".
22431         (FUNCTION): Do not use BP_SYM.
22432         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
22433         weak_alias.
22434         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
22435
22436 2013-02-17  Andreas Jaeger  <aj@suse.de>
22437
22438         * time/Versions: Sort entries.
22439         * string/Versions: Likewise.
22440         * resolv/Versions: Likewise.
22441         * posix/Versions: Likewise.
22442         * iconv/Versions: Likewise.
22443         * elf/Versions: Likewise.
22444         * wcsmbs/Versions: Likewise.
22445
22446 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
22447
22448         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
22449         loop termination condition.
22450
22451         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
22452         variable to calculate EZ.
22453         (__sqr): Likewise.
22454
22455         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
22456         the lower precision input.
22457
22458 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
22459
22460         [BZ #13550]
22461         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
22462         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
22463         (run-via-rtld-prefix): Do not handle %-bp tests.
22464         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
22465         (all-object-suffixes): Remove .ob.
22466         (bppfx): Remove variable.
22467         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
22468         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
22469         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
22470         [$(build-bounded) = yes] (libtype.ob): Likewise.
22471         * Makerules (elide-routines.ob): Remove variable.
22472         (do-tests-clean): Do not handle *-bp.out.
22473         (common-mostlyclean): Do not handle *-bp and *-bp.out.
22474         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
22475         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
22476         (tests): Do not include $(tests-bp.out).
22477         (xtests): Do not include $(xtests-bp.out).
22478         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
22479         [$(build-bounded) = yes] ($(addprefix
22480         $(objpfx),$(binaries-bounded))): Remove rule.
22481         ($(objpfx)%-bp.out): Remove rule.
22482         * config.make.in (build-bounded): Remove variable.
22483         * crypt/Makefile [$(build-bounded) = yes]
22484         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
22485         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
22486         append to variable.
22487         [$(build-bounded) = yes] (install-lib): Likewise.
22488         [$(build-bounded) = yes] (generated): Likewise.
22489         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
22490         Remove rule.
22491         * intl/Makefile [$(build-bounded) = yes]
22492         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
22493         * math/Makefile [$(build-bounded) = yes]
22494         ($(tests:%=$(objpfx)%-bp): Likewise.
22495         * misc/Makefile [$(build-bounded) = yes]
22496         ($(objpfx)tst-tsearch-bp): Likewise.
22497         * nptl/Makeconfig (bounded-thread-library): Remove variable.
22498         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
22499         Remove dependency.
22500         * string/Makefile (o-objects.ob): Remove variable.
22501         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
22502         (CFLAGS-.ob): Remove variable.
22503         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
22504         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
22505         both definitions of variable.
22506         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
22507         (ASFLAGS-.ob): Remove variable.
22508
22509 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
22510
22511         [BZ #13550]
22512         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
22513         Remove __BOUNDED_POINTERS__ from condition.
22514         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
22515         * string/bits/string2.h [!__NO_STRING_INLINES &&
22516         !__BOUNDED_POINTERS__]: Likewise.
22517         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
22518         Likewise.
22519         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
22520         Remove conditional code.
22521         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
22522         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
22523         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
22524         condition.
22525
22526         [BZ #13550]
22527         * csu/libc-start.c: Do not include <bp-sym.h>.
22528         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
22529         * elf/dl-open.c: Do not include <bp-sym.h>.
22530         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
22531         * math/fegetenv.c: Do not include <bp-sym.h>.
22532         (fegetenv): Do not use BP_SYM in versioned symbols.
22533         * nptl/sysdeps/pthread/bits/libc-lockP.h
22534         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
22535         <bp-sym.h>.
22536         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22537         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
22538         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22539         (__pthread_mutex_destroy): Likewise.
22540         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22541         (__pthread_mutex_lock): Likewise.
22542         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22543         (__pthread_mutex_trylock): Likewise.
22544         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22545         (__pthread_mutex_unlock): Likewise.
22546         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22547         (__pthread_mutexattr_init): Likewise.
22548         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22549         (__pthread_mutexattr_destroy): Likewise.
22550         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22551         (__pthread_mutexattr_settype): Likewise.
22552         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22553         (__pthread_rwlock_init): Likewise.
22554         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22555         (__pthread_rwlock_destroy): Likewise.
22556         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22557         (__pthread_rwlock_rdlock): Likewise.
22558         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22559         (__pthread_rwlock_tryrdlock): Likewise.
22560         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22561         (__pthread_rwlock_wrlock): Likewise.
22562         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22563         (__pthread_rwlock_trywrlock): Likewise.
22564         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22565         (__pthread_rwlock_unlock): Likewise.
22566         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22567         (__pthread_key_create): Likewise.
22568         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22569         (__pthread_setspecific): Likewise.
22570         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22571         (__pthread_getspecific): Likewise.
22572         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
22573         Likewise.
22574         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22575         (_pthread_cleanup_push_defer): Likewise.
22576         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22577         (_pthread_cleanup_pop_restore): Likewise.
22578         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
22579         (pthread_setcancelstate): Likewise.
22580         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
22581         <bp-sym.h>.
22582         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
22583         (memchr): Do not use BP_SYM in weak_alias.
22584         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
22585         (fegetenv): Do not use BP_SYM in versioned symbols.
22586         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
22587         (fesetenv): Do not use BP_SYM in versioned symbols.
22588         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
22589         (feupdateenv): Do not use BP_SYM in versioned symbols.
22590         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
22591         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
22592         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
22593         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
22594         (open64): Do not use BP_SYM in weak_alias.
22595         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
22596         (fegetenv): Do not use BP_SYM in versioned symbols.
22597         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
22598         (fesetenv): Do not use BP_SYM in versioned symbols.
22599         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
22600         (feupdateenv): Do not use BP_SYM in versioned symbols.
22601         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
22602         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
22603         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
22604         (feraiseexcept): Do not use BP_SYM in versioned symbols.
22605         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
22606         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
22607         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
22608         <bp-sym.h>.
22609         (__libc_start_main): Do not use BP_SYM.
22610
22611 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22612
22613         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
22614         redundant return line.
22615         (norm): Likewise.
22616         (denorm): Likewise.
22617         (dbl_mp): Likewise.
22618         (sub_magnitudes): Likewise.
22619         (__add): Likewise.
22620         (__sub): Likewise.
22621         (__mul): Likewise.
22622         (__inv): Likewise.
22623         (__dvd): Likewise.
22624         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
22625         (norm): Likewise.
22626         (denorm): Likewise.
22627         (dbl_mp): Likewise.
22628         (sub_magnitudes): Likewise.
22629         (__add): Likewise.
22630         (__sub): Likewise.
22631         (__mul): Likewise.
22632         (__inv): Likewise.
22633         (__dvd): Likewise.
22634
22635         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
22636         instead of __mul.
22637         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
22638         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
22639         (cc32): Likewise.
22640
22641         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
22642         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
22643         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
22644         of __mul for squares.
22645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
22646         function
22647         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
22648         Likewise.
22649         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
22650         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22651
22652 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
22653
22654         [BZ #13550]
22655         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
22656         code.
22657         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
22658         prototype or function definition.  Rename ubp_* variables and
22659         parameters.  Remove argv definitions conditional on
22660         [__BOUNDED_POINTERS__].
22661         * debug/backtrace.c (__backtrace): Do not use __unbounded.
22662         * elf/dl-runtime.c (_dl_fixup): Likewise.
22663         * include/set-hooks.h (RUN_HOOK): Likewise.
22664         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
22665         definition.
22666         * string/strcpy.c (strcpy): Do not use __unbounded.
22667         * sysdeps/generic/frame.h (struct layout): Likewise.
22668         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
22669         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
22670         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
22671         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
22672         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
22673         (__backtrace): Likewise.
22674         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
22675         use __ptrvalue.
22676         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
22677         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
22678         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
22679         Likewise.
22680         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
22681         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
22682         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
22683         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
22684         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
22685         Do not use __unbounded.
22686         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
22687         Rename __unboundedrlimits parameter to rlimits in prototype.
22688         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
22689         Do not use __unbounded.
22690         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
22691         not use __ptrvalue.
22692         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
22693         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
22694         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
22695         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
22696         __ptrvalue or __unbounded.
22697         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
22698         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
22699         use __unbounded.
22700         (__new_msgctl): Do not use __ptrvalue.
22701         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
22702         __unbounded.
22703         (__libc_msgrcv): Do not use __ptrvalue.
22704         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
22705         startup_info): Do not use __unbounded.
22706         (__libc_start_main): Likewise.  Rename ubp_* variables and
22707         parameters.  Remove argv definitions conditional on
22708         [__BOUNDED_POINTERS__].
22709         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
22710         __ptrvalue.
22711         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
22712         use __unbounded.
22713         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
22714         or __ptrvalue.
22715         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
22716         use __unbounded.
22717         (__new_shmctl): Do not use __ptrvalue.
22718         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
22719         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
22720         Likewise.
22721         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
22722         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
22723         (__libc_sigaction): Likewise.
22724         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
22725         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
22726         Likewise.
22727         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
22728
22729 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
22730
22731         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
22732
22733         * string/mempcpy.c: Implement by calling memcpy.
22734
22735 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22736
22737         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
22738
22739         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
22740         evaluation.
22741
22742         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
22743         values in the mantissa.
22744
22745         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
22746         minimize writes to Z.
22747         (sub_magnitudes): Simplify code a bit.
22748
22749 2013-02-12  Roland McGrath  <roland@hack.frob.com>
22750
22751         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
22752         from the message.  The linker prefixes all warnings with that already.
22753
22754 2013-02-12  Andreas Schwab  <schwab@suse.de>
22755
22756         [BZ #15078]
22757         * posix/regexec.c (extend_buffers): Add parameter min_len.
22758         (check_matching): Pass minimum needed length.
22759         (clean_state_log_if_needed): Likewise.
22760         (get_subexp): Likewise.
22761         * posix/Makefile (tests): Add bug-regex34.
22762         (bug-regex34-ENV): Define.
22763         * posix/bug-regex34.c: New file.
22764
22765         [BZ #11561]
22766         * posix/regcomp.c (parse_bracket_exp): When looking up collating
22767         elements compare against the byte sequence of it, not its name.
22768         * posix/Makefile (tests): Add bug-regex35.
22769         (bug-regex35-ENV): Define.
22770         * posix/bug-regex35.c: New file.
22771
22772 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22773
22774         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
22775         comment.
22776         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
22777         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
22778         (CHECK_EOL): Add undef.
22779
22780 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
22781
22782         * bits/stdlib-bsearch.h: New file.
22783         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
22784         * stdlib/stdlib.h: Likewise.
22785
22786 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22787
22788         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
22789         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
22790         declaration.
22791         * manual/search.texi (Array Search Function): Add missing const in
22792         lfind prototype.
22793         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
22794         declaration to use rlim_t.
22795         (Basic Scheduling Functions): Remove erroneous const from
22796         sched_getparam prototype.  Remove erroneous * from
22797         sched_get_priority_max and sched_get_priority_min prototypes.
22798         (Resource Usage): Fix summary @comment on vtimes to refer to
22799         sys/vtimes.h rather than vtimes.h.
22800         Add missing *s in vtimes prototype.
22801         (Limits on Resources): Fix ulimit prototype to return long int.
22802         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
22803         prototypes to use long int rather than double.
22804         (BSD Random): Fix initstate and setstate to use char *, not void *.
22805         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
22806         prototype to make second argument 'struct aiocb64 *const[]'.
22807         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
22808         (Status of AIO Operations): Remove erroneous const in aio_return and
22809         aio_return64 prototypes.
22810         (Synchronizing I/O): Fix sync prototype to return void.
22811         * manual/startup.texi (Suboptions): Remove an erroneous const in
22812         getsubopt prototype.
22813         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
22814         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
22815         use size_t rather than int.
22816         (Scanning All Users): Likewise for getpwent_r.
22817         (Setting Groups): Add missing const to setgroups prototype.
22818         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
22819         * manual/socket.texi (Host Names): Fix gethostbyaddr and
22820         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
22821         'const void *' rather than 'const char *'.
22822         (Host Address Functions): Likewise for inet_ntop.
22823         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
22824         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
22825         ssize_t for return value.
22826         (Sending Data): Likewise for send, sendto, sendmsg.
22827         (Socket Option Functions): Add a missing const in setsockopt prototype.
22828         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
22829         use wchar_t for the argument.
22830         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
22831         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
22832         take no arguments.
22833         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
22834         double/float/long double for second argument.
22835         Fix return types of significand, significandf, significandl.
22836         * manual/filesys.texi (Setting Permissions): Use mode_t for second
22837         argument in fchmod prototype.
22838         (File Owner): Use uid_t and gid_t in fchown prototype.
22839         (File Times): Add const to utimes, futimes, and lutimes prototypes.
22840         (Making Special Files): Use mode_t and dev_t in mknod prototype.
22841         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
22842         use 'const struct dirent **' as argument types to CMP function pointer
22843         argument.
22844         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
22845         (File Times): Fix summary magic @comment for struct utimbuf and utime
22846         to refer to utime.h, not time.h.
22847         * manual/string.texi (Argz Functions): Add missing const in
22848         argz_extract and argz_next prototypes.
22849         (Finding Tokens in a String): Likewise for basename.
22850         (String/Array Comparison): Fix typo in wcscasecmp prototype.
22851         (Copying and Concatenation): Fix typo in wmemmove prototype.
22852         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
22853         (Signal Stack): Remove erroneous const in sigstack prototype.
22854         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
22855         prototype.
22856         (Simple Calendar Time): Likewise for stime.
22857         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
22858         prototype.
22859         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
22860         say sys/sysctl.h instead.
22861         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
22862         and vsyslog prototypes.
22863
22864 2013-02-11  Tom de Vries  <tom@codesourcery.com>
22865
22866         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
22867         Remove.
22868
22869 2013-02-11  Roland McGrath  <roland@hack.frob.com>
22870
22871         * misc/sys/mman.h: Fix typo in mremap comment.
22872
22873 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22874
22875         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
22876         the '\0' terminator.
22877
22878 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22879
22880         [BZ #13550]
22881         * debug/segfault.c: Don't include <bp-checks.h>.
22882         * sysdeps/generic/bp-checks.h: Remove file.
22883         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
22884         (__GETDENTS): Don't use CHECK_N.
22885         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
22886         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
22887         (__getgroups): Don't use CHECK_N.
22888         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
22889         (setgroups): Don't use CHECK_N.
22890         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
22891         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
22892         (__libc_msgrcv): Don't use CHECK_N.
22893         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
22894         (__libc_msgsnd): Don't use CHECK_N.
22895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
22896         <bp-checks.h>.
22897         (__libc_pread): Don't use CHECK_N.
22898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
22899         include <bp-checks.h>.
22900         (__libc_pread64): Don't use CHECK_N.
22901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
22902         include <bp-checks.h>.
22903         (__libc_pwrite): Don't use CHECK_N.
22904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
22905         include <bp-checks.h>.
22906         (__libc_pwrite64): Don't use CHECK_N.
22907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
22908         <bp-checks.h>.
22909         (__libc_pread): Don't use CHECK_N.
22910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
22911         include <bp-checks.h>.
22912         (__libc_pread64): Don't use CHECK_N.
22913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
22914         include <bp-checks.h>.
22915         (__libc_pwrite): Don't use CHECK_N.
22916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
22917         include <bp-checks.h>.
22918         (__libc_pwrite64): Don't use CHECK_N.
22919         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
22920         (do_pread): Don't use CHECK_N.
22921         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
22922         (do_pread64): Don't use CHECK_N.
22923         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
22924         (do_pwrite): Don't use CHECK_N.
22925         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
22926         (do_pwrite64): Don't use CHECK_N.
22927         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
22928         (__libc_readv): Don't use CHECK_N.
22929         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
22930         (semop): Don't use CHECK_N.
22931         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
22932         <bp-checks.h>.
22933         (semtimedop): Don't use CHECK_N.
22934         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
22935         (__libc_pread): Don't use CHECK_N.
22936         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
22937         <bp-checks.h>.
22938         (__libc_pread64): Don't use CHECK_N.
22939         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
22940         <bp-checks.h>.
22941         (__libc_pwrite): Don't use CHECK_N.
22942         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
22943         <bp-checks.h>.
22944         (__libc_pwrite64): Don't use CHECK_N.
22945         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
22946         <bp-checks.h>.
22947         (__libc_msgrcv): Don't use CHECK_N.
22948         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
22949         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
22950         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
22951         (__libc_writev): Don't use CHECK_N.
22952
22953 2013-02-08  Roland McGrath  <roland@hack.frob.com>
22954
22955         * string/strcpy.c: Removed unused variable.
22956
22957         * Makeconfig (+sysdep-includes): Define with := rather than =.
22958         Use an existing include/ subdir of each sysdeps dir before it.
22959
22960 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22961
22962         * nscd/connection.c (register_traced_file): Comment function.
22963         [HAVE_INOTIFY] (union __inev): Define.
22964         [HAVE_INOTIFY] (inotify_check_files): New function.
22965         [HAVE_INOTIFY] (clear_db_cache): Likewise.
22966         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
22967         clear_db_cache.
22968         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
22969
22970 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22971
22972         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
22973         loaded if not already and that a failure is permanent.
22974
22975 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
22976
22977         [BZ #15006]
22978         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
22979         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
22980
22981 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
22982
22983         [BZ #13550]
22984         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
22985         (CHECK_1_NULL_OK): Likewise.
22986         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
22987         (__fxstat): Do not use CHECK_1.
22988         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
22989         <bp-checks.h>.
22990         (___fxstat64): Do not use CHECK_1.
22991         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
22992         <bp-checks.h>.
22993         (__fxstatat): Do not use CHECK_1.
22994         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
22995         <bp-checks.h>.
22996         (__fxstatat64): Do not use CHECK_1.
22997         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
22998         <bp-checks.h>.
22999         (__fxstat): Do not use CHECK_1.
23000         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
23001         <bp-checks.h>.
23002         (__fxstatat): Do not use CHECK_1.
23003         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
23004         <bp-checks.h>.
23005         (__getresgid): Do not use CHECK_1.
23006         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
23007         <bp-checks.h>.
23008         (__getresuid): Do not use CHECK_1.
23009         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
23010         <bp-checks.h>.
23011         (__lxstat): Do not use CHECK_1.
23012         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
23013         <bp-checks.h>.
23014         (__old_msgctl): Do not use CHECK_1.
23015         (__new_msgctl): Likewise.
23016         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
23017         <bp-checks.h>.
23018         (__new_setrlimit): Do not use CHECK_1.
23019         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23020         <bp-checks.h>.
23021         (__old_shmctl): Do not use CHECK_1.
23022         (__new_shmctl): Likewise.
23023         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
23024         <bp-checks.h>.
23025         (__xstat): Do not use CHECK_1.
23026         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
23027         (__lxstat): Do not use CHECK_1.
23028         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
23029         <bp-checks.h>.
23030         (___lxstat64): Do not use CHECK_1.
23031         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
23032         (__old_msgctl): Do not use CHECK_1.
23033         (__new_msgctl): Likewise.
23034         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
23035         <bp-checks.h>.
23036         (__gettimeofday): Do not use CHECK_1.
23037         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
23038         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
23039         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
23040         <bp-checks.h>.
23041         (__gettimeofday): Do not use CHECK_1.
23042         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
23043         (__old_shmctl): Do not use CHECK_1_NULL_OK.
23044         (__new_shmctl): Do not use CHECK_1.
23045         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
23046         <bp-checks.h>.
23047         (do_sigtimedwait): Do not use CHECK_1.
23048         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
23049         <bp-checks.h>.
23050         (do_sigwaitinfo): Do not use CHECK_1.
23051         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
23052         <bp-checks.h>.
23053         (msgctl): Do not use CHECK_1.
23054         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
23055         <bp-checks.h>.
23056         (shmctl): Do not use CHECK_1.
23057         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
23058         (ustat): Do not use CHECK_1.
23059         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
23060         <bp-checks.h>.
23061         (__fxstat): Do not use CHECK_1.
23062         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
23063         <bp-checks.h>.
23064         (__fxstatat): Do not use CHECK_1.
23065         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
23066         <bp-checks.h>.
23067         (__lxstat): Do not use CHECK_1.
23068         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
23069         <bp-checks.h>.
23070         (__xstat): Do not use CHECK_1.
23071         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
23072         (__xstat): Do not use CHECK_1.
23073         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
23074         (___xstat64): Do not use CHECK_1.
23075
23076         [BZ #13550]
23077         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
23078         definitions.
23079         (CHECK_BOUNDS_HIGH): Likewise.
23080         * string/strcpy.c: Do not include <bp-checks.h>.
23081         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
23082
23083 2013-02-07  Roland McGrath  <roland@hack.frob.com>
23084
23085         * nscd/nscd-client.h (__nscd_drop_map_ref):
23086         Add __attribute__ ((unused)).
23087         * nis/nss-nisplus.h (niserr2nss): Likewise.
23088
23089         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
23090         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
23091
23092         * csu/libc-tls.c (init_static_tls, init_slotinfo):
23093         Remove inline keyword.
23094         * include/rounding-mode.h (round_away): Likewise.
23095         * libio/wfileops.c (adjust_wide_data): Likewise.
23096         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
23097         (__m128i_strloadu_tolower): Likewise.
23098         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
23099         (__m128i_strloadu_tolower): Likewise.
23100         * time/mktime.c (ydhms_diff): Likewise.
23101         * locale/elem-hash.h (elem_hash): Likewise.
23102         * locale/setlocale.c (setdata): Likewise.
23103         * posix/regex_internal.h (re_string_char_size_at): Likewise.
23104         (re_string_wchar_at): Likewise.
23105         (bitset_not, bitset_merge, bitset_mask): Likewise.
23106         [!(__GNUC__ > 3)] (inline): Remove macro.
23107         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
23108         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
23109         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
23110         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23111         * string/memcmp.c (memcmp_bytes): Likewise.
23112         * locale/programs/locarchive.c (compute_hashval): Likewise.
23113         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
23114         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
23115         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
23116         * nss/getent.c (print_rpc, print_protocols): Likewise.
23117         (print_passwd, print_group, print_aliases): Likewise.
23118         * nis/nss-nisplus.h (niserr2nss): Likewise.
23119         * nscd/connections.c (restart_p): Likewise.
23120         Change return type to bool.
23121
23122 2013-02-05  Roland McGrath  <roland@hack.frob.com>
23123
23124         * Makeconfig (all-Depend-files): Add existing
23125         $(sorted-subdirs:=/Depend) files.
23126         (all-subdirs): Remove nss.
23127         * sysdeps/unix/inet/Subdirs: Add it here instead.
23128         * hesiod/Depend: New file.
23129
23130         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
23131         instead of calling alloca.
23132
23133         * io/lseek.c (__lseek): Rename to __libc_lseek.
23134         Define __lseek as an alias.
23135
23136         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
23137
23138 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
23139
23140         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
23141         else clause and remove check for non-standard endianness.
23142
23143 2013-02-04  David S. Miller  <davem@davemloft.net>
23144
23145         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23146
23147 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
23148
23149         [BZ #13550]
23150         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
23151         (__ubp_memchr): Remove prototype.
23152         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
23153         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
23154         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
23155         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
23156         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
23157         Remove alias.
23158         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
23159         (__ubp_memchr): Likewise.
23160         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
23161         (__ubp_memchr): Likewise.
23162         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
23163         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
23164         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
23165         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
23166         CHECK_STRING.
23167         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
23168         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
23169         (__getcwd): Do not use CHECK_STRING.
23170         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
23171         <bp-checks.h>.
23172         (__real_chown): Do not use CHECK_STRING.
23173         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
23174         <bp-checks.h>.
23175         (fchownat): Do not use CHECK_STRING.
23176         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
23177         CHECK_STRING.
23178         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23179         <bp-checks.h>.
23180         (__lchown): Do not use CHECK_STRING.
23181         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23182         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23183         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23184         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
23185         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
23186         include <bp-checks.h>.
23187         (truncate64): Do not use CHECK_STRING.
23188         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23189         <bp-checks.h>.
23190         (__real_chown): Do not use CHECK_STRING.
23191         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23192         <bp-checks.h>.
23193         (__lchown): Do not use CHECK_STRING.
23194         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23195         <bp-checks.h>.
23196         (__chown): Do not use CHECK_STRING.
23197         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
23198         <bp-checks.h>.
23199         (truncate64): Do not use CHECK_STRING.
23200         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
23201         Likewise.
23202         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
23203         (__xmknod): Do not use CHECK_STRING.
23204         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
23205         <bp-checks.h>.
23206         (__xmknodat): Do not use CHECK_STRING.
23207         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23208         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
23209
23210 2013-02-04  Andreas Schwab  <schwab@suse.de>
23211
23212         [BZ #14142]
23213         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
23214         * include/netdb.h: Likewise for h_errno.
23215         * elf/tst-stackguard1.c: Include <tls.h>.
23216
23217 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
23218
23219         * elf/link.h (struct link_map): Extend the l_addr comment.
23220         * include/link.h (struct link_map): Likewise.
23221
23222 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
23223
23224         [BZ #13550]
23225         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
23226         (BOUNDED_1): Remove macro.
23227         * debug/backtrace.c: Don't include <bp-checks.h>.
23228         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
23229         (__backtrace): Likewise.
23230         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
23231         <bp-checks.h>.
23232         (__backtrace): Don't use BOUNDED_1.
23233         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
23234         <bp-checks.h>.
23235         (__backtrace): Don't use BOUNDED_1.
23236         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
23237         (__backtrace): Don't use BOUNDED_1.
23238         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
23239         (shmat): Don't use BOUNDED_N.
23240
23241 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
23242
23243         [BZ #13550]
23244         * sysdeps/generic/bp-start.h: Remove file.
23245         * csu/libc-start.c: Don't include <bp-start.h>.
23246         (LIBC_START_MAIN): Set up __environ directly instead of using
23247         INIT_ARGV_and_ENVIRON.
23248         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
23249         <bp-start.h>.
23250
23251         [BZ #13550]
23252         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
23253         definitions.
23254         (CHECK_FCNTL): Likewise.
23255         (CHECK_N_PAGES): Likewise.
23256
23257         [BZ #13550]
23258         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
23259         definitions.
23260         (CHECK_SIGSET_NULL_OK): Likewise.
23261         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
23262         <bp-checks.h>.
23263         (sigpending): Don't use CHECK_SIGSET.
23264         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
23265         <bp-checks.h>.
23266         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
23267         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
23268         <bp-checks.h>.
23269         (do_sigsuspend): Don't use CHECK_SIGSET.
23270         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
23271         use CHECK_SIGSET.
23272         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
23273         (do_sigwait): Don't use CHECK_SIGSET.
23274         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
23275         use CHECK_SIGSET.
23276         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
23277         include <bp-checks.h>.
23278         (sigpending): Don't use CHECK_SIGSET.
23279         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
23280         include <bp-checks.h>.
23281         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
23282         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
23283         <bp-checks.h>.
23284         (sigpending): Don't use CHECK_SIGSET.
23285         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
23286         <bp-checks.h>.
23287         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
23288
23289         [BZ #13550]
23290         * sysdeps/generic/bp-semctl.h: Remove file.
23291         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
23292         <bp-checks.h> and <bp-semctl.h>.
23293         (__old_semctl): Don't use CHECK_SEMCTL.
23294         (__new_semctl): Likewise.
23295         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
23296         and <bp-semctl.h>.
23297         (__old_semctl): Don't use CHECK_SEMCTL.
23298         (__new_semctl): Likewise.
23299         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
23300         <bp-checks.h> and <bp-semctl.h>.
23301         (__old_semctl): Don't use CHECK_SEMCTL.
23302         (__new_semctl): Likewise.
23303         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
23304         <bp-checks.h> and <bp-semctl.h>.
23305         (semctl): Don't use CHECK_SEMCTL.
23306
23307         [BZ #13550]
23308         * Makerules (elide-bp-thunks): Remove variable.
23309         (elide-routines.oS): Don't use $(elide-bp-thunks).
23310         (elide-routines.os): Likewise.
23311         (elide-routines.o): Likewise.
23312         (elide-routines.op): Likewise.
23313         (elide-routines.og): Likewise.
23314         (objects): Don't use $(bp-thunks).
23315         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
23316         include.
23317         (common-generated): Do not add s-proto-bp.d.
23318         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
23319         (int): Likewise.
23320         (typ): Likewise.
23321         Do not generate makefile rules for bounded-pointer thunks.
23322         * sysdeps/generic/bp-thunks.h: Remove file.
23323         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
23324         * sysdeps/unix/s-proto-bp.S: Likewise.
23325
23326         [BZ #15062]
23327         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
23328         parts of result separately when argument is not close to line from
23329         -i to i and one part of argument is small.
23330         * math/k_casinhf.c (__kernel_casinhf): Likewise.
23331         * math/k_casinhl.c (__kernel_casinhl): Likewise.
23332         * math/libm-test.inc (cacos_test): Add more tests.
23333         (casin_test): Likewise.
23334         (casinh_test): Likewise.
23335         * sysdeps/i386/fpu/libm-test-ulps: Update.
23336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23337
23338 2013-01-31  David S. Miller  <davem@davemloft.net>
23339
23340         * po/de.po: Update from translation team.
23341
23342 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
23343
23344         * time/tzfile.c: Include stdint.h for SIZE_MAX.
23345
23346 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
23347
23348         * configure.in (_AC_PROG_CC_C89): New definition.
23349         * configure: Regenerate.
23350
23351         * configure.in (AC_PROG_CPP): New definition.
23352         * configure: Regenerate.
23353
23354 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
23355
23356         * debug/tst-backtrace.h: New file.
23357         * debug/tst-backtrace2.c: Include tst-backtrace.h.
23358         (ret): Remove variable.
23359         (x): Likewise.
23360         (FAIL): Remove macro.
23361         (NO_INLINE): Likewise.
23362         (fn1): Use match function instead of strstr.
23363         * debug/tst-backtrace3.c: Include tst-backtrace.h.
23364         (ret): Remove variable.
23365         (x): Likewise.
23366         (FAIL): Remove macro.
23367         (NO_INLINE): Likewise.
23368         (fn): Use match function instead of strstr.
23369         * debug/tst-backtrace4.c: Include tst-backtrace.h.
23370         (ret): Remove variable.
23371         (x): Likewise.
23372         (FAIL): Remove macro.
23373         (NO_INLINE): Likewise.
23374         (handle_signal): Use match function instead of strstr.
23375         * debug/tst-backtrace5.c: Include tst-backtrace.h.
23376         (ret): Remove variable.
23377         (x): Likewise.
23378         (FAIL): Remove macro.
23379         (NO_INLINE): Likewise.
23380         (handle_signal): Use match function instead of strstr.
23381
23382 2013-01-23  Roland McGrath  <roland@hack.frob.com>
23383
23384         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
23385
23386 2013-01-23  David S. Miller  <davem@davemloft.net>
23387
23388         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
23389         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
23390         argument of CAS if possible.
23391         * sysdeps/sparc/sparc64/bits/atomic.h
23392         (__arch_compare_and_exchange_val_32_acq): Likewise.
23393         (__arch_compare_and_exchange_val_64_acq): Likewise.
23394
23395 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
23396
23397         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
23398         * sysdeps/posix/ulimit.c: ... this.
23399         Include <limits.h>.
23400         * sysdeps/unix/bsd/ulimit.c: Remove file.
23401
23402 2013-01-23  Adam Conrad  <adconrad@0c3.net>
23403
23404         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
23405         (LDFLAGS-tst-array5): Likewise.
23406
23407 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
23408
23409         [BZ #15036]
23410         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
23411         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
23412         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
23413         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
23414
23415 2013-01-21  David S. Miller  <davem@davemloft.net>
23416
23417         * sysdeps/sparc/backtrace.c: New file.
23418         * sysdeps/sparc/sparc32/backtrace.h: New file.
23419         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
23420         * sysdeps/sparc/sparc64/backtrace.h: New file.
23421         * sysdeps/sparc/sparc64/backtrace.c: Delete.
23422         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
23423         -funwind-tables.
23424
23425 2013-01-21  Andreas Schwab  <schwab@suse.de>
23426
23427         [BZ #15020]
23428         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
23429         closed its stdout.
23430
23431 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
23432
23433         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
23434         "mpa2.h".
23435         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23436
23437 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
23438             Mark Mitchell  <mark@codesourcery.com>
23439             Tom de Vries  <tom@codesourcery.com>
23440             Paul Pluzhnikov  <ppluzhnikov@google.com>
23441
23442         * debug/tst-backtrace2.c: New file.
23443         * debug/tst-backtrace3.c: Likewise.
23444         * debug/tst-backtrace4.c: Likewise.
23445         * debug/tst-backtrace5.c: Likewise.
23446         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
23447         (CFLAGS-tst-backtrace3.c): Likewise.
23448         (CFLAGS-tst-backtrace4.c): Likewise.
23449         (CFLAGS-tst-backtrace5.c): Likewise.
23450         (LDFLAGS-tst-backtrace2): Likewise.
23451         (LDFLAGS-tst-backtrace3): Likewise.
23452         (LDFLAGS-tst-backtrace4): Likewise.
23453         (LDFLAGS-tst-backtrace5): Likewise.
23454         (tests): Add new tests tst-backtrace2, tst-backtrace3,
23455         tst-backtrace4 and tst-backtrace5.
23456
23457 2013-01-18  Anton Blanchard  <anton@samba.org>
23458             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
23459
23460         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
23461         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
23462         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
23463         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
23464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23465         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
23466         "+r" and remove output regs list as redundant.  Add explicit inline
23467         asm to specify register of return val to work around compiler codegen
23468         bug.  Remove (int) cast on return value.  Add return type parameter to
23469         use in macro so that this macro does not truncate return value for
23470         64-bit values.
23471         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
23472         pass to INTERNAL_VSYSCALL_NCS.
23473         (INLINE_VSYSCALL): Add 'long int' as return type to
23474         INTERNAL_VSYSCALL_NCS macro invocation.
23475         (INTERNAL_VSYSCALL): Add 'long int' as return type to
23476         INTERNAL_VSYSCALL_NCS macro invocation.
23477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23478
23479 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
23480
23481         [BZ #14496]
23482         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
23483         Fix application of SIMD FP exception mask.
23484
23485         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
23486         mp_no from a power of two.
23487         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
23488         __mpexp_twomm1.  Use __pow_mp.
23489
23490         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
23491         multiplication.
23492
23493 2013-01-17  David S. Miller  <davem@davemloft.net>
23494
23495         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23496
23497 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
23498
23499         [BZ #15023]
23500         * include/complex.h: Condition contents on [!_COMPLEX_H].
23501         (__kernel_casinhf): New prototype.
23502         (__kernel_casinh): Likewise.
23503         (__kernel_casinhl): Likewise.
23504         * math/Makefile (libm_calls): Add k_casinh.
23505         * math/k_casinh.c: New file.
23506         * math/k_casinhf.c: Likewise.
23507         * math/k_casinhl.c: Likewise.
23508         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
23509         finite nonzero arguments.
23510         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
23511         finite nonzero arguments.
23512         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
23513         finite nonzero arguments.
23514         * math/s_casinh.c: Do not include <float.h>.
23515         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
23516         * math/s_casinhf.c: Do not include <float.h>.
23517         (__casinhf): Move code for finite nonzero arguments to
23518         k_casinhf.c.
23519         * math/s_casinhl.c: Do not include <float.h>.
23520         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
23521         redefine.
23522         (__casinhl): Move code for finite nonzero arguments to
23523         k_casinhl.c.
23524         * math/libm-test.inc (cacos_test): Add more tests.
23525         * sysdeps/i386/fpu/libm-test-ulps: Update.
23526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23527
23528 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
23529
23530         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
23531         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
23532         [!HAVE_MREMAP]: Remove [defined linux] case.
23533         * malloc/arena.c: Do not include <malloc-sysdep.h>.
23534
23535 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
23536
23537         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
23538
23539 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
23540
23541         * elf/elf.h (R_386_SIZE32): New relocation.
23542         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
23543         R_386_SIZE32.
23544         (elf_machine_rela): Likewise.
23545         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
23546         R_X86_64_SIZE64 and R_X86_64_SIZE32.
23547
23548 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
23549
23550         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
23551         (FP_FAST_FMA): Do not define.
23552         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
23553         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
23554         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
23555         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
23556         !_SOFT_FLOAT]: Likewise.
23557         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
23558         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
23559         value.
23560         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
23561         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
23562         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
23563         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
23564         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
23565         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
23566         file.
23567
23568 2013-01-16  Andreas Schwab  <schwab@suse.de>
23569
23570         [BZ #14327]
23571         * include/stdlib.h (__mktemp): Add declaration.
23572         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
23573         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
23574
23575 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23576
23577         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
23578         definitions.
23579         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23580         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
23581         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
23582         definitions here.
23583         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
23584         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
23585         definitions.
23586         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
23587         and ONE.
23588         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
23589         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
23590         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
23591         definitions.
23592         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
23593         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
23594         definitions.
23595         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23596
23597         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
23598
23599 2013-01-15  David S. Miller  <davem@davemloft.net>
23600
23601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23602         trunc{,f} to libm-sysdep_routes.
23603         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
23605         file.
23606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
23607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
23608         file.
23609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
23610         file.
23611         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
23612         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
23613         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
23614         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
23615         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
23616         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
23617         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
23618         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
23619
23620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23621         nearbyint{,f} to libm-sysdep_routes.
23622         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
23624         New file.
23625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
23626         file.
23627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
23628         New file.
23629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
23630         file.
23631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
23632         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
23633         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
23634         file.
23635         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
23636         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
23637         file.
23638         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
23639         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
23640         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
23641
23642         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
23643         libc_feholdexcept and libc_fesetenv.
23644
23645 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
23646
23647         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
23648
23649 2013-01-14  David S. Miller  <davem@davemloft.net>
23650
23651         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
23652         (SPARC_ASM_VIS2_IFUNC): Likewise.
23653         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
23654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
23655         use of 'siam' instruction.
23656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
23657         Likewise.
23658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
23659         Likewise.
23660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
23661         Likewise.
23662         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
23663         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
23664         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
23665         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
23666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
23667         file.
23668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
23669         file.
23670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
23671         file.
23672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
23673         file.
23674         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
23675         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
23676         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
23677         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
23678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
23679         new VIS2 routines.
23680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23683         Likewise.
23684         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23685         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23686         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23687         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
23689         routines to libm-sysdep_routines.
23690         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
23691
23692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
23693         fdim/fdimf to libm-sysdep_routines.
23694         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
23695         file.
23696         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
23697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
23698         file.
23699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
23700         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
23701         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
23702         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
23703         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
23704         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
23705         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
23706
23707 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
23708
23709         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
23710         to optimize copies.
23711
23712         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
23713         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23714         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23715
23716         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
23717         local variable MPTWO.
23718         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
23719         Likewise.
23720
23721 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23722
23723         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
23724         GLOB_NOESCAPE.
23725
23726 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23727
23728         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
23729
23730 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
23731
23732         * manual/pattern.texi (glob_t): Document gl_flags.
23733         (glob64_t): Likewise.
23734
23735 2013-01-11  David S. Miller  <davem@davemloft.net>
23736
23737         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
23738         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
23739         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
23740         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
23741         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
23742         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
23743         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
23744         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
23745         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
23746         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
23747         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
23748         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
23749         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
23750
23751         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23752         sparc V9 rather than using V8 code.
23753         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23754         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23755
23756         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23757         Move to...
23758         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
23759         Here.
23760
23761 2013-01-11  Roland McGrath  <roland@hack.frob.com>
23762
23763         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
23764         not in the main loop.
23765         * configure: Regenerated.
23766
23767 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
23768
23769         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
23770         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
23771         to just #else.
23772         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
23773         [!__GLIBC_HAVE_LONG_LONG] case.
23774         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
23775         condition to just #else.
23776         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
23777         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
23778         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
23779         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
23780         unconditional.
23781         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
23782         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23783         #elif condition to just #else.
23784         * sysdeps/unix/sysv/linux/sys/sysmacros.h
23785         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
23786         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
23787         #elif condition to just #else.
23788
23789 2013-01-11  Steve Ellcey  <sellcey@mips.com>
23790
23791         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
23792         (EF_MIPS_ARCH_64): Fix value.
23793         (EF_MIPS_ARCH_32R2): New.
23794         (EF_MIPS_ARCH_64R2): New.
23795
23796 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
23797
23798         * Makeconfig (+link-pie-before-libc): New.
23799         (+link-pie-after-libc): Likewise.
23800         (+link-pie-tests): Likewise.
23801         (+link-pie): Rewritten.
23802         (link-before-libc): Remove $(config-LDFLAGS).
23803         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
23804         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
23805         (config-LDFLAGS): Renamed to ...
23806         (rtld-LDFLAGS): This.
23807         (rtld-tests-LDFLAGS): New macro.
23808         (link-libc-rpath-link): Likewise.
23809         (link-libc-tests-rpath-link): Likewise.
23810         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
23811         (link-libc): Prepand $(link-libc-rpath-link).
23812         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
23813         (test-program-prefix): New macro.
23814         (test-via-rtld-prefix): Likewise.
23815         (test-program-cmd): Likewise.
23816         (host-test-program-cmd): Likewise.
23817         * Makefile ($(common-objpfx)testrun.sh): Replace
23818         $(run-program-prefix) with $(test-program-prefix).
23819         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
23820         $(rtld-LDFLAGS).
23821         ($(common-objpfx)shlib.lds): Likewise.
23822         (build-module-helper): Likewise.
23823         ($(common-objpfx)format.lds): Likewise.
23824         * Rules (binaries-pie-tests): New.
23825         (binaries-pie-notests): Likewise.
23826         (binaries-pie): Rewritten.
23827         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
23828         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
23829         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
23830         (make-test-out): Replace $(host-built-program-cmd) with
23831         $(host-test-program-cmd).
23832         * config.make.in (build-hardcoded-path-in-tests): New variable.
23833         * configure.in (--enable-hardcoded-path-in-tests): New configure
23834         option.
23835         (hardcoded_path_in_tests): New AC_SUBST.
23836         * configure: Regenerated.
23837         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
23838         $(built-program-cmd) with $(test-program-cmd).
23839         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
23840         (test_program_cmd): This.
23841         * elf/Makefile ($(objpfx)order.out): Run test with
23842         $(test-program-prefix).
23843         ($(objpfx)order2.out): Likewise.
23844         ($(objpfx)tst-initorder.out): Likewise.
23845         ($(objpfx)tst-initorder2.out): Likewise.
23846         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
23847         $(test-program-cmd).
23848         ($(objpfx)tst-array1-static.out): Likewise.
23849         ($(objpfx)tst-array2.out): Likewise.
23850         ($(objpfx)tst-array3.out): Likewise.
23851         ($(objpfx)tst-array4.out): Likewise.
23852         ($(objpfx)tst-array5.out): Likewise.
23853         ($(objpfx)tst-array5-static.out): Likewise.
23854         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
23855         $(test-program-cmd).
23856         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
23857         $(run-program-prefix) with $(test-program-prefix).
23858         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
23859         (test_program_prefix): This.
23860         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
23861         $(run-program-prefix) with $(test-program-prefix).
23862         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
23863         (test_program_prefix): This.
23864         * iconvdata/tst-tables.sh: Likewise.
23865         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
23866         $(run-program-prefix) with $(test-program-prefix).
23867         ($(objpfx)tst-translit.out): Likewise.
23868         ($(objpfx)tst-gettext2.out): Likewise.
23869         ($(objpfx)tst-gettext4.out): Likewise.
23870         ($(objpfx)tst-gettext6.out): Likewise.
23871         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
23872         (test_program_prefix): This.
23873         * intl/tst-gettext2.sh: Likewise.
23874         * intl/tst-gettext4.sh  Likewise.
23875         * intl/tst-gettext6.sh: Likewise.
23876         * intl/tst-translit.sh: Likewise.
23877         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
23878         with $(test-program-cmd).
23879         * libio/Makefile ($(objpfx)test-freopen.out): Replace
23880         $(run-program-prefix) with $(test-program-prefix).
23881         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
23882         (test_program_prefix): This.
23883         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
23884         $(run-program-prefix) with $(test-program-prefix).
23885         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
23886         (test_program_prefix): This.
23887         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
23888         * posix/Makefile ($(objpfx)globtest.out): Replace
23889         $(run-via-rtld-prefix) and $(test-wrapper) with
23890         $(test-program-prefix) and $(test-via-rtld-prefix).
23891         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
23892         $(test-program-prefix).
23893         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
23894         $(host-test-program-cmd).
23895         (tst-spawn-ARGS): Likewise.
23896         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
23897         $(test-program-prefix).
23898         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
23899         (test_via_rtld_prefix): This.
23900         (test_wrapper): Renamed to ...
23901         (test_program_prefix): This.
23902         (run_program_prefix): Replaced by test_program_prefix.
23903         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
23904         (test_program_prefix): This.
23905         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
23906         with $(host-test-program-cmd).
23907         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
23908         $(run-program-prefix) with $(test-program-prefix).
23909         ($(objpfx)tst-printf.out): Likewise.
23910         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
23911         $(test-program-cmd).
23912         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
23913         (test_program_prefix): This.
23914         * stdio-common/tst-unbputc.sh: Likewise.
23915         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
23916         $(run-program-prefix) with $(test-program-prefix).
23917         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
23918         (test_program_prefix): This.
23919         * string/Makefile ($(objpfx)tst-svc.out):  Replace
23920         $(built-program-cmd) with $(test-program-cmd).
23921
23922 2013-01-11  Andreas Jaeger  <aj@suse.de>
23923
23924         [BZ #15003]
23925         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
23926         value. Sync with Linux 3.7.
23927
23928 2013-01-10  David S. Miller  <davem@davemloft.net>
23929
23930         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
23931         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23932         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23933
23934 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23935
23936         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
23937         never set.
23938         * configure: Regenerated.
23939
23940 2013-01-10  David S. Miller  <davem@davemloft.net>
23941
23942         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
23943         sparc V9 rather than using V8 code.
23944         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
23945         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
23946
23947 2013-01-10  Roland McGrath  <roland@hack.frob.com>
23948
23949         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
23950         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
23951         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
23952         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
23953         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
23954         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
23955         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
23956         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
23957         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
23958         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
23959         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
23960         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
23961         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
23962         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
23963         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
23964         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
23965         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
23966         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
23967         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
23968         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
23969         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
23970         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
23971         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
23972         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
23973         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
23974         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
23975         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
23976
23977 2013-01-10  David S. Miller  <davem@davemloft.net>
23978
23979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23980
23981 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
23982
23983         * posix/Makefile (tests-static): New variable.
23984         (tests): Add $(tests-static).
23985         (tst-exec-static-ARGS): New variable.
23986         (tst-spawn-static-ARGS): Likewise.
23987         * posix/tst-exec-static.c: New file.
23988         * posix/tst-spawn-static.c: Likewise.
23989         * posix/tst-exec.c: Support run directly.
23990         * posix/tst-spawn.c: Likewise.
23991
23992 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
23993
23994         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
23995         long.
23996         * math/bits/mathcalls.h (llrint): Likewise.
23997         (llround): Likewise.
23998         * stdlib/stdlib.h (struct drand48_data): Likewise.
23999         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
24000         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
24001         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
24002         Likewise.
24003         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
24004         Likewise.
24005         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
24006         (elf_greg_t): Likewise.
24007         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
24008         (__jmp_buf): Likewise.
24009         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
24010         definitions.
24011         (llrint): Likewise, for all definitions.
24012         (llrintl): Likewise.
24013
24014         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
24015         Remove [__GNUC__] condition.
24016         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
24017         condition to just [__USE_ISOC99].
24018         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
24019
24020 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
24021
24022         [BZ #14200]
24023         * sysdeps/unix/sysv/linux/x86/bits/environments.h
24024         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
24025         defined.
24026         (_POSIX_V6_ILP32_OFF32): Likewise.
24027         (_XBS5_ILP32_OFF32): Likewise.
24028         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
24029         (__ILP32_OFFBIG_LDFLAGS): Likewise.
24030
24031 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
24032
24033         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
24034
24035         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
24036         doubles __mpexp_twomm1.  Adjust usage.
24037         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
24038         Remove.
24039
24040 2013-01-10  Andreas Schwab  <schwab@suse.de>
24041
24042         [BZ #14964]
24043         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
24044         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
24045
24046 2013-01-09  David S. Miller  <davem@davemloft.net>
24047
24048         [BZ #15003]
24049         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
24050         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
24051         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
24052         (TCP_FASTOPEN): Define.
24053         (tcp_repair_opt): New structure.
24054         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
24055         enum values.
24056         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
24057         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
24058         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
24059         (tcp_cookie_transactions): New structure.
24060
24061 2013-01-09  Anton Blanchard  <anton@samba.org>
24062
24063         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
24064         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
24065         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
24066         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
24067
24068 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
24069
24070         * include/features.h (__USE_ANSI): Remove.
24071
24072 2013-01-09  Roland McGrath  <roland@hack.frob.com>
24073
24074         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
24075
24076         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
24077
24078 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
24079
24080         * sysdeps/s390/fpu/libm-test-ulps: Update.
24081
24082         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24083
24084         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
24085         (__acr): Likewise.
24086         (__cpy): Likewise.
24087         (norm): Likewise.
24088         (denorm): Likewise.
24089         (__mp_dbl): Likewise.
24090         (__dbl_mp): Likewise.
24091         (add_magnitudes): Likewise.
24092         (sub_magnitudes): Likewise.
24093         (__add): Likewise.
24094         (__sub): Likewise.
24095         (__mul): Likewise.
24096         (__inv): Likewise.
24097         (__dvd): Likewise.
24098         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
24099         (__acr): Likewise.
24100         (__cpy): Likewise.
24101         (norm): Likewise.
24102         (denorm): Likewise.
24103         (__mp_dbl): Likewise.
24104         (__dbl_mp): Likewise.
24105         (add_magnitudes): Likewise.
24106         (sub_magnitudes): Likewise.
24107         (__add): Likewise.
24108         (__sub): Likewise.
24109         (__mul): Likewise.
24110         (__inv): Likewise.
24111         (__dvd): Likewise.
24112         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
24113         (__acr): Likewise.
24114         (__cpy): Likewise.
24115         (norm): Likewise.
24116         (denorm): Likewise.
24117         (__mp_dbl): Likewise.
24118         (__dbl_mp): Likewise.
24119         (add_magnitudes): Likewise.
24120         (sub_magnitudes): Likewise.
24121         (__add): Likewise.
24122         (__sub): Likewise.
24123         (__mul): Likewise.
24124         (__inv): Likewise.
24125         (__dvd): Likewise.
24126
24127 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
24128
24129         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
24130         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
24131         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
24132         2 && __USE_EXTERN_INLINES]: Likewise.
24133
24134 2013-01-08  Andreas Jaeger  <aj@suse.de>
24135
24136         [BZ# 14985]
24137         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
24138         Remove.
24139         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
24140         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
24141
24142 2013-01-07  Anton Blanchard  <anton@samba.org>
24143
24144         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
24145         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
24146         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
24147         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
24148         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
24149         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
24150         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
24151         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
24152         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
24153         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24154         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
24155         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
24156         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
24157         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
24158         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
24159         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
24160         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
24161         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
24162         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
24163         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
24164         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
24165         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
24166         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
24167         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
24168         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
24169         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
24170         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24171         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
24172         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
24173         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
24174         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
24175         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
24176         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24177         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
24178         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
24179         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
24180         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
24181         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
24182         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
24183         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
24184         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
24185         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24186         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
24187
24188 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
24189
24190         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
24191         (__MALLOC_PMT): Likewise.
24192         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
24193         [__GNUC__], only on [_LIBC].
24194         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
24195         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
24196         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
24197         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
24198         forward declaration.
24199         (realloc_hook_ini): Likewise.
24200         (memalign_hook_ini): Likewise.
24201         (__libc_memalign): Do not use __MALLOC_PMT in variable
24202         declaration.
24203         (__libc_valloc): Likewise.
24204         (__libc_pvalloc): Likewise.
24205         (__libc_calloc): Likewise.
24206         (__posix_memalign): Likewise.
24207
24208         [BZ #14996]
24209         * math/s_casinh.c: Include <float.h>.
24210         (__casinh): Do not do computation with squaring and square root
24211         for large arguments.
24212         * math/s_casinhf.c: Include <float.h>.
24213         (__casinhf): Do not do computation with squaring and square root
24214         for large arguments.
24215         * math/s_casinhl.c: Include <float.h>.
24216         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
24217         (__casinhl): Do not do computation with squaring and square root
24218         for large arguments.
24219         * math/libm-test.inc (casin_test): Add more tests.
24220         (casinh_test): Likewise.
24221         * sysdeps/i386/fpu/libm-test-ulps: Update.
24222         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24223
24224 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24225
24226         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
24227         (__x86_64_raw_data_cache_size): Likewise.
24228         (__x86_64_data_cache_size_half): Likewise.
24229         (__x86_64_raw_data_cache_size_half): Likewise.
24230         (__x86_64_shared_cache_size): Likewise.
24231         (__x86_64_raw_shared_cache_size): Likewise.
24232         (__x86_64_shared_cache_size_half): Likewise.
24233         (__x86_64_raw_shared_cache_size_half): Likewise.
24234         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
24235         to ...
24236         (__x86_data_cache_size): This.
24237         (__x86_64_raw_data_cache_size): Renamed to ...
24238         (__x86_raw_data_cache_size): This.
24239         (__x86_64_data_cache_size_half): Renamed to ...
24240         (__x86_data_cache_size_half): This.
24241         (__x86_64_raw_data_cache_size_half): Renamed to ...
24242         (__x86_raw_data_cache_size_half): This.
24243         (__x86_64_shared_cache_size): Renamed to ...
24244         (__x86_shared_cache_size): This.
24245         (__x86_64_raw_shared_cache_size): Renamed to ...
24246         (__x86_raw_shared_cache_size): This.
24247         (__x86_64_shared_cache_size_half): Renamed to ...
24248         (__x86_shared_cache_size_half): This.
24249         (__x86_64_raw_shared_cache_size_half): Renamed to ...
24250         (__x86_raw_shared_cache_size_half): This.
24251         * sysdeps/x86_64/memcpy.S: Updated.
24252         * sysdeps/x86_64/memset.S: Likewise.
24253         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24254         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24255         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24256
24257 2013-01-04  David S. Miller  <davem@davemloft.net>
24258
24259         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24260
24261 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
24262
24263         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
24264         1 to avoid redefinition warning.
24265         (__USE_GNU): Don't define.
24266         (init_signaling_nan): Protoize.
24267
24268         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24269
24270 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
24271
24272         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
24273         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
24274         (__cpymn): Likewise.
24275         (norm): Remove commented code.
24276         (denorm): Likewise.
24277         (__mp_dbl): Likewise.
24278         (__inv): Likewise.
24279         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
24280         (__cpymn): Likewise.
24281         (norm): Remove commented code.
24282         (denorm): Likewise.
24283         (__mp_dbl): Likewise.
24284         (__inv): Likewise.
24285
24286         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
24287         mp_no value for 1.0 and 2.0.
24288         (norm): Use RADIXI instead of radixi.d.
24289         (denorm): Likewise.
24290         (__mul): Use 0.0 instead of zero.d.
24291         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
24292         mp_no value for 1.0 and 2.0.
24293         (norm): Use RADIXI instead of radixi.d.
24294         (denorm): Likewise.
24295         (__mul): Use 0.0 instead of zero.d.
24296
24297 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
24298
24299         [BZ #14994]
24300         * math/s_casinh.c (__casinh): Reduce finite argument to first
24301         quadrant then set signs of results at the end.
24302         * math/s_casinhf.c (__casinhf): Likewise.
24303         * math/s_casinhl.c (__casinhl): Likewise.
24304         * math/libm-test.inc (casin_test): Add more tests.
24305         (casinh_test): Likewise.
24306         * sysdeps/i386/fpu/libm-test-ulps: Update.
24307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24308
24309 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
24310
24311         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
24312
24313         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
24314
24315         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
24316         declarations.
24317         (denorm): Likewise.
24318         (__mp_dbl): Likewise.
24319         (__inv): Likewise.
24320
24321         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
24322         and adjust the header comment.
24323
24324         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
24325         variable name from declaration.
24326
24327 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24328
24329         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24330         Initialize COMMON_CPUID_INDEX_7 element.
24331         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
24332         (CPUID_RTM): Likewise.
24333         (HAS_RTM): Likewise.
24334         (COMMON_CPUID_INDEX_7): New enum.
24335
24336 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
24337
24338         [BZ #14981]
24339         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
24340         size is zero, record memory as freed.
24341
24342 2013-01-03  Andreas Jaeger  <aj@suse.de>
24343
24344         * po/ia.po: Add new Interlingua translation.
24345
24346 2012-01-03  Allan McRae  <allan@archlinux.org>
24347
24348         * locale/programs/localedef.c: Fix description of '--posix' flag.
24349
24350 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
24351
24352         * NEWS: Update dates in second copyright notice.
24353         * README: Update copyright dates in example.
24354         * manual/libc.texinfo: Update copyright dates.
24355         * scripts/test-installation.pl: Update copyright date in --version
24356         output.
24357
24358         * hurd/ctty-input.c: Fix copyright notice formatting.
24359         * hurd/ctty-output.c: Likewise.
24360         * hurd/dtable.c: Likewise.
24361         * hurd/hurd-raise.c: Likewise.
24362         * hurd/hurdprio.c: Likewise.
24363         * hurd/msgportdemux.c: Likewise.
24364         * misc/sys/file.h: Likewise.
24365         * misc/sys/ioctl.h: Likewise.
24366         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
24367         * sysdeps/mach/hurd/chdir.c: Likewise.
24368         * sysdeps/mach/hurd/fchdir.c: Likewise.
24369         * sysdeps/mach/hurd/rename.c: Likewise.
24370         * sysdeps/mach/hurd/rmdir.c: Likewise.
24371         * sysdeps/mach/hurd/seekdir.c: Likewise.
24372         * sysdeps/mach/hurd/setsid.c: Likewise.
24373         * sysdeps/posix/wait3.c: Likewise.
24374
24375         * All files with FSF copyright notices: Update copyright dates
24376         using scripts/update-copyrights.
24377         * intl/plural.c: Regenerated.
24378         * locale/programs/charmap-kw.h: Likewise.
24379         * locale/programs/locfile-kw.h: Likewise.
24380
24381 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
24382
24383         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
24384         four values.
24385
24386         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
24387         calculation loop and add branch prediction.
24388
24389         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
24390         check access beyond bounds of m1np.
24391
24392         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
24393         MPTWO.
24394         (__inv): Remove local variable MPTWO to use the global
24395         constant.
24396         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
24397         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
24398         variable MPTWO.
24399         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
24400         MP3HALFS static const.
24401
24402 2013-01-01  David S. Miller  <davem@davemloft.net>
24403
24404         * po/ca.po: Update from translation team.
24405
24406 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
24407
24408         * scripts/update-copyrights: New file.
24409         * Makeconfig: Reformat copyright notice.
24410         * ctype/ctype.h: Likewise.
24411         * debug/swprintf_chk.c: Likewise.
24412         * elf/dl-cache.c: Likewise.
24413         * elf/dl-debug.c: Likewise.
24414         * elf/dl-object.c: Likewise.
24415         * grp/initgroups.c: Likewise.
24416         * hurd/Makefile: Likewise.
24417         * hurd/hurd/signal.h: Likewise.
24418         * hurd/hurdfault.c: Likewise.
24419         * hurd/hurdioctl.c: Likewise.
24420         * hurd/hurdlookup.c: Likewise.
24421         * hurd/intr-msg.c: Likewise.
24422         * iconv/gconv_open.c: Likewise.
24423         * libio/swprintf.c: Likewise.
24424         * locale/lc-ctype.c: Likewise.
24425         * locale/nl_langinfo.c: Likewise.
24426         * mach/Machrules: Likewise.
24427         * mach/Makefile: Likewise.
24428         * malloc/obstack.h: Likewise.
24429         * manual/Makefile: Likewise.
24430         * manual/tsort.awk: Likewise.
24431         * misc/bits/stab.def: Likewise.
24432         * nis/nis_print_group_entry.c: Likewise.
24433         * nis/nis_table.c: Likewise.
24434         * nis/nss_compat/compat-pwd.c: Likewise.
24435         * nis/nss_compat/compat-spwd.c: Likewise.
24436         * po/Makefile: Likewise.
24437         * posix/fnmatch.c: Likewise.
24438         * posix/regex.h: Likewise.
24439         * resolv/Makefile: Likewise.
24440         * resolv/nss_dns/dns-network.c: Likewise.
24441         * resolv/res_hconf.c: Likewise.
24442         * scripts/gen-sorted.awk: Likewise.
24443         * soft-fp/soft-fp.h: Likewise.
24444         * stdio-common/printf.h: Likewise.
24445         * stdlib/monetary.h: Likewise.
24446         * stdlib/random.c: Likewise.
24447         * stdlib/random_r.c: Likewise.
24448         * sysdeps/generic/Makefile: Likewise.
24449         * sysdeps/gnu/Makefile: Likewise.
24450         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
24451         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
24452         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
24453         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
24454         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
24455         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
24456         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
24457         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
24458         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
24459         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
24460         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
24461         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
24462         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
24463         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
24464         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
24465         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
24466         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
24467         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
24468         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
24469         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
24470         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
24471         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
24472         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
24473         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
24474         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
24475         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
24476         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
24477         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
24478         * sysdeps/mach/hurd/errnos.awk: Likewise.
24479         * sysdeps/mach/hurd/fork.c: Likewise.
24480         * sysdeps/mach/hurd/getcwd.c: Likewise.
24481         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
24482         * sysdeps/mach/hurd/mmap.c: Likewise.
24483         * sysdeps/mach/hurd/utimes.c: Likewise.
24484         * sysdeps/mach/hurd/xmknod.c: Likewise.
24485         * sysdeps/posix/profil.c: Likewise.
24486         * sysdeps/posix/readdir_r.c: Likewise.
24487         * sysdeps/powerpc/bits/mathdef.h: Likewise.
24488         * sysdeps/powerpc/bits/setjmp.h: Likewise.
24489         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
24490         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
24491         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
24492         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
24493         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24494         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
24495         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
24496         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
24497         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24498         * sysdeps/pthread/lio_listio.c: Likewise.
24499         * sysdeps/sparc/dl-procinfo.h: Likewise.
24500         * sysdeps/unix/i386/sysdep.S: Likewise.
24501         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
24502         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
24503         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
24504         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
24505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24506         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
24507         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
24508         * sysdeps/unix/sysv/linux/speed.c: Likewise.
24509         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
24510         * sysdeps/wordsize-32/divdi3.c: Likewise.
24511         * time/sys/time.h: Likewise.
24512         * wcsmbs/Makefile: Likewise.
24513
24514 2013-01-01  David S. Miller  <davem@davemloft.net>
24515
24516         * po/fr.po: Update from translation team.
24517
24518         * catgets/gencat.c: Update copyright year.
24519         * csu/version.c: Likewise.
24520         * debug/catchsegv.sh: Likewise.
24521         * debug/pcprofiledump.c: Likewise.
24522         * debug/xtrace.sh: Likewise.
24523         * elf/ldconfig.c: Likewise.
24524         * elf/ldd.bash.in: Likewise.
24525         * elf/pldd.c: Likewise.
24526         * elf/sotruss.ksh: Likewise.
24527         * elf/sprof.c: Likewise.
24528         * iconv/iconv_prog.c: Likewise.
24529         * iconv/iconvconfig.c: Likewise.
24530         * locale/programs/locale.c: Likewise.
24531         * locale/programs/localedef.c: Likewise.
24532         * login/programs/pt_chown.c: Likewise.
24533         * malloc/memusage.sh: Likewise.
24534         * malloc/memusagestat.c: Likewise.
24535         * malloc/mtrace.pl: Likewise.
24536         * nscd/nscd.c: Likewise.
24537         * nss/getent.c: Likewise.
24538         * nss/makedb.c: Likewise.
24539         * posix/getconf.c: Likewise.
24540
24541 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
24542
24543         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
24544         numbers.
24545
24546 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
24547
24548         * math/bits/mathcalls.h (modf): Use __nonnull.
24549
24550 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
24551
24552         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
24553         (split): Use macro CN instead of the bare value.
24554         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
24555         could be used.
24556         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
24557         instead of the bare value.
24558         (power1): Likewise.
24559
24560 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24561
24562         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
24563         __ATAN_TWOM.
24564         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24565
24566         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
24567         their values.
24568         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
24569         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
24570         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
24571         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
24572
24573 2012-12-28  Andreas Jaeger  <aj@suse.de>
24574
24575         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
24576         values are from Linux 3.7.
24577
24578         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
24579         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
24580
24581 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24582
24583         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
24584         TRUE case.
24585
24586         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
24587         (norm): Likewise.
24588         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
24589         variables with preprocessor constants.
24590         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
24591         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
24592         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
24593
24594 2012-12-27  Bruno Haible  <bruno@clisp.org>
24595
24596         [BZ #14317]
24597         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
24598         only if needed.
24599
24600 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
24601
24602         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
24603         and use variable directly.
24604         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
24605
24606         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
24607         MPONE.
24608         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
24609         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
24610         variable MPONE.
24611         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
24612         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24613         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
24614         include directive.  Remove local variable MPONE.
24615         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
24616         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
24617         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
24618
24619 2012-12-25  David S. Miller  <davem@davemloft.net>
24620
24621         * version.h (RELEASE): Set to "development".
24622         (VERSION): Set to "2.17.90".
24623         * NEWS: Add 2.18 section.
24624
24625 2012-12-21  David S. Miller  <davem@davemloft.net>
24626
24627         * po/hr.po: Update from translation team.
24628
24629 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24630
24631         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
24632
24633 2012-12-19  Steve Ellcey  <sellcey@mips.com>
24634
24635         * NEWS:  Mention new memcpy for MIPS.
24636
24637 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24638
24639         * manual/contrib.texi (Contributors): Spelling correction.
24640
24641 2012-12-15  David S. Miller  <davem@davemloft.net>
24642
24643         * po/ru.po: Update from translation team.
24644
24645 2012-12-13  David S. Miller  <davem@davemloft.net>
24646
24647         * NEWS: Mention IFUNC testsuite enhancements.
24648
24649         * po/pl.po: Update from translation team.
24650         * po/bg.po: Likewise.
24651
24652         * manual/contrib.texi (Contributors): Update entries for Hongjiu
24653         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
24654
24655 2012-12-11  David S. Miller  <davem@davemloft.net>
24656
24657         * po/sv.po: Update from translation team.
24658
24659         * po/vi.po: Update from translation team.
24660
24661         * po/cs.po: Update from translation team.
24662
24663         * po/de.po: Update from translation team.
24664         * po/eo.po: Likewise.
24665         * po/nl.po: Likewise.
24666
24667 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
24668
24669         [BZ #14246]
24670         * manual/argp.texi (Argp Helper Functions): Move node to follow
24671         Argp Parsing State.
24672
24673         [BZ #14872]
24674         * manual/conf.texi (Limits on File System Capacity): Mention if
24675         terminating null is included in the max size.
24676
24677 2012-12-10  Andreas Jaeger  <aj@suse.de>
24678
24679         * po/cs.po: Update from translation team.
24680
24681 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
24682
24683         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
24684         void pointer and cast to uintptr_t.
24685         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
24686         path.
24687         * sysdeps/s390/s390-64/memcpy.S: Likewise.
24688         * sysdeps/s390/s390-64/memset.S: Likewise.
24689
24690 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
24691
24692         [BZ #14833]
24693         * menual/message.texi (Message Translation): Fix typos.
24694         (Helper programs for gettext): Likewise.
24695
24696 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
24697
24698         [BZ #14898]
24699         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
24700         Change to -1.
24701
24702 2012-12-07  David S. Miller  <davem@davemloft.net>
24703
24704         * po/libc.pot: Update.
24705
24706 2012-12-07  Richard Henderson  <rth@redhat.com>
24707
24708         [BZ #10114]
24709         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
24710         normal/normal case to before the switch.
24711         (_FP_DIV): Likewise.
24712
24713 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
24714             Mike Frysinger  <vapier@gentoo.org>
24715
24716         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
24717         check for __NR_fadvise64_64.
24718
24719 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
24720
24721         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
24722         0, not just to plain "0" as a statement.
24723         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
24724         with cw.
24725
24726 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
24727
24728         * NEWS: Use sourceware.org in Bugzilla URL.
24729
24730 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
24731
24732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
24733         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24734
24735         * stdio-common/tst-put-error.c (do_test): Add newline to the
24736         padded test to ensure flush.
24737
24738 2012-12-05  Jeff Law  <law@redhat.com>
24739
24740         * sunrpc/etc.rpc (fedfs_admin): Add entry.
24741
24742 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
24743
24744         * README: Don't refer to ports add-on as distributed separately.
24745         Mention AArch64 in list of systems supported in the ports add-on.
24746
24747         * LICENSES: Add more non-FSF copyright and license notices.
24748
24749         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
24750         ((unused)).
24751
24752         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
24753
24754         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
24755         10000 as width of padded output.
24756
24757 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24758
24759         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
24760
24761         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
24762         variable LX with __attribute__ ((unused)).
24763         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
24764         Likewise.
24765         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
24766         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
24767         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
24768         with __attribute__ ((unused)).
24769
24770 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
24771
24772         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
24773
24774 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
24775
24776         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
24777         (CFLAGS-nldbl-acos.c): New variable.
24778         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
24779         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
24780         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
24781         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
24782         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
24783         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
24784         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
24785         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
24786         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
24787         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
24788         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
24789         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
24790         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
24791         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
24792         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
24793         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
24794         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
24795         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
24796         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
24797         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
24798         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
24799         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
24800         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
24801         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
24802         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
24803         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
24804         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
24805         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
24806         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
24807         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
24808         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
24809         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
24810         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
24811         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
24812         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
24813         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
24814         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
24815         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
24816         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
24817         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
24818         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
24819         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
24820         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
24821         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
24822         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
24823         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
24824         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
24825         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
24826         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
24827         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
24828         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
24829         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
24830         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
24831         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
24832         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
24833         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
24834         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
24835         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
24836         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
24837         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
24838         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
24839         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
24840         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
24841         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
24842         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
24843         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
24844         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
24845         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
24846         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
24847         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
24848         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
24849         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
24850         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
24851         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
24852         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
24853         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
24854         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
24855         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
24856         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
24857         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
24858         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
24859         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
24860         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
24861         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
24862         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
24863         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
24864         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
24865         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
24866         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
24867         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
24868         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
24869         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
24870         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
24871         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
24872         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
24873         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
24874         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
24875
24876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24877         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
24878
24879         [BZ #14914]
24880         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
24881         whole low double instead of just low 47 bits when splitting values
24882         into two parts.
24883
24884 2012-12-03  Allan McRae  <allan@archlinux.org>
24885
24886         * manual/stdio.texi (Predefined Printf Handlers): Remove
24887         @hsep and @vsep usage.
24888
24889 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
24890
24891         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
24892         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
24893
24894 2012-12-03  Jeff Law  <law@redhat.com>
24895
24896         * time/sys/time.h (settimeofday): Do not mark TV argument
24897         as __nonnull.
24898
24899 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
24900
24901         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
24902         when currently writing and seek to current position when not.
24903         * libio/Makefile (tests): Remove bug-fclose1.
24904         * libio/bug-fclose1.c: Delete.
24905
24906 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
24907
24908         * manual/arith.texi (feenableexcept): Fix typo.
24909         (fedisableexcept): Likewise.
24910
24911 2012-11-30  Roland McGrath  <roland@hack.frob.com>
24912
24913         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
24914         second, differently-typed declaration, rather than a cast.
24915
24916 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24917
24918         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
24919         * include/rpc/svc.h: ... here.
24920
24921 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
24922
24923         [BZ #13013]
24924         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
24925         depending n and resplen2 to catch cases where answer
24926         equals answerp2.
24927
24928 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
24929
24930         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
24931         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
24932
24933 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
24934
24935         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
24936
24937 2012-11-29  Roland McGrath  <roland@hack.frob.com>
24938
24939         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
24940
24941 2012-11-28  Jeff Law  <law@redhat.com>
24942
24943         [BZ #13761]
24944         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
24945         dataset_temporary.  Track alloca usage into alloca_used.
24946         If dataset is large allocate and release it via malloc/free.
24947
24948 2012-06-04  Florian Weimer  <fweimer@redhat.com>
24949
24950         [BZ #14197]
24951         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
24952
24953 2012-11-28  David S. Miller  <davem@davemloft.net>
24954
24955         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24956
24957 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24958
24959         [BZ #14803]
24960         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
24961         of pi/2 rounded to nearest to 64 bits.
24962         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
24963         nearest to 64 bits.
24964         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
24965         bits.
24966
24967 2012-11-28  Jeff Law <law@redhat.com>
24968             Martin Osvald <mosvald@redhat.com>
24969
24970         [BZ #14889]
24971         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
24972         * sunrpc/svc.c: Include time.h.
24973         (__svc_accept_failed): New function.
24974         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
24975         any reason other than EINTR, call __svc_accept_failed.
24976         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
24977         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
24978
24979 2012-11-28  Andreas Schwab  <schwab@suse.de>
24980
24981         * scripts/abilist.awk: Also handle indirect functions in .opd
24982         section.
24983
24984 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
24985
24986         [BZ #13881]
24987         * sysdeps/x86/fpu/powl_helper.c: New file.
24988         * sysdeps/x86/fpu/Makefile: Likewise.
24989         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
24990         (p3): New object.
24991         (__ieee754_powl): Use __powl_helper for finite arguments except
24992         integer exponents below 8.
24993         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
24994         (p3): New object.
24995         (__ieee754_powl): Use __powl_helper for finite arguments except
24996         integer exponents below 8.
24997         * math/libm-test.inc (pow_test): Add more tests and enable some
24998         previously disabled tests.
24999         * sysdeps/i386/fpu/libm-test-ulps: Update.
25000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25001
25002 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25003             Carlos O'Donell  <carlos_odonell@mentor.com>
25004
25005         * nss/makedb.c (is_prime): Assert that input is odd and greater
25006         than 4.  Note that fact in a comment too.
25007         (next_prime): Add 4 to input.
25008
25009 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
25010
25011         [BZ #11741]
25012         * libio/Makefile (tests): Add test case tst-fwrite-error.
25013         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
25014         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
25015         * libio/tst-fwrite-error.c: New test case.
25016
25017 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
25018
25019         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
25020         before casting to void *.
25021         * include/libc-internal.h (__pointer_type): New macro.
25022         (__integer_if_pointer_type_sub): Likewise.
25023         (__integer_if_pointer_type): Likewise.
25024         (cast_to_integer): Likewise.
25025         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
25026         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
25027         before casting to atomic64_t.
25028         (atomic_exchange_acq): Likewise.
25029         (__arch_exchange_and_add_body): Likewise.
25030         (__arch_add_body): Likewise.
25031         (atomic_add_negative): Likewise.
25032         (atomic_add_zero): Likewise.
25033
25034 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
25035
25036         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
25037         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
25038         (add_fdes): Likewise.
25039         (linear_search_fdes): Likewise.
25040         (binary_search_unencoded_fdes): Likewise.
25041
25042 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
25043
25044         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
25045
25046 2012-11-24  Adam Conrad  <adconrad@0c3.net>
25047
25048         * configure.in: Autodetect C++ header directories.
25049         * configure: Regenerated.
25050
25051 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
25052
25053         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
25054
25055 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
25056
25057         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25058
25059 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
25060
25061         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
25062         LDBL_MANT_DIG == 106]: Disable some tests.
25063         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
25064         Likewise.
25065         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
25066         Likewise.
25067
25068         [BZ #14871]
25069         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
25070         input for small inputs.  Return +/- pi/2 for large inputs.
25071         * math/libm-test.inc (atan_test): Add more tests.
25072
25073         * sysdeps/generic/unwind-dw2-fde-glibc.c
25074         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
25075         __attribute__ ((unused)).
25076
25077         [BZ #14645]
25078         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
25079         x * y if x and y are nonzero and z is zero.
25080
25081         [BZ #14811]
25082         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
25083         nonzero exponents with absolute value below 0x1p-117 to +/-
25084         0x1p-117.
25085
25086         [BZ #14869]
25087         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
25088         up arguments below 2**-450, not just those below 2**-500.
25089         * math/libm-test.inc (hypot_test): Add another test.
25090
25091         [BZ #14868]
25092         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
25093         Return a+b for ratio over 2**120, not 2**60.
25094         * math/libm-test.inc (hypot_test): Add another test.
25095
25096         * math/libm-test.inc (clog_test): Use
25097         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
25098         (clog10_test): Likewise.
25099
25100         [BZ #6778]
25101         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
25102
25103 2012-11-22  Andreas Schwab  <schwab@suse.de>
25104
25105         * sysdeps/i386/fpu/libm-test-ulps: Update.
25106
25107 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
25108
25109         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
25110         printf output with newline.
25111
25112 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
25113
25114         [BZ #14865]
25115         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
25116         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
25117         -z nodlopen, -z initfirst and -z execstack support.
25118         * configure: Regenerated.
25119
25120         * elf/elf.h (DF_1_NODIRECT): New macro.
25121         (DF_1_IGNMULDEF): Likewise.
25122         (DF_1_NOKSYMS): Likewise.
25123         (DF_1_NOHDR): Likewise.
25124         (DF_1_EDITED): Likewise.
25125         (DF_1_NORELOC): Likewise.
25126         (DF_1_SYMINTPOSE): Likewise.
25127         (DF_1_GLOBAUDIT): Likewise.
25128         (DF_1_SINGLETON): Likewise.
25129         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
25130         DT_1_SUPPORTED_MASK bits.
25131         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
25132
25133 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
25134
25135         * sysdeps/unix/make-syscalls.sh: Document prefixes.
25136
25137 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
25138
25139         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
25140         macro.
25141
25142         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
25143         (sendmmsg): Move declarations...
25144         * socket/sys/socket.h: ... here.
25145         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
25146         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
25147         include it from...
25148         * socket/recvmmsg.c: ... this new file.
25149         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
25150         (sendmmsg): Rename to __sendmmsg, create weak alias and make
25151         definition of __sendmmsg hidden.
25152         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
25153         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
25154         Move ENOSYS stub into and include it from...
25155         * socket/sendmmsg.c: ... this new file.
25156         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
25157         (sysdep_routines): Move recvmmsg and sendmmsg...
25158         * socket/Makefile (routines): ... here.
25159         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
25160         (GLIBC_PRIVATE): Add __sendmmsg.
25161         * include/sys/socket.h (__sendmmsg): Add declarations.
25162         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
25163         sendmmsg.
25164
25165 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
25166
25167         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
25168         variable I1 with __attribute__ ((unused)).
25169         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25170
25171 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
25172
25173         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
25174         DUMMY variables with __attribute__ ((unused)).
25175
25176         * bits/byteswap.h: Include <bits/types.h>.
25177         (__bswap_64): Use __uint64_t instead of unsigned long long int.
25178
25179 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
25180
25181         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
25182         string_t.  Do not manually set errno.
25183         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
25184         length with __strnlen.  Make sure to both set errno and return it on
25185         failure.
25186
25187 2012-11-19  David S. Miller  <davem@davemloft.net>
25188
25189         With help from Joseph Myers.
25190         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
25191         very large arguments properly.
25192         * math/libm-test.inc (atan_test): New tests.
25193         (atan2_test): New tests.
25194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25195         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25196
25197 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
25198
25199         [BZ #14856]
25200         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
25201         Define to 3.
25202
25203         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
25204         [POSIX] (EADDRNOTAVAIL): Likewise.
25205         [POSIX] (EAFNOSUPPORT): Likewise.
25206         [POSIX] (EALREADY): Likewise.
25207         [POSIX] (ECONNABORTED): Likewise.
25208         [POSIX] (ECONNREFUSED): Likewise.
25209         [POSIX] (ECONNRESET): Likewise.
25210         [POSIX] (EDESTADDRREQ): Likewise.
25211         [POSIX] (EDQUOT): Likewise.
25212         [POSIX] (EHOSTUNREACH): Likewise.
25213         [POSIX] (EIDRM): Likewise.
25214         [POSIX] (EISCONN): Likewise.
25215         [POSIX] (ELOOP): Likewise.
25216         [POSIX] (EMULTIHOP): Likewise.
25217         [POSIX] (ENETDOWN): Likewise.
25218         [POSIX] (ENETUNREACH): Likewise.
25219         [POSIX] (ENOBUFS): Likewise.
25220         [POSIX] (ENODATA): Likewise.
25221         [POSIX] (ENOLINK): Likewise.
25222         [POSIX] (ENOMSG): Likewise.
25223         [POSIX] (ENOPROTOOPT): Likewise.
25224         [POSIX] (ENOSR): Likewise.
25225         [POSIX] (ENOSTR): Likewise.
25226         [POSIX] (ENOTCONN): Likewise.
25227         [POSIX] (ENOTSOCK): Likewise.
25228         [POSIX] (EOPNOTSUPP): Likewise.
25229         [POSIX] (EOVERFLOW): Likewise.
25230         [POSIX] (EPROTO): Likewise.
25231         [POSIX] (EPROTONOSUPPORT): Likewise.
25232         [POSIX] (EPROTOTYPE): Likewise.
25233         [POSIX] (ESTALE): Likewise.
25234         [POSIX] (ETIME): Likewise.
25235         [POSIX] (ETXTBSY): Likewise.
25236         [POSIX] (EWOULDBLOCK): Likewise.
25237         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
25238         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
25239         [POSIX] (SEEK_CUR): Likewise.
25240         [POSIX] (SEEK_END): Likewise.
25241         [POSIX || UNIX98] (mode_t): Do not require.
25242         [POSIX] (off_t): Likewise.
25243         [POSIX] (pid_t): Likewise.
25244         [POSIX] (sys/stat.h): Do not allow header.
25245         [POSIX] (unistd.h): Likewise.
25246         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
25247         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
25248         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
25249         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
25250         require.
25251         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
25252         sigevent): Specify elements.
25253         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
25254         entry.
25255         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
25256         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
25257
25258         * conform/data/cpio.h-data [POSIX]: Disable whole file.
25259         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
25260         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
25261         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
25262         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
25263         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
25264         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
25265         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
25266         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
25267         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
25268         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
25269         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
25270         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
25271         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
25272         Likewise.
25273         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
25274         Likewise.
25275         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
25276         Likewise.
25277         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
25278         Likewise.
25279         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
25280         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
25281         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
25282         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
25283         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
25284         Specify lower bound on value.
25285         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
25286         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
25287         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
25288         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
25289         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
25290         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
25291         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
25292         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
25293         value.
25294         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
25295         as optional.
25296         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
25297         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
25298         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
25299         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
25300         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
25301         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
25302         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
25303         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
25304         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
25305         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
25306         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
25307         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
25308         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
25309         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
25310         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
25311         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
25312         entry.
25313         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
25314         optional.
25315         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
25316         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
25317         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
25318         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
25319         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
25320         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
25321         Likewise.
25322         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
25323         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
25324         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
25325         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
25326         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
25327         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
25328         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
25329         as optional.
25330         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
25331         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
25332         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
25333         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
25334         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
25335         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
25336         specify as optional.
25337         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
25338         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
25339         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
25340         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
25341         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
25342         [XPG3] (NL_LANGMAX): Likewise.
25343         [POSIX || XPG3] (NL_MSGMAX): Likewise.
25344         [POSIX || XPG3] (NL_NMAX): Likewise.
25345         [POSIX || XPG3] (NL_SETMAX): Likewise.
25346         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
25347         [XPG3] (NZERO): Likewise.
25348         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
25349         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
25350         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
25351         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
25352         (REG_ERANGE): Expect.
25353         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
25354         optional-constant.
25355         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
25356         Use (void) in prototype.
25357         [POSIX] (*_t): Allow.
25358         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
25359         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
25360         (WRDE_BADVAL): Expect.
25361
25362         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
25363         expect.
25364         [XPG3 || XPG4] (O_RSYNC): Likewise.
25365         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
25366         Likewise.
25367         [XPG3 || XPG4] (pthread_sigmask): Likewise.
25368         [XPG3 || XPG4] (sigqueue): Likewise.
25369         [XPG3 || XPG4] (sigtimedwait): Likewise.
25370         [XPG3 || XPG4] (sigwaitinfo): Likewise.
25371         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
25372         [XPG3 || XPG4] (vsnprintf): Likewise.
25373         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
25374         Likewise.
25375         [XPG3 || XPG4] (blksize_t): Likewise.
25376         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
25377         Likewise.
25378         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
25379         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
25380         [XPG3 || XPG4] (struct itimerspec): Likewise.
25381         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
25382         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
25383         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
25384         [XPG3 || XPG4] (clockid_t): Likewise.
25385         [XPG3 || XPG4] (timer_t): Likewise.
25386         [XPG3 || XPG4] (clock_getres): Likewise.
25387         [XPG3 || XPG4] (clock_gettime): Likewise.
25388         [XPG3 || XPG4] (clock_settime): Likewise.
25389         [XPG3 || XPG4] (nanosleep): Likewise.
25390         [XPG3 || XPG4] (timer_create): Likewise.
25391         [XPG3 || XPG4] (timer_delete): Likewise.
25392         [XPG3 || XPG4] (timer_gettime): Likewise.
25393         [XPG3 || XPG4] (timer_getoverrun): Likewise.
25394         [XPG3 || XPG4] (timer_settime): Likewise.
25395         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
25396         [XPG3 || XPG4] (getlogin_r): Likewise.
25397         [XPG3 || XPG4] (pread): Likewise.
25398         [XPG3 || XPG4] (pthread_atfork): Likewise.
25399         [XPG3 || XPG4] (pwrite): Likewise.
25400
25401         [BZ #14835]
25402         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
25403         <bits/siginfo.h>.
25404
25405 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
25406
25407         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
25408         finalizing MALLSTREAM.
25409
25410         * sysdeps/mach/hurd/syncfs.c: New file.
25411
25412 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
25413
25414         [BZ #14719]
25415         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
25416         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
25417         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
25418         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
25419         (_nss_dns_gethostbyname4_r): Likewise.
25420         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
25421         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
25422
25423 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
25424
25425         [BZ #13763]
25426         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
25427
25428 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
25429
25430         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
25431         * elf/cache.c (print_entry): Print ",AArch64" for
25432         FLAG_AARCH64_LIB64
25433
25434         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
25435         * elf/cache.c (print_entry): Print ",hard-float" for
25436         FLAG_ARM_LIBHF.
25437
25438 2012-11-18  David S. Miller  <davem@davemloft.net>
25439
25440         With help from Joseph Myers.
25441         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
25442         cutoff to 2**-13.
25443         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
25444         cutoff to 2**-25.
25445         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
25446         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
25447         small.
25448         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
25449         * math/libm-test.inc (y0_test): New tests.
25450         (y1_test): New tests.
25451         * sysdeps/i386/fpu/libm-test-ulps: Update.
25452         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25453         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25454
25455 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
25456
25457         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
25458         64-bit targets.
25459         * configure: Regenerated.
25460
25461 2012-11-17  David S. Miller  <davem@davemloft.net>
25462
25463         [BZ #14811]
25464         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
25465         nonzero exponents with absolute value below 0x1p-128 to +/-
25466         0x1p-128.
25467
25468 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
25469
25470         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
25471
25472         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
25473
25474         * posix/getconf-speclist.c: New file.
25475         * posix/posix-envs.def: Likewise.
25476         * posix/confstr.c (START_ENV_GROUP): New macro.
25477         (END_ENV_GROUP): Likewise.
25478         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
25479         (KNOWN_PRESENT_ENV_STRING): Likewise.
25480         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
25481         (UNKNOWN_ENVIRONMENT): Likewise.
25482         (confstr): Include posix-envs.def instead of handling
25483         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
25484         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
25485         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
25486         (END_ENV_GROUP): Likewise.
25487         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
25488         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
25489         (UNKNOWN_ENVIRONMENT): Likewise.
25490         (__sysconf): Include posix-envs.def instead of handling associated
25491         cases directly here.
25492         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
25493         preprocessing getconf-speclist.c rather than running getconf or
25494         generating empty file.
25495
25496 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
25497
25498         * scripts/check-local-headers.sh: Ignore 'mach' headers.
25499
25500 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
25501
25502         [BZ #14672]
25503         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
25504
25505 2012-11-16  David S. Miller  <davem@davemloft.net>
25506
25507         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
25508         smaller than LDBL_EPSILON/2.0L, just return xm1.
25509
25510 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
25511
25512         * elf/tst-array1.c (init): Set constructor priority to 1000.
25513         (fini): Set destructor priority to 1000.
25514         * elf/tst-array2dep.c: Likewise.
25515
25516 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
25517
25518         [BZ #11741]
25519         * libio/fileops.c (_IO_new_file_write): Correctly return error.
25520         (_IO_new_file_xsputn): Also return EOF if none of the input
25521         data was written when overflow failed.
25522         * libio/iopadn.c (_IO_padn): Likewise.
25523         * libio/iowpadn.c (_IO_wpadn): Likewise.
25524         * stdio-common/tst-put-error.c: Add copyright notice.
25525         (do_test): Add case for printing padded string.
25526         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
25527         _IO_padn returned error.
25528         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
25529         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
25530         return EOF.
25531
25532 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
25533
25534         * libio/libioP.h: Add comment note that the references to C++
25535         bits are now obsolete.
25536
25537 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25538
25539         * math/libm-test.inc (check_complex): Use asprintf.
25540
25541 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
25542
25543         * debug/pcprofiledump.c (print_version): Update copyright year.
25544         * malloc/memusagestat.c (print_version): Likewise.
25545
25546 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
25547
25548         [BZ #14831]
25549         * elf/Makefile (tests): Add tst-audit8.
25550         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
25551         ($(objpfx)tst-audit8.out): New target.
25552         (tst-audit8-ENV): New variable.
25553         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
25554         audit if l_reloc_result is NULL.
25555         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
25556         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
25557         * elf/tst-audit8.c: New file.
25558
25559 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25560
25561         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
25562         * misc/Makefile (CFLAGS-select.c): Define.
25563         * posix/Makefile (CFLAGS-pause.c): Define.
25564
25565 2012-11-13  David S. Miller  <davem@davemloft.net>
25566
25567         * crypt/Makefile: Move test targets after toplevel Rules
25568         inclusion.  Grab any necessary sysdep routines when linking.
25569         * crypt/md5.c (md5_process_block): Remove define, we will always
25570         name it __md5_process_block.
25571         (md5_finish_ctx): Update md5_process_block call.
25572         (md5_stream): Likewise.
25573         (md5_process_bytes): Likewise.
25574         (md5_process_block): Rename to __md5_process_block and move to ...
25575         * crypt/md5-block.c: ... here.
25576         * crypt/sha256.c (sha256_process_block): Move to ...
25577         * crypt/sha256-block.c: ... here.
25578         * crypt/sha512.c (sha512_process_block): Move to ...
25579         * crypt/sha512-block.c: ... here.
25580         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
25581         path.
25582         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
25583         * sysdeps/sparc/sparc64/multiarch/Makefile
25584         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
25585         crypt subdir.
25586         (localedef-aux): Add md5 crypto assembler when in locale subdir.
25587         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
25588         multiarch changes.
25589         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
25590         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
25591         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
25592         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
25593         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
25594         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
25595         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
25596         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
25597         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
25598         file.
25599         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
25600         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
25601         file.
25602         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
25603
25604 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
25605
25606         * timezone/tzselect.ksh: Update from tzcode git revision
25607         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
25608         * timezone/zdump.c: Likewise.
25609         * timezone/zic.c: Likewise.
25610         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
25611         in TZVERSION setting, not $(PKGVERSION).
25612         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
25613         REPORT_BUGS_TO settings.
25614
25615         [BZ #14838]
25616         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
25617         macro.
25618
25619 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25620
25621         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
25622         detection to immediately after _FP_ROUND().
25623         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
25624         bits are 0.
25625
25626 2012-11-11  David S. Miller  <davem@davemloft.net>
25627
25628         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
25629         inttypes.h
25630         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
25631         __close rather than their public counterparts.
25632
25633 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
25634
25635         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
25636         file.
25637         [UNIX98] (sem_timedwait): Do not expect.
25638         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
25639         [XPG4 || UNIX98] (sockatmark): Do not expect.
25640         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
25641         (clock_getcpuclockid): Do not expect.
25642         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
25643         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
25644         Do not expect.
25645         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
25646         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
25647         [UNIX98] (vwscanf): Likewise.
25648         [UNIX98] (vswscanf): Likewise.
25649
25650 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
25651
25652         * timezone/version.h: Remove file.
25653         * timezone/README: Do not refer to version.h.
25654         * timezone/Makefile ($(objpfx)zic.o): New dependency on
25655         $(objpfx)version.h.
25656         ($(objpfx)zdump.o): Likewise.
25657         ($(objpfx)version.h): New target.
25658
25659         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
25660         2012i.
25661         * timezone/README: Don't mention modification to tzselect.ksh.
25662         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
25663         work on unmodified tzselect.ksh.  Substitute version numbers in
25664         tzselect.ksh.
25665
25666         * Makefile (format-me): Remove.
25667         (INSTALL): Adjust indentation.  Use commands directly instead of
25668         using $(format-me).
25669
25670         * aclocal.m4 (ACX_PKGVERSION): New macro.
25671         (ACX_BUGURL): Likewise.
25672         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
25673         (PKGVERSION): New AC_DEFINE_UNQUOTED.
25674         (REPORT_BUGS_TO): Likewise.
25675         * configure: Regenerated.
25676         * config.h.in (PKGVERSION): New macro.
25677         (REPORT_BUGS_TO): Likewise.
25678         * config.make.in (PKGVERSION): New variable.
25679         (PKGVERSION_TEXI): Likewise.
25680         (REPORT_BUGS_TO): Likewise.
25681         (REPORT_BUGS_TEXI): Likewise.
25682         * Makefile (format-me): Use -I$(common-objpfx)manual.
25683         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
25684         ($(common-objpfx)manual/%): New target.
25685         (manual/%): Remove target.
25686         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
25687         (print_version): Use PKGVERSION.
25688         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
25689         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
25690         and REPORT_BUGS_TO.
25691         ($(objpfx)xtrace): Likewise.
25692         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
25693         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
25694         (print_version): Use PKGVERSION.
25695         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
25696         (do_version): Use PKGVERSION.
25697         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
25698         REPORT_BUGS_TO.
25699         (common-ldd-rewrite): Likewise.
25700         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
25701         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
25702         (print_version): Use PKGVERSION.
25703         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
25704         * elf/pldd.c (argp_program_bug_address): Remove variable.
25705         (more_help): New function.
25706         (argp): Use more_help.
25707         (print_version): Use PKGVERSION.
25708         * elf/sln.c (main): Use PKGVERSION.
25709         (usage): Use REPORT_BUGS_TO.
25710         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
25711         (top level): Use PKGVERSION.
25712         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
25713         (print_version): Use PKGVERSION.
25714         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
25715         (print_version): Use PKGVERSION.
25716         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
25717         (print_version): Use PKGVERSION.
25718         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
25719         (print_version): Use PKGVERSION.
25720         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
25721         (print_version): Use PKGVERSION.
25722         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
25723         (print_version): Use PKGVERSION.
25724         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
25725         and BUGURL.
25726         ($(objpfx)memusage): Likewise.
25727         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
25728         (do_version): Use PKGVERSION.
25729         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
25730         (print_version): Use PKGVERSION.
25731         * malloc/mtrace.pl ($PACKAGE): Remove variable.
25732         ($PKGVERSION): New variable.
25733         ($REPORT_BUGS_TO): Likewise.
25734         (usage): Use $REPORT_BUGS_TO.
25735         (top level): Use $PKGVERSION.
25736         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
25737         ($(objpfx)pkgvers.texi): New rule.
25738         ($(objpfx)stamp-pkgvers): Likewise.
25739         * manual/install.texi: Include pkgvers.texi.
25740         (--with-pkgversion): Document new configure option.
25741         (--with-bugurl): Likewise.
25742         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
25743         than necessarily for this particular distribution.  Use
25744         REPORT_BUGS_TO for where to report bugs.
25745         * INSTALL: Regenerated.
25746         * manual/libc.texinfo: Include pkgvers.texi.
25747         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
25748         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
25749         (print_version): Use PKGVERSION.
25750         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
25751         (print_version): Use PKGVERSION.
25752         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
25753         (print_version): Use PKGVERSION.
25754         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
25755         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
25756         macro.
25757         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
25758         (print_version): Use PKGVERSION.
25759         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
25760         (print_version): Use PKGVERSION.
25761         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
25762         and PKGVERSION.
25763
25764         * timezone/checktab.awk: Update from tzcode 2012i.
25765         * timezone/ialloc.c: Likewise.
25766         * timezone/private.h: Likewise.
25767         * timezone/scheck.c: Likewise.
25768         * timezone/tzfile.h: Likewise.
25769         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
25770         (TZVERSION): Hardcode tzcode version number.
25771         * timezone/zdump.c: Update from tzcode 2012i.
25772         * timezone/zic.c: Likewise.
25773         * timezone/version.h: New file.
25774         * timezone/README: Describe version.h.  Update upstream location.
25775
25776         [BZ #14824]
25777         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
25778         (mktemp): Enable declaration.
25779         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
25780         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
25781         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
25782         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
25783         Likewise.
25784         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
25785         Likewise.
25786         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
25787         Likewise.
25788         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
25789         Likewise.
25790         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
25791         Likewise.
25792         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
25793         Likewise.
25794
25795         [BZ #14821]
25796         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
25797         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
25798         for copies of such integer values.
25799         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
25800         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
25801
25802 2012-11-09  Andreas Jaeger  <aj@suse.de>
25803
25804         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
25805         definitions and declarations that are provided by
25806         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25807
25808 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25809
25810         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
25811         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
25812         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
25813         definition.
25814
25815 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25816
25817         * elf/elf.h: Update comment before AArch64 relocations.
25818
25819 2012-11-07  David S. Miller  <davem@davemloft.net>
25820
25821         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
25822         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25823         (__start_context): Declare.
25824         (__makecontext_ret): Delete.
25825         (__makecontext): Hook up __start_context instead of
25826         __makecontext_ret.
25827         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
25828         (sysdep_routines): Add __start_context when in stdlib.
25829
25830 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25831
25832         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
25833         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
25834         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
25835         hardcoded "nm".
25836         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
25837         (READELF): New variable.  Use it instead of hardcoded "readelf".
25838
25839 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25840
25841         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
25842         * sysdeps/x86/Makefile: Here.
25843         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
25844         * sysdeps/x86/tst-xmmymm.sh: This.
25845
25846 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
25847
25848         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
25849         expectations.
25850         [UNIX98] (pthread_barrier_t): Do not expect.
25851         [UNIX98] (pthread_barrierattr_t): Likewise.
25852         [UNIX98] (pthread_spinlock_t): Likewise.
25853         [UNIX98] (pthread_barrier_destroy): Likewise.
25854         [UNIX98] (pthread_barrier_init): Likewise.
25855         [UNIX98] (pthread_barrier_wait): Likewise.
25856         [UNIX98] (pthread_barrierattr_destroy): Likewise.
25857         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
25858         [UNIX98] (pthread_barrierattr_init): Likewise.
25859         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
25860         [UNIX98] (pthread_getcpuclockid): Likewise.
25861         [UNIX98] (pthread_mutex_timedlock): Likewise.
25862         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
25863         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
25864         [UNIX98] (pthread_sigmask): Likewise.
25865         [UNIX98] (pthread_spin_destroy): Likewise.
25866         [UNIX98] (pthread_spin_init): Likewise.
25867         [UNIX98] (pthread_spin_lock): Likewise.
25868         [UNIX98] (pthread_spin_trylock): Likewise.
25869         [UNIX98] (pthread_spin_unlock): Likewise.
25870         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
25871         Do not expect.
25872         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
25873         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
25874         [XPG3 || XPG4] (pthread_cond_t): Likewise.
25875         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
25876         [XPG3 || XPG4] (pthread_key_t): Likewise.
25877         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
25878         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
25879         [XPG3 || XPG4] (pthread_once_t): Likewise.
25880         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
25881         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
25882         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
25883         [XPG3 || XPG4] (pthread_t): Likewise.
25884
25885         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
25886         not expect.
25887         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
25888
25889         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
25890         Change function return type to int.
25891
25892         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
25893         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
25894         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
25895         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
25896         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
25897         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
25898         [!POSIX] (posix_madvise): Likewise.
25899         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
25900         && !UNIX98].
25901         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
25902         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
25903         (mode_t): Likewise.
25904         (posix_mem_offset): Likewise.
25905         (posix_typed_mem_get_info): Likewise.
25906         (posix_typed_mem_open): Likewise.
25907
25908         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
25909         Change condition to [XOPEN2K8].
25910
25911         * conform/conformtest.pl: Preprocess allow-header data with -x c
25912         instead of from stdin.
25913         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
25914         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
25915         [C99-based standards] (cerfc): Likewise.
25916         [C99-based standards] (cexp2): Likewise.
25917         [C99-based standards] (cexpm1): Likewise.
25918         [C99-based standards] (clog10): Likewise.
25919         [C99-based standards] (clog1p): Likewise.
25920         [C99-based standards] (clog2): Likewise.
25921         [C99-based standards] (clgamma): Likewise.
25922         [C99-based standards] (ctgamma): Likewise.
25923         [C99-based standards] (cerff): Likewise.
25924         [C99-based standards] (cerfcf): Likewise.
25925         [C99-based standards] (cexp2f): Likewise.
25926         [C99-based standards] (cexpm1f): Likewise.
25927         [C99-based standards] (clog10f): Likewise.
25928         [C99-based standards] (clog1pf): Likewise.
25929         [C99-based standards] (clog2f): Likewise.
25930         [C99-based standards] (clgammaf): Likewise.
25931         [C99-based standards] (ctgammaf): Likewise.
25932         [C99-based standards] (cerfl): Likewise.
25933         [C99-based standards] (cerfcl): Likewise.
25934         [C99-based standards] (cexp2l): Likewise.
25935         [C99-based standards] (cexpm1l): Likewise.
25936         [C99-based standards] (clog10l): Likewise.
25937         [C99-based standards] (clog1pl): Likewise.
25938         [C99-based standards] (clog2l): Likewise.
25939         [C99-based standards] (clgammal): Likewise.
25940         [C99-based standards] (ctgammal): Likewise.
25941         * conform/data/inttypes.h-data [C99-based standards]: Include
25942         stdint.h-data.  Remove all expectations for stdint.h contents.
25943         [C99-based standards] (PRI*): Do not allow.
25944         [C99-based standards] (SCN*): Likewise.
25945         [C99-based standards] (*_t): Likewise.
25946         [C99-based-standards] (PRId8): Expect macro.
25947         [C99-based-standards] (PRIi8): Likewise.
25948         [C99-based-standards] (PRIo8): Likewise.
25949         [C99-based-standards] (PRIu8): Likewise.
25950         [C99-based-standards] (PRIx8): Likewise.
25951         [C99-based-standards] (PRIX8): Likewise.
25952         [C99-based-standards] (SCNd8): Likewise.
25953         [C99-based-standards] (SCNi8): Likewise.
25954         [C99-based-standards] (SCNo8): Likewise.
25955         [C99-based-standards] (SCNu8): Likewise.
25956         [C99-based-standards] (SCNx8): Likewise.
25957         [C99-based-standards] (PRIdLEAST8): Likewise.
25958         [C99-based-standards] (PRIiLEAST8): Likewise.
25959         [C99-based-standards] (PRIoLEAST8): Likewise.
25960         [C99-based-standards] (PRIuLEAST8): Likewise.
25961         [C99-based-standards] (PRIxLEAST8): Likewise.
25962         [C99-based-standards] (PRIXLEAST8): Likewise.
25963         [C99-based-standards] (SCNdLEAST8): Likewise.
25964         [C99-based-standards] (SCNiLEAST8): Likewise.
25965         [C99-based-standards] (SCNoLEAST8): Likewise.
25966         [C99-based-standards] (SCNuLEAST8): Likewise.
25967         [C99-based-standards] (SCNxLEAST8): Likewise.
25968         [C99-based-standards] (PRIdFAST8): Likewise.
25969         [C99-based-standards] (PRIiFAST8): Likewise.
25970         [C99-based-standards] (PRIoFAST8): Likewise.
25971         [C99-based-standards] (PRIuFAST8): Likewise.
25972         [C99-based-standards] (PRIxFAST8): Likewise.
25973         [C99-based-standards] (PRIXFAST8): Likewise.
25974         [C99-based-standards] (SCNdFAST8): Likewise.
25975         [C99-based-standards] (SCNiFAST8): Likewise.
25976         [C99-based-standards] (SCNoFAST8): Likewise.
25977         [C99-based-standards] (SCNuFAST8): Likewise.
25978         [C99-based-standards] (SCNxFAST8): Likewise.
25979         [C99-based-standards] (PRId16): Likewise.
25980         [C99-based-standards] (PRIi16): Likewise.
25981         [C99-based-standards] (PRIo16): Likewise.
25982         [C99-based-standards] (PRIu16): Likewise.
25983         [C99-based-standards] (PRIx16): Likewise.
25984         [C99-based-standards] (PRIX16): Likewise.
25985         [C99-based-standards] (SCNd16): Likewise.
25986         [C99-based-standards] (SCNi16): Likewise.
25987         [C99-based-standards] (SCNo16): Likewise.
25988         [C99-based-standards] (SCNu16): Likewise.
25989         [C99-based-standards] (SCNx16): Likewise.
25990         [C99-based-standards] (PRIdLEAST16): Likewise.
25991         [C99-based-standards] (PRIiLEAST16): Likewise.
25992         [C99-based-standards] (PRIoLEAST16): Likewise.
25993         [C99-based-standards] (PRIuLEAST16): Likewise.
25994         [C99-based-standards] (PRIxLEAST16): Likewise.
25995         [C99-based-standards] (PRIXLEAST16): Likewise.
25996         [C99-based-standards] (SCNdLEAST16): Likewise.
25997         [C99-based-standards] (SCNiLEAST16): Likewise.
25998         [C99-based-standards] (SCNoLEAST16): Likewise.
25999         [C99-based-standards] (SCNuLEAST16): Likewise.
26000         [C99-based-standards] (SCNxLEAST16): Likewise.
26001         [C99-based-standards] (PRIdFAST16): Likewise.
26002         [C99-based-standards] (PRIiFAST16): Likewise.
26003         [C99-based-standards] (PRIoFAST16): Likewise.
26004         [C99-based-standards] (PRIuFAST16): Likewise.
26005         [C99-based-standards] (PRIxFAST16): Likewise.
26006         [C99-based-standards] (PRIXFAST16): Likewise.
26007         [C99-based-standards] (SCNdFAST16): Likewise.
26008         [C99-based-standards] (SCNiFAST16): Likewise.
26009         [C99-based-standards] (SCNoFAST16): Likewise.
26010         [C99-based-standards] (SCNuFAST16): Likewise.
26011         [C99-based-standards] (SCNxFAST16): Likewise.
26012         [C99-based-standards] (PRId32): Likewise.
26013         [C99-based-standards] (PRIi32): Likewise.
26014         [C99-based-standards] (PRIo32): Likewise.
26015         [C99-based-standards] (PRIu32): Likewise.
26016         [C99-based-standards] (PRIx32): Likewise.
26017         [C99-based-standards] (PRIX32): Likewise.
26018         [C99-based-standards] (SCNd32): Likewise.
26019         [C99-based-standards] (SCNi32): Likewise.
26020         [C99-based-standards] (SCNo32): Likewise.
26021         [C99-based-standards] (SCNu32): Likewise.
26022         [C99-based-standards] (SCNx32): Likewise.
26023         [C99-based-standards] (PRIdLEAST32): Likewise.
26024         [C99-based-standards] (PRIiLEAST32): Likewise.
26025         [C99-based-standards] (PRIoLEAST32): Likewise.
26026         [C99-based-standards] (PRIuLEAST32): Likewise.
26027         [C99-based-standards] (PRIxLEAST32): Likewise.
26028         [C99-based-standards] (PRIXLEAST32): Likewise.
26029         [C99-based-standards] (SCNdLEAST32): Likewise.
26030         [C99-based-standards] (SCNiLEAST32): Likewise.
26031         [C99-based-standards] (SCNoLEAST32): Likewise.
26032         [C99-based-standards] (SCNuLEAST32): Likewise.
26033         [C99-based-standards] (SCNxLEAST32): Likewise.
26034         [C99-based-standards] (PRIdFAST32): Likewise.
26035         [C99-based-standards] (PRIiFAST32): Likewise.
26036         [C99-based-standards] (PRIoFAST32): Likewise.
26037         [C99-based-standards] (PRIuFAST32): Likewise.
26038         [C99-based-standards] (PRIxFAST32): Likewise.
26039         [C99-based-standards] (PRIXFAST32): Likewise.
26040         [C99-based-standards] (SCNdFAST32): Likewise.
26041         [C99-based-standards] (SCNiFAST32): Likewise.
26042         [C99-based-standards] (SCNoFAST32): Likewise.
26043         [C99-based-standards] (SCNuFAST32): Likewise.
26044         [C99-based-standards] (SCNxFAST32): Likewise.
26045         [C99-based-standards] (PRId64): Likewise.
26046         [C99-based-standards] (PRIi64): Likewise.
26047         [C99-based-standards] (PRIo64): Likewise.
26048         [C99-based-standards] (PRIu64): Likewise.
26049         [C99-based-standards] (PRIx64): Likewise.
26050         [C99-based-standards] (PRIX64): Likewise.
26051         [C99-based-standards] (SCNd64): Likewise.
26052         [C99-based-standards] (SCNi64): Likewise.
26053         [C99-based-standards] (SCNo64): Likewise.
26054         [C99-based-standards] (SCNu64): Likewise.
26055         [C99-based-standards] (SCNx64): Likewise.
26056         [C99-based-standards] (PRIdLEAST64): Likewise.
26057         [C99-based-standards] (PRIiLEAST64): Likewise.
26058         [C99-based-standards] (PRIoLEAST64): Likewise.
26059         [C99-based-standards] (PRIuLEAST64): Likewise.
26060         [C99-based-standards] (PRIxLEAST64): Likewise.
26061         [C99-based-standards] (PRIXLEAST64): Likewise.
26062         [C99-based-standards] (SCNdLEAST64): Likewise.
26063         [C99-based-standards] (SCNiLEAST64): Likewise.
26064         [C99-based-standards] (SCNoLEAST64): Likewise.
26065         [C99-based-standards] (SCNuLEAST64): Likewise.
26066         [C99-based-standards] (SCNxLEAST64): Likewise.
26067         [C99-based-standards] (PRIdFAST64): Likewise.
26068         [C99-based-standards] (PRIiFAST64): Likewise.
26069         [C99-based-standards] (PRIoFAST64): Likewise.
26070         [C99-based-standards] (PRIuFAST64): Likewise.
26071         [C99-based-standards] (PRIxFAST64): Likewise.
26072         [C99-based-standards] (PRIXFAST64): Likewise.
26073         [C99-based-standards] (SCNdFAST64): Likewise.
26074         [C99-based-standards] (SCNiFAST64): Likewise.
26075         [C99-based-standards] (SCNoFAST64): Likewise.
26076         [C99-based-standards] (SCNuFAST64): Likewise.
26077         [C99-based-standards] (SCNxFAST64): Likewise.
26078         [C99-based-standards] (PRIdMAX): Likewise.
26079         [C99-based-standards] (PRIiMAX): Likewise.
26080         [C99-based-standards] (PRIoMAX): Likewise.
26081         [C99-based-standards] (PRIuMAX): Likewise.
26082         [C99-based-standards] (PRIxMAX): Likewise.
26083         [C99-based-standards] (PRIXMAX): Likewise.
26084         [C99-based-standards] (SCNdMAX): Likewise.
26085         [C99-based-standards] (SCNiMAX): Likewise.
26086         [C99-based-standards] (SCNoMAX): Likewise.
26087         [C99-based-standards] (SCNuMAX): Likewise.
26088         [C99-based-standards] (SCNxMAX): Likewise.
26089         [C99-based-standards] (PRIdPTR): Likewise.
26090         [C99-based-standards] (PRIiPTR): Likewise.
26091         [C99-based-standards] (PRIoPTR): Likewise.
26092         [C99-based-standards] (PRIuPTR): Likewise.
26093         [C99-based-standards] (PRIxPTR): Likewise.
26094         [C99-based-standards] (PRIXPTR): Likewise.
26095         [C99-based-standards] (SCNdPTR): Likewise.
26096         [C99-based-standards] (SCNiPTR): Likewise.
26097         [C99-based-standards] (SCNoPTR): Likewise.
26098         [C99-based-standards] (SCNuPTR): Likewise.
26099         [C99-based-standards] (SCNxPTR): Likewise.
26100         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
26101         allow.
26102         * conform/data/stdint.h-data: Update comments to clarify
26103         requirements.
26104         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
26105         type.
26106         [C99-based standards] (INT8_MAX): Likewise.
26107         [C99-based standards] (INT16_MIN): Likewise.
26108         [C99-based standards] (INT16_MAX): Likewise.
26109         [C99-based standards] (INT32_MIN): Likewise.
26110         [C99-based standards] (INT32_MAX): Likewise.
26111         [C99-based standards] (INT64_MIN): Likewise.
26112         [C99-based standards] (INT64_MAX): Likewise.
26113         [C99-based standards] (UINT8_MAX): Likewise.
26114         [C99-based standards] (UINT16_MAX): Likewise.
26115         [C99-based standards] (UINT32_MAX): Likewise.
26116         [C99-based standards] (UINT64_MAX): Likewise.
26117         [C99-based standards] (INT_LEAST8_MIN): Likewise.
26118         [C99-based standards] (INT_LEAST8_MAX): Likewise.
26119         [C99-based standards] (INT_LEAST16_MIN): Likewise.
26120         [C99-based standards] (INT_LEAST16_MAX): Likewise.
26121         [C99-based standards] (INT_LEAST32_MIN): Likewise.
26122         [C99-based standards] (INT_LEAST32_MAX): Likewise.
26123         [C99-based standards] (INT_LEAST64_MIN): Likewise.
26124         [C99-based standards] (INT_LEAST64_MAX): Likewise.
26125         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
26126         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
26127         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
26128         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
26129         [C99-based standards] (INT_FAST8_MIN): Likewise.
26130         [C99-based standards] (INT_FAST8_MAX): Likewise.
26131         [C99-based standards] (INT_FAST16_MIN): Likewise.
26132         [C99-based standards] (INT_FAST16_MAX): Likewise.
26133         [C99-based standards] (INT_FAST32_MIN): Likewise.
26134         [C99-based standards] (INT_FAST32_MAX): Likewise.
26135         [C99-based standards] (INT_FAST64_MIN): Likewise.
26136         [C99-based standards] (INT_FAST64_MAX): Likewise.
26137         [C99-based standards] (UINT_FAST8_MAX): Likewise.
26138         [C99-based standards] (UINT_FAST16_MAX): Likewise.
26139         [C99-based standards] (UINT_FAST32_MAX): Likewise.
26140         [C99-based standards] (UINT_FAST64_MAX): Likewise.
26141         [C99-based standards] (INTPTR_MIN): Likewise.
26142         [C99-based standards] (INTPTR_MAX): Likewise.
26143         [C99-based standards] (UINTPTR_MAX): Likewise.
26144         [C99-based standards] (INTMAX_MIN): Likewise.
26145         [C99-based standards] (INTMAX_MAX): Likewise.
26146         [C99-based standards] (UINTMAX_MAX): Likewise.
26147         [C99-based standards] (PTRDIFF_MIN): Likewise.
26148         [C99-based standards] (PTRDIFF_MAX): Likewise.
26149         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
26150         [C99-based standards] (SIZE_MAX): Likewise.
26151         [C99-based standards] (WCHAR_MAX): Likewise.
26152         [C99-based standards] (WINT_MAX): Likewise.
26153         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
26154         constraint on value.
26155         [C99-based standards] (WCHAR_MIN): Likewise.
26156         [C99-based standards] (WINT_MIN): Likewise.
26157         [C99-based standards] (*_t): Allow.
26158         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
26159         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
26160         Include math.h-data and complex.h-data.  Remove all expectations
26161         of math.h and complex.h contents.
26162         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
26163         at end of line.
26164         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
26165         (struct tm): Expect tag.
26166         [C99-based-standards] (wcstof): Expect function.
26167         [C99-based-standards] (wcstold): Likewise.
26168         [C99-based-standards] (wcstoll): Likewise.
26169         [C99-based-standards] (wcstoull): Likewise.
26170         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
26171         macro-int-constant.  Specify type.
26172         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
26173         constraint on value.
26174         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
26175         Specify type.
26176         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
26177         Specify value.
26178         [ISO C standards]: Do not allow headers.
26179         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
26180         wcs[abcdefghijklmnopqrstuvwxyz]*.
26181         [ISO C standards] (*_t): Do not allow.
26182         * conform/data/wctype.h-data [C99-based standards] (iswblank):
26183         Expect function.
26184         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
26185         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
26186         Specify type.
26187         [ISO C standards]: Do not allow headers.
26188         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
26189         is[abcdefghijklmnopqrstuvwxyz]*.
26190         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
26191         to[abcdefghijklmnopqrstuvwxyz]*.
26192         [ISO C standards] (*_t): Do not allow.
26193         * conform/data/stdalign.h-data: New file.
26194         * conform/data/stdbool.h-data: Likewise.
26195         * conform/data/stdnoreturn.h-data: Likewise.
26196
26197 2012-11-07  Roland McGrath  <roland@hack.frob.com>
26198
26199         [BZ #14815]
26200         * manual/filesys.texi (Directory Entries): Typo fix.
26201         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
26202
26203 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26204
26205         * elf/elf.h (EM_AARCH64): New macro.
26206         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
26207         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
26208         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
26209         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
26210         (R_AARCH64_TLSDESC): Likewise.
26211         (NT_ARM_TLS): Likewise.
26212         (NT_ARM_HW_BREAK): Likewise.
26213         (NT_ARM_HW_WATCH): Likewise.
26214
26215 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26216
26217         [BZ #14811]
26218         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
26219         (__ieee754_powl): Saturate nonzero exponents with absolute value
26220         below 0x1p-79 to +/- 0x1p-79.
26221         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
26222         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
26223         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
26224         nonzero exponents with absolute value below 0x1p-32 to +/-
26225         0x1p-32.
26226         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
26227         (__ieee754_powl): Saturate nonzero exponents with absolute value
26228         below 0x1p-79 to +/- 0x1p-79.
26229         * math/libm-test.inc (pow_test): Add more tests.
26230
26231 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26232
26233         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
26234         _dl_s390_cap_flags with kernel. Increase string length.
26235         (_dl_s390_platforms): Add z196 and zEC12.
26236
26237 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26238
26239         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
26240         Change XOPEN21K to XOPEN2K.
26241
26242 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
26243
26244         * string/memmove.c: Use memcpy when possible.
26245
26246 2012-11-06  Andreas Jaeger  <aj@suse.de>
26247
26248         * po/eo.po: Update from translation team.
26249
26250 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
26251
26252         [BZ #14793]
26253         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
26254         exponent and small x and y exponents, scale x or y up.  Increase
26255         by 2 the exponent used in scaling up.
26256         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26257         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26258         * math/libm-test.inc (fma_test): Add more tests.
26259         (fma_test_towardzero): Likewise.
26260         (fma_test_downward): Likewise.
26261         (fma_test_upward): Likewise.
26262
26263 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
26264
26265         [BZ #14805]
26266         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
26267         fenv_t *.
26268
26269         [BZ #14801]
26270         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
26271         namespace for names of struct fields.
26272         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
26273         fenv_t fields.
26274         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
26275         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
26276
26277 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26278
26279         [BZ #3665]
26280         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
26281
26282 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
26283
26284         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
26285         PTR_DEMANGLE.
26286
26287         [BZ #5246]
26288         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
26289         PTR_DEMANGLE.
26290
26291 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
26292
26293         [BZ #14797]
26294         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
26295         definitely overflow as x * y not x * y + z.
26296         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26297         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26298         * math/libm-test.inc (fma_test): Add more tests.
26299         (fma_test_towardzero): Likewise.
26300         (fma_test_downward): Likewise.
26301         (fma_test_upward): Likewise.
26302
26303 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
26304
26305         [BZ #157]
26306
26307         * include/stub-tag.h: Remove file.
26308         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
26309         '#include' of it.
26310         * manual/maint.texi (Porting): Don't reference it.
26311         * Makerules ($(objpfx)stubs): Likewise.
26312         * dirent/closedir.c: Don't include <stub-tag.h>.
26313         * dirent/dirfd.c: Likewise.
26314         * dirent/fdopendir.c: Likewise.
26315         * dirent/getdents.c: Likewise.
26316         * dirent/getdents64.c: Likewise.
26317         * dirent/opendir.c: Likewise.
26318         * dirent/readdir.c: Likewise.
26319         * dirent/readdir64.c: Likewise.
26320         * dirent/readdir64_r.c: Likewise.
26321         * dirent/readdir_r.c: Likewise.
26322         * dirent/rewinddir.c: Likewise.
26323         * dirent/seekdir.c: Likewise.
26324         * dirent/telldir.c: Likewise.
26325         * gmon/profil.c: Likewise.
26326         * grp/setgroups.c: Likewise.
26327         * inet/if_index.c: Likewise.
26328         * io/access.c: Likewise.
26329         * io/chdir.c: Likewise.
26330         * io/chmod.c: Likewise.
26331         * io/chown.c: Likewise.
26332         * io/close.c: Likewise.
26333         * io/dup.c: Likewise.
26334         * io/dup2.c: Likewise.
26335         * io/dup3.c: Likewise.
26336         * io/euidaccess.c: Likewise.
26337         * io/faccessat.c: Likewise.
26338         * io/fchdir.c: Likewise.
26339         * io/fchmod.c: Likewise.
26340         * io/fchmodat.c: Likewise.
26341         * io/fchown.c: Likewise.
26342         * io/fchownat.c: Likewise.
26343         * io/fcntl.c: Likewise.
26344         * io/flock.c: Likewise.
26345         * io/fstatfs.c: Likewise.
26346         * io/fstatfs64.c: Likewise.
26347         * io/fstatvfs.c: Likewise.
26348         * io/fstatvfs64.c: Likewise.
26349         * io/futimens.c: Likewise.
26350         * io/fxstat.c: Likewise.
26351         * io/fxstat64.c: Likewise.
26352         * io/fxstatat.c: Likewise.
26353         * io/fxstatat64.c: Likewise.
26354         * io/getcwd.c: Likewise.
26355         * io/isatty.c: Likewise.
26356         * io/lchmod.c: Likewise.
26357         * io/lchown.c: Likewise.
26358         * io/link.c: Likewise.
26359         * io/linkat.c: Likewise.
26360         * io/lseek.c: Likewise.
26361         * io/lseek64.c: Likewise.
26362         * io/lxstat64.c: Likewise.
26363         * io/mkdir.c: Likewise.
26364         * io/mkdirat.c: Likewise.
26365         * io/mkfifo.c: Likewise.
26366         * io/mkfifoat.c: Likewise.
26367         * io/open.c: Likewise.
26368         * io/open64.c: Likewise.
26369         * io/openat.c: Likewise.
26370         * io/openat64.c: Likewise.
26371         * io/pipe.c: Likewise.
26372         * io/pipe2.c: Likewise.
26373         * io/poll.c: Likewise.
26374         * io/posix_fadvise.c: Likewise.
26375         * io/posix_fadvise64.c: Likewise.
26376         * io/posix_fallocate.c: Likewise.
26377         * io/posix_fallocate64.c: Likewise.
26378         * io/read.c: Likewise.
26379         * io/readlink.c: Likewise.
26380         * io/readlinkat.c: Likewise.
26381         * io/rmdir.c: Likewise.
26382         * io/sendfile.c: Likewise.
26383         * io/sendfile64.c: Likewise.
26384         * io/statfs.c: Likewise.
26385         * io/statfs64.c: Likewise.
26386         * io/statvfs.c: Likewise.
26387         * io/statvfs64.c: Likewise.
26388         * io/symlink.c: Likewise.
26389         * io/symlinkat.c: Likewise.
26390         * io/ttyname.c: Likewise.
26391         * io/ttyname_r.c: Likewise.
26392         * io/umask.c: Likewise.
26393         * io/unlink.c: Likewise.
26394         * io/unlinkat.c: Likewise.
26395         * io/utime.c: Likewise.
26396         * io/utimensat.c: Likewise.
26397         * io/write.c: Likewise.
26398         * io/xmknod.c: Likewise.
26399         * io/xmknodat.c: Likewise.
26400         * io/xstat.c: Likewise.
26401         * io/xstat64.c: Likewise.
26402         * login/getpt.c: Likewise.
26403         * login/grantpt.c: Likewise.
26404         * login/unlockpt.c: Likewise.
26405         * math/e_acoshl.c: Likewise.
26406         * math/e_acosl.c: Likewise.
26407         * math/e_asinl.c: Likewise.
26408         * math/e_atan2l.c: Likewise.
26409         * math/e_atanhl.c: Likewise.
26410         * math/e_coshl.c: Likewise.
26411         * math/e_expl.c: Likewise.
26412         * math/e_fmodl.c: Likewise.
26413         * math/e_gammal_r.c: Likewise.
26414         * math/e_hypotl.c: Likewise.
26415         * math/e_j0l.c: Likewise.
26416         * math/e_j1l.c: Likewise.
26417         * math/e_jnl.c: Likewise.
26418         * math/e_lgammal_r.c: Likewise.
26419         * math/e_log10l.c: Likewise.
26420         * math/e_log2l.c: Likewise.
26421         * math/e_logl.c: Likewise.
26422         * math/e_powl.c: Likewise.
26423         * math/e_rem_pio2l.c: Likewise.
26424         * math/e_sinhl.c: Likewise.
26425         * math/e_sqrtl.c: Likewise.
26426         * math/fclrexcpt.c: Likewise.
26427         * math/fedisblxcpt.c: Likewise.
26428         * math/feenablxcpt.c: Likewise.
26429         * math/fegetenv.c: Likewise.
26430         * math/fegetexcept.c: Likewise.
26431         * math/fegetround.c: Likewise.
26432         * math/feholdexcpt.c: Likewise.
26433         * math/fesetenv.c: Likewise.
26434         * math/fesetround.c: Likewise.
26435         * math/feupdateenv.c: Likewise.
26436         * math/fgetexcptflg.c: Likewise.
26437         * math/fraiseexcpt.c: Likewise.
26438         * math/fsetexcptflg.c: Likewise.
26439         * math/ftestexcept.c: Likewise.
26440         * math/k_cosl.c: Likewise.
26441         * math/k_rem_pio2l.c: Likewise.
26442         * math/k_sinl.c: Likewise.
26443         * math/k_tanl.c: Likewise.
26444         * math/s_asinhl.c: Likewise.
26445         * math/s_atanl.c: Likewise.
26446         * math/s_cbrtl.c: Likewise.
26447         * math/s_erfl.c: Likewise.
26448         * math/s_expm1l.c: Likewise.
26449         * math/s_log1pl.c: Likewise.
26450         * math/s_tanhl.c: Likewise.
26451         * misc/acct.c: Likewise.
26452         * misc/brk.c: Likewise.
26453         * misc/chflags.c: Likewise.
26454         * misc/chroot.c: Likewise.
26455         * misc/fchflags.c: Likewise.
26456         * misc/fgetxattr.c: Likewise.
26457         * misc/flistxattr.c: Likewise.
26458         * misc/fremovexattr.c: Likewise.
26459         * misc/fsetxattr.c: Likewise.
26460         * misc/fsync.c: Likewise.
26461         * misc/ftruncate.c: Likewise.
26462         * misc/futimes.c: Likewise.
26463         * misc/futimesat.c: Likewise.
26464         * misc/getdomain.c: Likewise.
26465         * misc/getdtsz.c: Likewise.
26466         * misc/gethostid.c: Likewise.
26467         * misc/gethostname.c: Likewise.
26468         * misc/getloadavg.c: Likewise.
26469         * misc/getpagesize.c: Likewise.
26470         * misc/getsysstats.c: Likewise.
26471         * misc/getxattr.c: Likewise.
26472         * misc/gtty.c: Likewise.
26473         * misc/ioctl.c: Likewise.
26474         * misc/lgetxattr.c: Likewise.
26475         * misc/listxattr.c: Likewise.
26476         * misc/llistxattr.c: Likewise.
26477         * misc/lremovexattr.c: Likewise.
26478         * misc/lsetxattr.c: Likewise.
26479         * misc/lutimes.c: Likewise.
26480         * misc/madvise.c: Likewise.
26481         * misc/mincore.c: Likewise.
26482         * misc/mlock.c: Likewise.
26483         * misc/mlockall.c: Likewise.
26484         * misc/mmap.c: Likewise.
26485         * misc/mprotect.c: Likewise.
26486         * misc/msync.c: Likewise.
26487         * misc/munlock.c: Likewise.
26488         * misc/munlockall.c: Likewise.
26489         * misc/munmap.c: Likewise.
26490         * misc/preadv.c: Likewise.
26491         * misc/preadv64.c: Likewise.
26492         * misc/ptrace.c: Likewise.
26493         * misc/pwritev.c: Likewise.
26494         * misc/pwritev64.c: Likewise.
26495         * misc/readv.c: Likewise.
26496         * misc/reboot.c: Likewise.
26497         * misc/remap_file_pages.c: Likewise.
26498         * misc/removexattr.c: Likewise.
26499         * misc/revoke.c: Likewise.
26500         * misc/select.c: Likewise.
26501         * misc/setdomain.c: Likewise.
26502         * misc/setegid.c: Likewise.
26503         * misc/seteuid.c: Likewise.
26504         * misc/sethostid.c: Likewise.
26505         * misc/sethostname.c: Likewise.
26506         * misc/setregid.c: Likewise.
26507         * misc/setreuid.c: Likewise.
26508         * misc/setxattr.c: Likewise.
26509         * misc/sstk.c: Likewise.
26510         * misc/stty.c: Likewise.
26511         * misc/swapoff.c: Likewise.
26512         * misc/swapon.c: Likewise.
26513         * misc/sync.c: Likewise.
26514         * misc/syncfs.c: Likewise.
26515         * misc/syscall.c: Likewise.
26516         * misc/truncate.c: Likewise.
26517         * misc/ualarm.c: Likewise.
26518         * misc/usleep.c: Likewise.
26519         * misc/ustat.c: Likewise.
26520         * misc/utimes.c: Likewise.
26521         * misc/vhangup.c: Likewise.
26522         * misc/writev.c: Likewise.
26523         * posix/_exit.c: Likewise.
26524         * posix/alarm.c: Likewise.
26525         * posix/execve.c: Likewise.
26526         * posix/fexecve.c: Likewise.
26527         * posix/fork.c: Likewise.
26528         * posix/fpathconf.c: Likewise.
26529         * posix/getaddrinfo.c: Likewise.
26530         * posix/getegid.c: Likewise.
26531         * posix/geteuid.c: Likewise.
26532         * posix/getgid.c: Likewise.
26533         * posix/getgroups.c: Likewise.
26534         * posix/getlogin.c: Likewise.
26535         * posix/getlogin_r.c: Likewise.
26536         * posix/getpgid.c: Likewise.
26537         * posix/getpid.c: Likewise.
26538         * posix/getppid.c: Likewise.
26539         * posix/getresgid.c: Likewise.
26540         * posix/getresuid.c: Likewise.
26541         * posix/getsid.c: Likewise.
26542         * posix/getuid.c: Likewise.
26543         * posix/glob64.c: Likewise.
26544         * posix/nanosleep.c: Likewise.
26545         * posix/pathconf.c: Likewise.
26546         * posix/pause.c: Likewise.
26547         * posix/posix_madvise.c: Likewise.
26548         * posix/pread.c: Likewise.
26549         * posix/pread64.c: Likewise.
26550         * posix/pwrite.c: Likewise.
26551         * posix/pwrite64.c: Likewise.
26552         * posix/sched_getaffinity.c: Likewise.
26553         * posix/sched_getp.c: Likewise.
26554         * posix/sched_gets.c: Likewise.
26555         * posix/sched_primax.c: Likewise.
26556         * posix/sched_primin.c: Likewise.
26557         * posix/sched_rr_gi.c: Likewise.
26558         * posix/sched_setaffinity.c: Likewise.
26559         * posix/sched_setp.c: Likewise.
26560         * posix/sched_sets.c: Likewise.
26561         * posix/sched_yield.c: Likewise.
26562         * posix/setgid.c: Likewise.
26563         * posix/setlogin.c: Likewise.
26564         * posix/setpgid.c: Likewise.
26565         * posix/setresgid.c: Likewise.
26566         * posix/setresuid.c: Likewise.
26567         * posix/setsid.c: Likewise.
26568         * posix/setuid.c: Likewise.
26569         * posix/sleep.c: Likewise.
26570         * posix/spawni.c: Likewise.
26571         * posix/sysconf.c: Likewise.
26572         * posix/times.c: Likewise.
26573         * posix/wait.c: Likewise.
26574         * posix/wait3.c: Likewise.
26575         * posix/wait4.c: Likewise.
26576         * posix/waitpid.c: Likewise.
26577         * resolv/gai_sigqueue.c: Likewise.
26578         * resource/getpriority.c: Likewise.
26579         * resource/getrlimit.c: Likewise.
26580         * resource/getrusage.c: Likewise.
26581         * resource/nice.c: Likewise.
26582         * resource/setpriority.c: Likewise.
26583         * resource/setrlimit.c: Likewise.
26584         * resource/ulimit.c: Likewise.
26585         * rt/aio_cancel.c: Likewise.
26586         * rt/aio_fsync.c: Likewise.
26587         * rt/aio_read.c: Likewise.
26588         * rt/aio_sigqueue.c: Likewise.
26589         * rt/aio_suspend.c: Likewise.
26590         * rt/aio_write.c: Likewise.
26591         * rt/clock_getres.c: Likewise.
26592         * rt/clock_gettime.c: Likewise.
26593         * rt/clock_nanosleep.c: Likewise.
26594         * rt/clock_settime.c: Likewise.
26595         * rt/lio_listio.c: Likewise.
26596         * rt/mq_close.c: Likewise.
26597         * rt/mq_getattr.c: Likewise.
26598         * rt/mq_notify.c: Likewise.
26599         * rt/mq_open.c: Likewise.
26600         * rt/mq_receive.c: Likewise.
26601         * rt/mq_send.c: Likewise.
26602         * rt/mq_setattr.c: Likewise.
26603         * rt/mq_timedreceive.c: Likewise.
26604         * rt/mq_timedsend.c: Likewise.
26605         * rt/mq_unlink.c: Likewise.
26606         * rt/shm_open.c: Likewise.
26607         * rt/shm_unlink.c: Likewise.
26608         * rt/timer_create.c: Likewise.
26609         * rt/timer_delete.c: Likewise.
26610         * rt/timer_getoverr.c: Likewise.
26611         * rt/timer_gettime.c: Likewise.
26612         * rt/timer_settime.c: Likewise.
26613         * setjmp/__longjmp.c: Likewise.
26614         * setjmp/setjmp.c: Likewise.
26615         * signal/kill.c: Likewise.
26616         * signal/killpg.c: Likewise.
26617         * signal/raise.c: Likewise.
26618         * signal/sigaction.c: Likewise.
26619         * signal/sigaltstack.c: Likewise.
26620         * signal/sigblock.c: Likewise.
26621         * signal/sigignore.c: Likewise.
26622         * signal/sigintr.c: Likewise.
26623         * signal/signal.c: Likewise.
26624         * signal/sigpause.c: Likewise.
26625         * signal/sigpending.c: Likewise.
26626         * signal/sigqueue.c: Likewise.
26627         * signal/sigreturn.c: Likewise.
26628         * signal/sigset.c: Likewise.
26629         * signal/sigsetmask.c: Likewise.
26630         * signal/sigstack.c: Likewise.
26631         * signal/sigsuspend.c: Likewise.
26632         * signal/sigtimedwait.c: Likewise.
26633         * signal/sigvec.c: Likewise.
26634         * signal/sigwait.c: Likewise.
26635         * signal/sigwaitinfo.c: Likewise.
26636         * signal/sysv_signal.c: Likewise.
26637         * socket/accept.c: Likewise.
26638         * socket/accept4.c: Likewise.
26639         * socket/bind.c: Likewise.
26640         * socket/connect.c: Likewise.
26641         * socket/getpeername.c: Likewise.
26642         * socket/getsockname.c: Likewise.
26643         * socket/getsockopt.c: Likewise.
26644         * socket/isfdtype.c: Likewise.
26645         * socket/listen.c: Likewise.
26646         * socket/recv.c: Likewise.
26647         * socket/recvfrom.c: Likewise.
26648         * socket/recvmsg.c: Likewise.
26649         * socket/send.c: Likewise.
26650         * socket/sendmsg.c: Likewise.
26651         * socket/sendto.c: Likewise.
26652         * socket/setsockopt.c: Likewise.
26653         * socket/shutdown.c: Likewise.
26654         * socket/sockatmark.c: Likewise.
26655         * socket/socket.c: Likewise.
26656         * socket/socketpair.c: Likewise.
26657         * stdio-common/ctermid.c: Likewise.
26658         * stdio-common/cuserid.c: Likewise.
26659         * stdio-common/remove.c: Likewise.
26660         * stdio-common/rename.c: Likewise.
26661         * stdio-common/renameat.c: Likewise.
26662         * stdio-common/tempname.c: Likewise.
26663         * stdlib/getcontext.c: Likewise.
26664         * stdlib/makecontext.c: Likewise.
26665         * stdlib/setcontext.c: Likewise.
26666         * stdlib/swapcontext.c: Likewise.
26667         * stdlib/system.c: Likewise.
26668         * streams/fattach.c: Likewise.
26669         * streams/fdetach.c: Likewise.
26670         * streams/getmsg.c: Likewise.
26671         * streams/getpmsg.c: Likewise.
26672         * streams/putmsg.c: Likewise.
26673         * streams/putpmsg.c: Likewise.
26674         * sysdeps/unix/bsd/getpt.c: Likewise.
26675         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
26676         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
26677         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
26678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
26679         Likewise.
26680         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
26681         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
26682         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
26683         * sysvipc/msgctl.c: Likewise.
26684         * sysvipc/msgget.c: Likewise.
26685         * sysvipc/msgrcv.c: Likewise.
26686         * sysvipc/msgsnd.c: Likewise.
26687         * sysvipc/semctl.c: Likewise.
26688         * sysvipc/semget.c: Likewise.
26689         * sysvipc/semop.c: Likewise.
26690         * sysvipc/semtimedop.c: Likewise.
26691         * sysvipc/shmat.c: Likewise.
26692         * sysvipc/shmctl.c: Likewise.
26693         * sysvipc/shmdt.c: Likewise.
26694         * sysvipc/shmget.c: Likewise.
26695         * termios/tcdrain.c: Likewise.
26696         * termios/tcflow.c: Likewise.
26697         * termios/tcflush.c: Likewise.
26698         * termios/tcgetattr.c: Likewise.
26699         * termios/tcgetpgrp.c: Likewise.
26700         * termios/tcsendbrk.c: Likewise.
26701         * termios/tcsetattr.c: Likewise.
26702         * termios/tcsetpgrp.c: Likewise.
26703         * time/adjtime.c: Likewise.
26704         * time/clock.c: Likewise.
26705         * time/getitimer.c: Likewise.
26706         * time/gettimeofday.c: Likewise.
26707         * time/setitimer.c: Likewise.
26708         * time/settimeofday.c: Likewise.
26709         * time/stime.c: Likewise.
26710         * time/time.c: Likewise.
26711
26712 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
26713
26714         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
26715         /usr/old/bin.
26716
26717         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
26718         instead of spaces.
26719         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
26720
26721 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
26722
26723         [BZ #14796]
26724         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
26725         FE_TONEAREST before applying Dekker multiplication and Knuth
26726         addition.  Clear inexact exceptions and check for exact zero
26727         results afterwards.
26728         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26729         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26730         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26731         * math/libm-test.inc (fma_test): Add more tests.
26732         (fma_test_towardzero): Likewise.
26733         (fma_test_downward): Likewise.
26734         (fma_test_upward): Likewise.
26735         * sysdeps/generic/math_private.h (default_libc_fesetround): New
26736         function.
26737         (libc_fesetround): New macro.
26738         (libc_fesetroundf): Likewise.
26739         (libc_fesetroundl): Likewise.
26740         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
26741         function.
26742         (libc_fesetround_387): Likewise.
26743         (libc_fesetroundf): New macro.
26744         (libc_fesetround): Likewise.
26745         (libc_fesetroundl): Likewise.
26746         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
26747         function.
26748         (libc_fesetroundf): New macro.
26749         (libc_fesetround): Likewise.
26750         (libc_fesetroundl): Likewise.
26751         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
26752         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
26753         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
26754         libm_hidden_ver.
26755         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
26756         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
26757         libm_hidden_def.
26758         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
26759         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
26760         libm_hidden_ver.
26761         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
26762         libm_hidden_def.
26763
26764         [BZ #3439]
26765         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
26766         integer constant usable in #if and use that to give value to enum
26767         constant.
26768         (FE_DIVBYZERO): Likewise.
26769         (FE_UNDERFLOW): Likewise.
26770         (FE_OVERFLOW): Likewise.
26771         (FE_INVALID): Likewise.
26772         (FE_INVALID_SNAN): Likewise.
26773         (FE_INVALID_ISI): Likewise.
26774         (FE_INVALID_IDI): Likewise.
26775         (FE_INVALID_ZDZ): Likewise.
26776         (FE_INVALID_IMZ): Likewise.
26777         (FE_INVALID_COMPARE): Likewise.
26778         (FE_INVALID_SOFTWARE): Likewise.
26779         (FE_INVALID_SQRT): Likewise.
26780         (FE_INVALID_INTEGER_CONVERSION): Likewise.
26781         (FE_TONEAREST): Likewise.
26782         (FE_TOWARDZERO): Likewise.
26783         (FE_UPWARD): Likewise.
26784         (FE_DOWNWARD): Likewise.
26785         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
26786         (FE_DIVBYZERO): Likewise.
26787         (FE_OVERFLOW): Likewise.
26788         (FE_UNDERFLOW): Likewise.
26789         (FE_INEXACT): Likewise.
26790         (FE_TONEAREST): Likewise.
26791         (FE_DOWNWARD): Likewise.
26792         (FE_UPWARD): Likewise.
26793         (FE_TOWARDZERO): Likewise.
26794         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
26795         (FE_UNDERFLOW): Likewise.
26796         (FE_OVERFLOW): Likewise.
26797         (FE_DIVBYZERO): Likewise.
26798         (FE_INVALID): Likewise.
26799         (FE_TONEAREST): Likewise.
26800         (FE_TOWARDZERO): Likewise.
26801         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
26802         (FE_OVERFLOW): Likewise.
26803         (FE_UNDERFLOW): Likewise.
26804         (FE_DIVBYZERO): Likewise.
26805         (FE_INEXACT): Likewise.
26806         (FE_TONEAREST): Likewise.
26807         (FE_TOWARDZERO): Likewise.
26808         (FE_UPWARD): Likewise.
26809         (FE_DOWNWARD): Likewise.
26810         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
26811         (FE_DIVBYZERO): Likewise.
26812         (FE_OVERFLOW): Likewise.
26813         (FE_UNDERFLOW): Likewise.
26814         (FE_INEXACT): Likewise.
26815         (FE_TONEAREST): Likewise.
26816         (FE_DOWNWARD): Likewise.
26817         (FE_UPWARD): Likewise.
26818         (FE_TOWARDZERO): Likewise.
26819
26820 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
26821
26822         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
26823
26824 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
26825
26826         * scripts/cross-test-ssh.sh (command): Use newlines to separate
26827         commands.  Quote $PWD.
26828         (blacklist_exports): Don't use remove_newlines.  Replace "declare
26829         -x" by "export".
26830         (remove_newlines): Remove.
26831
26832 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
26833
26834         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
26835         * stdlib/stdlib.h (atof): Moved to ...
26836         * include/bits/stdlib-float.h: Here.  New file.
26837         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
26838         * stdlib/bits/stdlib-float.h: New file.
26839         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
26840         -mno-sse -mno-mmx.
26841         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
26842         <xmmintrin.h>.
26843
26844 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26845
26846         * conform/conformtest.pl (@headers): Add fenv.h.
26847         * conform/data/fenv.h-data: New file.
26848         * include/fenv.h [_ISOMAC]: Disable all contents of file except
26849         include of <math/fenv.h>.
26850
26851         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
26852         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
26853         && !UNIX98].  Enables tests for XOPEN2K8.
26854         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
26855         POSIX2008]: Likewise.
26856
26857         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
26858         (struct rusage): Do not expect type or its members.
26859
26860         [BZ #3439]
26861         * math/math.h (FP_NAN): Define macro to integer constant usable in
26862         #if and use that to give value to enum constant.
26863         (FP_INFINITE): Likewise.
26864         (FP_ZERO): Likewise.
26865         (FP_SUBNORMAL): Likewise.
26866         (FP_NORMAL): Likewise.
26867
26868 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
26869
26870         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
26871         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
26872         arguments.
26873
26874 2012-11-02  Roland McGrath  <roland@hack.frob.com>
26875
26876         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
26877         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
26878         autoconf-time if not.
26879         * configure.in: Remove AC_PREREQ.
26880
26881 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26882
26883         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
26884         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
26885         of the internal implementation.
26886
26887 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
26888
26889         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
26890         except include of <misc/sys/syslog.h>.
26891
26892 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26893
26894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
26895         function returns with a NULL context exit with zero.
26896
26897 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26898
26899         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
26900
26901 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
26902
26903         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
26904         (run_program_cmd): This.
26905         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
26906         (tst_langinfo): New variable.  Use it.
26907
26908 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
26909
26910         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
26911         floating point opcodes.
26912
26913 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26914
26915         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
26916         variable.
26917
26918         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
26919
26920         * sysdeps/mach/hurd/powerpc: Remove directory.
26921         * sysdeps/mach/powerpc: Likewise.
26922
26923 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26924
26925         * scripts/check-local-headers.sh: Ignore c++ headers.
26926
26927 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26928
26929         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
26930         __libc_cleanup_region_start argument.
26931
26932 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
26933
26934         [BZ #14784]
26935         [BZ #14785]
26936         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
26937         x * y using scaling, not as x * y + z.
26938         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26939         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26940         * math/libm-test.inc (fma_test): Add more tests.
26941         (fma_test_towardzero): Likewise.
26942         (fma_test_downward): Likewise.
26943         (fma_test_upward): Likewise.
26944
26945 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
26946
26947         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
26948
26949 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26950
26951         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
26952         New variable.
26953
26954 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
26955
26956         * rt/tst-shm.c (worker): Correct checking for mmap failure.
26957
26958 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26959
26960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26961         Fix sort order.
26962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26963         Likewise.
26964
26965 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26966
26967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
26968         Fix the order of the list for glibc 2.17.
26969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
26970         Likewise.
26971
26972 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
26973
26974         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26975
26976 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
26977
26978         [BZ #14610]
26979         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
26980         for low part of x being zero before using __atanl (y).
26981         * math/libm-test.inc (atan2_test): Add another test.
26982
26983         * manual/install.texi (Configuring and compiling): Document
26984         general use of test-wrapper and test-wrapper-env.
26985         * INSTALL: Regenerated.
26986
26987         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
26988         (__fma): Do not extract and scale down low bits on after-rounding
26989         systems when result rounded to normal precision would have normal
26990         exponent.
26991         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
26992         (__fmal): Do not extract and scale down low bits on after-rounding
26993         systems when result rounded to normal precision would have normal
26994         exponent.
26995         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
26996         (__fmal): Do not extract and scale down low bits on after-rounding
26997         systems when result rounded to normal precision would have normal
26998         exponent.
26999         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
27000         macro.
27001         (fma_test): Add more tests.
27002         (fma_test_towardzero): Likewise.
27003         (fma_test_downward): Likewise.
27004         (fma_test_upward): Likewise.
27005
27006 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
27007
27008         * sysdeps/i386/tininess.h: Renamed to ...
27009         * sysdeps/x86/tininess.h: This.
27010         * sysdeps/x86_64/tininess.h: Removed.
27011
27012 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
27013
27014         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
27015         input.  Use $(build-program-cmd).
27016         ($(objpfx)tst-array1-static.out): Likewise.
27017         ($(objpfx)tst-array2.out): Likewise.
27018         ($(objpfx)tst-array3.out): Likewise.
27019         ($(objpfx)tst-array4.out): Likewise.
27020         ($(objpfx)tst-array5.out): Likewise.
27021         ($(objpfx)tst-array5-static.out): Likewise.
27022
27023 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
27024
27025         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
27026         if defined.
27027
27028         * nss/nsswitch.h (nss_interface_function): Provide new
27029         macro for use with NSS functions.
27030         * grp/initgroups.c: Use new macro.
27031         * nss/getXXbyYY.c: Likewise.
27032         * nss/getXXbyYY_r.c: Likewise.
27033         * nss/getXXent.c: Likewise.
27034         * nss/getXXent_r.c: Likewise.
27035         * sysdeps/posix/getaddrinfo.c: Likewise.
27036
27037 2012-10-30  Andreas Jaeger  <aj@suse.de>
27038
27039         * po/ru.po: Update Russion translation from translation project.
27040
27041 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
27042
27043         [BZ #14152]
27044         [BZ #14783]
27045         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
27046         result and shift together with sticky bit instead of replicating
27047         round-to-nearest rounding.
27048         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27049         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27050         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
27051         missing underflow exceptions.
27052         (fma_test_towardzero): Add more tests.
27053         (fma_test_downward): Likewise.
27054         (fma_test_upward): Likewise.
27055
27056         [BZ #14047]
27057         * sysdeps/generic/tininess.h: New file.
27058         * sysdeps/i386/tininess.h: Likewise.
27059         * sysdeps/sh/tininess.h: Likewise.
27060         * sysdeps/x86_64/tininess.h: Likewise.
27061         * stdlib/tst-strtod-underflow.c: Likewise.
27062         * stdlib/tst-tininess.c: Likewise.
27063         * stdlib/strtod_l.c: Include <tininess.h>.
27064         (round_and_return): Do not set errno for exact underflow cases.
27065         Force an underflow exception when setting errno for underflow.
27066         Determine underflow based on rounding to normal precision if
27067         TININESS_AFTER_ROUNDING.
27068         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
27069         ERANGE for exact underflow cases.
27070         * stdlib/Makefile (tests): Add tst-tininess and
27071         tst-strtod-underflow.
27072         ($(objpfx)tst-tininess): Use $(link-libm).
27073         ($(objpfx)tst-strtod-underflow): Likewise.
27074
27075 2012-10-30  Andreas Jaeger  <aj@suse.de>
27076
27077         [BZ#14767]
27078         * elf/Makefile (tests): Remove conditional for have-initfini-array
27079         since this is now always required and the variable does not exist
27080         anymore.
27081         (tests-static): Likewise.
27082         (modules-names): Likewise.
27083
27084         * po/eo.po: Add Esperanto translation from translation project.
27085
27086         * elf/tst-array1.c (fini_array): Make writeable so that it can be
27087         merged with constructor/destructor.
27088         (init_array): Likewise.
27089         * elf/tst-array2dep.c (fini_array): Likewise.
27090         (init_array): Likewise.
27091
27092 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
27093
27094         * manual/message.texi: Delete @cartouche tags.
27095
27096 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
27097
27098         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
27099         EOPNOTSUPP.
27100         * sysdeps/mach/hurd/fsync.c: Likewise.
27101
27102         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
27103         [_POSIX_REALTIME_SIGNALS]: Change condition to
27104         [_POSIX_REALTIME_SIGNALS > 0].
27105
27106 2012-10-27  Andreas Jaeger  <aj@suse.de>
27107
27108         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
27109         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
27110         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
27111         [__WORDSIZE != 64]: Likewise.
27112
27113 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
27114
27115         *  iconvdata/tst-table.sh: Remove ${SHELL}.
27116         *  iconvdata/tst-tables.sh: Likewise.
27117
27118 2012-10-25  David S. Miller  <davem@davemloft.net>
27119
27120         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27121         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
27122         of strtoull.
27123
27124         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
27125         ifunc-impl-list.c
27126         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27127         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
27128         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
27129         file.
27130
27131 2012-10-25  Roland McGrath  <roland@hack.frob.com>
27132
27133         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27134         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
27135         __getdirentries.
27136
27137 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
27138             Jim Blandy  <jimb@codesourcery.com>
27139
27140         * scripts/cross-test-ssh.sh: New file.
27141         * manual/install.texi (Configuring and compiling): Document use of
27142         cross-test-ssh.sh.
27143         * INSTALL: Regenerated.
27144
27145 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
27146
27147         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
27148         EOPNOTSUPP.
27149
27150 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
27151
27152         * Makeconfig (run-program-prefix): Fix comment.
27153
27154 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
27155             Jim Blandy  <jimb@codesourcery.com>
27156
27157         * Makeconfig (test-wrapper): New variable,
27158         (test-wrapper-env): Likewise.
27159         [$(cross-compiling) = yes && $(test-wrapper) != ""]
27160         (run-built-tests): Define to yes.
27161         (run-program-prefix): Use $(test-wrapper).
27162         (built-program-cmd): Likewise.
27163         * Rules (make-test-out): Use $(test-wrapper-env) and
27164         $(host-built-program-cmd).
27165         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
27166         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
27167         tst-pathopt.sh.
27168         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
27169         $(test-wrapper-env) to tst-rtld-load-self.sh.
27170         ($(objpfx)order2.out): Use $(test-wrapper).
27171         ($(objpfx)tst-initorder.out): Likewise.
27172         ($(objpfx)tst-initorder2.out): Likewise.
27173         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
27174         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
27175         (test_wrapper_env): New variable.  Use it to run ld.so.
27176         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
27177         Use it to run ld.so.
27178         (test_wrapper_env): Likewise.
27179         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
27180         $(test-wrapper) to run-iconv-test.sh.
27181         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
27182         (ICONV): Use $test_wrapper.
27183         * posix/Makefile ($(objpfx)globtest.out): Pass
27184         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
27185         globtest.sh, not $(run-program-prefix).
27186         * posix/globtest.sh (run_via_rtld_prefix): New variable.
27187         (test_wrapper): Likewise.
27188         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
27189         set together with run_via_rtld_prefix.
27190         (run_program_prefix): Define in terms of test_wrapper and
27191         run_via_rtld_prefix.
27192
27193 2012-10-24  Roland McGrath  <roland@hack.frob.com>
27194
27195         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
27196         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
27197         Targets removed.
27198
27199         [BZ #14743]
27200         * include/time.h: Remove librt_hidden_proto (clock_gettime).
27201         Declare __clock_getres, __clock_gettime, __clock_settime,
27202         __clock_nanosleep, and __clock_getcpuclockid.
27203         * rt/clock_gettime.c: Define __clock_gettime as an alias.
27204         Remove librt_hidden_def (clock_gettime).
27205         * sysdeps/unix/clock_gettime.c: Likewise.
27206         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
27207         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
27208         * rt/clock_getres.c: Define __clock_getres as an alias.
27209         * sysdeps/posix/clock_getres.c: Likewise.
27210         * rt/clock_settime.c: Define __clock_settime as an alias.
27211         * sysdeps/unix/clock_settime.c: Likewise.
27212         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
27213         * sysdeps/unix/clock_nanosleep.c: Likewise.
27214         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
27215         * rt/clock-compat.c: New file.
27216         * rt/Makefile (librt-routines): Add clock-compat and move
27217         $(clock-routines) to ...
27218         (routines): ... here, new variable.
27219         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
27220         Don't add get_clockfreq here.
27221         * rt/Versions (libc: GLIBC_2.17): New version set.
27222         Add clock_* symbols here.
27223         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
27224         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
27225         (GLIBC_2.17): Add clock_* symbols.
27226         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
27227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
27228         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
27229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
27230         Likewise.
27231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
27232         Likewise.
27233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
27234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
27235         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
27236         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
27237         * NEWS: Mention the move.
27238
27239         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
27240         Use __open, __read, __close rather than their public counterparts.
27241         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27242         (__get_clockfreq_via_cpuinfo): Likewise.
27243         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
27244         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
27245
27246         * config.h.in (HAVE_IFUNC): New #undef.
27247         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
27248         was successful.
27249         * configure: Regenerated.
27250
27251 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
27252
27253         * configure.in: Move READELF check to start of file.
27254         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
27255         libc_cv_asm_gnu_indirect_function in the process.
27256         * configure: Regenerated.
27257
27258 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
27259
27260         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
27261         send the output to /dev/null.
27262         (libc_cv_cc_with_libunwind): Likewise.
27263         (libc_cv_as_noexecstack): Likewise.
27264         * configure: Regenerate.
27265
27266 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
27267
27268         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
27269
27270         * posix/globtest.sh (TMPDIR): Do not set.
27271         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
27272         (testout): Likewise.
27273
27274 2012-10-24  Andreas Jaeger  <aj@suse.de>
27275
27276         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
27277         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
27278         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
27279         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
27280         posix_fadvise64, posix_fallocate64.
27281
27282         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
27283         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
27284         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
27285         Likewise.
27286         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
27287         Likewise.
27288         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
27289
27290         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
27291         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
27292         <bits/fcntl-linux.h>.
27293         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
27294
27295         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
27296         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
27297         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
27298         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
27299         [__WORDSIZE != 64]: Likewise.
27300
27301 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
27302
27303         * Makeconfig (run-built-tests): New variable.
27304         * Rules [$(cross-compiling) = yes]: Change condition to
27305         [$(run-built-tests) = no].
27306         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
27307         to [$(run-built-tests) = yes].
27308         * elf/Makefile [$(cross-compiling) = no]: Likewise
27309         * grp/Makefile [$(cross-compiling) = no]: Likewise.
27310         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
27311         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
27312         * intl/Makefile [$(cross-compiling) = no]: Likewise.
27313         * io/Makefile [$(cross-compiling) = no]: Likewise.
27314         * libio/Makefile [$(cross-compiling) = no]: Likewise.
27315         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
27316         * misc/Makefile [$(cross-compiling) = no]: Likewise.
27317         * posix/Makefile [$(cross-compiling) = no]: Likewise.
27318         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
27319         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
27320         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
27321         * string/Makefile [$(cross-compiling) = no]: Likewise.
27322
27323         * posix/Makefile ($(objpfx)globtest.out): Pass
27324         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
27325         $(rtld-installed-name).
27326         * posix/globtest.sh (elf_objpfx): Remove variable.
27327         (rtld_installed_name): Likewise.
27328         (library_path): Likewise.
27329         (run_program_prefix): New variable.  Use for running globtest
27330         binary.
27331
27332 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
27333             Joseph Myers  <joseph@codesourcery.com>
27334
27335         * Makeconfig (host-built-program-cmd): New variable.
27336         * elf/Makefile (tst-stackguard1-ARGS): Use
27337         $(host-built-program-cmd).
27338         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
27339         (tst-spawn-ARGS): Likewise.
27340         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
27341
27342 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
27343             Jim Blandy  <jimb@codesourcery.com>
27344
27345         * Makeconfig (run-via-rtld-prefix): New variable.
27346         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
27347         (built-program-cmd): Likewise.
27348
27349 2012-10-22  Andreas Jaeger  <aj@suse.de>
27350
27351         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
27352         __O_RSYNC if it exists, otherwise to O_SYNC.
27353
27354 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
27355             Joseph Myers  <joseph@codesourcery.com>
27356
27357         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
27358         /dev/null.
27359         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
27360         from /dev/null
27361         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
27362         /dev/null.
27363
27364 2012-10-22  Andreas Jaeger  <aj@suse.de>
27365
27366         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
27367         Define always.
27368         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
27369
27370         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27371         bits/fcntl-linux.h.
27372
27373         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
27374         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
27375
27376         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
27377         to __O_LARGEFILE.
27378         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
27379         to __O_LARGEFILE.
27380
27381 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
27382             Joseph Myers  <joseph@codesourcery.com>
27383
27384         * config.make.in (NM): New variable.
27385
27386 2012-10-21  Andreas Jaeger  <aj@suse.de>
27387
27388         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
27389         definitions and declarations that are provided by
27390         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
27391
27392 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27393
27394         [BZ #14683]
27395         * elf/Makefile (tests-static): Add tst-leaks1-static.
27396         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
27397         ($(objpfx)tst-leaks1-static): New rule.
27398         ($(objpfx)tst-leaks1-static-mem): Likewise.
27399         (tst-leaks1-static-ENV): New macro.
27400         * elf/dl-open.c (dl_open_worker): Check the main application
27401         only if SHARED is defined.
27402         * elf/tst-leaks1-static.c: New file.
27403
27404 2012-10-20  Andreas Jaeger  <aj@suse.de>
27405
27406         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
27407         generic values for Linux.
27408         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
27409         and declarations that are provided by <bits/fcntl-linux.h> and
27410         include <bits/fcntl-linux.h>.
27411         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27412         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
27413
27414 2012-10-20  Roland McGrath  <roland@hack.frob.com>
27415
27416         * io/fcntl.h: Move include of <bits/types.h> to the top and
27417         include it unconditionally.
27418
27419 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
27420
27421         * wcsmbs/Makefile (tests-ifunc): New variable.
27422         (tests): Add $(tests-ifunc).
27423         * wcsmbs/test-wcschr-ifunc.c: New file.
27424         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
27425         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
27426         * wcsmbs/test-wcslen-ifunc.c: Likewise.
27427         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
27428         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
27429
27430         * string/Makefile (tests-ifunc): New variable.
27431         (tests): Add $(tests-ifunc).
27432         * string/test-memccpy.c (TEST_NAME): New macro.
27433         * string/test-memchr.c (TEST_NAME): Likewise.
27434         * string/test-memcmp.c (TEST_NAME): Likewise.
27435         * string/test-memcpy.c (TEST_NAME): Likewise.
27436         * string/test-memmem.c (TEST_NAME): Likewise.
27437         * string/test-memmove.c (TEST_NAME): Likewise.
27438         * string/test-memset.c (TEST_NAME): Likewise.
27439         * string/test-rawmemchr.c (TEST_NAME): Likewise.
27440         * string/test-stpcpy.c (TEST_NAME): Likewise.
27441         * string/test-stpncpy.c (TEST_NAME): Likewise.
27442         * string/test-strcasecmp.c (TEST_NAME): Likewise.
27443         * string/test-strcasestr.c (TEST_NAME): Likewise.
27444         * string/test-strcat.c (TEST_NAME): Likewise.
27445         * string/test-strchr.c (TEST_NAME): Likewise.
27446         * string/test-strcmp.c(TEST_NAME): Likewise.
27447         * string/test-strcpy.c (TEST_NAME): Likewise.
27448         * string/test-strcspn.c (TEST_NAME): Likewise.
27449         * string/test-strlen.c (TEST_NAME): Likewise.
27450         * string/test-strncasecmp.c (TEST_NAME): Likewise.
27451         * string/test-strncmp.c (TEST_NAME): Likewise.
27452         * string/test-strncpy.c (TEST_NAME): Likewise.
27453         * string/test-strnlen.c (TEST_NAME): Likewise.
27454         * string/test-strpbrk.c (TEST_NAME): Likewise.
27455         * string/test-strrchr.c (TEST_NAME): Likewise.
27456         * string/test-strspn.c (TEST_NAME): Likewise.
27457         * string/test-strstr.c (TEST_NAME): Likewise.
27458         * string/test-bcopy-ifunc.c: New file.
27459         * string/test-bzero-ifunc.c: Likewise.
27460         * string/test-memccpy-ifunc.c: Likewise.
27461         * string/test-memchr-ifunc.c: Likewise.
27462         * string/test-memcmp-ifunc.c: Likewise.
27463         * string/test-memcpy-ifunc.c: Likewise.
27464         * string/test-memmem-ifunc.c: Likewise.
27465         * string/test-memmove-ifunc.c: Likewise.
27466         * string/test-mempcpy-ifunc.c: Likewise.
27467         * string/test-memset-ifunc.c: Likewise.
27468         * string/test-rawmemchr-ifunc.c: Likewise.
27469         * string/test-stpcpy-ifunc.c: Likewise.
27470         * string/test-stpncpy-ifunc.c: Likewise.
27471         * string/test-strcasecmp-ifunc.c: Likewise.
27472         * string/test-strcasestr-ifunc.c: Likewise.
27473         * string/test-strcat-ifunc.c: Likewise.
27474         * string/test-strchr-ifunc.c: Likewise.
27475         * string/test-strchrnul-ifunc.c: Likewise.
27476         * string/test-strcmp-ifunc.c: Likewise.
27477         * string/test-strcpy-ifunc.c: Likewise.
27478         * string/test-strcspn-ifunc.c: Likewise.
27479         * string/test-strlen-ifunc.c: Likewise.
27480         * string/test-strncasecmp-ifunc.c: Likewise.
27481         * string/test-strncat-ifunc.c: Likewise.
27482         * string/test-strncmp-ifunc.c: Likewise.
27483         * string/test-strncpy-ifunc.c: Likewise.
27484         * string/test-strnlen-ifunc.c: Likewise.
27485         * string/test-strpbrk-ifunc.c: Likewise.
27486         * string/test-strrchr-ifunc.c: Likewise.
27487         * string/test-strspn-ifunc.c: Likewise.
27488         * string/test-strstr-ifunc.c: Likewise.
27489
27490         * debug/Makefile (tests-ifunc): New variable.
27491         (tests): Add $(tests-ifunc).
27492         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
27493         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
27494         * debug/test-stpcpy_chk-ifunc.c: New file.
27495         * debug/test-strcpy_chk-ifunc.c: Likewise.
27496
27497 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
27498
27499         [BZ #13601]
27500         * elf/dl-load.c (open_verify): Retry read if the entire ELF
27501         header is not read in.
27502
27503 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
27504
27505         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
27506         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
27507         directly.  Pass built executable to script as
27508         $(built-program-cmd).
27509         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
27510         $testprogram without using LD_LIBRARY_PATH and $ldso.
27511
27512         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
27513         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
27514         $(rtld-installed-name).
27515         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
27516         (rtld_installed_name): Likewise.
27517         (library_path): Likewise.
27518         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
27519         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
27520         $(run-program-prefix) to tst-tables.sh.
27521         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
27522         it to run tst-table-from and tst-table-to.
27523         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
27524         Pass it to tst-table.sh.
27525         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
27526         $(run-program-prefix) to tst-gettext.sh.
27527         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
27528         tst-translit.sh.
27529         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
27530         tst-gettext2.sh.
27531         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
27532         to run tst-gettext.
27533         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
27534         to run tst-gettext2.
27535         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
27536         to run tst-translit.
27537         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
27538         $(run-program-prefix) to tst-mtrace.sh.
27539         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
27540         to run tst-mtrace.
27541         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
27542         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
27543         $(rtld-installed-name).
27544         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
27545         (rtld_installed_name): Likewise.
27546         (run_program_prefix): New variable.  Use it to run wordexp-test.
27547
27548         * Makeconfig (ARCH): Remove all definitions.
27549         (machine): Likewise.
27550         [ARCH]: Remove conditional code.
27551         [!objdir]: Give error.
27552         [!objdir] (objpfx): Remove.
27553         [!objdir] (common-objpfx): Likewise.
27554         [!objdir] (common-objdir): Likewise.
27555         * configure.in (config_makefile): Remove.  Hardcode Makefile in
27556         AC_CONFIG_FILES call.
27557         * configure: Regenerated.
27558
27559         [BZ #13888]
27560         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
27561         or TMPDIR.
27562         (testout): Likewise.
27563
27564         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
27565         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
27566         $(rtld-installed-name).
27567         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
27568         (rtld_installed_name): Likwise.
27569         (runit): Remove function.
27570         (run_getconf): New variable,  Use it for running getconf binary.
27571
27572 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
27573
27574         [BZ #14716]
27575         * string/test-memmem.c (check_result): New function.
27576         (do_one_test): Use it.
27577         (check1): New function.
27578         (test_main): Use it.
27579
27580 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
27581
27582         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
27583
27584 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
27585
27586         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
27587         (_G_LSEEK64): Likewise.
27588         (_G_MMAP64): Likewise.
27589         (_G_FSTAT64): Likewise.
27590         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
27591         (_G_LSEEK64): Likewise.
27592         (_G_MMAP64): Likewise.
27593         (_G_FSTAT64): Likewise.
27594         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
27595         unconditional.  Call __mmap64 directly.
27596         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
27597         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
27598         __lseek64 directly.
27599         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
27600         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
27601         __mmap64 directly.
27602         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
27603         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
27604         __lseek64 directly.
27605         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
27606         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
27607         __lseek64 directly.
27608         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
27609         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
27610         __lseek64 directly.
27611         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
27612         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
27613         __fxstat64 directly.
27614         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
27615         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
27616         unconditional.
27617         (freopen64) [!_G_OPEN64]: Remove conditional code.
27618         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
27619         unconditional.
27620         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
27621         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
27622         unconditional.
27623         (ftello64) [!_G_LSEEK64]: Remove conditional code.
27624         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
27625         unconditional.
27626         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
27627         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
27628         unconditional.
27629         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
27630         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
27631         unconditional.
27632         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27633         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
27634         unconditional.
27635         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
27636         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
27637         unconditional.
27638         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
27639
27640 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
27641
27642         [BZ #12140]
27643         * manual/memory.texi (Malloc Tunable Parameters): Add note
27644         about free list pointers overwriting some perturb bytes.
27645         Wording suggested by Roland McGrath.
27646
27647 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
27648
27649         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
27650         (lgamma_test): Likewise.
27651         (tgamma_test): Likewise.
27652
27653 2012-10-16  Florian Weimer  <fweimer@redhat.com>
27654
27655         [BZ #14700]
27656         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
27657         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
27658
27659 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
27660
27661         * NEWS: Mention BZ #14716.
27662         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
27663         when removing AVAILABLE1_USES_J macro.
27664
27665 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
27666
27667         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
27668         (__bswap_64): __uint64_t for unsigned 64-bit int.
27669
27670 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
27671
27672         * include/string.h (memmem): Declare libc hidden alias.
27673         * string/memmem.c (memmem): Define libc hidden alias.
27674         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
27675         __read, __close instead of open, read, close.
27676
27677 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
27678
27679         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
27680         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
27681         global and hidden.
27682         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
27683         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
27684         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
27685         Likewise.
27686         (__rawmemchr_sse2): Likewise.
27687         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
27688         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
27689         (__strchr_sse2): Likewise.
27690         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
27691         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
27692         (__strcasecmp_sse2): Likewise.
27693         (__strncasecmp_sse2): Likewise.
27694         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
27695         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
27696         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
27697         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
27698         (__strrchr_sse2): Likewise.
27699         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
27700         ifunc-impl-list.c.
27701         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
27702         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
27703         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
27704         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
27705         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
27706         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
27707         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27708         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27709         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
27710         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
27711         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
27712         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
27713         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
27714         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
27715         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
27716         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
27717         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
27718         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
27719         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
27720         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
27721         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
27722         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
27723         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
27724         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
27725         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
27726         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
27727         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
27728         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
27729         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
27730         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
27731
27732         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
27733         global and hidden.
27734         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
27735         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
27736         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
27737         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
27738         Likewise.
27739         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
27740         Likewise.
27741         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
27742         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
27743         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
27744         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
27745         ifunc-impl-list.c.
27746         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27747         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27748         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27749         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27750         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27751         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27752         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27753         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27754         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27755         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27756         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27757         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27758         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27759         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
27760         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
27761         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27762         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
27763         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
27764         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27765         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27766         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27767         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27768         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27769         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27770         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27771         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
27772         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
27773         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
27774         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
27775         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27776         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
27777         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27778         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27779         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
27780         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27781         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27782         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27783         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27784         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27785         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27786         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
27787
27788         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
27789         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
27790         * include/ifunc-impl-list.h: New file.
27791         * misc/ifunc-impl-list.c: Likewise.
27792         * misc/Makefile (routines): Add ifunc-impl-list.
27793         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
27794         * string/test-string.h: Include <ifunc-impl-list.h>.
27795         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
27796         TEST_NAME]: New variables.
27797         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
27798         are defined.
27799         (test_init): Call __libc_ifunc_impl_list to initialize
27800         func_list if TEST_IFUNC and TEST_NAME are defined.
27801
27802         * string/Makefile (strop-tests): Add bcopy and bzero.
27803         * string/test-bcopy.c: New file.
27804         * string/test-bzero.c: Likewise.
27805         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
27806         defined.
27807         * string/test-memset.c: Support bzero test if TEST_BZERO is
27808         defined.
27809         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
27810         __libc_memmove.
27811         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
27812         __libc_memset.
27813         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
27814         of memset.
27815
27816 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
27817
27818         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
27819         * configure: Regenerated.
27820
27821         * Makeconfig (+link-static-before-libc): Don't include
27822         $(link-static-libc).
27823
27824         * libio/libio.h (_IO_pos_t): Remove.
27825
27826 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27827
27828         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
27829         McGrath.
27830
27831 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27832
27833         * crypt/crypt-entry.c: Include fips-private.h.
27834         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
27835         * crypt/md5c-test.c (main): Tolerate disabled MD5.
27836         * sysdeps/unix/sysv/linux/fips-private.h: New file.
27837         * sysdeps/generic/fips-private.h: New file, dummy fallback.
27838
27839 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
27840
27841         * crypt/crypt-private.h: Include stdbool.h.
27842         (_ufc_setup_salt_r): Return bool.
27843         * crypt/crypt-entry.c: Include errno.h.
27844         (__crypt_r): Return NULL with EINVAL for bad salt.
27845         * crypt/crypt_util.c (bad_for_salt): New.
27846         (_ufc_setup_salt_r): Check that salt is long enough and within
27847         the specified alphabet.
27848         * crypt/badsalttest.c: New file.
27849         * crypt/Makefile (tests): Add it.
27850         ($(objpfx)badsalttest): New.
27851
27852 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
27853
27854         * NEWS: Add entry for BZ #14602.
27855
27856 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27857
27858         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
27859         type-generic.
27860         * math/libm-test.inc: Update comment listing what functions and
27861         macros are tested.
27862         (isgreater_test): New function.
27863         (isgreaterequal_test): Likewise.
27864         (isless_test): Likewise.
27865         (islessequal_test): Likewise.
27866         (islessgreater_test): Likewise.
27867         (isunordered_test): Likewise.
27868         (main): Call the new functions.
27869
27870 2012-10-09  Roland McGrath  <roland@hack.frob.com>
27871
27872         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
27873         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
27874         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
27875         * sysdeps/i386/configure: Regenerated.
27876         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
27877         * sysdeps/mach/configure: Regenerated.
27878         * sysdeps/mach/hurd/configure: Regenerated.
27879         * sysdeps/powerpc/configure: Regenerated.
27880         * sysdeps/powerpc/powerpc32/configure: Regenerated.
27881         * sysdeps/powerpc/powerpc64/configure: Regenerated.
27882         * sysdeps/s390/s390-32/configure: Regenerated.
27883         * sysdeps/s390/s390-64/configure: Regenerated.
27884         * sysdeps/sh/configure: Regenerated.
27885         * sysdeps/sparc/configure: Regenerated.
27886         * sysdeps/unix/sysv/linux/configure: Regenerated.
27887         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
27888         * sysdeps/x86_64/configure: Regenerated.
27889
27890         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
27891         defined.  Don't check if MAP is NULL.
27892
27893 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
27894
27895         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
27896         (_G_stat64): Likewise.
27897         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
27898         (_G_stat64): Likewise.
27899         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
27900         instead of struct _G_stat64.
27901         * libio/fileops.c (mmap_remap_check): Likewise.
27902         (decide_maybe_mmap): Likewise.
27903         (_IO_new_file_seekoff): Likewise.
27904         (_IO_file_stat): Likewise.
27905         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
27906         _G_off64_t.
27907         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
27908         instead of struct _G_stat64.
27909         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
27910
27911 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
27912
27913         [BZ #14602]
27914         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27915         Replace with ...
27916         (CHECK_EOL): New macro.
27917         (two_way_short_needle): Check beginning of haystack for EOL.  Use
27918         CHECK_EOL.
27919         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27920         Replace with CHECK_EOL.
27921         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
27922         Replace with CHECK_EOL.
27923
27924 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
27925
27926         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
27927         type-generic.
27928         * math/libm-test.inc: Update comment listing what functions and
27929         macros are tested.
27930         (finite_test): New function.
27931         (isinf_test): Likewise.
27932         (isnan_test): Likewise.
27933         (fpclassify_test): Test subnormal input.
27934         (isfinite_test): Likewise.
27935         (isnormal_test): Likewise.
27936         (main): Call the new functions.
27937
27938 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
27939
27940         [BZ #14660]
27941         * Makerules (%.dynsym): Force C locale when running
27942         $(OBJDUMP) --dynamic-syms.
27943
27944 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
27945
27946         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
27947         <stdint.h>.
27948
27949 2012-10-06  David S. Miller  <davem@davemloft.net>
27950
27951         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
27952         upper 32-bits of the length value in %o2 since we use branch-on-register
27953         tests which consider the entire 64-bit register.
27954
27955 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
27956
27957         * string/test-strstr.c (check2): Add a test for page boundary.
27958
27959 2012-10-05  David S. Miller  <davem@davemloft.net>
27960
27961         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
27962         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
27963         file.
27964         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
27965         sysdep_routines.
27966         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
27967         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
27968         and bzero when HWCAP_SPARC_CRYPTO is present.
27969
27970 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
27971
27972         [BZ #14602]
27973         * string/test-strstr.c (check2): New function.
27974         (test_main): Call check2.
27975
27976         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
27977         and bug-strchr1.
27978         * string/bug-strcasestr1.c (do_test): Moved to ...
27979         * string/test-strcasestr.c (check1): Here.  New function.
27980         (do_one_test): Break out result checking code into ...
27981         (check_result): This.  New function.
27982         (do_one_test): Call check_result.
27983         (test_main): Call check1.
27984         * string/bug-strchr1.c (do_test): Moved to ...
27985         * string/test-strchr.c (check1): Here.  New function.
27986         (do_one_test): Break out result checking code into ...
27987         (check_result): This.  New function.
27988         (do_one_test): Call check_result.
27989         (test_main): Call check1.
27990         * string/bug-strstr1.c (main): Moved to ...
27991         * string/test-strstr.c (check1): Here.  New function.
27992         (do_one_test): Break out result checking code into ...
27993         (check_result): This.  New function.
27994         (do_one_test): Call check_result.
27995         (test_main): Call check1.
27996         * string/bug-strcasestr1.c: Removed.
27997         * string/bug-strchr1.c: Likewise.
27998         * string/bug-strstr1.c: Likewise.
27999
28000         * elf/Makefile (dl-routines): Add hwcaps.
28001         * elf/dl-support.c (_dl_important_hwcaps): Removed.
28002         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
28003         (_dl_important_hwcaps): Moved to ...
28004         * elf/dl-hwcaps.c: Here.  New file.
28005         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
28006
28007         [BZ #14557]
28008         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
28009         if IS_IN_rtld isn't defined.
28010
28011         * elf/dl-support.c (_dl_sysinfo_map): New.
28012         Include "get-dynamic-info.h" and "setup-vdso.h".
28013         (_dl_non_dynamic_init): Call setup_vdso.
28014         * elf/dynamic-link.h: Don't include <assert.h>.
28015         (elf_get_dynamic_info): Moved to ...
28016         * elf/get-dynamic-info.h: Here.  New file.
28017         * elf/dynamic-link.h: Include "get-dynamic-info.h".
28018         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
28019         * elf/setup-vdso.h: Here.  New file.
28020         * elf/rtld.c: Include "setup-vdso.h".
28021         (dl_main): Call setup_vdso.
28022
28023 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
28024
28025         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
28026         creal in comment listing functions tested.  List finite, isinf,
28027         isnan, isless, islessequal, isgreater, isgreaterequal,
28028         islessgreater, isunordered, lgamma_r and pow10 as functions and
28029         macros not tested.  Mention which functions not tested are aliases
28030         for other functions.  Fix typo.  Note that signs of NaNs are not
28031         tested.
28032
28033         * scripts/config.guess: Update from config.git.
28034         * scripts/config.sub: Likewise.
28035
28036 2012-10-04  Roland McGrath  <roland@hack.frob.com>
28037
28038         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
28039         * misc/madvise.c (madvise): Renamed to __madvise.
28040         Make madvise a weak alias.
28041         * include/sys/mman.h: Declare __madvise.
28042         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
28043         * sysdeps/unix/syscalls.list
28044         (madvise): Make __madvise the strong name, and madvise a weak alias.
28045         * sysdeps/unix/sysv/linux/syscalls.list
28046         (madvise, mmap): Remove redundant entries.
28047         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
28048         * malloc/malloc.c (mtrim): Likewise.
28049         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
28050
28051 2012-10-03  Roland McGrath  <roland@hack.frob.com>
28052
28053         * sysdeps/mach/hurd/dl-cache.c: File removed.
28054         * config.h.in (USE_LDCONFIG): New #undef.
28055         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
28056         * configure: Regenerated.
28057         * elf/Makefile (dl-routines): Add dl-cache only under
28058         [$(use-ldconfig) = yes].
28059         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
28060         cache on [USE_LDCONFIG].
28061         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
28062         [USE_LDCONFIG].
28063         * elf/rtld.c (dl_main): Likewise.
28064
28065 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
28066
28067         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
28068         _SC_LEVEL4_CACHE_LINESIZE.
28069
28070 2012-10-03  Roland McGrath  <roland@hack.frob.com>
28071
28072         * sysdeps/unix/bsd/confstr.h: File removed.
28073
28074 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
28075
28076         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
28077         sys/sdt-config.h.
28078
28079 2012-10-02  Roland McGrath  <roland@hack.frob.com>
28080
28081         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
28082         Make 'mapoff' field ElfW(Off) rather than off_t.
28083
28084 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28085
28086         * nscd/Makefile: Remove nscd-cflags and all its users.
28087         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
28088         (CFLAGS-nonlib): Add compiler flags for nscd modules.
28089
28090         [BZ #10631]
28091         * malloc.c (malloc_printerr): Clarify error message.
28092
28093 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
28094
28095         [BZ #14648]
28096         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28097         Set bit_FMA_Usable if FMA is supported.
28098         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
28099         macro.
28100         (bit_FMA4_Usable): Updated.
28101         (index_FMA_Usable): New macro.
28102         (CPUID_FMA): Likewise
28103         (HAS_FMA): Defined with bit_FMA_Usable.
28104
28105 2012-10-01  Roland McGrath  <roland@hack.frob.com>
28106
28107         * bits/types.h (__swblk_t): Type removed.
28108         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
28109         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
28110         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28111         (__SWBLK_T_TYPE): Likewise.
28112         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28113         (__SWBLK_T_TYPE): Likewise.
28114         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28115         (__SWBLK_T_TYPE): Likewise.
28116         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
28117         (__SWBLK_T_TYPE): Likewise.
28118
28119 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
28120             Honza Horak <hhorak@redhat.com>
28121
28122         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
28123         (xdr_mapname): Use YPMAXMAP as maxsize.
28124         (xdr_peername): Use YPMAXPEER as maxsize.
28125         (xdr_keydat): Use YPAXRECORD as maxsize.
28126         (xdr_valdat): Use YPMAXRECORD as maxsize.
28127
28128 2012-10-01  Roland McGrath  <roland@hack.frob.com>
28129
28130         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
28131
28132         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
28133         * csu/init-first.c: ... here.
28134         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
28135         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
28136         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
28137         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
28138         * sysdeps/i386/init-first.c: File removed.
28139         * sysdeps/sh/init-first.c: File removed.
28140
28141 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
28142
28143         [BZ #14645]
28144         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
28145         if x * y might underflow to zero and z is zero.
28146         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
28147         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28148         * math/libm-test.inc (min_subnorm_value): New variable.
28149         (fma_test): Add more tests.
28150         (fma_test_towardzero): Likewise.
28151         (fma_test_downward): Likewise
28152         (fma_test_upward): Likewise.
28153         (initialize): Set min_subnorm_value.
28154
28155 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
28156
28157         [BZ #14638]
28158         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
28159         0 + 0.
28160         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
28161         mode for addition resulting in exact zero.
28162         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
28163         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
28164         exact 0 + 0.
28165         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
28166         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28167         * math/libm-test.inc (fma_test): Add more tests.
28168         (fma_test_towardzero): New function.
28169         (fma_test_downward): Likewise.
28170         (fma_test_upward): Likewise.
28171         (main): Call the new functions.
28172
28173 2012-09-28  David S. Miller  <davem@davemloft.net>
28174
28175         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
28176
28177 2012-09-28  Roland McGrath  <roland@hack.frob.com>
28178
28179         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
28180         instead of SIGALRM.
28181
28182         * sysdeps/gnu/_G_config.h: Moved to ...
28183         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
28184         * sysdeps/mach/hurd/_G_config.h: Moved to ...
28185         * sysdeps/generic/_G_config.h: ... here.
28186
28187         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
28188
28189         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
28190
28191         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
28192         Conditionalize target on [libnss_test1.so-version].
28193
28194         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
28195
28196         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
28197         (elfobjdir): Move out of conditionals.
28198
28199         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
28200         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
28201         (__nss_lookup_function): Conditionalize label remove_from_tree on
28202         [!DO_STATIC_NSS || SHARED], matching its only use.
28203
28204 2012-09-28  David S. Miller  <davem@davemloft.net>
28205
28206         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
28207         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
28208         file.
28209         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
28210         sysdep_routines.
28211         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
28212         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
28213         when HWCAP_SPARC_CRYPTO is present.
28214
28215 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28216
28217         * io/tst-mknodat.c: Create a FIFO instead of a socket.
28218
28219 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
28220
28221         [BZ #6530]
28222         * stdio-common/vfprintf.c (process_string_arg): Revert
28223         2000-07-22 change.
28224
28225 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
28226
28227         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
28228         for testcase.
28229         * stdio-common/tst-sprintf.c: Include <locale.h>
28230         (main): Test sprintf's handling of incomplete multibyte
28231         characters.
28232
28233 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
28234
28235         * elf/dl-runtime.c (VERSYMIDX): Removed.
28236         * elf/dl-version.c (VERSYMIDX): Likewise.
28237         * elf/do-rel.h (VERSYMIDX): Likewise.
28238         (VALIDX): Likewise.
28239         * elf/dynamic-link.h (VERSYMIDX): Likewise.
28240         * elf/rtld.c (VALIDX): Likewise.
28241         (ADDRIDX): Likewise.
28242         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
28243         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
28244         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
28245         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
28246         (VALIDX): Likewise.
28247         (ADDRIDX): Likewise.
28248
28249 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28250
28251         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
28252
28253 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
28254
28255         [BZ #11438]
28256         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
28257         to global scope.
28258         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
28259         addresses are in the same scope as 192.0.2/24.
28260         * posix/gai.conf: Document new scope table defaults.
28261
28262 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28263
28264         [BZ #5298]
28265         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
28266         for ftell.  Compute offsets from write pointers instead.
28267         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
28268
28269 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28270
28271         [BZ #14543]
28272         * libio/Makefile (tests): New test case tst-fseek.
28273         * libio/tst-fseek.c: New test case to verify that fseek/ftell
28274         combination works in wide mode.
28275         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
28276         state when the external buffer state changes.
28277
28278 2012-09-27  David S. Miller  <davem@davemloft.net>
28279
28280         [BZ #14376]
28281         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
28282         pass reloc->r_addend in as the 'high' argument to
28283         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
28284
28285         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28286
28287 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28288
28289         * rt/tst-aio2.c: Include <pthread.h>.
28290         * rt/tst-aio3.c: Likewise.
28291
28292 2012-09-27  Steve Ellcey  <sellcey@mips.com>
28293
28294         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
28295
28296 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
28297
28298         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
28299         contents on [SHARED].
28300
28301 2012-09-26  Marek Polacek  <polacek@redhat.com>
28302
28303         [BZ #14530]
28304         [BZ #13741]
28305         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
28306         for C++ and GCC <4.3 as well as for non GCC compilers.
28307
28308 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
28309
28310         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28311
28312 2012-09-25  Roland McGrath  <roland@hack.frob.com>
28313
28314         * Makefile.in (all, install): Declare with .PHONY.
28315         Reported by Michael Hope <michael.hope@linaro.org>.
28316
28317 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
28318
28319         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
28320         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
28321         system header.
28322         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
28323         Likewise.
28324         (sydep_routines): Add the new and the internal functions.
28325         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
28326         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
28327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
28328         (GLIBC_2.17): Add the new function.
28329         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
28330         (GLIBC_2.17): Likewise.
28331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
28332         (GLIBC_2.17): Likewise.
28333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
28334         (GLIBC_2.17): Likewise.
28335         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
28336
28337 2012-09-25  Alan Modra  <amodra@gmail.com>
28338
28339         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
28340         Add release barrier before setting once_control to say
28341         initialisation is done.  Add hints on lwarx.  Use macro in
28342         place of isync.
28343         (clear_once_control): Add release barrier.
28344
28345 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
28346
28347         [BZ #13629]
28348         * math/s_clog.c (__clog): Handle more values close to |z| = 1
28349         specially.
28350         * math/s_clog10.c (__clog10): Likewise.
28351         * math/s_clog10f.c (__clog10f): Likewise.
28352         * math/s_clog10l.c (__clog10l): Likewise.
28353         * math/s_clogf.c (__clogf): Likewise.
28354         * math/s_clogl.c (__clogl): Likewise.
28355         * math/Makefile (libm-calls): Add x2y2m1.
28356         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
28357         (__x2y2m1): Likewise.
28358         (__x2y2m1l): Likewise.
28359         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
28360         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
28361         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
28362         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
28363         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
28364         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
28365         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
28366         * sysdeps/i386/fpu/libm-test-ulps: Update.
28367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28368
28369         [BZ #14621]
28370         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
28371         int as type of variable DEPTH.
28372         (glob): Use size_t instead of int as type of variables NEWCOUNT
28373         and OLD_PATHC.
28374
28375 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28376
28377         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28378         Add s_sincosf-sse2.
28379         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
28380         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
28381         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
28382         macros for using routine as __sincosf_ia32.
28383         Use macro for function declaration and weak_alias.
28384         * sysdeps/i386/fpu/libm-test-ulps: Update.
28385
28386         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
28387         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28388
28389         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
28390         subnormal argument.
28391         * math/s_cexpf.c (__cexpf): Likewise.
28392         * math/s_csinf.c (__csinf): Likewise.
28393         * math/s_csinhf.c (__csinhf): Likewise.
28394         * math/s_ctanf.c (__ctanf): Likewise.
28395         * math/s_ctanhf.c (__ctanhf): Likewise.
28396         * math/s_ccosh.c (__ccoshf): Likewise.
28397         * math/s_cexp.c (__cexpl): Likewise.
28398         * math/s_csin.c (__csin): Likewise.
28399         * math/s_csinh.c (__csinh): Likewise.
28400         * math/s_ctan.c (__ctan): Likewise.
28401         * math/s_ctanh.c (ctanh): Likewise.
28402         * math/s_ccoshl.c (__ccoshl): Likewise.
28403         * math/s_cexpl.c (__cexpl): Likewise.
28404         * math/s_csinl.c (__csinl): Likewise.
28405         * math/s_csinhl.c (__csinhl): Likewise.
28406         * math/s_ctanl.c (__ctanl): Likewise.
28407         * math/s_ctanhl.c (__ctanhl): Likewise.
28408
28409 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
28410
28411         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
28412         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
28413         (_IO_off_t): Define to __off_t, not _G_off_t.
28414         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
28415         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
28416         (_IO_wint_t): Define to wint_t, not _G_wint_t.
28417         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
28418         type of __dummy and __dummy2 fields.
28419         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
28420         (_G_ssize_t): Likewise.
28421         (_G_off_t): Likewise.
28422         (_G_pid_t): Likewise.
28423         (_G_uid_t): Likewise.
28424         (_G_wchar_t): Likewise.
28425         (_G_wint_t): Likewise.
28426         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
28427         (_G_ssize_t): Likewise.
28428         (_G_off_t): Likewise.
28429         (_G_pid_t): Likewise.
28430         (_G_uid_t): Likewise.
28431         (_G_wchar_t): Likewise.
28432         (_G_wint_t): Likewise.
28433         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
28434         (_G_ssize_t): Likewise.
28435         (_G_off_t): Likewise.
28436         (_G_pid_t): Likewise.
28437         (_G_uid_t): Likewise.
28438         (_G_wchar_t): Likewise.
28439         (_G_wint_t): Likewise.
28440
28441 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
28442
28443         * malloc/arena.c: Include malloc-sysdep.h.
28444         (shrink_heap): Use check_may_shrink_heap to decide if madvise
28445         is sufficient to shrink the heap or an unmap is needed.
28446         * sysdeps/generic/malloc-sysdep.h: New file.  Define
28447         new function check_may_shrink_heap.
28448         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
28449         new function check_may_shrink_heap.
28450
28451 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
28452
28453         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
28454         comments.
28455
28456 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
28457
28458         * catgets/test-gencat.sh: Add "set -e".
28459         * elf/tst-pathopt.sh: Likewise.
28460         * grp/tst_fgetgrent.sh: Likewise.
28461         * iconvdata/run-iconv-test.sh: Likewise.
28462         * intl/tst-gettext.sh: Likewise.
28463         * intl/tst-gettext2.sh: Likewise.
28464         * intl/tst-gettext4.sh: Likewise.
28465         * intl/tst-gettext6.sh: Likewise.
28466         * intl/tst-translit.sh: Likewise.
28467         * io/ftwtest-sh: Likewise.
28468         * libio/test-freopen.sh: Likewise.
28469         * malloc/tst-mtrace.sh: Likewise.
28470         * posix/globtest.sh: Likewise.
28471         * posix/tst-getconf.sh: Likewise.
28472         * posix/wordexp-tst.sh: Likewise.
28473         * stdio-common/tst-printf.sh: Likewise.
28474         * stdio-common/tst-unbputc.sh: Likewise.
28475         * stdlib/tst-fmtmsg.sh: Likewise.
28476         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
28477         * catgets/Makefile: Do not specify -e option when running
28478         testsuite shell scripts.
28479         * elf/Makefile: Likewise.
28480         * grp/Makefile: Likewise.
28481         * iconvdata/Makefile: Likewise.
28482         * intl/Makefile: Likewise.
28483         * io/Makefile: Likewise.
28484         * libio/Makefile: Likewise.
28485         * malloc/Makefile: Likewise.
28486         * posix/Makefile: Likewise.
28487         * stdio-common/Makefile: Likewise.
28488         * stdlib/Makefile: Likewise.
28489         * sysdeps/x86_64/Makefile: Likewise.
28490
28491         * io/ftwtest-sh: Add copyright header.
28492         * posix/globtest.sh: Likewise.
28493         * posix/tst-getconf.sh: Likewise.
28494         * posix/wordexp-tst.sh: Likewise.
28495         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
28496
28497 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
28498
28499         [BZ #13679]
28500         * Makeconfig (+link): Defined as $(+link-static) if
28501         $(build-shared) isn't yes.
28502         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
28503         isn't yes.
28504         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
28505
28506         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
28507
28508         [BZ #14562]
28509         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
28510         new chunk size with MALLOC_ALIGN_MASK.
28511
28512 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
28513
28514         [BZ #5044]
28515         * stdio-common/printf_fphex.c: Include <stdbool.h> and
28516         <rounding-mode.h>.
28517         (__printf_fphex): Determine rounding using get_rounding_mode and
28518         round_away.
28519         * stdio-common/tst-printf-round.c (struct hex_test): New
28520         structure.
28521         (hex_tests): New variable.
28522         (test_hex_in_one_mode): New function.
28523         (do_test): Also run tests for hex float output.
28524
28525 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
28526
28527         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
28528         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
28529         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
28530         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
28531         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
28532         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
28533         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
28534         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
28535
28536 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
28537
28538         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
28539         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
28540         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
28541         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
28542
28543 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
28544
28545         [BZ #14579]
28546         * elf/rtld.c (dl_main): Limit the check for self loading to normal
28547         mode only.
28548         * elf/tst-rtld-load-self.sh: New test.
28549         * elf/Makefile: Run it.
28550
28551 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
28552
28553         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
28554         (tst-writev-ENV): Remove.
28555         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
28556
28557 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
28558
28559         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
28560
28561 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
28562
28563         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
28564         unconditional.
28565         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
28566         Likewise.
28567         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
28568         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
28569         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
28570         Likewise.
28571
28572 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
28573
28574         [BZ #14587]
28575         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
28576         * config.make.in (have-cpp-asm-debuginfo): Removed.
28577         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
28578         * configure: Regenerated.
28579
28580 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
28581
28582         [BZ #5044]
28583         * stdio-common/printf_fp.c: Include <stdbool.h> and
28584         <rounding-mode.h>.
28585         (___printf_fp): Determine rounding using get_rounding_mode and
28586         round_away.
28587         * stdio-common/tst-printf-round.c: New file.
28588         * stdio-common/Makefile (tests): Add tst-printf-round.
28589         (link-libm): New variable.
28590         ($(objpfx)tst-printf-round): Depend in $(link-libm).
28591
28592 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
28593
28594         [BZ #14576]
28595         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
28596         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
28597         Likewise.
28598         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
28599         Likewise.
28600
28601 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
28602
28603         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
28604         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28605         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28606         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
28607
28608 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
28609
28610         [BZ #14518]
28611         * include/rounding-mode.h: New file.
28612         * sysdeps/generic/get-rounding-mode.h: Likewise.
28613         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
28614         * stdlib/strtod_l.c: Include <rounding-mode.h>.
28615         (MAX_VALUE): New macro.
28616         (MIN_VALUE): Likewise.
28617         (overflow_value): New function.
28618         (underflow_value): Likewise.
28619         (round_and_return): Use overflow_value and underflow_value to
28620         determine return values in overflow and underflow cases.  Use
28621         round_away to determine rounding depending on rounding mode.
28622         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
28623         determine return values in overflow and underflow cases.
28624         * stdlib/tst-strtod-round.c: Include <fenv.h>.
28625         (struct test_results): New structure.
28626         (struct test): Use struct test_results to store expected results
28627         for all rounding modes.
28628         (TEST): Include expected results for all rounding modes.
28629         (test_in_one_mode): New function.
28630         (do_test): Use test_in_one_mode to compute and check results.
28631         Check results for all rounding modes.
28632         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
28633         $(link-libm).
28634
28635 2012-12-09  Allan McRae  <allan@archlinux.org>
28636
28637         * sysdeps/i386/fpu/libm-test-ulps: Update
28638
28639 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
28640
28641         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
28642         (_G_int32_t): Likewise.
28643         (_G_uint16_t): Likewise.
28644         (_G_uint32_t): Likewise.
28645         (_G_HAVE_BOOL): Likewise.
28646         (_G_HAVE_ATEXIT): Likewise.
28647         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28648         (_G_HAVE_IO_FILE_OPEN): Likewise.
28649         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
28650         (_G_int32_t): Likewise.
28651         (_G_uint16_t): Likewise.
28652         (_G_uint32_t): Likewise.
28653         (_G_HAVE_BOOL): Likewise.
28654         (_G_HAVE_ATEXIT): Likewise.
28655         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28656         (_G_HAVE_IO_FILE_OPEN): Likewise.
28657         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
28658         (_G_int32_t): Likewise.
28659         (_G_uint16_t): Likewise.
28660         (_G_uint32_t): Likewise.
28661         (_G_HAVE_BOOL): Likewise.
28662         (_G_HAVE_ATEXIT): Likewise.
28663         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
28664         (_G_HAVE_IO_FILE_OPEN): Likewise.
28665
28666 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
28667
28668         * csu/libc-tls.c: Update copyright years.
28669
28670 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
28671
28672         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
28673         [!_G_USING_THUNKS]: Remove conditional code.
28674         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
28675         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
28676
28677         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
28678         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
28679         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28680         (_G_VTABLE_LABEL_PREFIX): Likewise.
28681         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28682         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28683         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28684         (_G_VTABLE_LABEL_PREFIX): Likewise.
28685         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28686         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
28687         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
28688         (_G_VTABLE_LABEL_PREFIX): Likewise.
28689         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
28690
28691 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
28692
28693         * libio/Makefile: Include ../Makeconfig before tests.
28694         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
28695         only if $(build-shared) is yes.
28696
28697         * iconv/gconv_db.c: Update copyright years.
28698
28699 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28700
28701         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
28702         unwind info if defined PIC. Fix special cases description.
28703         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
28704
28705         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
28706         DP_HI_MASK entry.
28707         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
28708
28709 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
28710
28711         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
28712
28713         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
28714         is NULL.
28715
28716         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
28717         (LDLIBS-tst-chk4): This.
28718         (LDFLAGS-tst-chk5): Renamed to ...
28719         (LDLIBS-tst-chk5): This.
28720         (LDFLAGS-tst-chk6): Renamed to ...
28721         (LDLIBS-tst-chk6): This.
28722         (LDFLAGS-tst-lfschk4): Renamed to ...
28723         (LDLIBS-tst-lfschk4): This.
28724         (LDFLAGS-tst-lfschk5): Renamed to ...
28725         (LDLIBS-tst-lfschk5): This.
28726         (LDFLAGS-tst-lfschk6): Renamed to ...
28727         (LDLIBS-tst-lfschk6): This.
28728
28729         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
28730         on $(common-objpfx)soversions.mk.
28731
28732 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
28733
28734         [BZ #10014]
28735         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28736         example host name.
28737
28738 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
28739
28740         * malloc/arena.c (arena_get_retry): New function that gets
28741         another arena for the caller to try its request on.
28742         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
28743         current arena cannot fulfill the request.
28744         (__libc_memalign): Likewise.
28745         (__libc_memalign): Likewise.
28746         (__libc_pvalloc): Likewise.
28747         (__libc_calloc): Likewise.
28748
28749 2012-09-05  John Tobey  <john.tobey@gmail.com>
28750
28751         [BZ #13542]
28752         * manual/arith.texi (Operations on Complex): Fix description
28753         of carg branch cut.
28754
28755 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28756
28757         [BZ #10014]
28758         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
28759         host name.
28760
28761         [BZ #10038]
28762         * manual/memory.texi (Memory): Make order of menu items match
28763         order of sections.
28764
28765 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28766
28767         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
28768         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
28769         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
28770
28771 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28772
28773         * csu/libc-tls.c (static_dtv): Renamed to ...
28774         (_dl_static_dtv): This.  Make it global.
28775         (_dl_initial_dtv): Removed.
28776         (__libc_setup_tls): Updated.
28777         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
28778         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
28779         DL_INITIAL_DTV.
28780
28781 2012-09-06  Petr Machata  <pmachata@redhat.com>
28782
28783         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
28784         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
28785         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
28786         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
28787
28788 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28789
28790         [BZ #14545]
28791         * csu/libc-tls.c (_dl_initial_dtv): New variable.
28792         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
28793         freeing dtv[-1].
28794
28795 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
28796
28797         [BZ #14544]
28798         * Makeconfig (link-static-before-libc): Replace $(+prector)
28799         with $(+prectorT).
28800         (link-static-after-libc): Replace $(+postctor) with
28801         $(+postctorT).
28802         (link-bounded): Replace $(+prector)/$(+postctor) with
28803         $(+prectorT)/$(+postctorT).
28804         (+prectorT): New macro.
28805         (+postctorT): Likewise.
28806
28807 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
28808
28809         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
28810         (round_str): Handle values above the maximum for IBM long double
28811         as inexact.
28812         * stdlib/tst-strtod-round.c (tests): Regenerated.
28813
28814 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28815
28816         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
28817         assembler flag.
28818         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
28819         zarch_nohighgprs around the zarch optimized routines.
28820         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
28821         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
28822         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
28823         for zarch.
28824
28825 2012-09-05  David S. Miller  <davem@davemloft.net>
28826
28827         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28828
28829         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
28830         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
28831         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
28832         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28833         entries.
28834
28835 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28836
28837         * malloc/arena.c: Fold copyright years.
28838         * malloc/mcheck.c, malloc/memusage.c: Likewise.
28839
28840 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28841
28842         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
28843
28844 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28845
28846         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
28847
28848 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28849
28850         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
28851         change internal state upon failure.
28852
28853 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28854
28855         * malloc/mcheck.c (mcheck_check_all): Fix typo.
28856         * malloc/memusage.c (mmap): Likewise.
28857         (mmap64, mremap): Likewise.  Adjust name in comment.
28858
28859 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28860
28861         * libio/fileops.c: Fix typos in comments.
28862         * libio/oldfileops.c: Likewise.
28863         * libio/wfileops.c: Likewise.
28864
28865 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
28866
28867         [BZ #1349]
28868         * malloc/Makefile (tests): Add tst-malloc-usable test case.
28869         (tst-malloc-usable-ENV): Set environment for test case.
28870         * malloc/hooks.c (malloc_check_get_size): New function to get
28871         requested size.
28872         * malloc/malloc.c (musable): Use malloc_check_get_size.
28873         * malloc/tst-malloc-usable.c: New test case.
28874
28875 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28876
28877         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
28878
28879 2012-09-05  Allan McRae  <allan@archlinux.org>
28880
28881         [BZ #13966]
28882         * configure.in (CXX_SYSINCLUDES): Use compiler output to
28883         determine header location.
28884         * configure: Regenerated.
28885
28886 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
28887
28888         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
28889         float format.
28890         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
28891         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
28892         format.
28893         (test): Regenerate.
28894
28895 2012-09-04  David S. Miller  <davem@davemloft.net>
28896
28897         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
28898         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
28899         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
28900
28901 2012-09-04  Florian Weimer  <fweimer@redhat.com>
28902
28903         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
28904         failures.
28905
28906         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
28907
28908 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
28909
28910         [BZ #9914]
28911         * libio/iogetdelim.c: Include <limits.h>.
28912         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
28913         + len + 1 would overflow.
28914
28915 2012-09-03  Andreas Jaeger  <aj@suse.de>
28916
28917         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28918         * sysdeps/i386/fpu/libm-test-ulps: Update.
28919
28920 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28921
28922         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
28923         Add s_sinf-sse2, s_conf-sse2.
28924
28925         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
28926         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
28927         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
28928         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
28929
28930         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
28931         for using routine as __sinf_ia32.
28932         Use macro for function declaration and weak_alias.
28933         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
28934         for using routine as __cosf_ia32.
28935         Use macro for function declaration and weak_alias.
28936
28937         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
28938         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
28939
28940         * sysdeps/x86_64/fpu/s_sinf.S: New file.
28941         * sysdeps/x86_64/fpu/s_cosf.S: New file.
28942         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28943
28944         * math/libm-test.inc (cos_test): Add more test cases.
28945         (sin_test): Likewise.
28946         (sincos_test): Likewise.
28947
28948 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28949
28950         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
28951         (IFUNC_RESOLVE): Make pointers to the specialized implementations
28952         hidden.
28953         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
28954
28955 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
28956
28957         [BZ #14538]
28958         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
28959         first element of the GOT.
28960         (elf_machine_load_address): Return the difference between
28961         the runtime address of _DYNAMIC and elf_machine_dynamic ().
28962
28963 2012-09-01  Allan McRae  <allan@archlinux.org>
28964
28965         [BZ #13412]
28966         * configure.in (AWK): Require gawk version 3.0 or later.
28967         * configure: Regenerated.
28968
28969 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
28970
28971         * sysdeps/unix/sysv/linux/kernel-features.h
28972         (__ASSUME_POSIX_CPU_TIMERS): Remove.
28973         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28974         [__NR_clock_getres]: Make code unconditional.
28975         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
28976         (clock_getcpuclockid): Remove code left unreachable by removal of
28977         conditionals.
28978         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
28979         code unconditional.
28980         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28981         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28982         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
28983         Make code unconditional.
28984         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
28985         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28986         * sysdeps/unix/sysv/linux/clock_settime.c
28987         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
28988         conditional code.
28989         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
28990         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
28991
28992 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
28993
28994         [BZ #14476]
28995         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
28996         scripts/test-installation.pl.
28997
28998         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
28999         and $ld_so_version if it is set.
29000
29001 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
29002
29003         [BZ #14516]
29004         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
29005         failure if reading from procfs failed.
29006         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
29007
29008 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
29009
29010         * sysdeps/unix/sysv/linux/kernel-features.h
29011         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
29012         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
29013         Remove conditional code.
29014         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29015         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
29016         Remove conditional code.
29017         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29018         * sysdeps/unix/sysv/linux/i386/fxstat.c
29019         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
29020         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29021         * sysdeps/unix/sysv/linux/i386/fxstatat.c
29022         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
29023         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29024         * sysdeps/unix/sysv/linux/i386/lxstat.c
29025         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
29026         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29027         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
29028         Remove conditional code.
29029         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29030         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
29031         Remove conditional code.
29032         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29033         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
29034         <kernel-features.h>.
29035         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
29036         Remove.
29037         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
29038         Remove conditional code.
29039         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29040         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
29041         Remove conditional.
29042
29043 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
29044
29045         [BZ #5400]
29046         * NEWS: Add fixed bug number.
29047
29048 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
29049
29050         [BZ #14519]
29051         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
29052         underflowing exponent in case of negative sign.
29053         * stdlib/tst-strtod-round-data: Add more tests.
29054         * stdlib/tst-strtod-round.c (tests): Regenerated.
29055
29056         [BZ #3479]
29057         * stdlib/strtod_l.c (NDIG): Remove.
29058         (HEXNDIG): Likewise.
29059         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
29060         smallest representable value.
29061         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
29062         lie within an exact representation of 1/2 ulp of the result.
29063         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
29064         unconditionally.
29065         (TENS_P9_IDX): Define unconditionally.
29066         (TENS_P9_SIZE): Likewise.
29067         (TENS_P10_IDX): Likewise.
29068         (TENS_P10_SIZE): Likewise.
29069         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
29070         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
29071         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
29072         entries for 10^2^13 and 10^2^14.
29073         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
29074         (TENS_P13_IDX): Define.
29075         (TENS_P13_SIZE): Likewise.
29076         (TENS_P14_IDX): Likewise.
29077         (TENS_P14_SIZE): Likewise.
29078         (_fpioconst_pow10): Change array size to
29079         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
29080         unconditional.
29081         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
29082         1024]: Add entries for 10^2^13 and 10^2^14.
29083         [LAST_POW10 > _LAST_POW10]: Remove #error.
29084         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
29085         (_fpioconst_pow10): Change array size to
29086         FPIOCONST_POW10_ARRAY_SIZE.
29087         * stdlib/gen-fpioconst.c: New file.
29088         * stdlib/gen-tst-strtod-round.c: Likewise.
29089         * stdlib/tst-strtod-round-data: Likewise.
29090         * stdlib/tst-strtod-round.c: Likewise.
29091         * stdlib/Makefile (tests): Add tst-strtod-round.
29092
29093         [BZ #14459]
29094         * stdlib/strtod_l.c: Include <stdint.h>.
29095         (NDEBUG): Do not define.
29096         (round_and_return): Change EXPONENT parameter to type intmax_t.
29097         Rearrange calculations to avoid internal overflow possibilities.
29098         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
29099         Rearrange calculations to avoid internal overflow possibilities.
29100         Assert that number fits inside MPNSIZE limbs.
29101         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
29102         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
29103         calculations and add assertions to avoid internal overflow
29104         possibilities.  Add casts to avoid signed/unsigned operations.
29105         * stdlib/tst-strtod-overflow.c: New file.
29106         * stdlib/Makefile (tests): Add tst-strtod-overflow.
29107
29108 2012-08-25  Marek Polacek  <polacek@redhat.com>
29109
29110         * time/time.h: Fix some typos in comments.
29111
29112 2012-08-23  Roland McGrath  <roland@hack.frob.com>
29113
29114         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
29115         * posix/tst-rfc3484-2.c: Likewise.
29116         * posix/tst-rfc3484-3.c: Likewise.
29117
29118 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
29119
29120         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
29121         (EF_ARM_ABI_FLOAT_HARD): Likewise.
29122
29123 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
29124
29125         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
29126         #include of fxstatat64.c.
29127
29128 2012-08-22  Roland McGrath  <roland@hack.frob.com>
29129
29130         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
29131         * shadow/getspent_r.c: Likewise.
29132         * shadow/getspnam.c: Likewise.
29133         * shadow/getspnam_r.c: Likewise.
29134         * gshadow/getsgent.c: Likewise.
29135         * gshadow/getsgent_r.c: Likewise.
29136         * gshadow/getsgnam.c: Likewise.
29137         * gshadow/getsgnam_r.c: Likewise.
29138         * inet/getnetbyad.c: Likewise.
29139         * inet/getnetbyad_r.c: Likewise.
29140         * inet/getnetbynm.c: Likewise.
29141         * inet/getnetbynm_r.c: Likewise.
29142         * inet/getnetent.c: Likewise.
29143         * inet/getnetent_r.c: Likewise.
29144         * inet/getproto.c: Likewise.
29145         * inet/getproto_r.c: Likewise.
29146         * inet/getprtent.c: Likewise.
29147         * inet/getprtent_r.c: Likewise.
29148         * inet/getprtname.c: Likewise.
29149         * inet/getprtname_r.c: Likewise.
29150         * inet/getrpcbyname.c: Likewise.
29151         * inet/getrpcbyname_r.c: Likewise.
29152         * inet/getrpcbynumber.c: Likewise.
29153         * inet/getrpcbynumber_r.c: Likewise.
29154         * inet/getrpcent.c: Likewise.
29155         * inet/getrpcent_r.c: Likewise.
29156         * inet/getaliasent.c: Likewise.
29157         * inet/getaliasent_r.c: Likewise.
29158         * inet/getaliasname.c: Likewise.
29159         * inet/getaliasname_r.c: Likewise.
29160         * nscd/getgrgid_r.c: Likewise.
29161         * nscd/getgrnam_r.c: Likewise.
29162         * nscd/gethstbyad_r.c: Likewise.
29163         * nscd/gethstbynm3_r.c: Likewise.
29164         * nscd/getpwnam_r.c: Likewise.
29165         * nscd/getpwuid_r.c: Likewise.
29166         * nscd/getsrvbynm_r.c: Likewise.
29167         * nscd/getsrvbypt_r.c: Likewise.
29168         * nscd/gai.c: Likewise.
29169
29170         * configure.in (build_nscd): New substituted variable, set
29171         by --disable-build-nscd and defaults to $use_nscd.
29172         * configure: Regenerated.
29173         * config.make.in (build-nscd): New substituted variable.
29174         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
29175         Change conditional to require [$(build-nscd) = yes] as well.
29176         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
29177
29178         [BZ# 13696]
29179         * configure.in (use_nscd): New substituted variable, set by
29180         --disable-nscd.  If enabled, define USE_NSCD.
29181         * configure: Regenerated.
29182         * config.h.in: Add USE_NSCD.
29183         * config.make.in (use-nscd): New substituted variable.
29184         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
29185         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
29186         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
29187         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
29188         (CFLAGS-getgrnam_r.c): Likewise.
29189         (CFLAGS-initgroups.c): Likewise.
29190         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
29191         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
29192         Variables removed.
29193         * inet/getnetgrent_r.c
29194         (nscd_setnetgrent): New function, broken out of ...
29195         (setnetgrent): ... here.  Call it.
29196         (innetgr): Conditionalize nscd bits on [USE_NSCD].
29197         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
29198         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
29199         * nscd/Makefile (routines, aux): Move definitions after include of
29200         Makeconfig.  Conditionalize on [$(use-nscd) != no].
29201         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
29202         Conditionalize on [USE_NSCD].
29203         (is_nscd, nscd_init_cb): Likewise.
29204         (nss_load_library): Conditionalize init callback on [USE_NSCD].
29205         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
29206         * nss/nss_db/db-init.c: Likewise.
29207         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
29208         [USE_NSCD].
29209         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
29210         (make_request): Use it.
29211         (cache_valid_p): New function.
29212         (__check_pf): Use it.
29213         * NEWS: Add item for --disable-nscd.
29214
29215 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
29216
29217         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
29218         to support sed >= 4.2.1-20-ga9bf076.
29219         * configure: Regenerated.
29220
29221 2012-08-22  Roland McGrath  <roland@hack.frob.com>
29222
29223         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
29224         Conditionalize whole body on [IREL].
29225
29226 2012-08-22  Jeff Law <law@redhat.com>
29227
29228         [BZ #14505]
29229         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
29230         if the family is PF_UNSPEC.
29231
29232 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
29233
29234         * Makerules (lib-version): Rename from V.
29235         (install-lib-nosubdir): Change V to lib-version.
29236
29237 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
29238
29239         [BZ #14252]
29240         * powerpc32/power6/wcschr.c: New file.
29241         * powerpc32/power6/wcscpy.c: New file.
29242         * powerpc32/power6/wcsrchr.c: New file.
29243         * powerpc64/power6/wcschr.c: New file.
29244         * powerpc64/power6/wcscpy.c: New file.
29245         * powerpc64/power6/wcsrchr.c: New file.
29246
29247 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
29248
29249         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
29250         (two_way_short_needle): Use it.
29251         * string/strstr.c (AVAILABLE1_USES_J): Define.
29252         * string/strcasestr.c: Likewise.
29253
29254         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
29255         array references.
29256         * string/strcasestr.c (TOLOWER): Make side-effect safe.
29257
29258         [BZ #11607]
29259         * NEWS: Add an entry.
29260         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
29261         define their defaults.
29262         (two_way_short_needle): Detect end-of-string on-the-fly.
29263         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
29264         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
29265         * string/bug-strcasestr1.c: New test.
29266         * string/Makefile: Run it.
29267
29268 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
29269
29270         [BZ #11607]
29271         * string/str-two-way.h (two_way_short_needle): Optimize matching of
29272         the first character.
29273
29274 2012-08-21  Roland McGrath  <roland@hack.frob.com>
29275
29276         * csu/elf-init.c (__libc_csu_irel): Function removed.
29277         * csu/libc-start.c (apply_irel): New function.
29278         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
29279
29280 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
29281
29282         * sysdeps/unix/sysv/linux/kernel-features.h
29283         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
29284         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
29285         <kernel-features.h>.
29286         [__NR_fadvise64_64]: Make code unconditional.
29287         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
29288         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
29289         !__NR_fadvise64_64)]: Likewise.
29290         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
29291         !__NR_fadvise64_64))]: Likewise.
29292         [__NR_fadvise64]: Make code unconditional.
29293         [!__NR_fadvise64]: Remove conditional code.
29294         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
29295         <kernel-features.h>.
29296         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
29297         unconditional.
29298         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
29299         conditional code.
29300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
29301         not include <kernel-features.h>.
29302         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
29303         unconditional.
29304         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
29305         conditional code.
29306         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
29307         include <kernel-features.h>.
29308         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
29309         unconditional.
29310         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
29311         conditional code.
29312
29313 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
29314
29315         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
29316         slight instruction rearrangements per scrollpipe analysis.
29317         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
29318
29319 2012-08-20  Roland McGrath  <roland@hack.frob.com>
29320
29321         * manual/syslog.texi (syslog; vsyslog, closelog):
29322         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
29323         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
29324
29325         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
29326         DSOCAPS to match condition on defining it.
29327
29328 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
29329
29330         * sysdeps/unix/sysv/linux/kernel-features.h
29331         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
29332         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
29333         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
29334         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
29335         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
29336         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
29337         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
29338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
29339         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
29340         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
29341
29342         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
29343         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
29344
29345         * sysdeps/unix/sysv/linux/kernel-features.h
29346         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
29347         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
29348         unconditional.
29349         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29350         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
29351         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
29352         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29353         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
29354         Make code unconditional.
29355         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29356         (__mmap64) [!__NR_mmap2]: Likewise.
29357         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
29358         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
29359         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29360         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
29361         [__NR_mmap2]: Make code unconditional.
29362         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
29363         (__mmap64) [!__NR_mmap2]: Likewise.
29364
29365 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29366
29367         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
29368
29369 2012-08-18  Andreas Jaeger  <aj@suse.de>
29370
29371         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
29372
29373 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
29374
29375         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
29376         * include/unistd.h (__have_sock_cloexec): Likewise.
29377         (__have_pipe2): Likewise.
29378         (__have_dup3): Likewise.
29379
29380 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
29381
29382         [BZ #9685]
29383         * include/unistd.h (__have_pipe2): Change define into an extern int.
29384         (__have_dup3): Likewise.
29385         * socket/have_sock_cloexec.c: Include fcntl.h.
29386         (__have_pipe2): New variable.
29387         (__have_dup3): Likewise.
29388
29389 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
29390
29391         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
29392
29393 2012-08-17  Marek Polacek  <polacek@redhat.com>
29394
29395         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
29396         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
29397
29398 2012-08-17  Roland McGrath  <roland@hack.frob.com>
29399
29400         * configure.in: Add AC_SUBST for sysheaders.
29401         * configure: Regenerated.
29402         * config.make.in (sysheaders): New substituted variable.
29403
29404         * sysdeps/unix/mkfifo.c: Moved ...
29405         * sysdeps/posix/mkfifo.c: ... here.
29406         * sysdeps/unix/mkfifoat.c: Moved ...
29407         * sysdeps/posix/mkfifoat.c: ... here.
29408
29409         * sysdeps/unix/utime.c: Moved ...
29410         * sysdeps/posix/utime.c: ... here.
29411
29412         * sysdeps/unix/time.c: Moved ...
29413         * sysdeps/posix/time.c: ... here.
29414         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
29415         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
29416
29417         * sysdeps/unix/nice.c: Moved ...
29418         * sysdeps/posix/nice.c: ... here.
29419
29420         * sysdeps/unix/alarm.c: Moved ...
29421         * sysdeps/posix/alarm.c: ... here.
29422
29423         * intl/Makefile ($(codeset_mo)): Depend on the input file.
29424
29425 2012-08-17  Jeff Law <law@redhat.com>
29426
29427         * intl/Makefile (codeset_mo): New variable.
29428         ($(codeset_mo)): New target.
29429         (tst-codeset.out): Depend on that.  Remove explicit rule.
29430         (tst-gettext3.out, tst-gettext5.out): Likewise.
29431         (LOCPATH-ENV, tst-codeset-ENV): New variables.
29432         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
29433         * intl/tst-codeset.sh: Remove.
29434         * intl/tst-gettext3.sh: Likewise.
29435         * intl/tst-gettext5.sh: Likewise.
29436
29437 2012-08-17  Roland McGrath  <roland@hack.frob.com>
29438
29439         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
29440         * sysdeps/unix/syscalls.list: ... here.
29441
29442         * sysdeps/posix/getaddrinfo.c
29443         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
29444         (gaiconf_init, gaiconf_reload): Use them.
29445         [!_STATBUF_ST_NSEC]
29446         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
29447         Define using time_t rather than struct timespec.
29448
29449         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
29450         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
29451         Macros removed.
29452         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
29453         [!NO_THREADS].
29454         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
29455         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
29456         Likewise.
29457
29458         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
29459         __libc_cleanup_push argument.
29460
29461         * bits/param.h: New file.
29462         * misc/sys/param.h: New file.
29463         * include/sys/param.h: New file.
29464         * misc/Makefile (headers): Add bits/param.h.
29465         * sysdeps/generic/sys/param.h: File removed.
29466         * sysdeps/unix/sysv/linux/bits/param.h: New file.
29467         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
29468         * sysdeps/mach/hurd/bits/param.h: New file.
29469         * sysdeps/mach/hurd/sys/param.h: File removed.
29470
29471         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
29472         last change.
29473
29474         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
29475         [_IO_MTSAFE_IO].
29476         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
29477         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
29478         New macros.
29479
29480         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
29481         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
29482         rather than -D_IO_MTSAFE_IO conditionally.
29483         * stdio-common/Makefile (CPPFLAGS): Likewise.
29484         * wcsmbs/Makefile (CPPFLAGS): Likewise.
29485         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
29486         Use $(libio-mtsafe).
29487         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
29488         of -D_IO_MTSAFE_IO.
29489         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
29490         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
29491         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
29492         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
29493         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
29494         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
29495         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
29496         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
29497         (CFLAGS-fread_u_chk.c): Likewise.
29498         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
29499         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
29500         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
29501         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
29502         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
29503         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
29504         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
29505         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
29506         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
29507
29508         * libio/Makefile: Test [$(libc-reentrant) = yes]
29509         instead of [$(filter %REENTRANT, $(defines)) nonempty].
29510
29511         * Makeconfig
29512         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
29513         * sysdeps/pthread/configure: File removed.
29514         * sysdeps/pthread/Makeconfig: New file.
29515         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
29516         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
29517
29518 2012-08-16  Gary Benson  <gbenson@redhat.com>
29519
29520         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
29521         unmapping the first object in a namespace.
29522
29523 2012-08-16  Roland McGrath  <roland@hack.frob.com>
29524
29525         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
29526         (__internal_setnetgrent): ... this.  Add internal_function to
29527         definition.  Add libc_hidden_def.
29528         (setnetgrent): Update caller.
29529         (internal_endnetgrent): Renamed to ...
29530         (__internal_endnetgrent): ... this.  Add internal_function to
29531         definition.  Add libc_hidden_def.
29532         (endnetgrent): Update caller.
29533         (internal_getnetgrent_r): Renamed to ...
29534         (__internal_getnetgrent_r): ... this.  Add internal_function to
29535         definition.  Add libc_hidden_def.
29536         (__getnetgrent_r): Update caller.
29537         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
29538
29539 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
29540
29541         * stdlib/longlong.h: Update from GCC.
29542
29543 2012-08-16  Roland McGrath  <roland@hack.frob.com>
29544
29545         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
29546         on _QL, which is set by umul_ppmm but never used.
29547         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
29548         variables, which are set by GMP macros but never used.
29549         * stdio-common/_itowa.c (_itowa): Likewise.
29550         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
29551         * stdlib/mod_1.c (mpn_mod_1): Likewise.
29552
29553 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
29554
29555         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
29556         struct La_sh_regs is not constant.
29557         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
29558         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
29559         and struct La_sparc64_regs are not constant.
29560
29561 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
29562
29563         * sysdeps/unix/sysv/linux/kernel-features.h
29564         (__ASSUME_POSIX_TIMERS): Remove.
29565         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
29566         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29567         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
29568         Make code unconditional.
29569         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29570         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
29571         Make code unconditional.
29572         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29573         * sysdeps/unix/sysv/linux/clock_nanosleep.c
29574         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
29575         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29576         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
29577         Make code unconditional.
29578         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
29579         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
29580         (__libc_missing_posix_timers): Remove.
29581
29582 2012-08-15  Roland McGrath  <roland@hack.frob.com>
29583
29584         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
29585         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
29586
29587         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
29588
29589         * elf/dl-sym.c: Include <stdlib.h>.
29590
29591         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
29592         constants, which avoids warnings in 32-bit builds.
29593
29594         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
29595         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
29596
29597         * misc/lseek.c: File moved to ...
29598         * io/lseek.c: ... here.
29599
29600         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
29601
29602         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
29603         shifting LEN more than 31 bits at once.
29604
29605 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29606
29607         [BZ #14195]
29608         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
29609         segmentation fault for a case of two empty input strings.
29610         * string/test-strncasecmp.c (check1): Renamed to...
29611         (bz12205): ...this.
29612         (bz14195): Add new testcase for two empty input strings and N > 0.
29613         (test_main): Call new testcase, adapt for renamed function.
29614
29615 2012-08-15  Andreas Jaeger  <aj@suse.de>
29616
29617         [BZ #14090]
29618         * crypt/md5test2.c: New test, based on test supplied by Serge
29619         Belyshev <belyshev@depni.sinp.msu.ru>.
29620         * crypt/Makefile (xtests): Add md5test-giant..
29621         * crypt/Makefile ($(objpfx)md5test-giant): Add.
29622
29623 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         [BZ #14090]
29626         * crypt/md5.c (md5_process_block): Don't assume the buffer
29627         length is less than 2**32.
29628         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
29629         length is less than 2**64.
29630
29631 2012-08-15  Roland McGrath  <roland@hack.frob.com>
29632
29633         * string/str-two-way.h: Include <sys/param.h>.
29634         (MAX): Macro removed.
29635
29636         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
29637         Move #define and #undef of memmove to just before and after
29638         including <string.h>.
29639
29640         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
29641         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
29642         and after including <string.h>.  Move declarations of
29643         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
29644         to before #include "string/memmove.c".
29645
29646         * include/dirent.h: Declare __getdirentries.
29647
29648         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
29649         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
29650
29651 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
29652
29653         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
29654         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
29655         * sysdeps/i386/configure: Regenerated.
29656         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
29657         STABS_CURRENT_FILE, and STABS_FUN.
29658         (END): Remove call to STABS_FUN_END.
29659         (STABS_CURRENT_FILE1): Delete.
29660         (STABS_CURRENT_FILE): Likewise.
29661         (STABS_FUN): Likewise.
29662         (STABS_FUN_END): Likewise.
29663         (STABS_FUN2): Likewise.
29664         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
29665         * sysdeps/x86_64/configure: Regenerated.
29666
29667 2012-08-14  Roland McGrath  <roland@hack.frob.com>
29668
29669         * elf/dl-open.c: Include <atomic.h>.
29670         * elf/dl-lookup.c: Likewise.
29671
29672 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
29673
29674         * sysdeps/unix/sysv/linux/kernel-features.h
29675         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
29676         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
29677         unconditionally.
29678         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
29679         unconditionally.
29680         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
29681         condition on __ASSUME_CLONE_THREAD_FLAGS.
29682
29683 2012-08-14  Andreas Jaeger  <aj@suse.de>
29684
29685         * sysdeps/i386/fpu/libm-test-ulps: Update.
29686
29687 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
29688
29689         * include/atomic.h (atomic_exchange_and_add): Split into ...
29690         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
29691         New atomic macros.
29692
29693 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
29694
29695         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29696
29697 2012-08-13  Jeff Law <law@redhat.com>
29698
29699         * manual/stdio.texi (snprintf): Clarify handling of the trailing
29700         null byte in the output string.
29701
29702 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
29703
29704         * sysdeps/unix/sysv/linux/kernel-features.h
29705         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
29706         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
29707         (__ASSUME_ARG_MAX_STACK_BASED): Define.
29708         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
29709         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
29710         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
29711         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
29712
29713 2012-08-09  Jeff Law <law@redhat.com>
29714
29715         [BZ #13939]
29716         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
29717         When avoid_arena is set, don't retry in the that arena.  Pick the
29718         next one, whatever it might be.
29719         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
29720         (arena_lock): Pass in new parameter to arena_get2.
29721         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
29722         arena_get2.
29723         (__libc_malloc): Unify retrying after main arena failure with
29724         __libc_memalign version.
29725         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
29726
29727 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
29728
29729         [BZ #14166]
29730         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
29731         to __redirect_strstr.
29732         (__strstr_sse42): Use typeof __redirect_strstr.
29733         (__strstr_ia32): Likewise.
29734         (__libc_strstr): New prototype.
29735         (strstr): Renamed to ...
29736         (__libc_strstr): This.
29737         (strstr): New strong alias of __libc_strstr.
29738         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
29739         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
29740         __redirect_time.
29741         Include <time.h>.
29742         (__libc_time): New prototype.
29743         (time_ifunc): Replace time with __libc_time.
29744         (time): New strong alias and hidden definition of __libc_time.
29745         (__GI_time): Remove strong alias.
29746         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
29747         Include <stddef.h>.
29748         (memmove): Redefined to __redirect_memmove.
29749         (__memmove_sse2): Use typeof __redirect_memmove.
29750         (__memmove_ssse3): Likewise.
29751         (__memmove_ssse3_back): Likewise.
29752         (__libc_memmove): New prototype.
29753         (memmove): Renamed to ...
29754         (__libc_memmove): This.
29755         (memmove): New strong alias of __libc_memmove.
29756
29757 2012-08-08  Mark Salter  <msalter@redhat.com>
29758
29759         * elf/elf.h
29760         (R_MN10300_TLS_GD): Define.
29761         (R_MN10300_TLS_LD): Likewise.
29762         (R_MN10300_TLS_LDO): Likewise.
29763         (R_MN10300_TLS_GOTIE): Likewise.
29764         (R_MN10300_TLS_IE): Likewise.
29765         (R_MN10300_TLS_LE): Likewise.
29766         (R_MN10300_TLS_DTPMOD): Likewise.
29767         (R_MN10300_TLS_DTPOFF): Likewise.
29768         (R_MN10300_TLS_TPOFF): Likewise.
29769         (R_MN10300_SYM_DIFF): Likewise.
29770         (R_MN10300_ALIGN): Likewise.
29771         (R_MN10300_NUM): Update.
29772
29773 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
29774
29775         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
29776         Remove.
29777
29778 2012-08-08  Roland McGrath  <roland@hack.frob.com>
29779
29780         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
29781
29782         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
29783         sysdeps/unix -> sysdeps/posix move.
29784         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
29785
29786 2012-08-07      Allan McRae     <allan@archlinux.org>
29787
29788         [BZ #14303]
29789         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
29790         (SUNOS_CPP): Likewise.
29791         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
29792         not found.
29793         (open_input): Call CPP using execvp.
29794
29795 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29796
29797         * sysdeps/unix/sysv/linux/kernel-features.h
29798         (__ASSUME_PROT_GROWSUPDOWN): Remove.
29799         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29800         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29801         (__ASSUME_WAITID_SYSCALL): Likewise.
29802         * sysdeps/unix/sysv/linux/dl-execstack.c
29803         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
29804         code unconditional.
29805         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
29806         conditional code.
29807         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
29808         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
29809         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
29810         code.
29811         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
29812         unconditional.
29813         [__ASSUME_WAITID_SYSCALL]: Likewise.
29814         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
29815
29816 2012-08-07  Roland McGrath  <roland@hack.frob.com>
29817
29818         * sysdeps/unix/closedir.c: Renamed to ...
29819         * sysdeps/posix/closedir.c: ... here.
29820         * sysdeps/unix/dirfd.c: Renamed to ...
29821         * sysdeps/posix/dirfd.c: ... here.
29822         * sysdeps/unix/dirstream.h: Renamed to ...
29823         * sysdeps/posix/dirstream.h: ... here.
29824         * sysdeps/unix/fdopendir.c: Renamed to ...
29825         * sysdeps/posix/fdopendir.c: ... here.
29826         * sysdeps/unix/opendir.c: Renamed to ...
29827         * sysdeps/posix/opendir.c: ... here.
29828         * sysdeps/unix/readdir.c: Renamed to ...
29829         * sysdeps/posix/readdir.c: ... here.
29830         * sysdeps/unix/readdir_r.c: Renamed to ...
29831         * sysdeps/posix/readdir_r.c: ... here.
29832         * sysdeps/unix/rewinddir.c: Renamed to ...
29833         * sysdeps/posix/rewinddir.c: ... here.
29834         * sysdeps/unix/seekdir.c: Renamed to ...
29835         * sysdeps/posix/seekdir.c: ... here.
29836         * sysdeps/unix/telldir.c: Renamed to ...
29837         * sysdeps/posix/telldir.c: ... here.
29838         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
29839         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
29840         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
29841         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
29842
29843         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
29844         * bits/fcntl.h: ... here.
29845
29846         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
29847         not 0.
29848         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
29849         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
29850         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
29851         (struct flock): Move l_start, l_len to the beginning.
29852         Use __pid_t for l_pid.
29853         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
29854         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
29855         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
29856         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
29857         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
29858         [__USE_LARGEFILE64] (struct flock64): New type.
29859         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
29860
29861         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
29862         * bits/dirent.h: ... here.
29863
29864         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
29865         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
29866
29867 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
29868
29869         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29870         Change from 2.6.0 to 2.6.16.
29871         * sysdeps/unix/sysv/linux/configure: Regenerated.
29872         * sysdeps/unix/sysv/linux/kernel-features.h
29873         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
29874         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
29875         version.
29876         (__ASSUME_UTIMES): Likewise.
29877         (__ASSUME_CLONE_STOPPED): Remove.
29878         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
29879         architectures, not kernel version.
29880         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
29881         (__ASSUME_NO_CLONE_DETACHED): Likewise.
29882         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
29883         (__ASSUME_WAITID_SYSCALL): Likewise.
29884         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
29885         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
29886         * README: State 2.6.16 as minimum Linux kernel version.  Do not
29887         refer to older versions.
29888
29889 2012-08-06  Roland McGrath  <roland@hack.frob.com>
29890
29891         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
29892         Define alphasort64 as an alias.
29893         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
29894         Define versionsort64 as an alias.
29895         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
29896         Define scandir64 as an alias.
29897         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
29898         Define scandirat64 as an alias.
29899         * dirent/alphasort64.c (alphasort64):
29900         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
29901         * dirent/versionsort64.c: Likewise.
29902         * dirent/scandir64.c: Likewise.
29903         * dirent/scandirat64.c: Likewise.
29904         * sysdeps/wordsize-64/alphasort.c: File removed.
29905         * sysdeps/wordsize-64/alphasort64.c: File removed.
29906         * sysdeps/wordsize-64/scandir.c: File removed.
29907         * sysdeps/wordsize-64/scandir64.c: File removed.
29908         * sysdeps/wordsize-64/scandirat.c: File removed.
29909         * sysdeps/wordsize-64/scandirat64.c: File removed.
29910         * sysdeps/wordsize-64/versionsort.c: File removed.
29911         * sysdeps/wordsize-64/versionsort64.c: File removed.
29912         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
29913         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
29914         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
29915         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
29916         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
29917         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
29918         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
29919         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
29920
29921         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
29922         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29923         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
29924         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29925         [defined __arch64__ || defined __sparcv9]
29926         (__INO_T_MATCHES_INO64_T): New macro.
29927         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29928         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
29929         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
29930         * sysdeps/unix/sysv/linux/bits/dirent.h
29931         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
29932         (_DIRENT_MATCHES_DIRENT64): New macro.
29933
29934         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
29935         Define lockf64 as an alias.
29936         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
29937         Define fseeko64 as an alias.
29938         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
29939         Define ftello64 as an alias.
29940         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
29941         Define _IO_fgetpos64 and fgetpos64 as aliases.
29942         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
29943         Define _IO_fsetpos64 and fsetpos64 as aliases.
29944         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
29945         Conditionalize body on this.
29946         * libio/fseeko64.c: Likewise.
29947         * libio/ftello64.c: Likewise.
29948         * libio/iofgetpos64.c: Likewise.
29949         * libio/iofsetpos64.c: Likewise.
29950         * sysdeps/wordsize-64/lockf.c: File removed.
29951         * sysdeps/wordsize-64/lockf64.c: File removed.
29952         * sysdeps/wordsize-64/fseeko.c: File removed.
29953         * sysdeps/wordsize-64/fseeko64.c: File removed.
29954         * sysdeps/wordsize-64/ftello.c: File removed.
29955         * sysdeps/wordsize-64/ftello64.c: File removed.
29956         * sysdeps/wordsize-64/iofgetpos.c: File removed.
29957         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
29958         * sysdeps/wordsize-64/iofsetpos.c: File removed.
29959         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
29960         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
29961         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
29962         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
29963         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
29964         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
29965         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
29966         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
29967         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
29968         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
29969         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
29970
29971         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29972         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
29973         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
29974         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
29975         [defined __arch64__ || defined __sparcv9]
29976         (__OFF_T_MATCHES_OFF64_T): New macro.
29977         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
29978         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
29979         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
29980         (__OFF_T_MATCHES_OFF64_T): New macro.
29981
29982 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29983
29984         * stdlib/secure-getenv.c (__secure_getenv): Replace
29985         GLIBC_2_16 with GLIBC_2_17.
29986
29987 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
29988
29989         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
29990         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
29991
29992 2012-08-03  David S. Miller  <davem@davemloft.net>
29993
29994         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29995
29996 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
29997
29998         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
29999         Remove.
30000         (__ASSUME_CORRECT_SI_PID): Likewise.
30001         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
30002         (__ASSUME_TMPFS_NAME): Likewise.
30003         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
30004         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
30005         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
30006         (HAVE_AUX_SECURE): Make definition unconditional.
30007         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
30008         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
30009
30010 2012-08-03  Roland McGrath  <roland@hack.frob.com>
30011
30012         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
30013         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
30014         * sysdeps/mach/hurd/eloop-threshold.h: New file.
30015         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
30016         __eloop_threshold instead of SYMLOOP_MAX.
30017
30018         * sysdeps/generic/eloop-threshold.h: New file.
30019         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
30020         of MAXSYMLINKS.
30021         * elf/chroot_canon.c (chroot_canon): Likewise.
30022
30023 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
30024
30025         [BZ #13717]
30026         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30027         Change to 2.6.0 everywhere.
30028         * sysdeps/unix/sysv/linux/configure: Regenerated.
30029         * sysdeps/unix/sysv/linux/kernel-features.h
30030         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
30031         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
30032         kernel versions.
30033         (__ASSUME_POSIX_TIMERS): Define unconditionally.
30034         (__ASSUME_FUTEX_REQUEUE): Remove.
30035         (__ASSUME_STATFS64): Define unconditionally.
30036         (__ASSUME_AT_SECURE): Likewise.
30037         (__ASSUME_CORRECT_SI_PID): Likewise.
30038         (__ASSUME_TGKILL): Define without depending on kernel version for
30039         i386.
30040         (__ASSUME_UTIMES): Likewise.
30041         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
30042         kernel version.
30043         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
30044         (__ASSUME_TMPFS_NAME): Likewise.
30045         * README: Update reference to Linux kernel versions.
30046
30047 2012-08-02  Marek Polacek  <polacek@redhat.com>
30048
30049         [BZ# 14150]
30050         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
30051         libc_cv_asm_type_prefix with %.
30052         * configure: Regenerated.
30053         * include/libc-symbols.h: Remove comment about
30054         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
30055         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
30056         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
30057         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
30058         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
30059         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
30060         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
30061         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
30062         * elf/tst-unique2mod1.c: Likewise.
30063         * elf/tst-unique1mod2.c: Likewise.
30064         * elf/tst-unique1mod1.c: Likewise.
30065         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
30066         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
30067         Replace ASM_TYPE_DIRECTIVE with .type.
30068         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30069         * sysdeps/i386/sysdep.h: Likewise.
30070         * sysdeps/x86_64/sysdep.h: Likewise.
30071         * sysdeps/sh/sysdep.h: Likewise.
30072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
30073         Do not define ASM_TYPE_DIRECTIVE.
30074         * sysdeps/powerpc/sysdep.h: Likewise.
30075         * sysdeps/powerpc/powerpc32/sysdep.h:
30076         Replace ASM_TYPE_DIRECTIVE with .type.
30077         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30078         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30079         * sysdeps/i386/fpu/e_powf.S: Likewise.
30080         * sysdeps/i386/fpu/e_expl.S: Likewise.
30081         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30082         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30083         * sysdeps/i386/fpu/e_pow.S: Likewise.
30084         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30085         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30086         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30087         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30088         * sysdeps/i386/fpu/e_log2.S: Likewise.
30089         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30090         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30091         * sysdeps/i386/fpu/e_powl.S: Likewise.
30092         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30093         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30094         * sysdeps/i386/fpu/e_logl.S: Likewise.
30095         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30096         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30097         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30098         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30099         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30100         * sysdeps/i386/fpu/e_log.S: Likewise.
30101         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30102         * sysdeps/i386/fpu/e_logf.S: Likewise.
30103         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30104         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30105         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30106         * sysdeps/i386/fpu/e_log10.S: Likewise.
30107         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30108         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30109         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30110         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30111         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30112         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30113         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30114         * sysdeps/i386/i686/strtok.S: Likewise.
30115         * sysdeps/i386/i386-mcount.S: Likewise.
30116         * sysdeps/i386/strtok.S: Likewise.
30117         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
30118         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30119         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30120         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30121         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
30122         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30123         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30124         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30125         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30126         * sysdeps/x86_64/_mcount.S: Likewise.
30127         * sysdeps/x86_64/strtok.S: Likewise.
30128         * sysdeps/sh/_mcount.S: Likewise.
30129
30130 2012-08-01  Roland McGrath  <roland@hack.frob.com>
30131
30132         * libio/iofopen.c: Include <fcntl.h>.
30133         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
30134         (_IO_fopen64, fopen64): Define as aliases.
30135         * libio/iofopen64.c: Include <fcntl.h>.
30136         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
30137         Conditionalize body on this.
30138         * sysdeps/wordsize-64/iofopen.c: File removed.
30139         * sysdeps/wordsize-64/iofopen64.c: File removed.
30140
30141 2012-08-01  Marek Polacek  <polacek@redhat.com>
30142
30143         * libc/Makeconfig: Use elf in place of binfmt-subdir.
30144         Use dlfcn directly instead of a variable.
30145         (binfmt-subdir): Do not define.
30146         (dlfcn): Likewise.
30147
30148 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
30149
30150         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
30151         Remove all definitions.
30152         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
30153         <kernel-features.h>.
30154         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
30155         (miss_F_GETOWN_EX): Remove all definitions.
30156         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
30157         macro definition.
30158         [!__ASSUME_FCNTL64]: Remove conditional code.
30159         [__ASSUME_FCNTL64]: Make code unconditional.
30160         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
30161         <kernel-features.h>.
30162         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
30163         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
30164         (lockf64) [__NR_fcntl64]: Make code unconditional.
30165         (lockf64) [__ASSUME_FCNTL64]: Likewise.
30166
30167         * sysdeps/unix/sysv/linux/kernel-features.h
30168         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
30169         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
30170         Make code unconditional.
30171         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30172         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
30174         [__NR_vfork]: Make code unconditional.
30175         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30176         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
30178         [__NR_vfork]: Make code unconditional.
30179         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30180         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30181
30182 2012-08-01  Roland McGrath  <roland@hack.frob.com>
30183
30184         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
30185         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
30186
30187         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30188         Define mkstemp64 as an alias.
30189         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30190         Define mkstemps64 as an alias.
30191         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30192         Define mkostemp64 as an alias.
30193         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30194         Define mkostemps64 as an alias.
30195         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
30196         Conditionalize body on this.
30197         * misc/mkostemp64.c: Likewise.
30198         * misc/mkostemps64.c: Likewise.
30199         * misc/mkstemps64.c: Likewise.
30200         * sysdeps/wordsize-64/mkstemp64.c: File removed.
30201         * sysdeps/wordsize-64/mkostemp64.c: File removed.
30202         * sysdeps/wordsize-64/mkostemp.c: File removed.
30203         * sysdeps/wordsize-64/mkstemp.c: File removed.
30204         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
30205         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
30206         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
30207         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
30208
30209         [BZ #14138]
30210         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
30211         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
30212         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
30213         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
30214
30215         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
30216         compat_symbol macros from <shlib-compat.h> rather than the underlying
30217         default_symbol_version and symbol_version macros, so that DEFAULT
30218         lines in shlib-versions are respected.
30219         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
30220
30221 2012-08-01  Florian Weimer  <fweimer@redhat.com>
30222
30223         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
30224         Declare with warn_unused_result.
30225         (setgid, setregid, setegid, setresgid): Likewise.
30226         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
30227         Likewise.
30228         * WUR-REPORT: Remove set*id functions.
30229
30230 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
30231
30232         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
30233
30234 2012-07-31  Roland McGrath  <roland@hack.frob.com>
30235
30236         [BZ #10191]
30237         * include/sys/socket.h (__libc_accept, __libc_accept4):
30238         Add attribute_hidden.
30239         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
30240
30241         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
30242         use of PTR_MANGLE.
30243         * inet/getnetgrent_r.c (setup): Likewise.
30244
30245         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
30246
30247 2012-07-31  David S. Miller  <davem@davemloft.net>
30248
30249         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30250
30251 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
30252
30253         [BZ #13629]
30254         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
30255         value between 1.0 and 2.0 and smaller part has absolute value less
30256         than 1.0.
30257         * math/s_clog10.c (__clog10): Likewise.
30258         * math/s_clog10f.c (__clog10f): Likewise.
30259         * math/s_clog10l.c (__clog10l): Likewise.
30260         * math/s_clogf.c (__clogf): Likewise.
30261         * math/s_clogl.c (__clogl): Likewise.
30262         * math/libm-test.inc (clog_test): Add more tests.
30263         (clog10_test): Likewise.
30264         * sysdeps/i386/fpu/libm-test-ulps: Update.
30265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30266
30267 2012-07-31  Florian Weimer  <fweimer@redhat.com>
30268
30269         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
30270         Exit with zero in case no suitable GID is found, and write a
30271         message to standard error.
30272
30273 2012-07-30  Roland McGrath  <roland@hack.frob.com>
30274
30275         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
30276         rather than to 1.
30277         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
30278         (MAXPATHLEN): Removed.
30279         (NOGROUP, NODEV): New macros.
30280         (setbit, clrbit, isset, isclr): New macros.
30281         (howmany, roundup, powerof2): New macros.
30282         (DEV_BSIZE): New macro.
30283
30284         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
30285         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
30286
30287         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
30288         definition on [!__NO_LONG_DOUBLE_MATH].
30289
30290         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
30291         PTR_MANGLE and PTR_DEMANGLE.
30292
30293         * socket/accept4.c (accept4): Rename to __libc_accept4.
30294         Define accept4 as a weak alias.
30295
30296         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
30297         on [_DIRENT_HAVE_D_TYPE].
30298         * io/ftw.c (ftw_dir): Likewise.
30299
30300         * io/xmknod.c (__xmknod): Don't check PATH for being null.
30301
30302         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
30303
30304         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
30305         Use the BSD numbers rather than the arbitrary ones we had.
30306         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
30307         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
30308         (SIGXCPU, SIGXFSZ): New macros.
30309         (_NSIG): Now 32.
30310
30311         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
30312         initializer on [_LIBC_REENTRANT].
30313
30314         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
30315         definitions inside [_POSIX_MAPPED_FILES].
30316
30317         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
30318
30319         * dirent/opendir.c: Include <fcntl.h>.
30320
30321         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
30322         (__libc_getspecific): Likewise.
30323         (__libc_key_create): Likewise.
30324
30325         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
30326         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
30327         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
30328         (tmpfile64): Define as alias.
30329         * sysdeps/wordsize-64/tmpfile.c: File removed.
30330         * sysdeps/wordsize-64/tmpfile64.c: File removed.
30331         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
30332         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
30333
30334         * stdio-common/vfscanf.c: Include <stdbool.h>.
30335         * nss/makedb.c: Likewise.
30336         * stdio-common/_i18n_number.h: Likewise.
30337         * argp/argp-help.c: Likewise.
30338         * posix/wordexp.c: Likewise.
30339         * sysdeps/posix/spawni.c: Likewise.
30340         * nss/nss_files/files-initgroups.c: Likewise.
30341         * stdio-common/reg-modifier.c: Include <stdlib.h>.
30342         * nss/nss_files/files-initgroups.c: Likewise.
30343         * nss/nss_db/db-netgrp.c: Likewise.
30344         * nss/nss_db/db-initgroups.c: Likewise.
30345         * io/fchmodat.c: Include <sys/stat.h>.
30346
30347         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
30348         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
30349
30350         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
30351         [HAVE_MMAP].
30352
30353         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
30354         Add multiple inclusion protection.
30355
30356 2012-07-27  David S. Miller  <davem@davemloft.net>
30357
30358         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30359
30360 2012-07-27  Gary Benson  <gbenson@redhat.com>
30361
30362         [BZ #14298]
30363         * elf/rtld.c: Include <stap-probe.h>.
30364         (dl_main): Added static probes "init_start" and "init_complete".
30365         * elf/dl-load.c: Include <stap-probe.h>.
30366         (lose): Take new parameter "nsid".
30367         Added static probe "map_failed".
30368         (_dl_map_object_from_fd): Pass namespace id to lose.
30369         Added static probe "map_start".
30370         (open_verify): Pass namespace id to lose.
30371         * elf/dl-open.c: Include <stap-probe.h>.
30372         (dl_open_worker) Added static probes "map_complete", "reloc_start"
30373         and "reloc_complete".
30374         * elf/dl-close.c: Include <stap-probe.h>.
30375         (_dl_close_worker): Added static probes "unmap_start" and
30376         "unmap_complete".
30377         * elf/rtld-debugger-interface.txt: New file documenting the above.
30378
30379 2012-07-26  Roland McGrath  <roland@hack.frob.com>
30380
30381         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
30382         rather than a string variable.
30383         * sunrpc/rpc_main.c (h_output): Likewise.
30384         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
30385
30386 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
30387
30388         * inet/check_native.c: New file.
30389
30390 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
30391
30392         [BZ #13629]
30393         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
30394         if larger part has absolute value 1.0.
30395         * math/s_clog10.c (__clog10): Likewise.
30396         * math/s_clog10f.c (__clog10f): Likewise.
30397         * math/s_clog10l.c (__clog10l): Likewise.
30398         * math/s_clogf.c (__clogf): Likewise.
30399         * math/s_clogl.c (__clogl): Likewise.
30400         * math/libm-test.inc (clog_test): Add more tests.
30401         (clog10_test): Likewise.
30402         * sysdeps/i386/fpu/libm-test-ulps: Update.
30403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30404
30405         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
30406         (pltexit): Likewise.
30407         (La_regs): Likewise.
30408         (La_retval): Likewise.
30409         (int_retval): Likewise.
30410         Update #error for removed macros to refer only to definitions in
30411         tst-audit.h.
30412         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
30413         macro.
30414         (pltexit): Likewise.
30415         (La_regs): Likewise.
30416         (La_retval): Likewise.
30417         (int_retval): Likewise.
30418         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
30419         macro.
30420         (pltexit): Likewise.
30421         (La_regs): Likewise.
30422         (La_retval): Likewise.
30423         (int_retval): Likewise.
30424         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
30425         macro.
30426         (pltexit): Likewise.
30427         (La_regs): Likewise.
30428         (La_retval): Likewise.
30429         (int_retval): Likewise.
30430         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
30431         macro.
30432         (pltexit): Likewise.
30433         (La_regs): Likewise.
30434         (La_retval): Likewise.
30435         (int_retval): Likewise.
30436         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
30437         macro.
30438         (pltexit): Likewise.
30439         (La_regs): Likewise.
30440         (La_retval): Likewise.
30441         (int_retval): Likewise.
30442         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
30443         macro.
30444         (pltexit): Likewise.
30445         (La_regs): Likewise.
30446         (La_retval): Likewise.
30447         (int_retval): Likewise.
30448         * sysdeps/generic/tst-audit.h: Update comment to refer only to
30449         macro definitions in tst-audit.h.
30450         * sysdeps/i386/tst-audit.h: New file.
30451         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
30452         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
30453         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
30454         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
30455         * sysdeps/sh/tst-audit.h: Likewise.
30456         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
30457         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
30458         * sysdeps/x86_64/tst-audit.h: Likewise.
30459
30460 2012-07-26  Andreas Jaeger  <aj@suse.de>
30461
30462         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
30463         ptrace.
30464
30465         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
30466         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
30467         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
30468         PTRACE_O_MASK.
30469         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
30470         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
30471         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
30472
30473         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
30474         value.
30475
30476         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
30477         _sigsys.
30478         (si_call_addr, si_syscall, si_arch): Define new macro.
30479         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
30480         _sigsys.
30481         (si_call_addr, si_syscall, si_arch): Define new marcro.
30482         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
30483         _sigsys.
30484         (si_call_addr, si_syscall, si_arch): Define new macro.
30485         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
30486         _sigsys.
30487         (si_call_addr, si_syscall, si_arch): Define new macro.
30488
30489 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
30490
30491         [BZ #13717]
30492         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30493         Change to 2.4.21 where previously 2.4.1.
30494         * sysdeps/unix/sysv/linux/configure: Regenerated.
30495         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
30496         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
30497         Linux kernel version.
30498         (__ASSUME_STD_AUXV): Remove.
30499         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
30500         kernel version.
30501         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
30502         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
30503         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
30504         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
30505         (__ASSUME_NETLINK_SUPPORT): Likewise.
30506         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
30507         (__no_netlink_support): Remove conditional definition.
30508         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
30509         Remove.
30510         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
30511         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
30512         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
30513         (if_nameindex_ioctl): Remove.
30514         (if_nameindex_netlink): Do not handle __no_netlink_support.
30515         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
30516         code.
30517         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
30518         Remove conditional code.
30519         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
30520         code.
30521         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
30522         unconditional.
30523         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
30524         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
30525         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
30526         Remove.
30527         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
30528         [!__ASSUME_STD_AUXV]: Remove conditional code.
30529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
30530         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
30531         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
30532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
30533         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
30534         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
30535         code.
30536         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
30537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
30538         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
30539         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
30540         conditional code.
30541         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
30542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
30543         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
30544         code.
30545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
30546         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
30547         conditional code.
30548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
30549         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30550         code unconditional.
30551         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30552         conditional code.
30553         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30554         unconditional.
30555         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30556         conditional code.
30557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
30558         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30559         unconditional.
30560         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30561         conditional code.
30562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
30563         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30564         code unconditional.
30565         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30566         conditional code.
30567         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30568         unconditional.
30569         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30570         conditional code.
30571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
30572         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
30573         code unconditional.
30574         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30575         conditional code.
30576         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
30577         unconditional.
30578         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
30579         conditional code.
30580
30581 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
30582
30583         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
30584         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
30585         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
30586         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
30587         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
30588         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
30589         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
30590         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
30591         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
30592         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
30593         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
30594         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
30595         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
30596         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
30597         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
30598         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
30599         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
30600         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
30601         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
30602         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
30603         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
30604         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
30605         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
30606
30607 2012-07-25  Florian Weimer  <fweimer@redhat.com>
30608
30609         * Versions.def: Add GLIBC_2.17.
30610         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
30611         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
30612         Introduce __libc_secure_getenv.
30613         * stdlib/Versions (2.17): Add secure_getenv
30614         (GLIBC_PRIVATE): Add __libc_secure_getenv.
30615         * stdlib/secure-getenv.c: Rename __secure_getenv to
30616         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
30617         symbol __secure_getenv for GLIBC_2.0.
30618         * stdlib/tst-secure-getenv.c: New.
30619         * stdlib/Makefile (tests): Add testcase.
30620         * manual/startup.texi (Environment Access): Document
30621         secure_getenv.
30622         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
30623         __libc_secure_getenv.
30624         * inet/ruserpass.c (ruserpass): Likewise.
30625         * malloc/mtrace.c (mtrace): Likewise.
30626         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
30627         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
30628         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
30629         * sysdeps/posix/tempname.c: Likewise.  Evaluate
30630         HAVE_SECURE_GETENV.
30631         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
30632         __secure_getenv to __libc_secure_getenv.
30633         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
30634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30635         Likewise.
30636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30637         Likewise.
30638         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
30639         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
30640         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
30641         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
30642         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
30643         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
30644         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
30645
30646 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
30647
30648         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
30649         (struct La_i86_retval): Likewise.
30650         (struct La_x86_64_regs): Likewise.
30651         (struct La_x86_64_retval): Likewise.
30652         (struct La_x32_regs): Likewise.
30653         (struct La_x32_retval): Likewise.
30654         (struct La_ppc32_regs): Likewise.
30655         (struct La_ppc32_retval): Likewise.
30656         (struct La_ppc64_regs): Likewise.
30657         (struct La_ppc64_retval): Likewise.
30658         (struct La_sh_regs): Likewise.
30659         (struct La_sh_retval): Likewise.
30660         (struct La_s390_32_regs): Likewise.
30661         (struct La_s390_32_retval): Likewise.
30662         (struct La_s390_64_regs): Likewise.
30663         (struct La_s390_64_retval): Likewise.
30664         (struct La_sparc32_regs): Likewise.
30665         (struct La_sparc32_retval): Likewise.
30666         (struct La_sparc64_regs): Likewise.
30667         (struct La_sparc64_retval): Likewise.
30668         (struct audit_ifaces): Remove architecture-specific pltenter and
30669         pltexit members.
30670         * sysdeps/i386/ldsodefs.h: New file.
30671         * sysdeps/powerpc/ldsodefs.h: Likewise.
30672         * sysdeps/s390/ldsodefs.h: Likewise.
30673         * sysdeps/sh/ldsodefs.h: Likewise.
30674         * sysdeps/sparc/ldsodefs.h: Likewise.
30675         * sysdeps/x86_64/ldsodefs.h: Likewise.
30676
30677 2012-07-25  Marek Polacek  <polacek@redhat.com>
30678
30679         [BZ #6808]
30680         * math/libm-test.inc (yn_test): Add another test.
30681         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
30682         to ERANGE when the result is +-Inf.
30683         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
30684         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
30685         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
30686         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
30687
30688 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
30689
30690         * conform/data/time.h-data (NULL): Use macro-constant.  Require
30691         equal to 0.
30692         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
30693         clock_t.
30694         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
30695
30696 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
30697
30698         * configure.in <sysdeps resolving>: Correct printing
30699         Implies_before.
30700         * configure: Regenerate.
30701
30702 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
30703
30704         * math/w_ilogb.c: Include <limits.h>.
30705         * math/w_ilogbl.c: Likewise.
30706
30707 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30708
30709         * manual/lang.texi (__va_copy): Document primarily as ISO C99
30710         va_copy.  Document allowing for unavailable va_copy only as
30711         pre-C99 compatibility.
30712         * manual/string.texi (Copying and Concatenation): Use va_copy
30713         instead of __va_copy in concat example.
30714
30715 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
30716
30717         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
30718         (__sendto): Use create_address_port.  Initialize APORT and deallocate
30719         it if not null.
30720
30721         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
30722         with O_NOLINK passed to __file_name_lookup.
30723
30724         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
30725         with O_NOLINK passed to __file_name_lookup.
30726
30727         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
30728         negative N or less than NGIDS.
30729
30730         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
30731         type to string_t.  Set ERANGE as errno and return it if NAME is not big
30732         enough.  Use memcpy instead of strncpy.
30733
30734 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
30735
30736         * elf/Makefile (check-data): Remove.
30737         (localplt.data): New vpath directive.
30738         ($(objpfx)check-localplt.out): Use localplt.data from vpath
30739         instead of $(check-data).
30740         * scripts/data/localplt-generic.data: Move to ...
30741         * sysdeps/generic/localplt.data: ... here.
30742         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
30743         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
30744         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
30745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30746         ... here.
30747         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
30748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30749         ... here.
30750         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
30751         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
30752         ... here.
30753         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
30754         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
30755         ... here.
30756         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
30757         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
30758         ... here.
30759         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
30760         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
30761         ... here.
30762
30763 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30764
30765         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
30766         PPC32 and PPC64 files.
30767         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
30768         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
30769
30770 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30771
30772         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
30773         __makecontext_ret to ...
30774         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
30775         ... here and call exit if uc_link is NULL.  New file.
30776         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
30777         __makecontext_ret.S.
30778         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
30779         __makecontext_ret to ...
30780         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
30781         ... here and call exit if uc_link is NULL.  New file.
30782         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
30783         __makecontext_ret.S.
30784
30785 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30786
30787         * elf/elf.h (R_390_IRELATIVE): New definition.
30788         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
30789         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
30790         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
30791         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
30792         (elf_machine_lazy_rel): Likewise.
30793         * sysdeps/s390/dl-irel.h: New file.
30794         * sysdeps/s390/s390-64/memcpy.S: New asm code.
30795         * sysdeps/s390/s390-64/memset.S: New asm code.
30796         * sysdeps/s390/s390-64/memcmp.S: New asm code.
30797         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
30798         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
30799         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
30800         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
30801         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
30802         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
30803         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
30804         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
30805         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
30806         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
30807         * sysdeps/s390/s390-32/memcpy.S: New asm code.
30808         * sysdeps/s390/s390-32/memset.S: New asm code.
30809         * sysdeps/s390/s390-32/memcmp.S: New asm code.
30810
30811 2012-07-17  Marek Polacek  <polacek@redhat.com>
30812
30813         [BZ #14349]
30814         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
30815         * sysdeps/s390/s390-64/configure.in: Likewise.
30816         * sysdeps/sparc/configure.in: Likewise.
30817         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
30818         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
30819         * sysdeps/i386/configure.in: Likewise.
30820         * sysdeps/x86_64/configure.in: Likewise.
30821         * sysdeps/sh/configure.in: Likewise.
30822         * sysdeps/s390/s390-32/configure: Regenerated.
30823         * sysdeps/s390/s390-64/configure: Likewise.
30824         * sysdeps/x86_64/configure: Likewise.
30825         * sysdeps/sh/configure: Likewise.
30826         * sysdeps/powerpc/powerpc64/configure: Likewise.
30827         * sysdeps/powerpc/powerpc32/configure: Likewise.
30828         * sysdeps/sparc/configure: Likwise.
30829         * sysdeps/i386/configure: Likewise.
30830
30831         * elf/dl-open.c: Comment fixes.
30832
30833 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
30834
30835         * Makefile [CXX] (check-data): Remove.
30836         [CXX] (c++-types.data): New vpath directive.
30837         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
30838         vpath.  Do not allow for C++ type data being missing.
30839         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
30840         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
30841         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
30842         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
30843         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
30844         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
30845         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
30846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30847         ... here.
30848         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
30849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30850         ... here.
30851         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
30852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
30853         ... here.
30854         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
30855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
30856         ... here.
30857         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
30858         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
30859         ... here.
30860         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
30861         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
30862         ... here.
30863         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
30864         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
30865         ... here.
30866         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
30867         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
30868
30869         * elf/tls-macros.h (TLS_LE): Move architecture-specific
30870         definitions to architecture-specific files.
30871         (TLS_IE): Likewise.
30872         (TLS_LD): Likewise.
30873         (TLS_GD): Likewise.
30874         * sysdeps/i386/tls-macros.h: New file.
30875         * sysdeps/powerpc/tls-macros.h: Likewise.
30876         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
30877         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
30878         * sysdeps/sh/tls-macros.h: Likewise.
30879         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
30880         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
30881         * sysdeps/x86_64/tls-macros.h: Likewise.
30882
30883 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30884
30885         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
30886         zero value for regular exit case.
30887
30888         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
30889         (__start_context): Preserve zero value for regular exit case.
30890
30891 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
30892             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30893
30894         * manual/setjmp.texi (setcontext): Clarify normal process
30895         termination when uc_link is the null pointer.
30896         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
30897         exit call.
30898
30899 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
30900
30901         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
30902         preprocessor.  Test for each exception mask separately.
30903
30904 2012-07-16  Andreas Jaeger  <aj@suse.de>
30905
30906         * po/ru.po: Update from translation team.
30907
30908 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
30909
30910         * conform/data/string.h-data (NULL): Use macro-constant.  Require
30911         equal to 0.
30912         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30913         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30914         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
30915         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
30916         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30917
30918 2012-07-13  Andreas Jaeger  <aj@suse.de>
30919
30920         * po/fr.po: Update from translation team.
30921
30922 2012-07-12  Marek Polacek  <polacek@redhat.com>
30923
30924         [BZ #14173]
30925         * math/libm-test.inc (yn_test): Add test for BZ #14173.
30926         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
30927         loop condition.
30928
30929 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
30930
30931         [BZ #13717]
30932         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30933         Change to 2.4.1 where previously 2.4.0.
30934         * sysdeps/unix/sysv/linux/configure: Regenerated.
30935         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
30936         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
30937         version.
30938         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
30939         (__ASSUME_AT_CLKTCK): Remove.
30940         (__ASSUME_AT_PAGESIZE): Likewise.
30941         (__ASSUME_AT_XID): Likewise.
30942         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
30943         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
30944         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
30945         unconditionally.
30946         (HAVE_AUX_PAGESIZE): Likewise.
30947         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
30948         [__ASSUME_AT_CLKTCK]: Make code unconditional.
30949         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
30950
30951 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
30952
30953         [BZ #14307]
30954         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
30955         the temporary buffer used to invoke __gethostbyname2_r,
30956         __gethostbyaddr_r and gethostbyname4_r to make room for struct
30957         host_data / struct gaih_addrtuple.
30958         * resolv/nss_dns/dns-host.c (global scope): Move definition of
30959         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
30960         header file nss/nsswitch.h.
30961         * nss/nsswitch.h (global scope): Add definition of implementation
30962         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
30963         resolv/nss_dns/dns-host.c).
30964
30965 2012-07-11  Andreas Jaeger  <aj@suse.de>
30966
30967         * po/fr.po: Update from translation team.
30968
30969         * po/sv.po: Update from translation team
30970         * po/fr.po: Another update from translation team.
30971
30972 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30973
30974         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
30975         for subnormals or multiply small sinh result by itself.
30976         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
30977         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30978
30979 2012-07-11  David S. Miller  <davem@davemloft.net>
30980
30981         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30982
30983 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
30984
30985         [BZ #14347]
30986         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
30987         (INTERNAL_MARK): Shift it here.
30988
30989 2012-07-10  Marek Polacek  <polacek@redhat.com>
30990
30991         [BZ #14151]
30992         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
30993         libc_cv_asm_global_directive with .globl.
30994         * configure: Regenerated.
30995         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
30996         with .globl.
30997         * sysdeps/i386/configure: Regenerated.
30998         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
30999         with .globl.
31000         * sysdeps/x86_64/configure: Regenerated.
31001         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
31002         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
31003         * elf/tst-unique2mod2.c: Likewise.
31004         * elf/tst-unique2mod1.c: Likewise.
31005         * elf/tst-unique1mod2.c: Likewise.
31006         * elf/tst-unique1mod1.c: Likewise.
31007         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31008         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
31009         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31010         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
31011         * sysdeps/mach/sysdep.h: Likewise.
31012         * sysdeps/i386/sysdep.h: Likewise.
31013         * sysdeps/i386/i386-mcount.S: Likewise.
31014         * sysdeps/x86_64/_mcount.S: Likewise.
31015         * sysdeps/x86_64/sysdep.h: Likewise.
31016         * sysdeps/sh/_mcount.S: Likewise.
31017         * sysdeps/sh/sysdep.h: Likewise.
31018         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
31019         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
31020         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
31021         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
31022         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
31023         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
31024         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
31025         * locale/localeinfo.h: Likewise.
31026         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
31027         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
31028
31029 2012-07-09  Roland McGrath  <roland@hack.frob.com>
31030
31031         [BZ #14336]
31032         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
31033         system".
31034         * manual/message.texi (The Uniforum approach): Likewise.
31035         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
31036         (glibc iconv Implementation): Likewise.
31037
31038 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
31039
31040         [BZ #14337]
31041         * math/s_clog.c (__clog): Avoid scaling a value down where that
31042         could result in underflow.
31043         * math/s_clog10.c (__clog10): Likewise.
31044         * math/s_clog10f.c (__clog10f): Likewise.
31045         * math/s_clog10l.c (__clog10l): Likewise.
31046         * math/s_clogf.c (__clogf): Likewise.
31047         * math/s_clogl.c (__clogl): Likewise.
31048         * math/libm-test.inc (clog_test): Add more tests.
31049         (clog10_test): Likewise.
31050         * sysdeps/i386/fpu/libm-test-ulps: Update.
31051         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31052
31053 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
31054
31055         [BZ #14283]
31056         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
31057         by 7 not 8 to examine high bit of fractional part.
31058
31059         [BZ #14042]
31060         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
31061         for call to __mcount_internal.
31062         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
31063         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
31064         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
31065
31066 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
31067
31068         [BZ #14154]
31069         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
31070         approximation for values within 0x1p-13f of an odd multiple of
31071         pi/4.
31072         * math/libm-test.inc (tan_test): Do not allow spurious underflow
31073         exception.  Add more tests.
31074         * sysdeps/i386/fpu/libm-test-ulps: Update.
31075
31076         [BZ #6778]
31077         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
31078         inputs and return -1 for them.  Do not check for +Inf in case not
31079         reachable for +Inf.
31080         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
31081         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
31082         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
31083         and return -1 for them.  Do not check for +Inf in case not
31084         reachable for +Inf.
31085         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
31086         define.
31087         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
31088         and return -1 for them.  Do not check for +Inf in case not
31089         reachable for +Inf.
31090         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
31091         spurious underflow.
31092         * sysdeps/i386/fpu/libm-test-ulps: Update.
31093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31094
31095 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
31096
31097         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
31098
31099 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
31100
31101         [BZ #14157]
31102         [BZ #14331]
31103         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
31104         could result in spurious underflow.  Scale down values above
31105         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
31106         * math/s_csqrtf.c (__csqrtf): Likewise.
31107         * math/s_csqrtl.c (__csqrtl): Likewise.
31108         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
31109         spurious underflow.
31110         * sysdeps/i386/fpu/libm-test-ulps: Update.
31111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31112
31113 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
31114
31115         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
31116         xopen-msg.sed.
31117         * catgets/xopen-msg.awk: New file.
31118         * catgets/xopen-msg.sed: Removed.
31119
31120         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
31121         po2text.sed.
31122         * intl/po2test.awk: New file.
31123         * intl/po2test.sed: Removed.
31124
31125 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
31126
31127         [BZ #14328]
31128         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
31129         or multiply small sinh result by itself.
31130         * math/s_ctanf.c (__ctanf): Likewise.
31131         * math/s_ctanh.c (__ctanh): Likewise.
31132         * math/s_ctanhf.c (__ctanhf): Likewise.
31133         * math/s_ctanhl.c (__ctanhl): Likewise.
31134         * math/s_ctanl.c (__ctanl): Likewise.
31135         * math/libm-test.inc (ctan_test_tonearest): New function.
31136         (ctan_test_towardzero): Likewise.
31137         (ctan_test_downward): Likewise.
31138         (ctan_test_upward): Likewise.
31139         (ctanh_test_tonearest): Likewise.
31140         (ctanh_test_towardzero): Likewise.
31141         (ctanh_test_downward): Likewise.
31142         (ctanh_test_upward): Likewise.
31143         (main): Call these new functions.
31144         * sysdeps/i386/fpu/libm-test-ulps: Update.
31145         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31146
31147 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
31148
31149         * .gitignore: Delete /ports entry.
31150
31151 2012-07-03  Andreas Jaeger  <aj@suse.de>
31152
31153         * po/bg.po: Update from translation team.
31154         * po/cs.po: Likewise.
31155         * po/de.po: Likewise.
31156         * po/hr.po: Likewise.
31157         * po/nl.pl: Likewise.
31158         * po/pl.po: Likewise.
31159         * po/vi.po: Likewise.
31160
31161 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
31162
31163         * Makeconfig [!+link] (+link-before-libc): New variable.
31164         [!+link] (+link-after-libc): Likewise.
31165         [!+link] (+link-tests): Likewise.
31166         [!+link] (+link): Define in terms of $(+link-before-libc) and
31167         $(+link-after-libc).
31168         [!+link-static] (+link-static-before-libc): New variable.
31169         [!+link-static] (+link-static-after-libc): Likewise.
31170         [!+link-static] (+link-static-tests): Likewise.
31171         [!+link-static] (+link-static): Define in terms of
31172         $(+link-static-before-libc) and $(+link-static-after-libc).
31173         [build-shared] (link-libc-before-gnulib): New variable.
31174         [build-shared] (link-libc-tests): Likewise.
31175         [build-shared] (link-libc): Define in terms of
31176         $(link-libc-before-gnulib).
31177         [!build-shared] (link-libc-tests): New variable.
31178         (link-libc-static-tests): New variable.
31179         [!gnulib] (gnulib-arch): New variable.
31180         [!gnulib] (gnulib-tests): Likewise.
31181         [!gnulib] (static-gnulib-arch): Likewise.
31182         [!gnulib] (static-gnulib-tests): Likewise.
31183         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
31184         Define with "=" instead of ":=".
31185         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
31186         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
31187         * Rules (binaries-all-notests): New variable.
31188         (binaries-all-tests): Likewise.
31189         (binaries-static-notests): Likewise.
31190         (binaries-static-tests): Likewise.
31191         (binaries-all): Define using $(binaries-all-notests) and
31192         $(binaries-all-tests).
31193         (binaries-static): Define using $(binaries-static-notests) and
31194         $(binaries-static-tests).
31195         (binaries-shared-tests): New variable.
31196         (binaries-shared-notests): Likewise.
31197         (binaries-shared): Remove variable.
31198         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
31199         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
31200         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
31201         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
31202         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
31203         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
31204         * elf/Makefile (sln-modules): New variable.
31205         (extra-objs): Add $(sln-modules:=.o).
31206         (ldconfig-modules): Add static-stubs.
31207         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
31208         * elf/static-stubs.c: New file.
31209
31210         [BZ #14283]
31211         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
31212         by 7 not 8 to examine high bit of fractional part.  Use volatile
31213         variables when splitting into final array of floats if
31214         __FLT_EVAL_METHOD__ != 0.
31215         * math/libm-test.inc (cos_test): Add another test.
31216         (sin_test): Likewise.
31217         * sysdeps/i386/fpu/libm-test-ulps: Update.
31218
31219         [BZ #14273]
31220         * math/libm-test.inc (cosh_test): Add more tests.
31221
31222         * version.h (RELEASE): Set to "development".
31223         (VERSION): Set to "2.16.90".
31224
31225 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
31226
31227         * NEWS: Update copyright. Remove last-updated date.
31228         Mention math library bug fixes and timezone data changes.
31229         * README: Mention GNU/Hurd, x32, and HPPA support status.
31230
31231 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
31232
31233         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
31234
31235 2012-06-27  Andreas Jaeger  <aj@suse.de>
31236
31237         * manual/contrib.texi (Contributors): Add Samuel Thibault.
31238
31239 2012-06-25  Andreas Jaeger  <aj@suse.de>
31240
31241         * sysdeps/s390/fpu/libm-test-ulps: Update.
31242
31243 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
31244             Thomas Schwinge  <thomas@codesourcery.com>
31245
31246         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
31247         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
31248         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
31249         fanotify_mark.
31250
31251 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
31252
31253         * sysdeps/mach/start.c: Remove file.
31254         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
31255         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
31256         * sysdeps/sh/init-first.c: Likewise.
31257
31258         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
31259         registers for frame unwinding purposes, add CFI directives.
31260         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
31261         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
31262         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
31263         Likewise.
31264
31265         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
31266         __fortify_fail returning.
31267         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
31268
31269         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
31270         sysdeps/sh/____longjmp_chk.S.
31271         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
31272         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
31273         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
31274         (gen-as-const-headers): Append sigaltstack-offsets.sym.
31275
31276         * sysdeps/sh/abort-instr.h: New file.
31277         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
31278         process in case exit returns.
31279
31280         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
31281         initialize the GOT register before use.
31282
31283         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
31284         calculation of ARGC > 4.
31285
31286         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
31287         meaningful names to some local labels.
31288
31289 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
31290             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31291
31292         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
31293         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
31294         (__arch_compare_and_exchange_val_16_acq): Likewise.
31295         (__arch_compare_and_exchange_val_32_acq): Likewise.
31296         (atomic_exchange_and_add): Fix gUSA sequence.
31297         (atomic_add): Likewise.
31298         (atomic_add_negative): Likewise.
31299         (atomic_add_zero): Likewise.
31300         (atomic_bit_test_set): Likewise.
31301
31302 2012-06-22  Andreas Schwab  <schwab@redhat.com>
31303
31304         [BZ #13579]
31305         * include/link.h (struct link_map): Add l_free_initfini.
31306         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
31307         l_initfini.
31308         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
31309         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
31310         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
31311         set.
31312
31313 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
31314
31315         * configure.in: Use AC_LANG_SOURCE.
31316         * configure: Regenerate.
31317
31318 2012-06-22  Roland McGrath  <roland@hack.frob.com>
31319
31320         * configure.in (libc_cv_localstatedir): New substituted variable.
31321         * configure: Regenerated.
31322         * config.make.in (localstatedir): New variable, substituted from
31323         libc_cv_localstatedir.
31324         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
31325         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
31326         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
31327         * sysdeps/gnu/configure: Regenerated.
31328
31329 2012-06-21  Jeff Law  <law@redhat.com>
31330
31331         [BZ #14277]
31332         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
31333         free.  Simplify list management for _LIBC case.
31334
31335 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
31336
31337         [BZ #14273]
31338         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
31339         Clear sign bit of 64-bit integer value before comparing against
31340         overflow value.
31341
31342         * sysdeps/mach/configure: Regenerated.
31343
31344 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
31345
31346         [BZ #14278]
31347         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
31348
31349 2012-06-21  Jeff Law  <law@redhat.com>
31350
31351         [BZ #13882]
31352         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
31353         uint16_t for elements in the "seen" array to avoid char overflows.
31354         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31355         * elf/dl-open.c (dl_open_worker): Likewise.
31356
31357 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
31358
31359         * scripts/list-sources.sh: Scan PORTS for translations.
31360         * po/libc.pot: Regenerated.
31361
31362 2012-06-21  Andreas Jaeger  <aj@suse.de>
31363
31364         [BZ #12194]
31365         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
31366         warning.
31367         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
31368         * bits/byteswap-16.h (__bswap_16): Likewise.
31369         * bits/byteswap.h (__bswap_constant_16): Likewise.
31370
31371 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
31372
31373         [BZ #14117]
31374         * sysdeps/i386/fpu_control.h: Removed.
31375         * sysdeps/x86_64/fpu_control.h: Moved to ...
31376         * sysdeps/x86/fpu_control.h: Here.
31377
31378         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
31379         (_FPU_SETCW): Likewise.
31380
31381 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
31382
31383         [BZ #14117]
31384         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
31385         * sysdeps/x86/fpu/bits/mathinline.h: This.
31386         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
31387
31388         [BZ #14050]
31389         [BZ #14117]
31390         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
31391         functions if __x86_64__ is defined.
31392
31393 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
31394
31395         * string/endian.h: Add !__ASSEMBLER__ condition for including
31396         conversion interfaces.
31397
31398 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
31399
31400         [BZ #14241]
31401         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
31402         of ABS(x) in calculating zero to negative powers other than odd
31403         integers.
31404         * math/libm-test.inc (pow_test): Add more tests.
31405
31406 2012-06-15  Andreas Jaeger  <aj@suse.de>
31407
31408         * manual/contrib.texi (Contributors): Update entry of Liubov
31409         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
31410         Machado Filho.
31411
31412 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
31413
31414         * string/string.h: Add __wur to GNU version of strerror_r.
31415
31416 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
31417
31418         [BZ #14229]
31419         * string/Makefile (tests): Add tst-strtok_r.
31420         * string/tst-strtok_r.c: New file.
31421         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
31422         RAX_LP/RDX_LP on SAVE_PTR.
31423
31424 2012-06-14  Roland McGrath  <roland@hack.frob.com>
31425
31426         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
31427
31428 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
31429
31430         * libm_test.inc (csqrt_test): Allow more spurious underflow
31431         exceptions.
31432         (j0_test): Likewise.
31433         (j1_test): Likewise.
31434         (y0_test): Likewise.
31435         (y1_test): Likewise.
31436
31437 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
31438
31439         * po/Makefile (libc.pot): Use UTF-8 charset.
31440
31441 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
31442
31443         [BZ #14210]
31444         Suppress sign-conversion warning from FD_SET.
31445         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
31446         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
31447         not unsigned long int.
31448         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
31449
31450 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
31451
31452         [BZ #14050]
31453         [BZ #14117]
31454         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
31455         __extern_always_inline instead of __extern_inline.
31456         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
31457         (__signbit): Likewise.
31458         (__signbitl): Support C++ namespace.
31459         (lrintf): New inline function.
31460         (lrint): Likewise.
31461         (llrintf): Likewise.
31462         (llrint): Likewise.
31463         (fmaxf): Likewise.
31464         (fmax): Likewise.
31465         (fminf): Likewise.
31466         (fmin): Likewise.
31467         (rint): Likewise.
31468         (rintf): Likewise.
31469         (ceil): Likewise.
31470         (ceilf): Likewise.
31471         (floor): Likewise.
31472         (floorf): Likewise.
31473         (nearbyint): Likewise.
31474         (nearbyintf): Likewise.
31475
31476 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
31477
31478         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
31479         non-default versions.
31480
31481 2012-06-11  Roland McGrath  <roland@hack.frob.com>
31482
31483         [BZ #14218]
31484         * manual/argp.texi (Argp): Reword argp_parse description slightly.
31485
31486 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
31487
31488         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
31489         (FE_UPWARD, FE_DOWNWARD): Don't define.
31490         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
31491         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
31492
31493         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
31494         reading it.
31495         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
31496         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31497
31498 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
31499
31500         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
31501         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
31502         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
31503         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
31504
31505 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
31506
31507         [BZ #14117]
31508         * sysdeps/i386/fpu/bits/fenv.h: Removed.
31509         * sysdeps/i386/fpu/Implies: New file.
31510         * sysdeps/x86_64/fpu/Implies: Likewise.
31511         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
31512         * sysdeps/x86/fpu/bits/fenv.h: This.
31513
31514         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
31515         __SSE_MATH__.
31516
31517 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
31518
31519         [BZ #14134]
31520         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
31521         character 0xffff that matches the last element of the
31522         conversion table.
31523
31524 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31525
31526         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
31527         fmodl commit.
31528
31529 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31530
31531         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
31532         values higher than 25.6283.
31533
31534 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31535
31536         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
31537         subnormal exponent extraction and add some __builtin_expect.
31538         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
31539         Fix for subnormal mantissa calculation.
31540
31541 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
31542
31543         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
31544         cpu2 is -1 and errno is not ENOSYS.
31545
31546 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
31547
31548         [BZ #14117]
31549         * sysdeps/i386/i486/bits/string.h: Renamed to ...
31550         * sysdeps/x86/bits/string.h: This.
31551         * sysdeps/x86_64/bits/string.h: Removed.
31552
31553         * sysdeps/i386/i486/bits/string.h: Define inline functions only
31554         if not compiling for x86-64, but compiling for >= i486.
31555
31556         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
31557         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
31558
31559         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
31560         New macro from Linux kernel 3.4.0.
31561         (FP_XSTATE_MAGIC2): Likewise.
31562         (FP_XSTATE_MAGIC2_SIZE): Likewise.
31563         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
31564         (struct _fpx_sw_bytes): New struct.
31565         (struct _xsave_hdr): Likewise.
31566         (struct _ymmh_state): Likewise.
31567         (struct _xstate): Likewise.
31568
31569         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
31570         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
31571         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
31572         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
31573         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
31574         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
31575
31576         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
31577         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
31578         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
31579         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
31580         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
31581         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
31582
31583 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31584
31585         [BZ #13743]
31586         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
31587         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
31588         (sysdep_headers): Include sys/platform/ppc.h.
31589         * sysdeps/powerpc/test-gettimebase.c: Test for
31590         __ppc_get_timebase() to catch future ISA opcode/insn changes.
31591         * manual/Makefile (appendices): Include platform.texi.
31592         * manual/contrib.texi (Contributors): Update @node pointers.
31593         * manual/maint.texi (Maintenance): Likewise.
31594         (Platform): New node.
31595         * manual/platform.texi: New file.  Document the new features.
31596
31597 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
31598             Jakub Jelinek  <jakub@redhat.com>
31599
31600         [BZ #14188]
31601         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
31602         where __builtin_expect is unavailable.
31603
31604 2012-06-03  David S. Miller  <davem@davemloft.net>
31605
31606         * stdlib/longlong.h: Updated from GCC.
31607
31608 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
31609
31610         [BZ #14042]
31611         * sysdeps/powerpc/powerpc32/mcount.c: New file.
31612         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
31613         __mcount_internal.
31614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
31615         (GLIBC_2.16): Likewise.
31616
31617 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31618
31619         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
31620
31621 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
31622
31623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
31624         (default-abi): New variable.
31625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
31626         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
31627         variable.
31628         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
31629         Likewise.
31630         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
31631         Likewise.
31632         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
31633         Likewise.
31634
31635         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
31636         definition.  Document in comment.
31637
31638 2012-06-01  David S. Miller  <davem@davemloft.net>
31639
31640         * stdlib/longlong.h: Updated from GCC.
31641
31642 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31643
31644         [BZ #14117]
31645         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
31646         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
31647         sys/debugreg.h sys/io.h here.
31648         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
31649         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
31650         sys/io.h.
31651         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
31652         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
31653         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
31654         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
31655         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
31656         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
31657
31658         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
31659         Define only if __x86_64__ is defined.
31660
31661 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
31662
31663         [BZ #14048]
31664         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
31665         Use int64_t for variable i.
31666         * math/libm-test.inc (fmod_test): Add more tests.
31667
31668         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
31669         z computation is not scheduled after fetestexcept.
31670         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
31671         Use math_force_eval instead of asm to ensure calculation scheduled
31672         before exception test.
31673         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
31674         Ensure a1 + u.d computation is not scheduled after fetestexcept.
31675
31676 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
31677
31678         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
31679         computation is not scheduled after fetestexcept.
31680
31681 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
31682
31683         [BZ #14117]
31684         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
31685         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
31686
31687 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31688
31689         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
31690         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
31691
31692 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31693
31694         [BZ #14117]
31695         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
31696         <bits/wordsize.h>.
31697         (__WCHAR_MIN): Support __WORDSIZE == 64.
31698         (__WCHAR_MAX): Likewise.
31699
31700         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
31701         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
31702
31703         [BZ #14183]
31704         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
31705         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
31706
31707         [BZ #14117]
31708         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
31709         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
31710
31711         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
31712         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
31713
31714         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
31715         Defined to 1 if __x86_64__ isn't defined.
31716         (_STAT_VER_LINUX_OLD): New.
31717         (st_atime): Remove duplicate.
31718         (st_mtime): Likewise.
31719         (st_ctime): Likewise.
31720
31721 2012-05-31  David S. Miller  <davem@davemloft.net>
31722
31723         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
31724         entries.
31725
31726 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
31727
31728         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
31729         gen-libm-test.pl.
31730
31731         [BZ #14132]
31732         * elf/dl-reloc.c: Include <_itoa.h>.
31733         (_dl_reloc_bad_type): Remove use of INTUSE.
31734         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
31735         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
31736         * stdio-common/psiginfo.c (psiginfo): Likewise.
31737         * stdio-common/psignal.c (psignal): Likewise.
31738         * string/strsignal.c (strsignal): Likewise.
31739         * include/signal.h (_sys_siglist): Declare hidden proto.
31740         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
31741         INTVARDEF with libc_hidden_data_def.
31742         * stdio-common/itoa-udigits.c: Likewise.
31743         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
31744         (_itoa_lower_digits_internal): Remove declaration.
31745         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
31746         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
31747         (_sys_sigabbrev_internal): Remove aliases.
31748         (_sys_siglist): Define hidden alias.
31749
31750 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
31751
31752         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31753         bits/sysctl.h.
31754
31755 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
31756
31757         [BZ #14117]
31758         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
31759         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
31760
31761         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
31762         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
31763         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
31764         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
31765         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
31766         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
31767
31768         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
31769         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
31770         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
31771
31772         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
31773         with __addr.
31774         (insw): Likewise.
31775         (insl): Likewise.
31776         (outsb): Likewise.
31777         (outsw): Likewise.
31778         (outsl): Likewise.
31779
31780         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
31781         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
31782         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
31783
31784         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
31785         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
31786         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
31787         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
31788         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
31789         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
31790
31791         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
31792         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
31793
31794         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
31795         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
31796
31797         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
31798         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
31799         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
31800
31801         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
31802         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
31803         to ...
31804         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
31805
31806         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
31807         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
31808         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
31809
31810         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
31811         for x86-64.
31812         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
31813
31814 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
31815
31816         * math/math.h (M_El): Use two more decimal places.
31817         (M_LOG2El): Likewise.
31818         (M_LOG10El): Likewise.
31819         (M_LN2l): Likewise.
31820         (M_LN10l): Likewise.
31821         (M_PIl): Likewise.
31822         (M_PI_2l): Likewise.
31823         (M_PI_4l): Likewise.
31824         (M_1_PIl): Likewise.
31825         (M_2_PIl): Likewise.
31826         (M_2_SQRTPIl): Likewise.
31827         (M_SQRT2l): Likewise.
31828         (M_SQRT1_2l): Likewise.
31829
31830 2012-05-31  David S. Miller  <davem@davemloft.net>
31831
31832         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
31833         values between float registers.
31834         * sysdeps/sparc/sparc64/memset.S: Likewise.
31835         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
31836
31837 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
31838
31839         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
31840         -D_FORTIFY_SOURCE=1.
31841         (CPPFLAGS-tst-longjmp_chk.c): Define.
31842         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
31843         (CPPFLAGS-tst-longjmp_chk2.c): Define.
31844         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
31845         CFLAGS-tst-wchar-h.c.
31846
31847 2012-05-31  Marek Polacek  <polacek@redhat.com>
31848
31849         [BZ #14132]
31850         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
31851         __endmntent_internal): Remove declaration.
31852         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
31853         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
31854         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
31855
31856 2012-05-30  David S. Miller  <davem@davemloft.net>
31857
31858         * sysdeps/sparc/sparc32/soft-fp/q_util.c
31859         (___Q_simulate_exceptions): Use real FP ops rather than writing
31860         into the %fsr.
31861         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
31862         Likewise.
31863
31864 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31865
31866         [BZ #14117]
31867         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
31868         * sysdeps/x86/bits/xtitypes.h: This.
31869
31870         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
31871         * sysdeps/x86/bits/wordsize.h: This.
31872
31873         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
31874         * sysdeps/x86/bits/huge_vall.h: This.
31875
31876         * sysdeps/i386/bits/select.h: Removed.
31877         * sysdeps/x86_64/bits/select.h: Renamed to ...
31878         * sysdeps/x86/bits/select.h: This.
31879
31880         * sysdeps/i386/bits/setjmp.h: Removed.
31881         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
31882         * sysdeps/x86/bits/setjmp.h: This.
31883
31884         * sysdeps/i386/bits/mathdef.h: Removed.
31885         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
31886         * sysdeps/x86/bits/mathdef.h: This.
31887
31888 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
31889
31890         [BZ #14132]
31891         * include/sys/socket.h (__connect_internal)
31892         (__libc_sa_len_internal): Remove declaration.
31893         (__connect, __libc_sa_len): Declare hidden_proto.
31894         (SA_LEN): Remove use of INTUSE.
31895         * socket/connect.c: Add libc_hidden_def.
31896         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
31897         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
31898         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
31899         alias.
31900         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
31901         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
31902         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
31903         of adding _internal alias.
31904
31905 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31906
31907         [BZ #14117]
31908         * sysdeps/i386/bits/link.h: Removed.
31909         * sysdeps/i386/bits/linkmap.h: Likewise.
31910         * sysdeps/x86_64/bits/link.h: Renamed to ...
31911         * sysdeps/x86/bits/link.h: This.
31912         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
31913         * sysdeps/x86/bits/linkmap.h: This.
31914
31915         * sysdeps/i386/bits/endian.h: Removed.
31916         * sysdeps/x86_64/bits/endian.h: Renamed to ...
31917         * sysdeps/x86/bits/endian.h: This.
31918
31919         * sysdeps/i386/bits/byteswap.h: Removed.
31920         * sysdeps/i386/bits/byteswap-16.h: Likewise.
31921         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
31922         * sysdeps/x86/bits/byteswap.h: This.
31923         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
31924         * sysdeps/x86/bits/byteswap-16.h: This.
31925         * sysdeps/i386/Implies: Add x86.
31926         * sysdeps/x86_64/Implies: Likewise.
31927
31928 2012-05-30  David S. Miller  <davem@davemloft.net>
31929
31930         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
31931         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
31932         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
31933         (FP_TRAPPING_EXCEPTIONS): Define.
31934         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
31935         (FP_TRAPPING_EXCEPTIONS): Define.
31936         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
31937         subnormals only when inexact has been signalled or underflow
31938         exceptions are enabled.
31939         (_FP_PACK_CANONICAL): Likewise.
31940
31941 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31942
31943         [BZ #14183]
31944         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
31945         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
31946
31947 2012-05-30  Richard Henderson  <rth@twiddle.net>
31948
31949         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
31950         with #ifndef NOT_IN_libc.
31951
31952         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
31953         marked to avoid plt entry.
31954
31955 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
31956
31957         [BZ #14112]
31958         * Makeconfig (default-abi): New macro.
31959         (abi-includes): Likewise.
31960         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
31961         $(abi-$(default-abi)-lib-soname) for soname if defined.
31962         ($(common-objpfx)gnu/lib-names.stmp): Generate from
31963         abi-variants.
31964         * Makefile (installed-stubs): Likewise.
31965         * include/stubs-biarch.h: Removed.
31966         * scripts/lib-names.awk: Only handle one library at a time.
31967         * scripts/soversions.awk: Remove WORDSIZE support.
31968         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
31969         entries.
31970         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
31971         Removed.
31972         (syscall-list-default-condition): Likewise.
31973         (syscall-list-default-condition): Likewise.
31974         (syscall-list-includes): Likewise.
31975         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
31976         syscall-list-* with abi-*.  Handle undefined abi-variants.
31977         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
31978         * sysdeps/unix/sysv/linux/i386/Implies: New file.
31979         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
31980         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
31981         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
31982         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
31983         Removed.
31984         (syscall-list-32-options): Likewise.
31985         (syscall-list-32-condition): Likewise.
31986         (syscall-list-64-options): Likewise.
31987         (syscall-list-64-condition): Likewise.
31988         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
31989         macro.
31990         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
31991         Renamed to ...
31992         (abi-*): This.
31993         (abi-64-ld-soname): New macro.
31994         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
31995         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
31996         Renamed to ...
31997         (abi-*): This.
31998         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
31999         * sysdeps/x86_64/x32/shlib-versions: Likewise.
32000
32001 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
32002
32003         * sysdeps/unix/sysv/linux/kernel-features.h
32004         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
32005         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
32006         include <kernel-features.h>.
32007         [!__NR_ftruncate64]: Remove conditional code.
32008         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32009         [__NR_ftruncate64]: Make code unconditional.
32010         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32011         * sysdeps/unix/sysv/linux/truncate64.c: Do not
32012         include <kernel-features.h>.
32013         [!__NR_ftruncate64]: Remove conditional code.
32014         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32015         [__NR_ftruncate64]: Make code unconditional.
32016         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
32018         include <kernel-features.h>.
32019         [!__NR_ftruncate64]: Remove conditional code.
32020         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32021         [__NR_ftruncate64]: Make code unconditional.
32022         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
32024         include <kernel-features.h>.
32025         [!__NR_ftruncate64]: Remove conditional code.
32026         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32027         [__NR_ftruncate64]: Make code unconditional.
32028         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32029
32030         * configure.in (libc_cv_fpie): Weaken to a compile test using
32031         LIBC_TRY_CC_OPTION.
32032         * configure: Regenerated.
32033
32034 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32035
32036         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
32037         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
32038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
32039         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
32040         Refreshed.
32041         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
32042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
32043         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
32044         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
32045         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
32046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
32047         Refreshed.
32048
32049 2012-05-27  David S. Miller  <davem@davemloft.net>
32050
32051         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
32052         (___Q_zero): New.
32053         (__Q_simulate_exceptions): Return void.  Change to simulate
32054         exceptions by writing into the %fsr.
32055         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
32056         (__Qp_handle_exceptions): Likewise.
32057         (numbers): Delete.
32058         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
32059         __Qp_handle_exceptions.
32060         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
32061         __Qp_handle_exceptions.
32062         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
32063         as unused and give dummy FP_RND_NEAREST initializer.
32064         (FP_INHIBIT_RESULTS): Define.
32065         (___Q_simulate_exceptions): Update declaration.
32066         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
32067         formatting.
32068         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
32069         as unused and give dummy FP_RND_NEAREST initializer.
32070         (__Qp_handle_exceptions): Update declaration.
32071         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
32072         formatting.
32073
32074 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
32075
32076         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
32077         the temporary FPU control word.
32078         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
32079         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
32080         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
32081         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
32082         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
32083         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
32084         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
32085         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
32086         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
32087         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
32088         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
32089
32090 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
32091
32092         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
32093         fields.
32094
32095 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
32096
32097         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
32098         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
32099         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
32100         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
32101         Likewise.
32102         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
32103         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
32104         Likewise.
32105
32106 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
32107
32108         * po/h.po: Update from translation team.
32109
32110 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
32111
32112         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
32113
32114         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
32115         handling of denormals.
32116         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
32117         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
32118         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
32119         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
32120         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
32121         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
32122         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
32123         Likewise.
32124
32125 2012-05-26  Marek Polacek  <polacek@redhat.com>
32126
32127         [BZ #14152]
32128         * math/libm-test.inc (fma_test): Don't always expect underflow
32129         exception.
32130
32131 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32132
32133         [BZ #12416]
32134         * elf/tst-execstack.c: Include stackinfo.h.
32135         (do_test): Adjust test case to ensure that pthread_getattr_np
32136         behaviour remains the same after marking stack executable.
32137
32138 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
32139
32140         * sysdeps/unix/sysv/linux/kernel-features.h
32141         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
32142         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
32143         kernel-features.h.
32144         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
32145         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
32146         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
32147         kernel-features.h.
32148         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
32149         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
32150
32151 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
32152
32153         * configure.in: Define the default includes to being none.
32154         * configure: Regenerated.
32155
32156 2012-05-25  Roland McGrath  <roland@hack.frob.com>
32157
32158         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
32159         * sysdeps/x86_64/setjmp.S: Likewise.
32160         * sysdeps/i386/bsd-setjmp.S: Likewise.
32161         * sysdeps/i386/bsd-_setjmp.S: Likewise.
32162         * sysdeps/i386/setjmp.S: Likewise.
32163         * sysdeps/i386/__longjmp.S: Likewise.
32164         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32165         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
32166
32167         * include/stap-probe.h: New file.
32168         * configure.in: Handle --enable-systemtap.
32169         * configure: Regenerated.
32170         * config.h.in (USE_STAP_PROBE): New #undef.
32171         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
32172         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
32173         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
32174
32175 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
32176
32177         [BZ #13717]
32178         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32179         to 2.4.0 where earlier.
32180         * sysdeps/unix/sysv/linux/configure: Regenerated.
32181         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
32182         <kernel-features.h>.
32183         [__ASSUME_32BITUIDS]: Make code unconditional.
32184         [!__ASSUME_32BITUIDS]: Remove conditional code.
32185         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
32186         <kernel-features.h>.
32187         [__ASSUME_32BITUIDS]: Make code unconditional.
32188         [!__ASSUME_32BITUIDS]: Remove conditional code.
32189         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
32190         [__ASSUME_32BITUIDS]: Make code unconditional.
32191         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
32192         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
32193         <kernel-features.h>.
32194         [__ASSUME_32BITUIDS]: Make code unconditional.
32195         [!__ASSUME_32BITUIDS]: Remove conditional code.
32196         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
32197         <kernel-features.h>.
32198         [__ASSUME_32BITUIDS]: Make code unconditional.
32199         [!__ASSUME_32BITUIDS]: Remove conditional code.
32200         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
32201         <kernel-features.h>.
32202         [__ASSUME_32BITUIDS]: Make code unconditional.
32203         [!__ASSUME_32BITUIDS]: Remove conditional code.
32204         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
32205         <kernel-features.h>.
32206         [__ASSUME_32BITUIDS]: Make code unconditional.
32207         [!__ASSUME_32BITUIDS]: Remove conditional code.
32208         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
32209         <kernel-features.h>.
32210         [__ASSUME_32BITUIDS]: Make code unconditional.
32211         [!__ASSUME_32BITUIDS]: Remove conditional code.
32212         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
32213         <kernel-features.h>.
32214         [__ASSUME_32BITUIDS]: Make code unconditional.
32215         [!__ASSUME_32BITUIDS]: Remove conditional code.
32216         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
32217         <kernel-features.h>.
32218         [__ASSUME_32BITUIDS]: Make code unconditional.
32219         [!__ASSUME_32BITUIDS]: Remove conditional code.
32220         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
32221         <kernel-features.h>.
32222         [__ASSUME_32BITUIDS]: Make code unconditional.
32223         [!__ASSUME_32BITUIDS]: Remove conditional code.
32224         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
32225         <kernel-features.h>.
32226         [__ASSUME_32BITUIDS]: Make code unconditional.
32227         [!__ASSUME_32BITUIDS]: Remove conditional code.
32228         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
32229         <kernel-features.h>.
32230         [__ASSUME_32BITUIDS]: Make code unconditional.
32231         [!__ASSUME_32BITUIDS]: Remove conditional code.
32232         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
32233         <kernel-features.h>.
32234         [__NR_setresgid] (__setresgid): Do not declare.
32235         [__ASSUME_32BITUIDS]: Make code unconditional.
32236         [!__ASSUME_32BITUIDS]: Remove conditional code.
32237         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
32238         <kernel-features.h>.
32239         [__NR_setresuid] (__setresuid): Do not declare.
32240         [__ASSUME_32BITUIDS]: Make code unconditional.
32241         [!__ASSUME_32BITUIDS]: Remove conditional code.
32242         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
32243         <kernel-features.h>.
32244         [__ASSUME_32BITUIDS]: Make code unconditional.
32245         [!__ASSUME_32BITUIDS]: Remove conditional code.
32246         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
32247         <kernel-features.h>.
32248         [__ASSUME_32BITUIDS]: Make code unconditional.
32249         [!__ASSUME_32BITUIDS]: Remove conditional code.
32250         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
32251         <kernel-features.h>.
32252         [__ASSUME_32BITUIDS]: Make code unconditional.
32253         [!__ASSUME_32BITUIDS]: Remove conditional code.
32254         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
32255         <kernel-features.h>.
32256         [__ASSUME_32BITUIDS]: Make code unconditional.
32257         [!__ASSUME_32BITUIDS]: Remove conditional code.
32258         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
32259         <kernel-features.h>.
32260         [__ASSUME_32BITUIDS]: Make code unconditional.
32261         [!__ASSUME_32BITUIDS]: Remove conditional code.
32262         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
32263         <kernel-features.h>.
32264         [__ASSUME_32BITUIDS]: Make code unconditional.
32265         [!__ASSUME_32BITUIDS]: Remove conditional code.
32266         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
32267         <kernel-features.h>.
32268         [__ASSUME_32BITUIDS]: Make code unconditional.
32269         [!__ASSUME_32BITUIDS]: Remove conditional code.
32270         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
32271         <kernel-features.h>.
32272         [__ASSUME_32BITUIDS]: Make code unconditional.
32273         [!__ASSUME_32BITUIDS]: Remove conditional code.
32274         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
32275         <kernel-features.h>.
32276         [__ASSUME_32BITUIDS]: Make code unconditional.
32277         [!__ASSUME_32BITUIDS]: Remove conditional code.
32278         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
32279         <kernel-features.h>.
32280         [__ASSUME_32BITUIDS]: Make code unconditional.
32281         [!__ASSUME_32BITUIDS]: Remove conditional code.
32282         * sysdeps/unix/sysv/linux/kernel-features.h
32283         (__ASSUME_SETRESUID_SYSCALL): Remove.
32284         (__ASSUME_SETRESGID_SYSCALL): Likewise.
32285         (__ASSUME_32BITUIDS): Likewise.
32286         (__ASSUME_LDT_WORKS): Likewise.
32287         (__ASSUME_O_DIRECTORY): Likewise.
32288         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
32289         architecture but not kernel version.
32290         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
32291         (__ASSUME_MMAP2_SYSCALL): Likewise.
32292         (__ASSUME_STAT64_SYSCALL): Likewise.
32293         (__ASSUME_IPC64): Likewise.
32294         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
32295         <kernel-features.h>.
32296         [__ASSUME_32BITUIDS]: Make code unconditional.
32297         [!__ASSUME_32BITUIDS]: Remove conditional code.
32298         * sysdeps/unix/sysv/linux/opendir.c: Do not include
32299         <kernel-features.h>.
32300         [__ASSUME_O_DIRECTORY]: Make code unconditional.
32301         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
32302         132096]: Remove conditional code.
32303         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
32304         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
32305         <kernel-features.h>.
32306         [__ASSUME_32BITUIDS]: Make code unconditional.
32307         [!__ASSUME_32BITUIDS]: Remove conditional code.
32308         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
32309         <kernel-features.h>.
32310         [__ASSUME_32BITUIDS]: Make code unconditional.
32311         [!__ASSUME_32BITUIDS]: Remove conditional code.
32312         * sysdeps/unix/sysv/linux/setegid.c: Do not include
32313         <kernel-features.h>.
32314         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
32315         unconditional.
32316         (__setresgid): Do not declare.
32317         [__ASSUME_32BITUIDS]: Make code unconditional.
32318         [!__ASSUME_32BITUIDS]: Remove conditional code.
32319         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
32320         <kernel-features.h>.
32321         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
32322         unconditional.
32323         (__setresuid): Do not declare.
32324         [__ASSUME_32BITUIDS]: Make code unconditional.
32325         [!__ASSUME_32BITUIDS]: Remove conditional code.
32326         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
32327         <kernel-features.h>.
32328         [__ASSUME_32BITUIDS]: Make code unconditional.
32329         [!__ASSUME_32BITUIDS]: Remove conditional code.
32330         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
32331         <kernel-features.h>.
32332         [__ASSUME_32BITUIDS]: Make code unconditional.
32333         [!__ASSUME_32BITUIDS]: Remove conditional code.
32334
32335 2012-05-25  Richard Henderson  <rth@twiddle.net>
32336
32337         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
32338         dl_hwcap to ifunc resolver.
32339         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
32340         elf_ifunc_invoke.
32341         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
32342         dl_hwcap to ifunc resolver.
32343         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
32344
32345 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32346
32347         [BZ #14153]
32348         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
32349         for |x| <= 2**-26, not 2**-57.
32350         * math/libm-test.inc (acos_test): Do not allow spurious underflow
32351         exception.
32352
32353 2012-05-24  Jeff Law  <law@redhat.com>
32354
32355         * stdio-common/Makefile (tests): Add bug25.
32356         * stdio-common/bug25.c: New test.
32357
32358 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
32359
32360         [BZ #13576]
32361         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
32362         multiple of MALLOC_ALIGNMENT in size.
32363         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
32364
32365 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32366
32367         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
32368         Require >= 256.
32369         (FILENAME_MAX): Use macro-int-constant.
32370         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
32371         (_IOFBF): Use macro-int-constant.
32372         (_IOLBF): Likewise.
32373         (_IONBF): Likewise.
32374         (SEEK_CUR): Likewise.
32375         (SEEK_END): Likewise.
32376         (SEEK_SET): Likewise.
32377         (TMP_MAX): Likewise.
32378         (EOF): Use macro-int-constant.  Require < 0.
32379         (NULL): Use macro-constant.  Require == 0.
32380         (stdin): Require type to be FILE *.
32381         (stdout): Likewise.
32382         (stderr): Likewise.
32383         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
32384         macro-int-constant.
32385         (EXIT_SUCCESS): Likewise.
32386         (NULL): Use macro-constant.  Require == 0.
32387         (RAND_MAX): Use macro-int-constant.
32388         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
32389         [C99-based standards] (strtof): Require function.
32390         [C99-based standards] (strtold): Likewise.
32391         [C99-based standards] (strtoll): Likewise.
32392         [C99-based standards] (strtoull): Likewise.
32393         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
32394         [ISO || ISO99 || ISO11] (limits.h): Likewise.
32395         [ISO || ISO99 || ISO11] (math.h): Likewise.
32396         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
32397         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
32398         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32399
32400 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
32401
32402         [BZ #14132]
32403         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
32404         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
32405         * intl/dgettext.c (DCGETTEXT): Likewise.
32406         * intl/gettext.c (DCGETTEXT): Likewise.
32407         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
32408         * posix/regex_internal.h (gettext): Likewise.
32409         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
32410         Remove declaration.
32411         * include/argz.h (__argz_count_internal)
32412         (__argz_stringify_internal): Remove declaration.
32413         (__argz_count, __argz_stringify): Declare hidden proto.
32414         * intl/dcgettext.c: Remove use of INTDEF.
32415         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
32416         * string/argz-stringify.c: Likewise.
32417         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
32418         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
32419         Declare hidden proto.
32420         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
32421         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
32422         Declare hidden proto.
32423         * include/stdio.h (__asprintf_internal): Don't declare.
32424         (__asprintf): Don't define as macro.  Declare hidden proto.
32425         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
32426         (__fsetlocking): Declare hidden proto.
32427         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
32428         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
32429         hidden proto.
32430         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
32431         (_IO_setlinebuf): Remove use of INTUSE.
32432         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
32433         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
32434         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
32435         Remove declaration.
32436         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
32437         (_IO_do_flush): Remove use of INTUSE.
32438         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
32439         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
32440         (_IO_adjust_column, _IO_least_wmarker)
32441         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
32442         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
32443         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
32444         (_IO_default_doallocate, _IO_wdefault_doallocate)
32445         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
32446         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
32447         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
32448         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
32449         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
32450         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
32451         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
32452         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
32453         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
32454         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
32455         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
32456         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
32457         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
32458         proto.
32459         (_IO_flush_all_internal, _IO_adjust_column_internal)
32460         (_IO_default_uflow_internal, _IO_default_finish_internal)
32461         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
32462         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
32463         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
32464         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
32465         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
32466         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
32467         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
32468         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
32469         (_IO_file_close_internal, _IO_file_close_it_internal)
32470         (_IO_file_underflow_internal, _IO_file_overflow_internal)
32471         (_IO_file_init_internal, _IO_file_attach_internal)
32472         (_IO_file_fopen_internal, _IO_file_read_internal)
32473         (_IO_file_sync_internal, _IO_file_seek_internal)
32474         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
32475         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
32476         (_IO_str_underflow_internal, _IO_str_overflow_internal)
32477         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
32478         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
32479         (_IO_list_all_internal, _IO_link_in_internal)
32480         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
32481         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
32482         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
32483         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
32484         (_IO_do_write_internal, _IO_padn_internal)
32485         (_IO_getline_info_internal, _IO_getline_internal)
32486         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
32487         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
32488         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
32489         (_IO_vfscanf_internal, _IO_vfprintf_internal)
32490         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
32491         (_IO_init_internal, _IO_un_link_internal): Don't declare.
32492         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
32493         with libc_hidden_ver, remove use of INTUSE.
32494         * libio/genops.c: Likewise.
32495         * libio/freopen.c: Likewise.
32496         * libio/freopen64.c: Likewise.
32497         * libio/iofclose.c: Likewise.
32498         * libio/iofdopen.c: Likewise.
32499         * libio/iofflush.c: Likewise.
32500         * libio/iofflush_u.c: Likewise.
32501         * libio/iofgets.c: Likewise.
32502         * libio/iofgets_u.c: Likewise.
32503         * libio/iofopen.c: Likewise.
32504         * libio/iofopncook.c: Likewise.
32505         * libio/iofread.c: Likewise.
32506         * libio/iofread_u.c: Likewise.
32507         * libio/ioftell.c: Likewise.
32508         * libio/iofwrite.c: Likewise.
32509         * libio/iogetline.c: Likewise.
32510         * libio/iogets.c: Likewise.
32511         * libio/iogetwline.c: Likewise.
32512         * libio/iopadn.c: Likewise.
32513         * libio/iopopen.c: Likewise.
32514         * libio/ioseekoff.c: Likewise.
32515         * libio/ioseekpos.c: Likewise.
32516         * libio/iosetbuffer.c: Likewise.
32517         * libio/iosetvbuf.c: Likewise.
32518         * libio/ioungetc.c: Likewise.
32519         * libio/ioungetwc.c: Likewise.
32520         * libio/iovdprintf.c: Likewise.
32521         * libio/iovsprintf.c: Likewise.
32522         * libio/iovsscanf.c: Likewise.
32523         * libio/memstream.c: Likewise.
32524         * libio/obprintf.c: Likewise.
32525         * libio/oldfileops.c: Likewise.
32526         * libio/oldiofclose.c: Likewise.
32527         * libio/oldiofdopen.c: Likewise.
32528         * libio/oldiofopen.c: Likewise.
32529         * libio/oldiopopen.c: Likewise.
32530         * libio/oldstdfiles.c: Likewise.
32531         * libio/putc.c: Likewise.
32532         * libio/setbuf.c: Likewise.
32533         * libio/setlinebuf.c: Likewise.
32534         * libio/stdfiles.c: Likewise.
32535         * libio/strops.c: Likewise.
32536         * libio/vasprintf.c: Likewise.
32537         * libio/vscanf.c: Likewise.
32538         * libio/vsnprintf.c: Likewise.
32539         * libio/vswprintf.c: Likewise.
32540         * libio/wfiledoalloc.c: Likewise.
32541         * libio/wfileops.c: Likewise.
32542         * libio/wgenops.c: Likewise.
32543         * libio/wmemstream.c: Likewise.
32544         * libio/wstrops.c: Likewise.
32545         * libio/__fpurge.c: Likewise.
32546         * libio/__fsetlocking.c: Likewise.
32547         * assert/assert.c: Likewise.
32548         * debug/fgets_chk.c: Likewise.
32549         * debug/fgets_u_chk.c: Likewise.
32550         * debug/fread_chk.c: Likewise.
32551         * debug/fread_u_chk.c: Likewise.
32552         * debug/gets_chk.c: Likewise.
32553         * debug/obprintf_chk.c: Likewise.
32554         * debug/vasprintf_chk.c: Likewise.
32555         * debug/vdprintf_chk.c: Likewise.
32556         * debug/vsnprintf_chk.c: Likewise.
32557         * debug/vsprintf_chk.c: Likewise.
32558         * malloc/mtrace.c: Likewise.
32559         * misc/error.c: Likewise.
32560         * misc/syslog.c: Likewise.
32561         * stdio-common/asprintf.c: Likewise.
32562         * stdio-common/fxprintf.c: Likewise.
32563         * stdio-common/getw.c: Likewise.
32564         * stdio-common/isoc99_fscanf.c: Likewise.
32565         * stdio-common/isoc99_scanf.c: Likewise.
32566         * stdio-common/isoc99_vfscanf.c: Likewise.
32567         * stdio-common/isoc99_vscanf.c: Likewise.
32568         * stdio-common/isoc99_vsscanf.c: Likewise.
32569         * stdio-common/printf-prs.c: Likewise.
32570         * stdio-common/printf_fp.c: Likewise.
32571         * stdio-common/printf_fphex.c: Likewise.
32572         * stdio-common/printf_size.c: Likewise.
32573         * stdio-common/putw.c: Likewise.
32574         * stdio-common/scanf.c: Likewise.
32575         * stdio-common/sprintf.c: Likewise.
32576         * stdio-common/tmpfile.c: Likewise.
32577         * stdio-common/vfprintf.c: Likewise.
32578         * stdio-common/vfscanf.c: Likewise.
32579         * stdlib/strfmon_l.c: Likewise.
32580         * sunrpc/openchild.c: Likewise.
32581         * sunrpc/xdr_stdio.c: Likewise.
32582         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
32583         * sysdeps/mach/hurd/tmpfile.c: Likewise.
32584
32585 2012-05-24  Roland McGrath  <roland@hack.frob.com>
32586
32587         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
32588
32589         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
32590         in the third column, to generate for the shared library an IFUNC
32591         that uses _dl_vdso_vsym.
32592         * Makerules (COMPILE.c, compile-stdin.c): New variables.
32593         * Makeconfig (object-suffixes-noshared): New variable.
32594
32595         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
32596         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
32597         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
32598         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
32599
32600         [BZ #14132]
32601         * include/sys/time.h (__gettimeofday): Remove macro.
32602         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
32603         * time/gettimeofday.c (__gettimeofday): Remove #undef.
32604         Remove INTDEF.
32605         (__gettimeofday): Add libc_hidden_def.
32606         (gettimeofday): Add libc_hidden_weak.
32607         * sysdeps/mach/gettimeofday.c: Likewise.
32608         * sysdeps/posix/gettimeofday.c: Likewise.
32609         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
32610         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
32611         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
32612         (__gettimeofday_internal): Remove strong_alias.
32613         (__gettimeofday): Add libc_hidden_def.
32614         (gettimeofday): Add libc_hidden_weak.
32615         * sysdeps/unix/syscalls.list (gettimeofday):
32616         Remove __gettimeofday_internal alias.
32617
32618 2012-05-24  Daniel Jacobowitz  <drow@false.org>
32619             H.J. Lu  <hongjiu.lu@intel.com>
32620
32621         [BZ #12495]
32622         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
32623         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
32624         (largebin_index_32_big): New.
32625         (largebin_index): Use it for 16-byte alignment.
32626         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
32627         correction with front_misalign.
32628
32629 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
32630
32631         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
32632         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32633         Likewise.
32634         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
32635         Likewise.
32636         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
32637         Likewise.
32638         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
32639         Likewise.
32640         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
32641         Likewise.
32642         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
32643         Likewise.
32644         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
32645         Likewise.
32646         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
32647         Likewise.
32648         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
32649         Likewise.
32650         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
32651         Likewise.
32652         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32653         Likewise.
32654         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
32655         Likewise.
32656
32657         * scripts/data/c++-types-x32-linux-gnu.data: New file.
32658         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
32659
32660 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
32661
32662         [BZ #10846]
32663         [BZ #14036]
32664         * math/libm-test.inc (exp_test): Add test from bug 14036.
32665         (pow_test): Add test from bug 10846.
32666
32667         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
32668         and other flags.
32669         (special_function): Do not include flags in test name.
32670         (parse_args): Likewise.
32671         * sysdeps/i386/fpu/libm-test-ulps: Update.
32672         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
32673         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
32674         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
32675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32676
32677         * math/gen-libm-test.pl (%beautify): Add entries for underflow
32678         exceptions.
32679         * math/libm-test.inc ("Philosophy"): Update comment about
32680         exception testing.
32681         (UNDERFLOW_EXCEPTION): New macro.
32682         (UNDERFLOW_EXCEPTION_OK): Likewise.
32683         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
32684         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
32685         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
32686         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
32687         (INVALID_EXCEPTION_OK): Update value.
32688         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
32689         (OVERFLOW_EXCEPTION_OK): Likewise.
32690         (IGNORE_ZERO_INF_SIGN): Likewise.
32691         (test_exceptions): Handle underflow exceptions.
32692         (acos_test): Update for underflow exception expectations.
32693         (cexp_test): Likewise.
32694         (clog_test): Likewise.
32695         (clog10_test): Likewise.
32696         (csqrt_test): Likewise.
32697         (ctan_test): Likewise.
32698         (ctanh_test): Likewise.
32699         (exp_test): Likewise.
32700         (exp10_test): Likewise.
32701         (exp2_test): Likewise.
32702         (expm1_test): Likewise.
32703         (fma_test): Likewise.
32704         (j0_test): Likewise.
32705         (jn_test): Likewise.
32706         (nexttoward_test): Likewise.
32707         (pow_test): Likewise.
32708         (scalbn_test): Likewise.
32709         (scalbln_test): Likewise.
32710         (tan_test): Likewise.
32711         (y1_test): Likewise.
32712         * sysdeps/i386/fpu/libm-test-ulps: Update.
32713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32714
32715 2012-05-23  David S. Miller  <davem@davemloft.net>
32716
32717         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32718         (__libc_sigaction): Remove unused local variables.
32719
32720 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32721
32722         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
32723
32724 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
32725
32726         mktime: avoid signed integer overflow
32727         * time/mktime.c (__mktime_internal): Do not mishandle the case
32728         where diff == INT_MIN.
32729
32730         mktime: simplify computation of average
32731         * time/mktime.c (ranged_convert): Use new time_t_avg function
32732         instead of rolling our own (probably-slower) code.
32733
32734         mktime: do not assume signed right shift propagates sign bit
32735         * time/mktime.c (isdst_differ): New static function.
32736         (__mktime_internal): No need to normalize tm_isdst now.
32737         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
32738         tm_isdst values.
32739
32740         mktime: merge another wrapv change from gnulib
32741         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
32742         from some compilers.
32743
32744         mktime: remove incorrect attempt at unusual arithmetics
32745         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
32746         The code didn't really work on such machines anyway.
32747         (TYPE_MINIMUM): Assume two's complement.
32748         (twos_complement_arithmetic): Verify that long_int and time_t
32749         are two's complement (or unsigned, in the latter case).
32750
32751         mktime: check signed shifts on long_int and time_t, too
32752         * time/mktime.c (SHR): Check that shifts work as desired
32753         on the types long_int and time_t too, as SHR is used on
32754         such types.
32755
32756         mktime: do not assume 'long' is wide enough
32757         * time/mktime.c (verify): Move decl up.
32758         (long_int): New type.
32759         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
32760         to remove assumption in the code that 'long' is wide enough to
32761         store year values.  This assumption is not true on x32 and on
32762         some non-glibc platforms.
32763
32764         mktime: merge wrapv change from gnulib
32765         * time/mktime.c (WRAPV): New macro.
32766         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
32767         (guess_time_tm, __mktime_internal): Do not assume that signed
32768         integer overflow wraps around; modern compilers generate code
32769         where this assumption is no longer valid.
32770
32771 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32772
32773         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32774         Replace "jmp L(pseudo_end)" with "ret".
32775         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
32776         Likewise.
32777
32778 2012-05-23  Andreas Jaeger  <aj@suse.de>
32779
32780         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
32781         * sysdeps/unix/sysv/linux/poll.c: Remove file.
32782
32783 2012-05-23  Andreas Jaeger  <aj@suse.de>
32784             Maximilian Attems  <max@stro.at>
32785
32786         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
32787         New macros.
32788
32789 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
32790
32791         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
32792         code so that pseudo_end is just ret and the stack pointer is
32793         correct also for static library in error case.
32794
32795 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
32796
32797         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
32798         move to syscalls.list.
32799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
32800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
32801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
32802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
32803
32804         * manual/install.texi (Running make install): Do not mention Linux
32805         kernel version for which pt_chown is not needed.
32806         (Linux): Do not mention problems with nscd with 2.0 kernels.
32807         * INSTALL: Regenerated.
32808
32809 2012-05-23  Andreas Jaeger  <aj@suse.de>
32810
32811         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
32812         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
32813         macro.
32814         * sysdeps/unix/sysv/linux/s390/bits/mman.h
32815         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32816         * sysdeps/unix/sysv/linux/sh/bits/mman.h
32817         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32818         * sysdeps/unix/sysv/linux/i386/bits/mman.h
32819         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32820         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
32821         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32822         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
32823         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
32824         * sysdeps/unix/sysv/linux/bits/in.h
32825         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
32826
32827 2012-05-22  Roland McGrath  <roland@hack.frob.com>
32828
32829         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
32830         (PREPARE_VERSION): Just use assert instead, it will be elided
32831         under [NDEBUG] anyway.
32832
32833 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32834
32835         * sysdeps/unix/sysv/linux/Makefile: Include
32836         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
32837         (sysdep_routines): Remove sysctl.
32838         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
32839         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
32840         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
32841         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
32842         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
32843
32844 2012-05-22  Andreas Jaeger  <aj@suse.de>
32845
32846         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
32847         that pseudo_end is just ret and the stack pointer is correct also
32848         for static library in error case.
32849
32850 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
32851
32852         [BZ #14122]
32853         * nss/nsswitch.c (defconfig_entries): New variable.
32854         (__nss_database_lookup): Don't leak defconfig entries.
32855         (nss_parse_service_list): Don't leak on error paths.
32856         (free_database_entries): New function.
32857         (free_defconfig): New function.
32858         (free_mem): Move common code to free_database_entries.
32859
32860 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32861
32862         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
32863         Add arch_prctl.
32864         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
32865
32866         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
32867         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
32868         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
32869         New macro.
32870         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
32871         (INTERNAL_SYSCALL_TYPES): Likewise.
32872         (LOAD_ARGS_TYPES_[1-6]): Likewise.
32873         (LOAD_REGS_TYPES_[1-6]): Likewise.
32874         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
32875         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
32876
32877 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32878
32879         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
32880         copysignl for GLIBC_2_0.
32881         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
32882         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
32883         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
32884         logbl for GLIBC_2_0.
32885         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
32886         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
32887
32888 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32889
32890         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
32891         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32892
32893         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
32894         Use "neg %eax".
32895
32896         * time/mktime.c: Update copyright years.
32897
32898 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32899
32900         mktime: merge comment-quoting-style change from gnulib
32901         * time/mktime.c: Quote 'like this' in comments.
32902         The GNU coding standards suggest that we no longer quote `like this',
32903         as "`" and "'" are typically rendered asymmetrically nowadays.
32904         The typical gnulib style is to quote 'like this' when quoting
32905         code, and "like this" when quoting English.
32906
32907         * time/mktime.c (compile-command): Add "-I.".
32908
32909         mktime: merge mktime-internal.h change from gnulib
32910         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
32911
32912         mktime: merge time_r change from gnulib
32913         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
32914
32915         mktime: merge DEBUG change from gnulib
32916         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
32917         case system <time.h> has a #define.
32918
32919         mktime: merge <sys/types.h> change from gnulib
32920         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
32921         since <time.t> is now guaranteed to define time_t.
32922
32923         mktime: merge HAVE_CONFIG_H change from gnulib
32924         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
32925
32926 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
32927
32928         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32929         Use "neg %eax".
32930
32931         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
32932         __rlim_t cast.
32933         (struct rusage): Use anonymous union to pad each field to
32934         __syscall_slong_t.
32935
32936 2012-05-21  David S. Miller  <davem@davemloft.net>
32937
32938         * Makefules (o-iterator): Remove .s cases.
32939         (compile-command.s): Delete.
32940         (COMPILE.s): Delete.
32941         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
32942
32943 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
32944
32945         * configure.in (libc_cv_predef_stack_protector): Only consider
32946         "foobar" and "__stack_chk_fail" lines in libc_undefs.
32947         * configure: Regenerated.
32948
32949 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32950
32951         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
32952         New macro.  Use R*LP on int and pointer.
32953         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
32954         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
32955         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
32956         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
32957
32958         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
32959         [__WORDSIZE_TIME64_COMPAT32] instead of
32960         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
32961         (struct utmp): Likewise.
32962         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
32963         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
32964         Renamed to ...
32965         (__WORDSIZE_TIME64_COMPAT32): This.
32966         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
32967         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
32968         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
32969         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
32970         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
32971         (__WORDSIZE_TIME64_COMPAT32): New macro.
32972
32973 2012-05-21  Andreas Jaeger  <aj@suse.de>
32974
32975         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
32976         only if [SHARED]. Add prototype for __wcschr_ia32.
32977
32978 2012-05-21  Roland McGrath  <roland@hack.frob.com>
32979
32980         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
32981         of %rbp unmolested in the jmp_buf while mangling the low bits.
32982         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
32983         unmolested high bits of %rbp while demangling the low bits.
32984         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32985
32986 2012-05-21  Andreas Jaeger  <aj@suse.de>
32987
32988         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
32989         * sunrpc/svc_simple.c: Use it for registerrpc.
32990         * sunrpc/xcrypt.c: Use it for passwd2des.
32991
32992         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
32993
32994 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
32995
32996         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
32997         Don't define if [__SYSCALL_WORDSIZE != 32].
32998         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
32999         New macro.
33000
33001 2012-05-21  Bruno Haible  <bruno@clisp.org>
33002             Andreas Jaeger  <aj@suse.de>
33003
33004         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
33005         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
33006         inptr and inend for must_buffer_ch.
33007         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
33008         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
33009         * stdio-common/Makefile (tests): Remove bug15.
33010         (bug15-ENV): Remove macro.
33011         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
33012         anymore.
33013
33014 2012-05-19  Andreas Jaeger  <aj@suse.de>
33015             Roland McGrath  <roland@hack.frob.com>
33016
33017         * manual/contrib.texi: Completely rewritten. It contains now an
33018         alphabetical list of contributors and their contributions.
33019
33020 2012-05-21  Richard Henderson  <rth@twiddle.net>
33021
33022         * misc/getauxval.c (__getauxval): Use unsigned long int.
33023         * misc/sys/auxv.h: Include <sys/cdefs.h>.
33024         (getauxval): Use unsigned long int.
33025
33026 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
33027
33028         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
33029
33030 2012-05-21  Roland McGrath  <roland@hack.frob.com>
33031
33032         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
33033         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
33034         __alignof__ (long double).
33035
33036 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33037
33038         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33039
33040 2012-05-20  Richard Henderson  <rth@twiddle.net>
33041
33042         * misc/getauxval.c: New file.
33043         * misc/sys/auxv.h: New file.
33044         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
33045         (routines): Add getauxval.
33046         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
33047         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
33048         * elf/dl-sysdep.c (_dl_auxv): Remove.
33049         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
33050         * elf/dl-support.c (_dl_auxv): New variable.
33051         (_dl_aux_init): Initialize it.
33052         * manual/startup.texi (Auxiliary Vector): New node.
33053         * sysdeps/generic/bits/hwcap.h: New file.
33054         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
33055         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
33056         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
33057         * sysdeps/sparc/sysdep.h: ... here.  Include it.
33058         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
33059         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
33060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33061         Update.
33062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
33063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
33064         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
33065         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
33066         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
33067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
33068         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
33069         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
33070
33071 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33072
33073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33074
33075 2012-05-19  David S. Miller  <davem@davemloft.net>
33076
33077         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33078
33079 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
33080
33081         [BZ #14123]
33082         * math/s_ccosh.c: Include <float.h>
33083         (__ccosh): Avoid internal overflow calculating sinh and cosh
33084         values before multiplying by sin and cos values.
33085         * math/s_ccoshf.c: Likewise.
33086         * math/s_ccoshl.c: Likewise.
33087         * math/s_csin.c: Likewise.
33088         * math/s_csinf.c: Likewise.
33089         * math/s_csinl.c: Likewise.
33090         * math/s_csinh.c: Likewise.
33091         * math/s_csinhf.c: Likewise.
33092         * math/s_csinhl.c: Likewise.
33093         * math/libm-test.inc (ccos_test): Add more tests.
33094         (ccosh_test): Likewise.
33095         (csin_test): Likewise.
33096         (csinh_test): Likewise.
33097         * sysdeps/i386/fpu/libm-test-ulps: Update.
33098         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33099
33100 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
33101
33102         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
33103         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
33104
33105         * sysdeps/x86_64/x32/_itoa.h: Add comment.
33106
33107 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
33108
33109         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
33110         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
33111         * sysdeps/powerpc/soft-fp/Versions: Likewise.
33112         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
33113         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
33114         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
33115         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
33116         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
33117         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
33118         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
33119         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
33120         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
33121         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
33122         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
33123         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
33124         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
33125         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
33126         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
33127         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
33128         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
33129         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
33130         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
33131         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
33132         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
33133         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
33134         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
33135         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
33136         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
33137         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
33138         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
33139         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
33140
33141 2012-05-18  Andreas Jaeger  <aj@suse.de>
33142
33143         * csu/.gitignore: Delete.
33144
33145 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33146
33147         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
33148         (timex): Use __syscall_slong_t.
33149
33150 2012-05-18  Andreas Jaeger  <aj@suse.de>
33151             Carlos O'Donell  <carlos_odonell@mentor.com>
33152
33153         * manual/install.texi (Configuring and compiling): Update
33154         description about files modified in the source directory.
33155         * INSTALL: Regenerated.
33156
33157 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33158
33159         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
33160         value.  Use "or" to set return value to -1.
33161         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
33162         negate return value.
33163
33164 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33165
33166         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
33167         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
33168         failure if the compiler has Graphite support disabled.
33169         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
33170         Likewise.
33171         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
33172         (CFLAGS-memmove.c): Likewise.
33173         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
33174         Likewise.
33175
33176 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33177
33178         * sysdeps/x86_64/x32/_itoa.h: New file.
33179
33180         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
33181         getdents system call only if kernel and user dirents have the
33182         same d_ino and d_off.
33183
33184         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
33185         LLONG_MAX != LONG_MAX.
33186         (_itoa_word): Use _ITOA_WORD_TYPE on value.
33187         (_fitoa_word): Likewise.
33188
33189         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
33190         years.
33191         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
33192         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
33193         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
33194
33195         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
33196         include <bits/wordsize.h>.  Check __x86_64__ instead of
33197         __WORDSIZE.
33198         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
33199         if __x86_64__ is defined.  Use anonymous union on fpstate.
33200
33201         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
33202         anonymous union.
33203
33204 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
33205
33206         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
33207         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
33208         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
33209         Refer to _rtld_local_ro instead of _rtld_global_ro.
33210         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
33211         Likewise.
33212         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
33213         Likewise.
33214         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
33215         Likewise.
33216         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
33217         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
33218         of _rtld_global, and rtld_progname instead of _dl_argv[0].
33219
33220         * sysdeps/powerpc/powerpc32/dl-machine.c
33221         (__elf_machine_runtime_setup) [PROF]: Don't reference
33222         _dl_prof_resolve.
33223
33224 2012-05-18  Andreas Jaeger  <aj@suse.de>
33225
33226         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
33227         function only available for GCCs before 3.4 since GCC 3.4
33228         introduced a builtin.
33229         (lrint): Likewise.
33230         (llrintf): Likewise.
33231         (llrint): Likewise.
33232         (fmaxf): Likewise.
33233         (fmax): Likewise.
33234         (fminf): Likewise.
33235         (fmin): Likewise.
33236         (rint): Likewise.
33237         (rintf): Likewise.
33238         (nearbyint): Likewise.
33239         (nearbyintf): Likewise.
33240         (ceil): Likewise.
33241         (ceilf): Likewise.
33242         (floor): Likewise.
33243         (floorf): Likewise.
33244
33245 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33246
33247         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
33248         on both fields and cast pointer to __syscall_ulong_t.
33249
33250         * bits/types.h (__fsword_t): New type.
33251         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
33252         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
33253         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33254         (__FSWORD_T_TYPE): Likewise.
33255         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33256         (__FSWORD_T_TYPE): Likewise.
33257         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33258         (__FSWORD_T_TYPE): Likewise.
33259         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
33260         (__FSWORD_T_TYPE): Likewise.
33261         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
33262         __SWORD_TYPE with __fsword_t.
33263         (statfs64): Likewise.
33264
33265 2012-05-17  David S. Miller  <davem@davemloft.net>
33266
33267         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
33268
33269 2012-05-17  Andreas Jaeger  <aj@suse.de>
33270
33271         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
33272         warning.
33273
33274 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33275
33276         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
33277
33278 2012-05-17  Andreas Jaeger  <aj@suse.de>
33279
33280         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
33281         when it is used.
33282
33283 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
33284
33285         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
33286
33287 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33288
33289         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
33290         * sysdeps/x86_64/tst-mallocalign1.c: New file.
33291
33292 2012-05-17  Andreas Jaeger  <aj@suse.de>
33293             Carlos O'Donell  <carlos_odonell@mentor.com>
33294
33295         [BZ #14059]
33296         * sysdeps/x86_64/multiarch/init-arch.h
33297         (bit_YMM_Usable): Rename to...
33298         (bit_AVX_Usable): ... this.
33299         (bit_FMA4_Usable): New macro.
33300         (bit_XMM_state): New macro.
33301         (bit_YMM_state): New macro.
33302         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
33303         [__ASSEMBLER__] (index_AVX_Usable): ... this.
33304         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
33305         (CPUID_OSXSAVE): New macro.
33306         (CPUID_AVX): New macro.
33307         (CPUID_FMA4): New macro.
33308         (index_YMM_Usable): Rename to...
33309         (index_AVX_Usable): ... this.
33310         (HAS_AVX): Use HAS_ARCH_FEATURE.
33311         (HAS_FMA4): Likewise.
33312         (HAS_YMM_USABLE): Remove.
33313         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33314         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
33315         are present.
33316         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
33317         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
33318         * sysdeps/x86_64/multiarch/Makefile: Likewise.
33319         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
33320         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
33321
33322 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
33323
33324         * math/libm-test.c: Support platforms without multiple rounding modes.
33325         * math/bug-nextafter.c: Support platforms without FP exceptions.
33326         * math/bug-nexttoward.c: Likewise.
33327         * math/test-fenv.c: Likewise.
33328         * math/test-misc.c: Likewise.
33329         * stdlib/bug-getcontext.c: Likewise.
33330
33331 2012-05-17  Andreas Jaeger  <aj@suse.de>
33332
33333         * manual/examples/search.c (critter_cmp): Change signature to
33334         avoid warnings.
33335         * manual/string.texi (Collation Functions): Likewise.
33336
33337 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33338
33339         * bits/types.h: Fold copyright years.
33340         * bits/typesizes.h: Likewise.
33341         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
33342         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
33343         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
33344         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
33345         * time/time.h: Likewise.
33346
33347 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
33348
33349         [BZ #208]
33350         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
33351         in instead of returning them.  Return void.
33352         (__libc_mallinfo): Accumulate over all arenas.
33353         (__malloc_stats): Adjust for change in int_mallinfo interface.
33354
33355 2012-05-16  Roland McGrath  <roland@hack.frob.com>
33356
33357         [BZ #10375]
33358         * configure.in (NM): Add AC_CHECK_TOOL for it.
33359         (libc_extra_cflags): New substituted variable.
33360         Check for -fstack-protector being used implicitly.
33361         * configure: Regenerated.
33362         * config.make.in (config-extra-cflags): New variable,
33363         gets @libc_extra_cflags@.
33364         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
33365
33366         [BZ #10375]
33367         * configure.in: Check for _FORTIFY_SOURCE being predefined.
33368         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
33369         * configure: Regenerated.
33370         * config.make.in (CPPUNDEFS): New substituted variable.
33371         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
33372         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
33373         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
33374
33375 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33376
33377         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
33378         (mq_attr): Use __syscall_slong_t.
33379
33380 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33381
33382         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
33383         Check __x86_64__ instead of __WORDSIZE.
33384         (_STAT_VER_LINUX): Likewise.
33385         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
33386         __syscall_ulong_t and __syscall_slong_t.
33387         (stat64): Likewise.
33388
33389 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33390
33391         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
33392
33393 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33394
33395         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
33396
33397 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33398
33399         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
33400         __syscall_ulong_t.
33401
33402         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
33403         include <bits/wordsize.h>.  Check __x86_64__ instead of
33404         __WORDSIZE.
33405         (greg_t): Use "__extension__ long long int" if __x86_64__ is
33406         defined.
33407         (mcontext_t): Replace "unsigned long" with "unsigned long long".
33408
33409         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
33410         include <bits/wordsize.h>.  Check __x86_64__ instead of
33411         __WORDSIZE.
33412         (user_regs_struct): Use "__extension__ unsigned long long"
33413         instead of "unsigned long" if __x86_64__ is defined.
33414         (user): Likewise.  Pad after pointer field if __ILP32__ is
33415         defined.
33416
33417 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
33418
33419         * configure.in (makeinfo): Require version 4.5 or later.  Allow
33420         versions 5 to 9.
33421         * configure: Regenerated.
33422         * manual/install.texi (texinfo): Increase version requirement to
33423         4.5 or later.
33424         * INSTALL: Regenerated.
33425
33426         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
33427
33428 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
33429
33430         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
33431
33432         * sysdeps/x86_64/x32/ffs.c: New file.
33433
33434         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
33435         __syscall_ulong_t.
33436         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
33437         defined.  Use __syscall_ulong_t.
33438         (shminfo): Use __syscall_ulong_t.
33439         (shm_info): Likewise.
33440
33441         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
33442         __syscall_ulong_t.
33443
33444         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
33445         <bits/wordsize.h>.
33446         (msgqnum_t): Use __syscall_ulong_t.
33447         (msglen_t): Likewise.
33448         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
33449         __syscall_ulong_t.
33450
33451         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
33452         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
33453
33454         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
33455
33456         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
33457         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
33458
33459         * sysvipc/sys/msg.h (msgbuf): Replace long int with
33460         __syscall_slong_t.
33461
33462         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
33463         include <bits/wordsize.h>.  Check __x86_64__ instead of
33464         __WORDSIZE.
33465
33466         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
33467         "unsigned long long int" if __x86_64__ is defined.
33468         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
33469
33470         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
33471         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
33472         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
33473
33474         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
33475         <stdint.h>.
33476         (GET_PC): Cast to uintptr_t first.
33477         (GET_FRAME): Likewise.
33478         (GET_STACK): Likewise.
33479
33480         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
33481         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
33482         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
33483         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
33484         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
33485         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
33486         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
33487         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
33488         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
33489         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
33490         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
33491         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
33492         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
33493         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
33494         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
33495         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
33496         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
33497         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
33498         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
33499         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
33500         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
33501         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
33502         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
33503         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
33504         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
33505         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
33506         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
33507         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
33508         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
33509
33510 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
33511
33512         * Makerules (+depfiles): Also collect depfiles from .oS in
33513         $(extra-objs).
33514         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
33515         .oS, $(libnldbl-routines)).
33516
33517         * Makerules (native-compile-mkdep-flags): Define.
33518         * sunrpc/Makefile (extra-objs): Add $(addprefix
33519         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
33520         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
33521         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
33522         calling $(make-target-directory).
33523
33524 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33525
33526         * bits/types.h (__snseconds_t): Removed.
33527         * time/time.h (struct timespec): Replace __snseconds_t with
33528         __syscall_slong_t.
33529         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
33530         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
33531         Likewise.
33532         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33533         (__SNSECONDS_T_TYPE): Likewise.
33534         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33535         (__SNSECONDS_T_TYPE): Likewise.
33536         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33537         (__SNSECONDS_T_TYPE): Likewise.
33538
33539 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33540
33541         * sysdeps/mach/hurd/bits/typesizes.h
33542         (__SYSCALL_SLONG_TYPE): New macro.
33543         (__SYSCALL_ULONG_TYPE): Likewise.
33544
33545 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33546
33547         * bits/types.h (__syscall_slong_t): New type.
33548         (__syscall_ulong_t): Likewise.
33549
33550         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
33551         (__SYSCALL_ULONG_TYPE): Likewise.
33552         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33553         (__SYSCALL_SLONG_TYPE): Likewise.
33554         (__SYSCALL_ULONG_TYPE): Likewise.
33555         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33556         (__SYSCALL_SLONG_TYPE): Likewise.
33557         (__SYSCALL_ULONG_TYPE): Likewise.
33558         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33559         (__SYSCALL_SLONG_TYPE): Likewise.
33560         (__SYSCALL_ULONG_TYPE): Likewise.
33561
33562 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33563
33564         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
33565         Add sigaltstack-offsets.sym.
33566         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
33567         <sigaltstack-offsets.h>.
33568         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
33569         longjmp_msg pointer.
33570         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
33571         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
33572         signal stack.
33573         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
33574
33575 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33576
33577         * elf/stackguard-macros.h: Remove file.
33578         * sysdeps/generic/stackguard-macros.h: New file.
33579         * sysdeps/i386/stackguard-macros.h: Likewise.
33580         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
33581         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
33582         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
33583         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
33584         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
33585         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
33586         * sysdeps/x86_64/stackguard-macros.h: Likewise.
33587         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
33588         <elf/stackguard-macros.h>.
33589
33590         [BZ #14109]
33591         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
33592         __aligned__ in attribute.
33593         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
33594         (gregset_t): Likewise.
33595
33596 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33597
33598         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
33599         * sysdeps/x86_64/64/Implies-after: Here.  New file.
33600         * sysdeps/x86_64/x32/Implies-after: New file.
33601
33602 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33603
33604         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
33605         and access return value for _dl_profile_fixup.  Use R10_LP to
33606         load frame size.
33607
33608 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33609
33610         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
33611
33612 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33613
33614         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
33615         * sysdeps/x86_64/x32/sysdep.h: New file.
33616
33617 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33618
33619         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
33620         * sysdeps/x86_64/setjmp.S: Likewise.
33621
33622 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33623
33624         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
33625         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
33626         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
33627         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
33628         remove unused global constant.
33629
33630 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
33631
33632         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
33633         include of <not-cancel.h>.
33634
33635 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33636
33637         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
33638
33639 2012-05-15  Jeff Law  <law@redhat.com>
33640             Andreas Jaeger  <aj@suse.de>
33641
33642         [BZ #13594]
33643         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
33644         out from...
33645         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
33646         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
33647         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
33648         code changing __hst_map_handle.map.
33649
33650 2012-05-15  Roland McGrath  <roland@hack.frob.com>
33651
33652         * configure.in (sysnames): Look for Implies-before and Implies-after
33653         files.
33654         * configure: Regenerated.
33655
33656 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33657
33658         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
33659         8-byte data alignment with LP_SIZE alignment.
33660
33661 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33662
33663         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
33664         into R10_LP.
33665
33666 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33667
33668         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
33669
33670 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33671
33672         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
33673         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
33674         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
33675         Likewise.
33676         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
33677
33678 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33679
33680         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
33681         (stackinfo_sub_sp): Likewise.
33682
33683 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33684
33685         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
33686         RAX_LP.
33687
33688 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33689
33690         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
33691         into R*_LP.
33692
33693 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33694
33695         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
33696         sizes into R*_LP.
33697
33698 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33699
33700         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
33701
33702 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33703
33704         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
33705         into R11_LP and load __x86_64_shared_cache_size_half into
33706         R8_LP.
33707
33708 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
33709
33710         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
33711         R8_LP.
33712
33713 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33714
33715         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
33716         logb for POWER7.
33717         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
33718         logbf for POWER7.
33719         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
33720         logbl for POWER7.
33721         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
33722         powerpc32/power7/fpu/s_logb.c via #include.
33723         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
33724         powerpc32/power7/fpu/s_logbf.c via #include.
33725         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
33726         powerpc32/power7/fpu/s_logbl.c via #include.
33727
33728 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
33729
33730         * README.libm: Remove file.
33731
33732 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33733
33734         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
33735         count for x32.  Use R*_LP and omit operand-size suffix.
33736
33737 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33738
33739         * shlib-versions: Move x86_64-.*-linux.* entries to ...
33740         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
33741         * sysdeps/x86_64/x32/shlib-versions: New file.
33742
33743 2012-05-14  Roland McGrath  <roland@hack.frob.com>
33744
33745         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
33746         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
33747         Use _dl_fatal_printf instead.
33748
33749 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33750
33751         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
33752         set if not set by the user.  Do not allow for being unset.
33753         * sysdeps/unix/sysv/linux/configure: Regenerated.
33754
33755 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33756
33757         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
33758         the `q' suffix from lea and replace .quad with ASM_ADDR.
33759
33760 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33761
33762         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
33763         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
33764         instead of $17.
33765         (PTR_DEMANGLE): Likewise.
33766
33767 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33768
33769         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
33770         (LP_OP): Likewise.
33771         (ASM_ADDR): Likewise.
33772         (RAX_LP): Likewise.
33773         (RBP_LP): Likewise.
33774         (RBX_LP): Likewise.
33775         (RCX_LP): Likewise.
33776         (RDI_LP): Likewise.
33777         (RSI_LP): Likewise.
33778         (RSP_LP): Likewise.
33779         (R8_LP): Likewise.
33780         (R9_LP): Likewise.
33781         (R10_LP): Likewise.
33782         (R10_LP): Likewise.
33783         (R11_LP): Likewise.
33784         (R12_LP): Likewise.
33785         (R13_LP): Likewise.
33786         (R14_LP): Likewise.
33787         (R15_LP): Likewise.
33788
33789 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33790
33791         * sysdeps/x86_64/x32/dl-machine.h: New file.
33792
33793 2012-05-14  Andreas Jaeger  <aj@suse.de>
33794
33795         * manual/Makefile (subdir): Remove export of subdir.
33796         (all): Remove target.
33797         (.PHONY): Remove all from list.
33798         (mkinstalldirs): Remove.
33799         (.PHONY): Remove installdirs from list.
33800         ($(inst_infodir)/libc.info): Use make-target-directory.
33801         (installdirs): Remove.
33802         (subdir_%): Remove.
33803         (glibc-targets): Remove.
33804         (lib): Remove.
33805         (stubs): Remove.
33806         ($(objpfx)stubs ../po/manual.pot): Remove.
33807         ($(objpfx)stamp%): Remove.
33808         (make-target-directory): Remove.
33809         (subdir_install): Remove.
33810         (routines): Remove.
33811         (aux): Remove.
33812         (sources): Remove.
33813         (objects): Remove.
33814         (headers): Remove.
33815
33816         [BZ #13750]
33817         * manual/.gitignore: Remove, it's not needed anymore.
33818         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
33819         all files in it.
33820         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
33821         directory.
33822         (texis): Renamed to $(objpfx)texis.
33823         (texis-path): New, contains path to generated files.
33824         (chapters.%): Use texis-path for complete path, add extra argument
33825         libc-texinfo.sh.
33826         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
33827         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
33828         (summary,texi, stamp-summary): Use complete path of
33829         files. Generate files in build dir.
33830         (dir-add.texi): Build in build dir.
33831         (libm-err.texi,stamp-libm-err): Likewise.
33832         (version.texi, stamp-version): Likewise.
33833         (.%c.texi): Likewise.
33834         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
33835         (mostlyclean): Remove target.
33836         (realclean): Remove target.
33837         (generated): Add new variable with contents from mostlyclean and
33838         realclean, remove entries duplicated in common-mostlyclean, add
33839         stamp-libm-err and stamp-version.
33840         (generated-dirs): Add libc directory.
33841         ($(inst_infodir)/libc.info): Install files from build dir.
33842
33843         * manual/install.texi (Configuring and compiling): Adjust since
33844         the info files are not part of the tar ball anymore.
33845
33846 2012-05-14  Andreas Jaeger  <aj@suse.de>
33847
33848         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
33849         variable.
33850
33851 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
33852
33853         [BZ #13717]
33854         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
33855         to 2.2.0 where earlier.
33856         * sysdeps/unix/sysv/linux/configure: Regenerated.
33857         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
33858         Remove conditional code.
33859         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
33860         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
33861         Remove conditional code.
33862         [!__NR_lchown]: Likewise.
33863         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33864         [__NR_lchown]: Likewise.
33865         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
33866         comment referencing __ASSUME_LCHOWN_SYSCALL.
33867         * sysdeps/unix/sysv/linux/i386/sigaction.c
33868         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33869         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33870         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
33871         Remove conditional code.
33872         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
33873         (__protocol_available): Remove #if 0 code.
33874         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
33875         conditional code.
33876         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
33877         * sysdeps/unix/sysv/linux/kernel-features.h
33878         (__ASSUME_GETCWD_SYSCALL): Don't define.
33879         (__ASSUME_REALTIME_SIGNALS): Likewise.
33880         (__ASSUME_PREAD_SYSCALL): Likewise.
33881         (__ASSUME_PWRITE_SYSCALL): Likewise.
33882         (__ASSUME_POLL_SYSCALL): Likewise.
33883         (__ASSUME_LCHOWN_SYSCALL): Likewise.
33884         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
33885         non-SPARC.
33886         (__ASSUME_SIOCGIFNAME): Don't define.
33887         (__ASSUME_MSG_NOSIGNAL): Likewise.
33888         (__ASSUME_SENDFILE): Define unconditionally.
33889         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
33890         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
33891         conditional code.
33892         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
33893         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
33894         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33895         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33896         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
33897         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
33898         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
33899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
33900         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33901         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
33903         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33904         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
33906         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33907         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
33909         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33910         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
33912         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33913         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
33915         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
33916         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
33918         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33919         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
33921         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33922         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33923         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
33924         Remove conditional code.
33925         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33926         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33927         Remove conditional code.
33928         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33929         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
33930         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
33931         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33932         Remove conditional code.
33933         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33934         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
33935         Remove conditional code.
33936         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33937         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
33938         Remove conditional code.
33939         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33940         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
33941         Remove conditional code.
33942         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
33943         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
33944         Remove conditional code.
33945         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33946         * sysdeps/unix/sysv/linux/sh/pwrite64.c
33947         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
33948         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
33949         * sysdeps/unix/sysv/linux/sigaction.c
33950         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33951         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33952         * sysdeps/unix/sysv/linux/sigpending.c
33953         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33954         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33955         * sysdeps/unix/sysv/linux/sigprocmask.c
33956         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33957         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33958         * sysdeps/unix/sysv/linux/sigsuspend.c
33959         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
33960         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
33961         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33962         (__libc_missing_rt_sigs): Remove.
33963         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
33964         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
33965         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
33966         Remove conditional code.
33967         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
33968         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
33969         return 1.
33970         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
33971         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
33972         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
33973         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
33974
33975 2012-05-14  Andreas Jaeger  <aj@suse.de>
33976
33977         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
33978         it's not used in glibc.
33979         (__coshm1): Likewise.
33980         (__acosh1p): Likewise.
33981         (__sgn): Likewise.
33982
33983         * manual/string.texi (Copying and Concatenation): Add missing
33984         variable in concat example.
33985         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
33986
33987 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33988
33989         [BZ #14103]
33990         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
33991         __builtin_clzl with __builtin_clzll.
33992
33993 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
33994
33995         [BZ #14104]
33996         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
33997         libc_freeres_ptr.
33998
33999 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34000
34001         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
34002         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
34003         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
34004         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
34005
34006 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
34007
34008         * NEWS: Update ia64 info.
34009
34010 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
34011
34012         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
34013         used as bcopy.
34014
34015 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
34016
34017         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
34018         * sysdeps/unix/syscalls.list (dup3): Likewise.
34019         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
34020         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
34021
34022 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
34023
34024         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
34025         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
34026
34027 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
34028
34029         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
34030         thread pointer.
34031         (TLS_IE): Use mov/add instead of movq/addq to load thread
34032         pointer.
34033         (TLS_GD_PREFIX): New.
34034         (TLS_GD): Use it.
34035
34036 2012-05-11  David S. Miller  <davem@davemloft.net>
34037
34038         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
34039         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
34040         (_FPU_SETCW): Likewise.
34041
34042 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34043
34044         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
34045         is 32-byte aligned.
34046
34047 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
34048
34049         [BZ #11837]
34050         * iconvdata/gb18030.c: Update tables.
34051         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
34052         characters specially.
34053         (BODY for TO_LOOP): Add encoding of missing ranges.
34054
34055 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
34056
34057         [BZ #13673]
34058         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
34059         * sysdeps/mach/hurd/dup3.c: Likewise.
34060         * sysdeps/mach/hurd/readlinkat.c: Likewise.
34061         * sysdeps/powerpc/memmove.c:: Likewise.
34062
34063 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34064
34065         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
34066         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
34067
34068 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34069
34070         * elf/elf.h (R_X86_64_RELATIVE64): New.
34071         (R_X86_64_NUM): Updated.
34072         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
34073         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
34074         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
34075         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
34076         tst-quad1pie tst-quad2pie
34077         (modules-names): Add tst-quadmod1 tst-quadmod2.
34078         ($(objpfx)tst-quad1): New dependency.
34079         ($(objpfx)tst-quad2): Likewise.
34080         ($(objpfx)tst-quad1pie): Likewise.
34081         ($(objpfx)tst-quad2pie): Likewise.
34082         * sysdeps/x86_64/tst-quad1.c: New file.
34083         * sysdeps/x86_64/tst-quad1pie.c: New file.
34084         * sysdeps/x86_64/tst-quad2.c: Likewise.
34085         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
34086         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
34087         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
34088         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
34089         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
34090
34091 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34092
34093         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
34094         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
34095         * streams/stropts.h (t_scalar_t): Define type.
34096
34097         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
34098         (_PATH_PRESERVE): Set to "/var/lib".
34099         (_PATH_RWHODIR): Set to "/var/spool/rwho".
34100
34101         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
34102         instead of int.
34103
34104         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
34105         if __dir_mkfile succeeded.
34106
34107         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
34108         checking for _hurd_dtablesize.  Unlock it right after having
34109         finished _hurd_dtable allocation.
34110
34111 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34112
34113         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
34114         * sysdeps/mach/hurd/configure: Regenerated.
34115         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
34116         special-casing to...
34117         * sysdeps/gnu/configure.in: ... this new file.
34118         * sysdeps/unix/sysv/linux/configure: Regenerated.
34119         * sysdeps/gnu/configure: New generated file.
34120
34121         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
34122         for Linux: use nsec instead of usec, as well as:
34123         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
34124         members of type struct timespec.
34125         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
34126         New macros.
34127         (struct stat64): Likewise.
34128         (_STATBUF_ST_NSEC): New macro.
34129         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
34130
34131         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
34132         __strtoul_internal rather than strtoul.
34133
34134 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34135
34136         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
34137         and reject them.
34138
34139 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34140
34141         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
34142         which preserves existing values.
34143         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
34144
34145 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34146
34147         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
34148         TIMEOUT values.  Return EINVAL for NFDS values either negative or
34149         greater than FD_SETSIZE.
34150
34151 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34152
34153         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
34154         allocated, call __vm_protect to finish enabling the existing space, and
34155         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
34156         allocate the remainder.
34157
34158 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34159
34160         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
34161         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
34162
34163 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34164
34165         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
34166         sysdeps/mach/hurd/readlink.c.
34167
34168         * posix/tst-sysconf.c (posix_options): Only use
34169         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
34170         _POSIX_SYNCHRONIZED_IO when they are defined
34171         * sysdeps/mach/hurd/bits/posix_opt.h:
34172         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
34173         (_XOPEN_REALTIME): Undefine macro.
34174         (_XOPEN_REALTIME_THREADS): Undefine macro.
34175         (_XOPEN_SHM): Undefine macro.
34176         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
34177         macro to -1.
34178         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
34179         macro to -1.
34180         (_POSIX_ASYNC_IO): Undefine macro.
34181         (_POSIX_PRIORITIZED_IO): Undefine macro.
34182         (_POSIX_SPIN_LOCKS): Define macro to -1.
34183
34184         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
34185         SA_NODEFER, SA_RESETHAND.
34186         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
34187         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
34188         F_DUPFD_CLOEXEC.
34189
34190 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34191
34192         * elf/Makefile (pldd-modules): Define unconditionally.
34193
34194 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34195
34196         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
34197
34198 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34199
34200         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
34201         Return ENOENT when name is empty.
34202         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
34203
34204 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34205
34206         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
34207
34208         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
34209
34210 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34211
34212         Fix mlock in all cases except non-readable pages.
34213         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
34214         instead of VM_PROT_ALL as parameter to __vm_wire function.
34215
34216         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
34217         (__mkdir): When path is `/', just fail with EEXIST.
34218         * sysdeps/mach/hurd/mkdirat.c: Likewise.
34219
34220 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34221
34222         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
34223         <sys/uio.h> (for writev).
34224         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
34225         and <sys/param.h> (for MIN).
34226
34227 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34228
34229         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
34230         REQUESTED_TIME.  Properly set the remaining time and return EINTR
34231         if interrupted.
34232
34233 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34234
34235         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
34236         Depend on against $(link-rpcuserlibs).
34237
34238 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34239
34240         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
34241         (__libc_stack_end): Do not use attribute_relro.
34242         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
34243         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
34244         to libthread-provided value.
34245         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
34246         attribute_relro.
34247
34248 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34249
34250         [BZ #3748]
34251         * bits/libc-lock.h (__libc_once_get): New macro.
34252         * sysdeps/mach/bits/libc-lock.h: Likewise.
34253         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
34254         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
34255         instead of using implementation details.
34256
34257         * libio/fileops.c: Unconditionally include <kernel-features.h>.
34258         * libio/freopen.c: Likewise.
34259         * libio/freopen64.c: Likewise.
34260         * misc/syslog.c: Likewise.
34261         * nscd/connections.c: Likewise.
34262         * nscd/netgroupcache.c: Likewise.
34263         * sysdeps/posix/getcwd.c: Likewise.
34264
34265 2012-05-10  Roland McGrath  <roland@hack.frob.com>
34266
34267         * math/w_ilogbf.c: Add #include <limits.h>.
34268
34269 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34270
34271         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
34272         path instead of returning without unlocking.
34273
34274         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
34275         immediate-write ioctls.
34276         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
34277
34278 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34279
34280         * sysdeps/mach/hurd/i386/init-first.c (init): Use
34281         __builtin_frame_address instead of making assumptions about the
34282         location of the return address relative to DATA.  Force early load of
34283         the return address.
34284         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
34285         __builtin_frame_address.
34286
34287         dup3 for GNU Hurd.
34288         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
34289         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
34290         implement dup3 and do some further code clean-ups.
34291         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
34292         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
34293
34294 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34295
34296         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
34297
34298         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
34299         HURD_CRITICAL_END around holding _hurd_dtable_lock.
34300         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
34301         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
34302         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
34303         d->port.lock.
34304
34305         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
34306         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
34307         when handler == SIG_ERR, not when handler != SIG_ERR.
34308
34309 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34310
34311         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
34312         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
34313         definitions.
34314
34315         accept4 for GNU Hurd.
34316         * include/sys/socket.h (__libc_accept4): New prototype.
34317         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
34318         to implement __libc_accept4.
34319         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
34320         __libc_accept4.
34321         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
34322
34323         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
34324         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
34325         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
34326         signal-defines.sym.
34327
34328 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34329
34330         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
34331
34332 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34333
34334         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
34335         assertion on O_CLOEXEC flag.
34336         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
34337         * hurd/intern-fd.c: Likewise.
34338         * hurd/port2fd.c: Likewise.
34339
34340 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34341
34342         [BZ #3906]
34343         * bits/in.h (IPV6_PKTINFO): Define new macro.
34344         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
34345
34346 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34347
34348         [BZ #13954]
34349         [BZ #13955]
34350         [BZ #13956]
34351         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
34352         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
34353         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
34354         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
34355         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
34356         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
34357         * math/libm-test.inc (logb_test) : Additional logb tests.
34358
34359 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
34360             Andreas Jaeger  <aj@suse.de>
34361
34362         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
34363         * configure: Regenerated.
34364         * config.h.in (LINK_OBSOLETE_RPC): New macro.
34365         * config.make.in (link-obsolete-rpc): New substituted variable.
34366         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
34367         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
34368         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
34369         (shared-only-routines): Don't set it under [link-obsolete-rpc],
34370         so that libc.a contains the symbols.
34371         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
34372         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
34373         * sunrpc/auth_none.c: Likewise.
34374         * sunrpc/auth_unix.c: Likewise.
34375         * sunrpc/authdes_prot.c: Likewise.
34376         * sunrpc/authuxprot.c: Likewise.
34377         * sunrpc/clnt_gen.c: Likewise.
34378         * sunrpc/clnt_perr.c: Likewise.
34379         * sunrpc/clnt_raw.c: Likewise.
34380         * sunrpc/clnt_simp.c: Likewise.
34381         * sunrpc/clnt_tcp.c: Likewise.
34382         * sunrpc/clnt_udp.c: Likewise.
34383         * sunrpc/clnt_unix.c: Likewise.
34384         * sunrpc/des_crypt.c: Likewise.
34385         * sunrpc/des_soft.c: Likewise.
34386         * sunrpc/get_myaddr.c: Likewise.
34387         * sunrpc/key_call.c: Likewise.
34388         * sunrpc/key_prot.c: Likewise.
34389         * sunrpc/netname.c: Likewise.
34390         * sunrpc/pm_getmaps.c: Likewise.
34391         * sunrpc/pm_getport.c: Likewise.
34392         * sunrpc/pmap_clnt.c: Likewise.
34393         * sunrpc/pmap_prot.c: Likewise.
34394         * sunrpc/pmap_prot2.c: Likewise.
34395         * sunrpc/pmap_rmt.c: Likewise.
34396         * sunrpc/publickey.c: Likewise.
34397         * sunrpc/rpc_cmsg.c: Likewise.
34398         * sunrpc/rpc_common.c: Likewise.
34399         * sunrpc/rpc_dtable.c: Likewise.
34400         * sunrpc/rpc_prot.c: Likewise.
34401         * sunrpc/rpc_thread.c: Likewise.
34402         * sunrpc/rtime.c: Likewise.
34403         * sunrpc/svc.c: Likewise.
34404         * sunrpc/svc_auth.c: Likewise.
34405         * sunrpc/svc_raw.c: Likewise.
34406         * sunrpc/svc_run.c: Likewise.
34407         * sunrpc/svc_tcp.c: Likewise.
34408         * sunrpc/svc_udp.c: Likewise.
34409         * sunrpc/svc_unix.c: Likewise.
34410         * sunrpc/svcauth_des.c: Likewise.
34411         * sunrpc/xcrypt.c: Likewise.
34412         * sunrpc/xdr.c: Likewise.
34413         * sunrpc/xdr_array.c: Likewise.
34414         * sunrpc/xdr_float.c: Likewise.
34415         * sunrpc/xdr_intXX_t.c: Likewise.
34416         * sunrpc/xdr_mem.c: Likewise.
34417         * sunrpc/xdr_rec.c: Likewise.
34418         * sunrpc/xdr_ref.c: Likewise.
34419         * sunrpc/xdr_sizeof.c: Likewise.
34420         * sunrpc/xdr_stdio.c: Likewise.
34421
34422 2012-05-10  Roland McGrath  <roland@hack.frob.com>
34423
34424         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
34425         change.  Update copyright years.
34426
34427 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
34428
34429         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
34430
34431 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
34432             Joseph Myers  <joseph@codesourcery.com>
34433             Paul Pluzhnikov  <ppluzhnikov@google.com>
34434
34435         [BZ #14012]
34436         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
34437         requiring rpcgen.
34438         [cross-compiling] (extra-libs): Likewise.
34439         [cross-compiling] (extra-libs-others): Likewise.
34440         [cross-compiling] (librpcsvc-routines): Likewise.
34441         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
34442         [cross-compiling] (omit-deps): Likewise.
34443         (sunrpc-CPPFLAGS): New variable.
34444         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
34445         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
34446         (cross-rpcgen-objs): New variable.
34447         (extra-objs): Append $(cross-rpcgen-objs).
34448         ($(cross-rpcgen-objs)): New rule.
34449         ($(objpfx)cross-rpcgen): Likewise.
34450         (rpcgen-cmd): Define to use $(built-program-file).  Expand
34451         comment.
34452         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
34453         ($(objpfx)x%.stmp): Likewise.
34454         * sunrpc/proto.h [IS_IN_build] (_): Define.
34455         [IS_IN_build] (_libc_intl_domainname): Likewise.
34456
34457 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34458
34459         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
34460         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
34461         and R_X86_64_TPOFF64.
34462
34463 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
34464
34465         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
34466         sysdeps/unix/sysv/syscalls.list.
34467         (stime): Likewise.
34468         (utime): Likewise.
34469         * sysdeps/unix/sysv/syscalls.list: Remove file.
34470
34471 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
34472
34473         [BZ #3440]
34474         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
34475         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
34476         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
34477         (__LC_IDENTIFICATION): Make these macros useful in #if
34478         expressions, as required by C99.
34479
34480 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
34481
34482         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
34483         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
34484         after this.
34485
34486 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
34487
34488         * stdlib/longlong.h: Updated from GCC.
34489
34490 2012-05-09  Andreas Jaeger  <aj@suse.de>
34491
34492         * nscd/nscd.c (run_modes): Make named enum, reorder so that
34493         default is first entry.
34494         (run_mode): Set type.
34495         (main): Remove informal message about syslog.
34496         (options): Fix typo.
34497
34498         [BZ #14053]
34499         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
34500         to asm.
34501         (lrint): Likewise.
34502         (llrintf): Likewise.
34503         (llrint): Likewise.
34504         (rint): Likewise.
34505         (rintf): Likewise.
34506         (nearbyint): Likewise.
34507         (nearbyintf): Likewise.
34508
34509 2012-05-09  Andreas Jaeger  <aj@suse.de>
34510             Pedro Alves  <palves@redhat.com>
34511
34512         * nscd/nscd.c (run_mode): Use enum.
34513         (main): Cleanup coding style issue.
34514
34515 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
34516             Andreas Jaeger  <aj@suse.de>
34517
34518         * nscd/nscd.c (go_background): Replaced with...
34519         (run_mode): ... this.
34520         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
34521         (options): Add -F --foreground.
34522         (main): Implement it.
34523         (parse_opt): Parse it.
34524
34525 2012-05-09  Andreas Jaeger  <aj@suse.de>
34526
34527         [BZ #14083]
34528         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
34529         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
34530         -Wconversion warning.
34531         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
34532         Likewise.
34533
34534 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
34535
34536         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
34537         == 0.
34538         (LC_ALL): Use macro-int-constant.
34539         (LC_COLLATE): Likewise.
34540         (LC_CTYPE): Likewise.
34541         (LC_MESSAGES): Likewise.
34542         (LC_MONETARY): Likewise.
34543         (LC_NUMERIC): Likewise.
34544         (LC_TIME): Likewise.
34545         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
34546         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
34547         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34548         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
34549         Specify type.
34550         [C99-based standards] (float_t): Expect type.
34551         [C99-based standards] (double_t): Expect type.
34552         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
34553         type.
34554         [C99-based standards] (HUGE_VALL): Likewise.
34555         [C99-based standards] (INFINITY): Likewise.
34556         [C99-based standards] (NAN): Likewise.
34557         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
34558         [C99-based standards] (FP_NAN): Likewise.
34559         [C99-based standards] (FP_NORMAL): Likewise.
34560         [C99-based standards] (FP_SUBNORMAL): Likewise.
34561         [C99-based standards] (FP_ZERO): Likewise.
34562         [C99-based standards] (FP_FAST_FMA): Use
34563         optional-macro-int-constant.  Specify type.  Require == 1.
34564         [C99-based standards] (FP_FAST_FMAF): Likewise.
34565         [C99-based standards] (FP_FAST_FMAL): Likewise.
34566         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
34567         [C99-based standards] (FP_ILOGBNAN): Likewise.
34568         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
34569         Specify type.
34570         [C99-based standards] (MATH_ERREXCEPT): Likewise.
34571         [C99-based standards] (math_errhandling): Specify type.
34572         [ISO99 || ISO11] (signgam): Do not allow.
34573         [non-C99-based standards] (copysignf): Do not allow.
34574         [non-C99-based standards] (exp2f): Likewise.
34575         [non-C99-based standards] (log2f): Likewise.
34576         [non-C99-based standards] (modff): Allow.
34577         [non-C99-based standards] (erff): Do not allow.
34578         [non-C99-based standards] (erfcf): Likewise.
34579         [non-C99-based standards] (gammaf): Likewise.
34580         [non-C99-based standards] (hypotf): Likewise.
34581         [non-C99-based standards] (j0f): Likewise.
34582         [non-C99-based standards] (j1f): Likewise.
34583         [non-C99-based standards] (jnf): Likewise.
34584         [non-C99-based standards] (lgammaf): Likewise.
34585         [non-C99-based standards] (tgammaf): Likewise.
34586         [non-C99-based standards] (y0f): Likewise.
34587         [non-C99-based standards] (y1f): Likewise.
34588         [non-C99-based standards] (ynf): Likewise.
34589         [non-C99-based standards] (isnanf): Likewise.
34590         [non-C99-based standards] (acoshf): Likewise.
34591         [non-C99-based standards] (asinhf): Likewise.
34592         [non-C99-based standards] (atanhf): Likewise.
34593         [non-C99-based standards] (cbrtf): Likewise.
34594         [non-C99-based standards] (expm1f): Likewise.
34595         [non-C99-based standards] (ilogbf): Likewise.
34596         [non-C99-based standards] (log1pf): Likewise.
34597         [non-C99-based standards] (logbf): Likewise.
34598         [non-C99-based standards] (nextafterf): Likewise.
34599         [non-C99-based standards] (remainderf): Likewise.
34600         [non-C99-based standards] (rintf): Likewise.
34601         [non-C99-based standards] (scalbf): Likewise.
34602         [non-C99-based standards] (copysignl): Likewise.
34603         [non-C99-based standards] (exp2l): Likewise.
34604         [non-C99-based standards] (log2l): Likewise.
34605         [non-C99-based standards] (modfl): Allow.
34606         [non-C99-based standards] (erfl): Do not allow.
34607         [non-C99-based standards] (erfcl): Likewise.
34608         [non-C99-based standards] (gammal): Likewise.
34609         [non-C99-based standards] (hypotl): Likewise.
34610         [non-C99-based standards] (j0l): Likewise.
34611         [non-C99-based standards] (j1l): Likewise.
34612         [non-C99-based standards] (jnl): Likewise.
34613         [non-C99-based standards] (lgammal): Likewise.
34614         [non-C99-based standards] (tgammal): Likewise.
34615         [non-C99-based standards] (y0l): Likewise.
34616         [non-C99-based standards] (y1l): Likewise.
34617         [non-C99-based standards] (ynl): Likewise.
34618         [non-C99-based standards] (isnanl): Likewise.
34619         [non-C99-based standards] (acoshl): Likewise.
34620         [non-C99-based standards] (asinhl): Likewise.
34621         [non-C99-based standards] (atanhl): Likewise.
34622         [non-C99-based standards] (cbrtl): Likewise.
34623         [non-C99-based standards] (expm1l): Likewise.
34624         [non-C99-based standards] (ilogbl): Likewise.
34625         [non-C99-based standards] (log1pl): Likewise.
34626         [non-C99-based standards] (logbl): Likewise.
34627         [non-C99-based standards] (nextafterl): Likewise.
34628         [non-C99-based standards] (remainderl): Likewise.
34629         [non-C99-based standards] (rintl): Likewise.
34630         [non-C99-based standards] (scalbl): Likewise.
34631         [ISO || ISO99 || ISO11] (*_t): Do not allow.
34632         [non-C99-based standards] (FP_*): Do not allow.
34633         [C99-based standards] (FP_*): Change to
34634         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
34635         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34636         allow.
34637         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
34638         (SIG_ERR): Likewise.
34639         [X/Open-based standards] (SIG_HOLD): Likewise.
34640         (SIG_IGN): Likewise.
34641         (SIGABRT): Use macro-int-constant.  Specify type.  Require
34642         positive value.
34643         (SIGFPE): Likewise.
34644         (SIGILL): Likewise.
34645         (SIGINT): Likewise.
34646         (SIGSEGV): Likewise.
34647         (SIGTER): Likewise.
34648         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
34649         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
34650         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
34651         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
34652         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
34653         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
34654         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
34655         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
34656         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
34657         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
34658         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
34659         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
34660         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
34661         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
34662         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
34663         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
34664         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
34665         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
34666         [X/Open-based standards] (SIGTRAP): Likewise.
34667         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
34668         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
34669         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
34670         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
34671         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
34672         allow.
34673
34674 2012-05-08  Ian Wienand  <ianw@vmware.com>
34675
34676         [BZ #14080]
34677         * time/tzset.c (__tzset_parse_tz): Update default rules for
34678         daylight time changes in the Energy Policy Act of 2005.
34679
34680 2012-05-09  Andreas Jaeger  <aj@suse.de>
34681
34682         [BZ #13983]
34683         * elf/ldconfig.c (parse_conf): Change string to make clear that
34684         ldconfig only issued a warning if ld.so.conf does not exist.
34685
34686 2012-05-08  David S. Miller  <davem@davemloft.net>
34687
34688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
34689         movxtod instead of popping the value on the stack.
34690
34691         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34692
34693 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
34694
34695         * config.h.in: Add HAVE_ARM_PCS_VFP.
34696
34697 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
34698
34699         [BZ #13979]
34700         * include/features.h: Warn if user requests __FORTIFY_SOURCE
34701         checking but the checks are disabled for any reason.
34702
34703 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
34704
34705         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
34706         and ELF64_R_TYPE with ELFW(R_TYPE).
34707
34708 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
34709
34710         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
34711         (ulimit): Likewise.
34712
34713         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
34714         (settimeofday): Likewise.
34715
34716 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
34717
34718         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
34719         a struct th_u2 inside the union, and move tu_block/tu_code into
34720         a new th_u3 union of tu_block/tu_code inside of that.  Move
34721         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
34722         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
34723         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
34724         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
34725         (th_stuff): Change to th_u1.tu_stuff.
34726         (th_data): Define.
34727         (th_msg): Change to th_u1.th_u2.tu_data.
34728
34729 2012-05-07  David S. Miller  <davem@davemloft.net>
34730
34731         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34732
34733         [BZ #14074]
34734         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
34735         (SETUP_PIC_REG): Use it.
34736         (SETUP_PIC_REG_LEAF): Use it.
34737
34738 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
34739
34740         [BZ #13885]
34741         [BZ #13923]
34742         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34743         USE_AS_EXPM1L.
34744         (EXPL_FINITE): Likewise.
34745         (FLDLOG): Likewise.
34746         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34747         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34748         e_expl.S.
34749         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34750         USE_AS_EXPM1L.
34751         (EXPL_FINITE): Likewise.
34752         (FLDLOG): Likewise.
34753         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
34754         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
34755         e_expl.S.
34756         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
34757         test of -max_value argument for long double.
34758         * sysdeps/i386/fpu/libm-test-ulps: Update.
34759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34760
34761 2012-05-06  David S. Miller  <davem@davemloft.net>
34762
34763         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
34764         quad soft-float symbols whose references which are compiler
34765         generated.
34766         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
34767
34768 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
34769
34770         [BZ #13884]
34771         [BZ #13914]
34772         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34773         USE_AS_EXP10L.
34774         (EXPL_FINITE): Likewise.
34775         (FLDLOG): Likewise.
34776         (c0): Likewise.
34777         (c1): Likewise.
34778         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34779         Adjust comments for base varying.
34780         (__expl_finite): Change alias to EXPL_FINITE.
34781         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
34782         e_expl.S.
34783         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
34784         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
34785         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
34786         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
34787         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
34788         USE_AS_EXP10L.
34789         (EXPL_FINITE): Likewise.
34790         (FLDLOG): Likewise.
34791         (c0): Likewise.
34792         (c1): Likewise.
34793         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
34794         Adjust comments for base varying.
34795         (__expl_finite): Change alias to EXPL_FINITE.
34796         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
34797         tests for bugs.
34798         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34799
34800         [BZ #14064]
34801         * math/libm-test.inc (check_float_internal): Correct ulp
34802         calculation for subnormal expected results.
34803
34804 2012-05-06  Andreas Jaeger  <aj@suse.de>
34805
34806         * Makeconfig (+math-flags): New, set to -frounding-math.
34807         (+cflags): Add +math-flags so that all of glibc gets compiled with
34808         it.
34809
34810         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
34811
34812 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
34813
34814         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
34815         Disable one test.
34816
34817         [BZ #13787]
34818         [BZ #13922]
34819         [BZ #14036]
34820         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
34821         (__ieee754_expl): Allow for and saturate large arguments.
34822         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
34823         (u_threshold): Likewise.
34824         (__exp): Call __ieee754_exp before checking for overflow and
34825         underflow.
34826         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
34827         (u_threshold): Likewise.
34828         (__expf): Call __ieee754_expf before checking for overflow and
34829         underflow.
34830         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
34831         (u_threshold): Likewise.
34832         (__expl): Call __ieee754_expl before checking for overflow and
34833         underflow.
34834         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
34835         (__ieee754_expl): Allow for and saturate large arguments.
34836         * math/libm-test.inc (exp_test): Add another test.  Do not allow
34837         missing overflow exception on overflow.
34838         (expm1_test): Do not allow missing overflow exception on overflow.
34839
34840         * sysdeps/i386/fpu/e_expl.c: Move to ...
34841         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
34842         rather than using inline asm.
34843         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
34844         * sysdeps/x86_64/fpu/e_expl.S: Copy from
34845         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
34846
34847         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
34848         (nice): Likewise.
34849         (poll): Likewise.
34850         (signal): Likewise.
34851         (time): Likewise.
34852         (times): Likewise.
34853
34854 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34855
34856         * sysdeps/unix/syscalls.list (adjtime): Add entry from
34857         sysdeps/unix/common/syscalls.list.
34858         (fchmod): Likewise.
34859         (fchown): Likewise.
34860         (ftruncate): Likewise.
34861         (getrusage): Likewise.
34862         (gettimeofday): Likewise.
34863         (setpgid): Likewise.
34864         (setregid): Likewise.
34865         (setreuid): Likewise.
34866         (sigaction): Likewise.
34867         (truncate): Likewise.
34868         (vhangup): Likewise.
34869         * sysdeps/unix/common/syscalls.list: Remove file.
34870         * sysdeps/unix/bsd/Implies: Don't include unix/common.
34871         * sysdeps/unix/sysv/linux/Implies: Likewise.
34872
34873 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
34874
34875         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
34876         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
34877         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
34878         Moved to ...
34879         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
34880         Here.
34881         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
34882         to ...
34883         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
34884         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
34885         to ...
34886         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
34887         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
34888         to ...
34889         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
34890         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
34891         to ...
34892         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
34893         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
34894         to ...
34895         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
34896         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
34897         to ...
34898         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
34899         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
34900         to ...
34901         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
34902         Here.
34903         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
34904         to ...
34905         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
34906         Here.
34907         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
34908         to ...
34909         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
34910         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
34911         Moved to ...
34912         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
34913         Here.
34914         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
34915         to ...
34916         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
34917
34918 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34919
34920         * sysdeps/unix/common/bits/dirent.h: Remove file.
34921         * sysdeps/unix/common/bits/fcntl.h: Likewise.
34922
34923         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
34924         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
34925         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
34926         * sysdeps/unix/bsd/isatty.c: Likewise.
34927         * sysdeps/unix/bsd/tcdrain.c: Likewise.
34928         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
34929         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
34930
34931 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34932
34933         [BZ #13563]
34934         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
34935         long double comparison inaccuracies.
34936         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
34937         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34938
34939 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
34940
34941         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
34942         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
34943
34944 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
34945
34946         [BZ #14049]
34947         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
34948         nonzero digits before rounding a hex value.
34949         * stdlib/tst-strtod.c (tests): Add another test.
34950
34951 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34952
34953         * sysdeps/s390/fpu/libm-test-ulps: Update.
34954
34955 2012-05-03  Andreas Jaeger  <aj@suse.de>
34956
34957         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
34958         does not get optimized out.
34959         (malloc_opt_barrier): New.
34960
34961 2012-05-03  Andreas Jaeger  <aj@suse.de>
34962             Roland McGrath  <roland@hack.frob.com>
34963
34964         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
34965         intermediate file deletion.
34966         (generated): Add .symlist files.
34967
34968 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
34969
34970         [BZ #13775]
34971         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
34972         Redirect under this condition.
34973         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34974         [__USE_GNU] (__dprintf_chk): Not under this condition.
34975         [__USE_GNU] (__vdprintf_chk): Likewise.
34976         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
34977         under this condition.
34978         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
34979         [__USE_XOPEN2K8] (dprintf): Define under this condition.
34980         [__USE_XOPEN2K8] (vdprintf): Likewise.
34981         [__USE_GNU] (__dprintf_chk): Not under this condition.
34982         [__USE_GNU] (__vdprintf_chk): Likewise.
34983         [__USE_GNU] (dprintf): Likewise.
34984         [__USE_GNU] (vdprintf): Likewise.
34985
34986 2012-05-03  Roland McGrath  <roland@hack.frob.com>
34987
34988         * elf/Makefile (common-generated): Set this instead of generated for
34989         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
34990         $(all-built-dso)-derived lists.
34991
34992 2012-05-03  Andreas Jaeger  <aj@suse.de>
34993
34994         * sysdeps/i386/fpu/libm-test-ulps: Update.
34995
34996         * FAQ: Removed.
34997         * FAQ.in: Likewise.
34998         * scripts/gen-FAQ.pl: Likewise.
34999         * manual/install.texi (Installation): Point to online location of
35000         FAQ.
35001         * Makefile (files-for-dist): Remove FAQ.
35002         (FAQ): Remove.
35003
35004 2012-05-02  Allan McRae  <allan@archlinux.org>
35005
35006         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
35007         (LDFLAGS-reldepmod5.so): Likewise.
35008         (LDFLAGS-reldep6mod1.so): Likewise.
35009         (LDFLAGS-reldep6mod4.so): Likewise.
35010         (LDFLAGS-reldep8mod3.so): Likewise.
35011         (LDFLAGS-unload4mod1.so): Likewise.
35012         (LDFLAGS-unload4mod2.so): Likewise.
35013         (LDFLAGS-tst-initorder): Likewise.
35014         (LDFLAGS-tst-initordera2.so): Likewise.
35015         (LDFLAGS-tst-initordera3.so): Likewise.
35016         (LDFLAGS-tst-initordera4.so): Likewise.
35017         (LDFLAGS-tst-initorderb2.so): Likewise.
35018         (LDFLAGS-noload): Likewise.
35019         (LDFLAGS-next): Likewise.
35020         (LDFLAGS-order2mod1.so): Likewise.
35021         (LDFLAGS-order2mod2.so): Likewise.
35022         (LDFLAGS-tst-initorder2): Likewise.
35023         (LDFLAGS-tst-initorder2a.so): Likewise.
35024         (LDFLAGS-tst-initorder2b.so): Likewise.
35025         (LDFLAGS-tst-initorder2c.so): Likewise.
35026         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
35027
35028 2012-05-02  David S. Miller  <davem@davemloft.net>
35029
35030         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35031
35032 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
35033
35034         [BZ #14055]
35035         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
35036
35037 2012-05-02  Andreas Jaeger  <aj@suse.de>
35038
35039         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
35040         since we manipulate rounding mode.
35041         (CPPFLAGS-test-idouble.c): Likewise.
35042         (CPPFLAGS-test-ifloat.c): Likewise.
35043         (CFLAGS-test-ldouble.c): Likewise.
35044         (CFLAGS-test-double.c): Likewise.
35045         (CFLAGS-test-float.c): Likewise.
35046         (CFLAGS-test-misc.c): Likewise.
35047         (CFLAGS-test-test-fenv.c): Likewise.
35048
35049 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35050
35051         [BZ #2550]
35052         [BZ #2570]
35053         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
35054         comparisons to determine direction to adjust input.
35055
35056 2012-05-01  Roland McGrath  <roland@hack.frob.com>
35057
35058         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
35059         output to the target.
35060
35061         * scripts/localplt.awk: New file.
35062         * elf/Makefile ($(objpfx)check-localplt): Target removed.
35063         (check-localplt-CFLAGS): Variable removed.
35064         ($(all-built-dso:=.jmprel)): New static pattern rule.
35065         (generated): Add those targets.
35066         (localplt-built-dso): New variable.
35067         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
35068
35069         * elf/check-localplt.c: File removed.
35070
35071         * scripts/check-execstack.awk: New file.
35072         * elf/Makefile ($(objpfx)check-execstack): Target removed.
35073         (check-execstack-CFLAGS): Variable removed.
35074         ($(objpfx)check-execstack.h): Target removed.
35075         ($(objpfx)execstack-default): New target.
35076         (generated): Add that instead of check-execstack.h.
35077         ($(all-built-dso:=.phdr)): New static pattern rule.
35078         (generated): Add those targets.
35079         * elf/check-execstack.c: File removed.
35080
35081         * scripts/check-textrel.awk: New file.
35082         * elf/Makefile ($(objpfx)check-textrel): Target removed.
35083         (check-textrel-CFLAGS): Variable removed.
35084         (all-built-dso): Use := to define.o
35085         ($(all-built-dso:=.dyn)): New static pattern rule.
35086         (generated): Add those targets.
35087         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
35088         * config.make.in (READELF): New substituted variable.
35089         * elf/check-textrel.c: File removed.
35090
35091 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
35092
35093         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
35094         allow.
35095         * conform/data/ctype.h-data [C99-based standards] (isblank):
35096         Expect function.
35097         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
35098         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
35099         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35100         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
35101         Specify type.  Require positive value.
35102         (EILSEQ): Likewise.
35103         (ERANGE): Likewise.
35104         [ISO || POSIX] (EILSEQ): Do not expect.
35105         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
35106         Specify type.  Require positive value.
35107         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
35108         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
35109         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
35110         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
35111         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
35112         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
35113         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
35114         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
35115         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
35116         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
35117         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
35118         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
35119         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
35120         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
35121         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
35122         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
35123         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
35124         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
35125         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
35126         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
35127         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
35128         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
35129         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
35130         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
35131         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
35132         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
35133         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
35134         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
35135         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
35136         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
35137         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
35138         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
35139         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
35140         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
35141         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
35142         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
35143         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
35144         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
35145         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
35146         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
35147         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
35148         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
35149         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
35150         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
35151         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
35152         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
35153         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
35154         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
35155         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
35156         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
35157         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
35158         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
35159         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
35160         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
35161         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
35162         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
35163         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
35164         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
35165         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
35166         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
35167         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
35168         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
35169         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
35170         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
35171         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
35172         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
35173         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
35174         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
35175         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
35176         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
35177         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
35178         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
35179         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
35180         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
35181         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
35182         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
35183         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
35184         Require >= 2.
35185         (FLT_ROUNDS): Expect as macro, not constant.
35186         (FLT_MANT_DIG): Use macro-int-constant.
35187         (DBL_MANT_DIG): Likewise.
35188         (LDBL_MANT_DIG): Likewise.
35189         (FLT_DIG): Likewise.
35190         (DBL_DIG): Likewise.
35191         (LDBL_DIG): Likewise.
35192         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
35193         (DBL_MIN_EXP): Likewise.
35194         (LDBL_MIN_EXP): Likewise.
35195         (FLT_MAX_EXP): Use macro-int-constant.
35196         (DBL_MAX_EXP): Likewise.
35197         (LDBL_MAX_EXP): Likewise.
35198         (FLT_MAX_10_EXP): Likewise.
35199         (DBL_MAX_10_EXP): Likewise.
35200         (LDBL_MAX_10_EXP): Likewise.
35201         (FLT_MAX): Use macro-constant.
35202         (DBL_MAX): Likewise.
35203         (LDBL_MAX): Likewise.
35204         (FLT_EPSILON): Use macro-constant.  Give upper bound.
35205         (DBL_EPSILON): Likewise.
35206         (LDBL_EPSILON): Likewise.
35207         (FLT_MIN): Likewise.
35208         (DBL_MIN): Likewise.
35209         (LDBL_MIN): Likewise.
35210         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
35211         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
35212         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
35213         [ISO11] (FLT_HAS_SUBNORM): Likewise.
35214         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
35215         [ISO11] (DBL_DECIMAL_DIG): Likewise.
35216         [ISO11] (FLT_DECIMAL_DIG): Likewise.
35217         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
35218         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
35219         [ISO11] (FLT_TRUE_MIN): Likewise.
35220         [ISO11] (LDBL_TRUE_MIN): Likewise.
35221         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35222         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
35223         (SCHAR_MIN): Use macro-int-constant.  Specify type.
35224         (SCHAR_MAX): Likewise.
35225         (UCHAR_MAX): Likewise.
35226         (CHAR_MIN): Likewise.
35227         (CHAR_MAX): Likewise.
35228         (MB_LEN_MAX): Use macro-int-constant.
35229         (SHRT_MIN): Use macro-int-constant.  Specify type.
35230         (SHRT_MAX): Likewise.
35231         (USHRT_MAX): Likewise.
35232         (INT_MAX): Likewise.
35233         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
35234         bound negative.
35235         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35236         bound with "U".
35237         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35238         bound with "L".
35239         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
35240         bound negative.  Suffix upper bound with "L".
35241         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35242         bound with "UL".
35243         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
35244         Specify type.
35245         [C99-based standards] (LLONG_MAX): Likewise.
35246         [C99-based standards] (ULLONG_MAX): Likewise.
35247         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
35248         == 0.
35249         [ISO11] (max_align_t): Require type.
35250         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35251
35252         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
35253         from $CFLAGS, without defining away __attribute__ calls.
35254         (checknamespace): Use $CFLAGS_namespace.
35255
35256         * conform/conformtest.pl (@keywords): Only include C99 keywords
35257         for standards based on C99 or C11.
35258
35259         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
35260         Disable tests.
35261         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
35262         UNIX98]: Likewise.
35263
35264         * conform/conformtest.pl: Handle "macro-int-constant" and test for
35265         usability of symbols in #if.
35266
35267         * conform/conformtest.pl: If macro or constant types start
35268         "promoted:", expect the symbol to be of the following type
35269         promoted by the integer promotions.
35270
35271         * conform/conformtest.pl: Parse all "constant" and "macro" lines
35272         in one place.  Also handle "macro-constant".
35273
35274         * conform/conformtest.pl: Only accept expected macro values with
35275         "==".  Parse all "macro" lines in one place.
35276         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
35277
35278         * conform/conformtest.pl: Handle braced types on "constant" lines
35279         instead of handling "typed-constant".
35280         * conform/data/signal.h-data: Use "constant" instead of
35281         "typed-constant".
35282
35283         * conform/conformtest.pl: Handle "optional-" at start of lines in
35284         one place rather than duplicating several cases.  Handle each
35285         format of "macro" line with initial "optional-".
35286
35287         * conform/conformtest.pl: Only accept expected constant or
35288         optional-constant values with "==".  Parse all "constant" lines in
35289         one place.  Parse all "optional-constant" lines in one place.
35290         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
35291         * conform/data/fmtmsg.h-data: Likewise.
35292         * conform/data/netinet/in.h-data: Likewise.
35293         * conform/data/tar.h-data: Likewise.
35294         * conform/data/limits.h-data: Use "==" form on "constant" and
35295         "optional-constant" lines.
35296
35297         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
35298         Use -std=c99 for XOPEN2K.
35299         (@knownproblems): Remove.
35300         (newtoken): Don't check %isknown.
35301
35302         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
35303         Do not expect macro.
35304         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
35305         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
35306         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
35307         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
35308         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
35309         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
35310         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
35311         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
35312         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
35313         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
35314         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
35315         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
35316         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
35317         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
35318         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
35319         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
35320         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
35321         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
35322         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
35323         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
35324         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
35325         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
35326         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
35327         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
35328         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
35329         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
35330         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
35331         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
35332         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
35333         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
35334         [XPG3] (acosh): Likewise.
35335         [XPG3] (asinh): Likewise.
35336         [XPG3] (atanh): Likewise.
35337         [XPG3] (cbrt): Likewise.
35338         [XPG3] (expm1): Likewise.
35339         [XPG3] (ilogb): Likewise.
35340         [XPG3] (log1p): Likewise.
35341         [XPG3] (logb): Likewise.
35342         [XPG3] (nextafter): Likewise.
35343         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
35344         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
35345         [XPG3] (remainder): Likewise.
35346         [XPG3] (rint): Likewise.
35347         [XPG3 || XPG4 || UNIX98] (round): Likewise.
35348         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
35349         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
35350         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
35351         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
35352         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
35353         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
35354         [UNIX98 || XOPEN2K] (scalb): Expect.
35355         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
35356         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
35357         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
35358         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
35359         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
35360         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
35361         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
35362         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
35363         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
35364         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
35365         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
35366         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
35367         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
35368         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
35369         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
35370         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
35371         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
35372         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
35373         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
35374         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
35375         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
35376         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
35377         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
35378         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
35379         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
35380         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
35381         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
35382         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
35383         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
35384         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
35385         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
35386         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
35387         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
35388         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
35389         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
35390         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
35391         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
35392         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
35393         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
35394         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
35395         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
35396         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
35397         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
35398         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
35399         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
35400         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
35401         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
35402         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
35403         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
35404         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
35405         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
35406         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
35407         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
35408         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
35409         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
35410         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
35411         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
35412         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
35413         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
35414         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
35415         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
35416         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
35417         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
35418         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
35419         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
35420         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
35421         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
35422         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
35423         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
35424         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
35425         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
35426         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
35427         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
35428         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
35429         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
35430         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
35431         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
35432         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
35433         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
35434         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
35435         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
35436         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
35437         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
35438         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
35439         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
35440         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
35441         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
35442         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
35443         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
35444         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
35445         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
35446         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
35447         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
35448         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
35449         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
35450         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
35451         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
35452         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
35453         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
35454         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
35455         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
35456         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
35457         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
35458         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
35459         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
35460         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
35461         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
35462         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
35463         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
35464         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
35465         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
35466         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
35467         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
35468         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
35469         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
35470         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
35471         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
35472         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
35473         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
35474         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
35475         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
35476         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
35477         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
35478         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
35479         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
35480         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
35481         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
35482         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
35483         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
35484         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
35485         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
35486         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
35487         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
35488         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
35489         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
35490         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
35491         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
35492
35493         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
35494         _XOPEN_SOURCE_EXTENDED for XPG4.
35495
35496         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
35497
35498         * Makeconfig (localtime): Remove variable.
35499         (inst_localtime-file): Likewise.
35500
35501 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
35502
35503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
35504         Update.
35505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
35506         Update.
35507         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
35508         Update.
35509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
35510         Update.
35511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
35512         Update.
35513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
35514         Update.
35515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
35516         Update.
35517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
35518         Update.
35519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35520         Update.
35521
35522 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
35523
35524         [BZ #2550]
35525         [BZ #2570]
35526         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
35527         comparisons to determine direction to adjust input.
35528         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35529         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
35530         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35531         Likewise.
35532         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35533         Likewise.
35534         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35535         Likewise.
35536         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35537         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35538         Likewise.
35539         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35540         Likewise.
35541         * math/libm-test.inc (nexttoward_test): Add more tests.
35542
35543 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
35544
35545         [BZ #14040]
35546         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
35547         in version GLIBC_2.1, not GLIBC_2.0.
35548         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
35549         Likewise.
35550
35551 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
35552
35553         [BZ #13942]
35554         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
35555         (1 - x) * (1 + x).
35556         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
35557         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
35558         * math/libm-test.inc (acos_test): Add more tests.
35559         (asin_test): Likewise.
35560         * sysdeps/i386/fpu/libm-test-ulps: Update.
35561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35562
35563         [BZ #14034]
35564         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
35565         of square root.
35566         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
35567         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
35568         * math/libm-test.inc (acos_test_tonearest): New function.
35569         (acos_test_towardzero): Likewise.
35570         (acos_test_downward): Likewise.
35571         (acos_test_upward): Likewise.
35572         (asin_test_tonearest): Likewise.
35573         (asin_test_towardzero): Likewise.
35574         (asin_test_downward): Likewise.
35575         (asin_test_upward): Likewise.
35576         (main): Call the new functions.
35577         * sysdeps/i386/fpu/libm-test-ulps: Update.
35578         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35579
35580         [BZ #13884]
35581         [BZ #13924]
35582         * math/e_exp10.c: Include <float.h>.
35583         (__ieee754_exp10): Handle underflow here rather than multiplying
35584         large negative argument by M_LN10.
35585         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
35586         of __ieee754_expf.
35587         * math/e_exp10l.c: Include <float.h>.
35588         (__ieee754_exp10l): Handle underflow here rather than multiplying
35589         large negative argument by M_LN10l.
35590         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
35591         spurious overflow exception on underflow.
35592
35593 2012-04-29  Marek Polacek  <polacek@redhat.com>
35594
35595         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
35596         (__fortify_function): New macro.
35597         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
35598         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
35599         __extern_always_inline.
35600         * libio/bits/stdio2.h: Likewise.
35601         * libio/bits/stdio.h: Likewise.
35602         * string/string.h: Likewise.
35603         * string/bits/string3.h: Likewise.
35604         * include/stdio.h: Likewise.
35605         * stdlib/bits/stdlib.h: Likewise.
35606         * stdlib/stdlib.h: Likewise.
35607         * rt/bits/mqueue2.h: Likewise.
35608         * rt/mqueue.h: Likewise.
35609         * posix/bits/unistd.h: Likewise.
35610         * posix/unistd.h: Likewise.
35611         * io/bits/poll2.h: Likewise.
35612         * io/bits/fcntl2.h: Likewise.
35613         * io/fcntl.h: Likewise.
35614         * io/sys/poll.h: Likewise.
35615         * misc/bits/syslog.h: Likewise.
35616         * misc/bits/syslog-ldbl.h: Likewise.
35617         * misc/sys/syslog.h: Likewise.
35618         * socket/bits/socket2.h: Likewise.
35619         * socket/sys/socket.h: Likewise.
35620         * debug/tst-chk1.c: Likewise.
35621         * wcsmbs/bits/wchar2.h: Likewise.
35622         * wcsmbs/bits/wchar-ldbl.h: Likewise.
35623         * wcsmbs/wchar.h: Likewise.
35624
35625 2012-04-29  Andreas Jaeger  <aj@suse.de>
35626
35627         * Makerules (tests): Remove enable-check-abi protection.
35628         (check-abi-warn): Remove.
35629         (check-abi-%): Remove check-abi-warn usage.
35630
35631         * configure.in: Remove check-abi configure option.
35632         * configure: Regenerated.
35633         * config.make.in (enable-check-abi): Remove.
35634
35635 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
35636
35637         [BZ #14033]
35638         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
35639         double functions to double *_finite functions.
35640
35641         [BZ #13941]
35642         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
35643         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
35644         LDBL_MIN_EXP.
35645         * stdio-common/Makefile (tests): Add tst-sprintf3.
35646         * stdio-common/tst-sprintf3.c: New file.
35647
35648         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
35649         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
35650
35651 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35652
35653         * conform/conformtest.pl: Remove duplicate typed-constant
35654         handling.
35655
35656 2012-04-28  David S. Miller  <davem@davemloft.net>
35657
35658         * Makerules (%.abilist): Add vpath on sysdep_dirs.
35659         (check-abi-%): Remove AWK script prerequisite and explicit
35660         abilist directory.
35661         (check-abi): Rewrite to just diff the symlist with the abilist.
35662         (config-tls, config-abi-config): Delete, no longer used.
35663         (update-abi-%): Remove AWK script and explicit abilist directory.
35664         (update-abi): Rewrite to simply compare and conditionally copy the
35665         symlist and the sysdep abilist file.  Remove update-abi-config
35666         checks.
35667         * abilist/ld.abilist: Remove.
35668         * abilist/libBrokenLocale.abilist: Remove.
35669         * abilist/libanl.abilist: Remove.
35670         * abilist/libcrypt.abilist: Remove.
35671         * abilist/libdl.abilist: Remove.
35672         * abilist/librt.abilist: Remove.
35673         * abilist/libthread_db.abilist: Remove.
35674         * abilist/libutil.abilist: Remove.
35675         * scripts/extract-abilist.awk: Remove.
35676         * scripts/merge-abilist.awk: Remove.
35677         * sysdeps/generic/libcidn.abilist: New file.
35678         * sysdeps/generic/libnss_compat.abilist: New file.
35679         * sysdeps/generic/libnss_db.abilist: New file.
35680         * sysdeps/generic/libnss_dns.abilist: New file.
35681         * sysdeps/generic/libnss_files.abilist: New file.
35682         * sysdeps/generic/libnss_hesiod.abilist: New file.
35683         * sysdeps/generic/libnss_nis.abilist: New file.
35684         * sysdeps/generic/libnss_nisplus.abilist: New file.
35685         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
35686         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
35687         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
35688         file.
35689         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
35690         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
35691         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
35692         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
35693         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
35694         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
35695         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
35696         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
35697         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
35698         file.
35699         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
35700         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
35701         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
35702         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
35703         file.
35704         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
35705         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
35706         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
35707         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
35708         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
35709         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
35710         file.
35711         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
35712         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
35713         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
35714         file.
35715         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
35716         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
35717         New file.
35718         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
35719         New file.
35720         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
35721         New file.
35722         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
35723         New file.
35724         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
35725         New file.
35726         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
35727         New file.
35728         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
35729         New file.
35730         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
35731         New file.
35732         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
35733         New file.
35734         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
35735         New file.
35736         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
35737         New file.
35738         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
35739         New file.
35740         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
35741         New file.
35742         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
35743         file.
35744         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
35745         New file.
35746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
35747         New file.
35748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
35749         file.
35750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
35751         New file.
35752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
35753         New file.
35754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
35755         file.
35756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
35757         New file.
35758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
35759         New file.
35760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
35761         New file.
35762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
35763         New file.
35764         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
35765         New file.
35766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
35767         New file.
35768         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
35769         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
35770         file.
35771         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
35772         New file.
35773         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
35774         file.
35775         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
35776         file.
35777         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
35778         file.
35779         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
35780         file.
35781         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
35782         file.
35783         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
35784         New file.
35785         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
35786         file.
35787         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
35788         file.
35789         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
35790         New file.
35791         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
35792         file.
35793         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
35794         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
35795         file.
35796         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
35797         New file.
35798         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
35799         file.
35800         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
35801         file.
35802         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
35803         file.
35804         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
35805         file.
35806         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
35807         file.
35808         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
35809         New file.
35810         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
35811         file.
35812         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
35813         file.
35814         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
35815         New file.
35816         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
35817         file.
35818         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
35819         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
35820         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
35821         file.
35822         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
35823         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
35824         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
35825         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
35826         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
35827         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
35828         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
35829         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
35830         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
35831         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
35832         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
35833         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
35834         file.
35835         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
35836         New file.
35837         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
35838         file.
35839         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
35840         file.
35841         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
35842         file.
35843         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
35844         file.
35845         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
35846         file.
35847         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
35848         New file.
35849         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
35850         New file.
35851         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
35852         file.
35853         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
35854         New file.
35855         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
35856         file.
35857         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
35858         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
35859         file.
35860         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
35861         New file.
35862         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
35863         file.
35864         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
35865         file.
35866         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
35867         file.
35868         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
35869         file.
35870         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
35871         file.
35872         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
35873         New file.
35874         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
35875         New file.
35876         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
35877         file.
35878         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
35879         New file.
35880         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
35881         file.
35882
35883 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
35884
35885         * conform/conformtest.pl: Fix typo in handling typed-constant from
35886         allow-header.
35887
35888 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35889
35890         * README: Cut down references to pre-2.6 Linux kernels and
35891         Linuxthreads.  Update lists of configurations in libc and ports
35892         and sort alphabetically.  Say "or newer" with Linux kernel version
35893         requirements.
35894
35895         * config.h.in [IS_IN_build]: Allow compiling without optimization.
35896
35897 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
35898
35899         [BZ #887]
35900         * math/libm-test.inc (logb_test_downward): New test to expose
35901         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
35902         rounding mode.
35903
35904 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
35905
35906         [BZ #14027]
35907         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
35908         to be done.
35909         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
35910         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
35911
35912 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
35913
35914         * sysdeps/unix/i386/brk.S: Remove file.
35915         * sysdeps/unix/i386/dl-brk.S: Likewise.
35916         * sysdeps/unix/i386/pipe.S: Likewise.
35917         * sysdeps/unix/i386/sigreturn.S: Likewise.
35918         * sysdeps/unix/i386/syscall.S: Likewise.
35919         * sysdeps/unix/i386/vfork.S: Likewise.
35920         * sysdeps/unix/i386/wait.S: Likewise.
35921
35922         * sysdeps/unix/common/tcsendbrk.c: Move to ...
35923         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
35924
35925         * configure.in (arm*-none*): Do not allow without
35926         --enable-hacker-mode.
35927         (netbsd*): Remove case setting base_os.
35928         (386bsd*): Likewise.
35929         (freebsd*): Likewise.
35930         (bsdi*): Likewise.
35931         (osf*): Likewise.
35932         (sunos*): Likewise.
35933         (ultrix*): Likewise.
35934         (newsos*): Likewise.
35935         (dynix*): Likewise.
35936         (*bsd*): Likewise.
35937         (sysv*): Likewise.
35938         (isc*): Likewise.
35939         (esix*): Likewise.
35940         (sco*): Likewise.
35941         (minix*): Likewise.
35942         (irix4*): Likewise.
35943         (irix6*): Likewise.
35944         (solaris[2-9]*): Likewise.
35945         (none): Likewise.
35946         * configure: Regenerated.
35947
35948 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35949
35950         [BZ #11521]
35951         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
35952         overflow or cancellation in calculating denominator.
35953         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35954         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
35955         down expression to avoid unexpected rounding in newer GCCs.
35956         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
35957
35958 2012-04-26  David S. Miller  <davem@davemloft.net>
35959
35960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
35961         long-double compat symbols.
35962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
35963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
35964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
35965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
35966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
35967         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
35968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
35969         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
35970         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
35971         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
35972         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
35973         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
35974         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
35975
35976 2012-04-25  David S. Miller  <davem@davemloft.net>
35977
35978         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
35979         HWCAP_* values only after the memory barriers have been defined.
35980         (atomic_full_barrier): Define.
35981         (atomic_read_barrier): Define.
35982         (atomic_write_barrier): Define.
35983
35984 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35985
35986         * shlib-versions: Add libgcc_s version information.
35987         * sysdeps/generic/libgcc_s.h: Remove.
35988         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
35989         libgcc_s.h.
35990         * sysdeps/gnu/unwind-resume.c: Likewise.
35991         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
35992
35993 2012-04-25  David S. Miller  <davem@davemloft.net>
35994
35995         * sysdeps/unix/sparc/brk.S: Delete.
35996         * sysdeps/unix/sparc/dl-brk.S: Delete.
35997         * sysdeps/unix/sparc/pipe.S: Delete.
35998         * sysdeps/unix/sparc/sysdep.S: Delete.
35999         * sysdeps/unix/sparc/sysdep.h: Delete.
36000         * sysdeps/unix/sparc/vfork.S: Delete.
36001         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
36002         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
36003         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
36004         (ret_ERRVAL, r0, r1, MOVE): Define.
36005         (JUMPTARGET): Remove.
36006         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
36007         sysdeps/unix/sparc/sysdep.h
36008         (ENTRY, END): Remove.
36009         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
36010
36011 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
36012
36013         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
36014         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
36015         -DIS_IN_build.
36016
36017         * timezone/README: Update upstream location and email address for
36018         tzcode and tzdata.
36019         * timezone/zdump.c: Update from tzcode 2012b.
36020         * timezone/zic.c: Likewise.
36021
36022         * configure.in (libc_cv_as_needed): Remove test.
36023         * configure: Regenerated.
36024         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
36025         conditional definition.
36026         [$(have-as-needed) != yes] (no-as-needed): Likewise.
36027         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
36028         * config.make.in (have-as-needed): Remove variable.
36029
36030 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
36031             Paul Pluzhnikov  <ppluzhnikov@google.com>
36032
36033         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
36034         strings correctly.
36035
36036 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
36037
36038         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
36039         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
36040         * sysdeps/sh/strlen.S: Likewise.
36041
36042 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
36043
36044         * sysdeps/unix/fork.S: Remove file.
36045         * sysdeps/unix/i386/fork.S: Likewise.
36046         * sysdeps/unix/sparc/fork.S: Likewise.
36047
36048         * sysdeps/unix/system.c: Remove file.
36049         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
36050
36051         * sysdeps/unix/getegid.S: Remove file.
36052         * sysdeps/unix/geteuid.S: Likewise.
36053
36054 2012-04-24  Roland McGrath  <roland@hack.frob.com>
36055
36056         * scripts/check-localplt.awk: New file.
36057         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
36058         of diff.
36059         * scripts/data/localplt-generic.data: Add a comment.
36060
36061         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
36062         NODE when __dir_mkfile failed.
36063         * sysdeps/mach/hurd/symlinkat.c: Likewise.
36064         Reported by Ludovic Courtès <ludo@gnu.org>.
36065
36066 2012-04-24  Andreas Jaeger  <aj@suse.de>
36067
36068         * Makerules (common-clean): Also remove gen-as-const-headers
36069         files.
36070
36071 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
36072
36073         * Makerules (native-compile): Do not change working directory for
36074         build.  Use $(OUTPUT_OPTION) in command.
36075         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
36076
36077 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36078
36079         [BZ #13886]
36080         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
36081         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
36082         * math/libm-test.inc (floor_test): Add more tests.
36083         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
36084
36085 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
36086
36087         * sysdeps/unix/getdents.c: Remove file.
36088         * sysdeps/unix/sysv/getdents.c: Likewise.
36089         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
36090
36091         * sysdeps/unix/syscalls.list (madvise): Add syscall from
36092         sysdeps/unix/mman/syscalls.list.
36093         (mmap): Likewise.
36094         (mprotect): Likewise.
36095         (msync): Likewise.
36096         (munmap): Likewise.
36097         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
36098         * sysdeps/unix/mman/syscalls.list: Remove.
36099         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
36100
36101         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
36102         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
36103         * configure: Regenerated.
36104         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
36105         $(libgcc_s_suffix).
36106         * config.make.in (libgcc_s_suffix): Remove variable.
36107
36108 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
36109
36110         * sysdeps/unix/sysv/gethostname.c: Move to ...
36111         * sysdeps/posix/gethostname.c: ... here.
36112
36113         * sysdeps/unix/execve.S: Remove file.
36114
36115         * sysdeps/unix/_exit.S: Remove file.
36116
36117 2012-04-23  Andreas Jaeger  <aj@suse.de>
36118
36119         [BZ #13739]
36120         * manual/Makefile: Remove make dist support, there's no
36121         need for a stand-alone documentation tar ball.
36122         (TEXI2DVI): Define always, it's not in Makeconfig.
36123         (dist): Removed.
36124         (tar-it): Removed.
36125         (edition): Removed.
36126         (glibc-doc-$(edition).tar): Removed
36127         (%.Z): Removed.
36128         (%.gz): Removed.
36129         (%.uu): Removed.
36130         (ETAGS): Remove, it's in Makeconfig.
36131         (move-if-change): Remove, it's in Makeconfig.
36132
36133 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
36134
36135         [BZ #13970]
36136         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
36137         (strtod, strtof, strtold, strtol, strtoul, strtoq)
36138         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
36139         (strtod_l, strtof_l, strtold_l): Remove __wur.
36140         It is not necessarily an error to ignore strtol's return value.
36141         One can reliably look at the stored endptr to decide whether
36142         the number had valid syntax.
36143
36144 2012-04-21  Andreas Jaeger  <aj@suse.de>
36145
36146         [BZ #13739]
36147         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
36148
36149 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
36150
36151         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
36152         * sysdeps/unix/sysv/Versions: Remove file.
36153
36154 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
36155
36156         [BZ #13927]
36157         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36158
36159 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
36160
36161         [BZ #7064]
36162         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
36163         version from __vm86.
36164
36165 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
36166
36167         * sysdeps/unix/common/lxstat.c: Remove file.
36168         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
36169
36170         * sysdeps/unix/sysv/Makefile: Remove file.
36171
36172         * sysdeps/unix/sysv/direct.h: Remove file.
36173
36174         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
36175         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
36176         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
36177         * sysdeps/unix/sysv/bits/signum.h: Likewise.
36178         * sysdeps/unix/sysv/bits/stat.h: Likewise.
36179         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
36180         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
36181
36182         * sysdeps/unix/sysv/setrlimit.c: Remove file.
36183
36184         * sysdeps/unix/xmknod.c: Remove file.
36185         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
36186
36187         * sysdeps/unix/sysv/settimeofday.c: Remove file.
36188
36189         * sysdeps/unix/sysv/i386/time.S: Remove file.
36190
36191         * sysdeps/unix/fxstat.c: Remove file.
36192         * sysdeps/unix/xstat.c: Likewise.
36193         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
36194
36195         * sysdeps/unix/sysv/sigaction.c: Remove file.
36196
36197         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
36198         (sysdep_headers): Remove variable.
36199         [termio.h not in sysdep_headers] (generated): Likewise.
36200         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
36201         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
36202         * sysdeps/unix/sysv/tcdrain.c: Likewise.
36203         * sysdeps/unix/sysv/tcflow.c: Likewise.
36204         * sysdeps/unix/sysv/tcflush.c: Likewise.
36205         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
36206         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
36207         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
36208         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
36209         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
36210
36211         * sysdeps/unix/siglist.c: Remove file.
36212
36213         * sysdeps/unix/getppid.S: Remove file.
36214
36215         * sysdeps/unix/mkdir.c: Remove file.
36216         * sysdeps/unix/rmdir.c: Likewise.
36217
36218 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
36219
36220         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
36221         ERR_MAX value.
36222         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
36223         errlist-compat value.
36224
36225 2012-04-18  David S. Miller  <davem@davemloft.net>
36226
36227         * sysdeps/generic/memcopy.h (reg_char): Delete.
36228         * debug/strcat_chk.c: Use char, not reg_char.
36229         * debug/strcpy_chk.c: Likewise.
36230         * debug/strncat_chk.c: Likewise.
36231         * debug/strncpy_chk.c: Likewise.
36232         * string/memchr.c: Likewise.
36233         * string/memrchr.c: Likewise.
36234         * string/rawmemchr.c: Likewise.
36235         * string/strcat.c: Likewise.
36236         * string/strchr.c: Likewise.
36237         * string/strchrnul.c: Likewise.
36238         * string/strcmp.c: Likewise.
36239         * string/strcpy.c: Likewise.
36240         * string/strncat.c: Likewise.
36241         * string/strncmp.c: Likewise.
36242         * string/strncpy.c: Likewise.
36243
36244 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36245
36246         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
36247         __builtin_memcopy is called when src and dest ranges are known to not
36248         overlap.
36249
36250 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36251
36252         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
36253         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
36254         fwd_align_merge macro call.
36255         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
36256         bwd_align_merge macro call.
36257         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
36258
36259 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36260
36261         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
36262         bwd_align_merge macros.
36263         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
36264         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
36265         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
36266
36267 2012-04-18  David S. Miller  <davem@davemloft.net>
36268
36269         * sysdeps/sparc/sparc64/memcopy.h: Delete.
36270
36271 2012-04-18  Andreas Jaeger  <aj@suse.de>
36272
36273         [BZ# 6794]
36274         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
36275         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
36276         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
36277
36278         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
36279         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
36280         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
36281
36282         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
36283         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
36284         Adjust for changed ldbl-128 files.
36285
36286         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
36287         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
36288         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
36289
36290 2012-04-17  David S. Miller  <davem@davemloft.net>
36291
36292         * sysdeps/sparc/sparc32/memcopy.h: Delete.
36293
36294 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
36295
36296         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
36297         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
36298         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
36299         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
36300         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
36301         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
36302
36303 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36304
36305         [BZ #6794]
36306         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
36307         * math/libm-test.inc: Add ilogb errno and exception tests.
36308         * math/w_ilogb.c: New file: ilogb wrapper.
36309         * math/w_ilogbf.c: New file: ilogbf wrapper.
36310         * math/w_ilogbl.c: New file: ilogbl wrapper.
36311         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
36312         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
36313         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
36314         exception being thrown with 0.0 as argument.
36315         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
36316         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
36317         exception being thrown with 0.0 as argument.
36318         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
36319         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
36320         exception being thrown with 0.0 as argument.
36321         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
36322         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
36323         exception being thrown with 0.0 as argument.
36324         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
36325         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
36326         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
36327         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
36328         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
36329         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
36330         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
36331         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
36332         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
36333
36334 2012-04-17  Petr Baudis  <pasky@ucw.cz>
36335
36336         * include/sys/uio.h: Change __vector to __iovec to avoid clash
36337         with altivec.
36338
36339 2012-04-16  Marek Polacek  <polacek@redhat.com>
36340
36341         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
36342
36343 2012-04-16  Marek Polacek  <polacek@redhat.com>
36344
36345         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
36346         operands of fdivp instruction.
36347
36348 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
36349
36350         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
36351         * elf/tst-auditmod3b.c: Likewise.
36352         * elf/tst-auditmod4b.c: Likewise.
36353         * elf/tst-auditmod5b.c: Likewise.
36354         * elf/tst-auditmod6b.c: Likewise.
36355         * elf/tst-auditmod6c.c: Likewise.
36356         * elf/tst-auditmod7b.c: Likewise.
36357         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
36358         * sysdeps/x86_64/preconfigure.in: Likewise.
36359         * sysdeps/x86_64/preconfigure: Regenerated.
36360
36361 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
36362
36363         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
36364         __ILP32__.
36365
36366 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
36367
36368         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
36369         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
36370
36371 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
36372
36373         [BZ #13973]
36374         * locale/iso-639.def: Fix gl language name. Spotted by
36375         Yaron Shahrabani.
36376
36377 2012-04-12  Roland McGrath  <roland@hack.frob.com>
36378
36379         [BZ #2074]
36380         * libio/libio.h (__io_write_fn): Update comment.
36381
36382 2012-04-12  Petr Baudis  <pasky@ucw.cz>
36383
36384         [BZ #2074]
36385         * stdio.texi (Hook Functions): The user provided writer function
36386         is not allowed to return -1.
36387
36388 2012-04-11  David S. Miller  <davem@davemloft.net>
36389
36390         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36391
36392 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
36393
36394         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
36395         Add a leading slash to rtkaio.
36396
36397 2012-04-11  Jim Meyering  <meyering@redhat.com>
36398
36399         [BZ #11959]
36400         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
36401         It is not necessarily an error to ignore fwrite's return
36402         value.  One can reliably use ferror to test for errors after
36403         the fact.
36404
36405 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
36406
36407         * bits/types.h (__snseconds_t): New type.
36408         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
36409
36410         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
36411         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
36412         (__SNSECONDS_T_TYPE): Likewise.
36413         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
36414         (__SNSECONDS_T_TYPE): Likewise.
36415         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
36416         (__SNSECONDS_T_TYPE): Likewise.
36417
36418 2012-04-10  Andreas Jaeger  <aj@suse.de>
36419
36420         [BZ #2636]
36421         * manual/time.texi (Processor Time): Return type of times is
36422         elapsed real time since an arbitrary point in the past.
36423         (CPU Time): Move CLK_TCK from here...
36424         (Processor Time): ...to here.  Correct description.
36425         * manual/conf.texi (Constants for Sysconf): Correct description of
36426         _SC_CLK_TCK.
36427
36428 2012-04-10  David S. Miller  <davem@davemloft.net>
36429
36430         [BZ #13967]
36431         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
36432         where the is a gap between DT_REL(A) and DT_JMPREL.
36433
36434 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
36435
36436         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
36437         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
36438         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
36439
36440 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
36441
36442         * elf/dl-support.c (_dl_inhibit_cache): New variable.
36443         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
36444         (dl_main): Handle --inhibit-cache.
36445         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
36446         _dl_inhibit_cache.
36447         * elf/dl-load.c (_dl_map_object): Use it.
36448         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
36449
36450 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
36451
36452         [BZ #13872]
36453         * sysdeps/i386/fpu/e_powl.S (p78): New object.
36454         (__ieee754_powl): Saturate large exponents rather than testing for
36455         overflow of y*log2(x).
36456         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
36457         * math/libm-test.inc (pow_test): Do not permit spurious overflow
36458         exceptions.
36459
36460         [BZ #11521]
36461         * math/s_ctan.c: Include <float.h>.
36462         (__ctan): Avoid internal overflow or cancellation in calculating
36463         denominator.
36464         * math/s_ctanf.c: Likewise.
36465         * math/s_ctanl.c: Likewise.
36466         * math/s_ctanh.c: Likewise.
36467         * math/s_ctanhf.c: Likewise.
36468         * math/s_ctanhl.c: Likewise.
36469         * math/libm-test.inc (ctan_test): Add more tests.
36470         (ctanh_test): Likewise.
36471         * sysdeps/i386/fpu/libm-test-ulps: Update.
36472         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36473
36474 2012-04-09  Andreas Jaeger  <aj@suse.de>
36475
36476         [BZ #6894]
36477         * manual/filesys.texi (Directory Entries): Mention that d_namlen
36478         is an optional BSD extension.
36479
36480         [BZ #10254]
36481         * manual/stdio.texi (Opening Streams): Document additional fopen
36482         parameters.
36483
36484 2012-04-09  Roland McGrath  <roland@hack.frob.com>
36485
36486         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
36487         %eax without telling the compiler.
36488
36489 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
36490
36491         [BZ # 13963]
36492         * manual/install.texi: Use sourceware.org.
36493
36494 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
36495
36496         [BZ #13873]
36497         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
36498         (__ieee754_pow): Generate overflow and underflow using huge*huge
36499         and tiny*tiny rather than just returning constant infinity or zero
36500         for large exponents.
36501         * math/libm-test.inc (pow_test): Require overflow exceptions for
36502         applicable cases of large exponents.
36503
36504         [BZ #706]
36505         * sysdeps/i386/fpu/e_pow.S (p10): New object.
36506         (__ieee754_pow): Use iterative multiplication algorithm only for
36507         integer exponents with absolute value below 1024.  Check for odd
36508         integer exponents when using algorithm for real exponents.
36509         * math/libm-test.inc (pow_test): Add more tests.
36510         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36511
36512 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
36513
36514         [BZ #13705]
36515         * math/libm-test.inc (exp_test): Do not allow overflow exception
36516         on underflow test.
36517
36518 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
36519
36520         [BZ #13705]
36521         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
36522         instead of __kernel_standard_f.
36523
36524 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
36525
36526         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
36527         * sysdeps/x86_64/memset_chk.S: Likewise.
36528
36529 2012-04-08  Andreas Jaeger  <aj@suse.de>
36530
36531         [BZ #10153]
36532         * manual/startup.texi (Environment Access): Describe return value
36533         for putenv and setenv.
36534
36535         [BZ #6895]
36536         * manual/filesys.texi (Directory Entries): Add description for
36537         DT_LNK.
36538
36539         [BZ #6890]
36540         * manual/filesys.texi (Directory Entries): Clarify that it's file
36541         system not operating system in the description of DT_UNKNOWN.
36542
36543         [BZ #6578]
36544         * manual/syslog.texi (closelog): Fix reference, it's openlog.
36545
36546 2012-04-08  Stephen Compall  <s11@member.fsf.org>
36547
36548         [BZ #6649]
36549         * manual/llio.texi (Opening and Closing Files): Add cross
36550         reference to explain mode argument.
36551
36552 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
36553
36554         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
36555         * sysdeps/x86_64/memset_chk.S: Likewise.
36556
36557 2012-04-07  David S. Miller  <davem@davemloft.net>
36558
36559         * elf/elf.h (R_SPARC_WDISP10): Define.
36560         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
36561         R_SPARC_SIZE32.
36562         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
36563         R_SPARC_SIZE64 and R_SPARC_H34.
36564
36565 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
36566
36567         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
36568         conditions and remove no longer applicable assertion.
36569
36570 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
36571
36572         * bits/byteswap.h: Include <features.h>.
36573         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
36574         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
36575
36576 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
36577
36578         * bits/byteswap.h (__bswap_16): Removed.
36579         Include <bits/byteswap-16.h> to get __bswap_16.
36580         * sysdeps/i386/bits/byteswap.h: Likewise.
36581         * sysdeps/s390/bits/byteswap.h: Likewise.
36582         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36583         * bits/byteswap-16.h: New file.
36584         * sysdeps/i386/bits/byteswap-16.h: Likewise.
36585         * sysdeps/s390/bits/byteswap-16.h: Likewise.
36586         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
36587         * string/Makefile (headers): Add bits/byteswap-16.h.
36588
36589 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
36590
36591         [BZ #13895]
36592         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
36593         extra indirection.
36594         * nss/Makefile (tests-static, tests): Add tst-nss-static.
36595         * nss/tst-nss-static.c: New.
36596
36597 2012-04-06  Robert Millan  <rmh@gnu.org>
36598
36599         [BZ #6486]
36600         * manual/llio.texi (File Position Primitive): lseek
36601         refers to WHENCE when it really means OFFSET.
36602
36603 2012-04-06  Andreas Jaeger  <aj@suse.de>
36604
36605         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
36606         strncmp declarations.
36607
36608         * abilist/libc.abilist: Add __poll and __ppoll.
36609
36610 2012-04-05  David S. Miller  <davem@davemloft.net>
36611
36612         * scripts/check-local-headers.sh: Accept a host triplet in the
36613         path matched by the exclude regexp.
36614
36615         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
36616         definition.
36617         * sysdeps/powerpc/powerpc32/dl-machine.h
36618         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
36619         * sysdeps/s390/s390-32/dl-machine.h
36620         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36621         * sysdeps/sparc/sparc32/dl-machine.h
36622         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36623         * sysdeps/sparc/sparc64/dl-machine.h
36624         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
36625
36626         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
36627         lazy binding.
36628         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
36629         undefined symbol errors.
36630
36631         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
36632         DT_NEEDED entries.
36633
36634 2012-04-05  Michael Matz  <matz@suse.de>
36635
36636         [BZ #13592]
36637         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
36638
36639 2012-04-05  Andreas Jaeger  <aj@suse.de>
36640
36641         [BZ #13908]
36642         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
36643         comment.
36644
36645 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36646
36647         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
36648         which ROUND is no valid rounding mode.
36649
36650 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36651
36652         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
36653         read again.
36654         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
36655
36656 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36657
36658         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
36659         an exception using FPU order intentionally.
36660
36661 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
36662
36663         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
36664         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
36665         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
36666         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
36667
36668 2012-04-05  Simon Josefsson  <simon@josefsson.org>
36669
36670         [BZ #12340]
36671         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
36672         EINVAL when BUFLEN is too smal.
36673
36674 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
36675
36676         [BZ #13553]
36677         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
36678         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
36679
36680 2012-04-03  Andreas Jaeger  <aj@suse.de>
36681
36682         [BZ #13938]
36683         * manual/setjmp.texi (System V contexts): Fix sentence.
36684
36685         [BZ #13926]
36686         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
36687         New macro for this case.
36688         [!__GNUC__] (__bswap_64): New inline function for this case.
36689         * sysdeps/x86_64/bits/byteswap.h: Likewise.
36690         * bits/byteswap.h: Likewise.
36691         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
36692         ull, guard with __GLIBC_HAVE_LONG_LONG.
36693
36694         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
36695         __GLIBC_HAVE_LONG_LONG.
36696
36697         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
36698         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
36699
36700 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
36701
36702         [BZ #13691]
36703         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
36704         inptr and inend, rather than using last_ch.
36705
36706 2012-04-02  David S. Miller  <davem@davemloft.net>
36707
36708         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
36709         * stdio-common/printf-parse.h (read_int): Change return type to
36710         'int', return -1 on INT_MAX overflow.
36711         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
36712         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
36713         overflows INT_MAX.  Check for overflow of in-format-string precision
36714         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
36715         SIZE_MAX not INT_MAX for integer overflow test.
36716         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
36717         skip the construct in the format string but do not record anything.
36718         * stdio-common/bug22.c: Adjust to test both width/prevision
36719         INT_MAX overflow as well as total length INT_MAX overflow.  Check
36720         explicitly for proper errno values.
36721
36722 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
36723
36724         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
36725         CHAR_MAX.
36726         * string/test-strcmp.c [! WIDE]: Likewise.
36727         * time/tst-mktime2.c: Likewise for INT_MAX.
36728         * string/test-string.h: #include <sys/param.h> for MIN.
36729
36730         * csu/init-first.c (__libc_init_first): Call __ctype_init.
36731         * sysdeps/i386/init-first.c (init): Likewise.
36732         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
36733         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
36734         * sysdeps/sh/init-first.c (init): Likewise.
36735
36736 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
36737
36738         * po/ru.po: Update from translation team.
36739         * po/vi.po: Likewise.
36740
36741 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
36742
36743         * resolv/nss_dns/dns-host.c: Merge copyright years.
36744
36745 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
36746
36747         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
36748         Optimize memcpy with prefetch if
36749         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
36750         src, dst pointers have unequal 16 byte alignments.
36751
36752 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
36753
36754         [BZ #13928]
36755         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
36756         from a CNAME entry and return the minimum ttl for the query.
36757         (gaih_getanswer_slice): Likewise.
36758
36759 2012-03-30  Jeff Law  <law@redhat.com>
36760
36761         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
36762         due to long keys.
36763         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
36764         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
36765
36766         * resolv/nss_dns/dns-host.c: Update copyright year.
36767
36768 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
36769
36770         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
36771         requests to save a system call.  Fix check that all bytes are sent.
36772
36773         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
36774         comments for sendmmsg.
36775
36776 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
36777
36778         [BZ #13691]
36779         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
36780         with only 1 character between 0x0041 and 0x01b0.
36781         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
36782         * wcsmbs/tst-mbsnrtowcs.c: New file.
36783
36784 2012-03-29  David S. Miller  <davem@davemloft.net>
36785
36786         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
36787         small copies by hand.
36788
36789 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
36790
36791         [BZ #13761]
36792         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
36793         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
36794         group memberships.
36795
36796 2012-03-28  David S. Miller  <davem@davemloft.net>
36797
36798         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
36799         that branches into memcpy.
36800         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
36801         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
36802         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
36803         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
36804         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
36805         bits.
36806         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
36807         implementation too.
36808         * sysdeps/sparc/mempcpy.S: New file.
36809
36810         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
36811         the IFUNC routine in the libc case.
36812         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
36813
36814         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
36815         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
36816         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
36817         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
36818         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
36819         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
36820         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
36821         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
36822
36823         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
36824         loop to 256 bytes instead of 64 bytes and fix test signedness.
36825
36826         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
36827         * sysdeps/sparc/sparc32/Makefile: rather than here...
36828         * sysdeps/sparc/sparc64/Makefile: and here.
36829
36830 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
36831
36832         * malloc/mallocbug.c: Avoid warnings about unused variables.
36833
36834 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
36835
36836         [BZ #13760]
36837         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
36838         in the right place. Discard and retry query if response is
36839         larger than input buffer size.
36840
36841 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
36842
36843         [BZ #369]
36844         [BZ #2678]
36845         [BZ #3866]
36846         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
36847         x for large integer exponent.
36848         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
36849         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
36850         sign of result as needed afterwards.
36851         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
36852         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
36853         result for underflowing pow the same as for overflow.
36854         (__kernel_standard_l): Handle powl overflow and underflow here
36855         rather than calling __kernel_standard.
36856         * math/libm-test.inc (pow_test): Add more tests.
36857
36858         [BZ #3868]
36859         [BZ #13879]
36860         [BZ #13910]
36861         [BZ #13911]
36862         [BZ #13912]
36863         [BZ #13913]
36864         [BZ #13915]
36865         [BZ #13916]
36866         [BZ #13917]
36867         [BZ #13918]
36868         [BZ #13919]
36869         [BZ #13920]
36870         [BZ #13921]
36871         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
36872         * sysdeps/ieee754/k_standard.c: Include <float.h>.
36873         (__kernel_standard_l): New function.
36874         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
36875         __kernel_standard.
36876         * math/w_acosl.c (__acosl): Likewise.
36877         * math/w_asinl.c (__asinl): Likewise.
36878         * math/w_atan2l.c (__atan2l): Likewise.
36879         * math/w_atanhl.c (__atanhl): Likewise.
36880         * math/w_coshl.c (__coshl): Likewise.
36881         * math/w_exp10l.c (__exp10l): Likewise.
36882         * math/w_exp2l.c (__exp2l): Likewise.
36883         * math/w_fmodl.c (__fmodl): Likewise.
36884         * math/w_hypotl.c (__hypotl): Likewise.
36885         * math/w_j0l.c (__j0l, __y0l): Likewise.
36886         * math/w_j1l.c (__j1l, __y1l): Likewise.
36887         * math/w_jnl.c (__jnl, __ynl): Likewise.
36888         * math/w_lgammal.c (__lgammal): Likewise.
36889         * math/w_log10l.c (__log10l): Likewise.
36890         * math/w_log2l.c (__log2l): Likewise.
36891         * math/w_logl.c (__logl): Likewise.
36892         * math/w_powl.c (__powl): Likewise.
36893         * math/w_remainderl.c (__remainderl): Likewise.
36894         * math/w_scalbl.c (sysv_scalbl): Likewise.
36895         * math/w_sinhl.c (__sinhl): Likewise.
36896         * math/w_sqrtl.c (__sqrtl): Likewise.
36897         * math/w_tgammal.c (__tgammal): Likewise.
36898         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
36899         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
36900         * math/libm-test.inc (acos_test): Add more tests.
36901         (acosh_test): Likewise.
36902         (asin_test): Likewise.
36903         (atanh_test): Likewise.
36904         (exp_test): Likewise.
36905         (exp10_test): Likewise.
36906         (exp2_test): Likewise.
36907         (expm1_test): Likewise.
36908         (lgamma_test): Likewise.
36909         (log_test): Likewise.
36910         (log10_test): Likewise.
36911         (log1p_test): Likewise.
36912         (log2_test): Likewise.
36913         (pow_test): Do not allow some spurious overflow exceptions.
36914         (sqrt_test): Add more tests.
36915         (tgamma_test): Likewise.
36916         (y0_test): Likewise.
36917         (y1_test): Likewise.
36918         (yn_test): Likewise.
36919
36920 2012-03-27  Anton Blanchard  <anton@samba.org>
36921
36922         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
36923         MAP_HUGETLB.
36924         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
36925         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
36926         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
36927
36928 2012-03-27  David S. Miller  <davem@davemloft.net>
36929
36930         * conform/Makefile: Run run-conformtest.sh using $(BASH).
36931
36932         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
36933         have-as-vis3 check.
36934
36935 2012-03-27  Andreas Jaeger  <aj@suse.de>
36936
36937         * sysdeps/x86_64/elf/configure.in: Moved to ...
36938         * sysdeps/x86_64/configure.in: ... here.
36939         * sysdeps/x86_64/elf/start.S: Moved to ...
36940         * sysdeps/x86_64/start.S: ... here.
36941         * sysdeps/x86_64/elf/configure: Delete.
36942
36943         * sysdeps/x86_64/configure.in: Merge contents from
36944         sysdeps/i386/configure.in (without i686 check).
36945
36946         * sysdeps/i386/elf/Versions: Merge into ...
36947         * sysdeps/i386/Versions: ... this.
36948         * sysdeps/i386/elf/Versions: Delete file.
36949         * sysdeps/i386/elf/start.S: Moved to ...
36950         * sysdeps/i386/start.S: ...here.
36951         * sysdeps/i386/elf/configure.in: Merge into...
36952         * sysdeps/i386/configure.in: ...here.
36953         * sysdeps/i386/elf/configure.in: Delete file.
36954         * sysdeps/i386/elf/configure: Delete file.
36955
36956         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
36957         * debug/backtracesyms.c: ... here.
36958         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
36959         * debug/backtracesymsfd.c: ... here.
36960         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
36961         * sysdeps/generic/ifunc-sel.h: ... here.
36962
36963         * sysdeps/unix/i386/start.c: Delete file.
36964         * sysdeps/unix/sparc/start.c: Delete file.
36965         * sysdeps/unix/start.c: Delete file.
36966
36967         * sysdeps/sh/elf/configure.in: Moved to ...
36968         * sysdeps/sh/configure.in: ... here.
36969         * sysdeps/sh/elf/start.S: Moved to ...
36970         * sysdeps/sh/start.S: ... here.
36971         * sysdeps/sh/elf/configure: Delete file.
36972
36973         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
36974         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
36975         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
36976         * sysdeps/powerpc/powerpc64/entry.h: ... here.
36977         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
36978         * sysdeps/powerpc/powerpc64/start.S: here.
36979         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
36980         * sysdeps/powerpc/powerpc64/Makefile: ... this.
36981         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
36982         * sysdeps/powerpc/powerpc64/configure.in: ... this.
36983         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
36984
36985         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
36986         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
36987         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
36988         * sysdeps/powerpc/powerpc32/start.S: ... here.
36989         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
36990         * sysdeps/powerpc/powerpc32/configure.in: ... this.
36991         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
36992
36993         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
36994         * sysdeps/powerpc/ifunc-sel.h: ... here.
36995         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
36996         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
36997
36998         * sysdeps/sparc/elf/configure.in: Moved to ...
36999         * sysdeps/sparc/configure.in: ... here.
37000         * sysdeps/sparc/elf/configure: Delete file.
37001         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
37002         * sysdeps/sparc/sparc32/start.S: ... here.
37003         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
37004         * sysdeps/sparc/sparc64/start.S: ... here.
37005         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
37006         * sysdeps/sparc/sparc32/Makefile: ... this.
37007         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
37008         * sysdeps/sparc/sparc64/Makefile: ... this.
37009
37010         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
37011         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
37012         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
37013         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
37014         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
37015         * sysdeps/s390/s390-32/setjmp.S: ... here.
37016         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
37017         * sysdeps/s390/s390-32/configure.in: ... here.
37018         * sysdeps/s390/s390-32/elf/configure: Delete file.
37019         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
37020         * sysdeps/s390/s390-32/start.S: ... here.
37021
37022         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
37023         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
37024         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
37025         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
37026         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
37027         * sysdeps/s390/s390-64/setjmp.S: ... here.
37028         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
37029         * sysdeps/s390/s390-64/configure.in: ... here
37030         * sysdeps/s390/s390-64/elf/configure: Delete file.
37031         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
37032         * sysdeps/s390/s390-64/start.S: ... here.
37033         * sysdeps/s390/s390-64/elf/configure: Delete.
37034
37035         * configure.in: Remove support for elf directories in sysdeps.
37036
37037         * configure: Regenerated.
37038         * sysdeps/i386/configure: Regenerated.
37039         * sysdeps/powerpc/powerpc32/configure: Regenerated.
37040         * sysdeps/powerpc/powerpc64/configure: Regenerated.
37041         * sysdeps/s390/s390-32/configure: Regenerated.
37042         * sysdeps/s390/s390-64/configure: Regenerated.
37043         * sysdeps/sh/configure: Regenerated.
37044         * sysdeps/sparc/configure: Regenerated.
37045         * sysdeps/x86_64/configure: Regenerated.
37046
37047 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
37048
37049         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37050
37051         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
37052         denormal result into account.
37053
37054 2012-03-25  Roland McGrath  <roland@hack.frob.com>
37055
37056         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
37057         Reported by Allan McRae <allan@archlinux.org>.
37058
37059 2012-03-23  Jeff Law  <law@redhat.com>
37060
37061         * nss/getnssent.c (__nss_getent): Fix typo.
37062
37063 2012-03-23  David S. Miller  <davem@davemloft.net>
37064
37065         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37066
37067 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
37068
37069         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
37070         to pad to uint64_t for each field.
37071         (dl_tls_index): Replace unsigned long with uint64_t.
37072
37073 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
37074         Paul Pluzhnikov  <ppluzhnikov@google.com>
37075
37076         [BZ #6528]
37077         * grp/Makefile (otherlibs): Don't set it.
37078         * inet/Makefile (otherlibs): Likewise.
37079         * login/Makefile (otherlibs): Likewise.
37080         * nscd/Makefile (otherlibs): Likewise.
37081         * posix/Makefile (otherlibs): Likewise.
37082         * pwd/Makefile (otherlibs): Likewise.
37083         * rt/Makefile (otherlibs): Likewise.
37084         * sunrpc/Makefile (otherlibs): Likewise.
37085         * nss/Makefile (otherlibs): Likewise.
37086         Add libnss_files to routines and static-only-routines.
37087         ($(objpfx)getent): Remove rule.
37088         * resolv/Makefile: Add libnss_dns and libresolv to routines and
37089         static-only-routines.
37090
37091 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
37092
37093         [BZ #13892]
37094         * math/s_cexp.c: Include <float.h>.
37095         (__cexp): Handle exp result overflowing not necessarily
37096         overflowing both real and imaginary parts of result.
37097         * math/s_cexpf.c: Likewise.
37098         * math/s_cexpl.c: Likewise.
37099         * math/libm-test.inc (cexp_test): Add more tests.
37100         * sysdeps/i386/fpu/libm-test-ulps: Update.
37101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37102
37103 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37104
37105         * include/link.h (ELFW): New macro.
37106         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
37107         Replace ELF64_R_TYPE with ELFW(R_TYPE).
37108
37109 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37110
37111         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
37112         with uint64_t.
37113
37114 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37115
37116         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
37117         declaration.
37118         (struct La_x32_retval): Likewise.
37119
37120 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37121
37122         * sysdeps/x86_64/preconfigure.in: New file.
37123         * sysdeps/x86_64/preconfigure: New generated file.
37124
37125 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
37126
37127         [BZ #13824]
37128         * math/e_exp2l.c: Include <float.h>.
37129         (__ieee754_exp2l): Handle overflow and underflow cases
37130         separately.  Only pass fractional part of argument to
37131         __ieee754_expl.
37132         * math/libm-test.inc (exp2_test): Add more tests.
37133
37134         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
37135         negating x to take absolute value.
37136         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
37137         Likewise.
37138         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
37139         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
37140         Likewise.
37141         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
37142         computing low part if x was negated.
37143         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
37144
37145 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37146
37147         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
37148         la_x32_gnu_pltexit.
37149         (pltexit): Cast int_retval to ptrdiff_t.
37150         * elf/tst-auditmod3b.c: Likewise.
37151         * elf/tst-auditmod4b.c: Likewise.
37152         * elf/tst-auditmod5b.c: Likewise.
37153         * elf/tst-auditmod6b.c: Likewise.
37154         * elf/tst-auditmod6c.c: Likewise.
37155         * elf/tst-auditmod7b.c: Likewise.
37156
37157         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
37158         and x32_gnu_pltexit.
37159
37160         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
37161         __ELF_NATIVE_CLASS.
37162         (La_x32_regs): New macro.
37163         (La_x32_retval): Likewise.
37164         (la_x32_gnu_pltenter): New function prototype.
37165         (la_x32_gnu_pltexit): Likewise.
37166
37167 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
37168
37169         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
37170         exponent.
37171
37172         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37173
37174         * configure.in (libc_cv_cc_nofma): Check for option to disable
37175         generation of FMA instructions.
37176         * configure: Regenerate.
37177         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
37178         * sysdeps/ieee754/dbl-64/Makefile: New file.
37179         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37180         Remove brandred-fma4.
37181         (CFLAGS-brandred-fma4.c): Remove.
37182         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
37183         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
37184         define.
37185         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
37186         define.
37187
37188 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37189
37190         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
37191         LLONG_MAX != LONG_MAX.
37192         (_itoa_word): Use _ITOA_WORD_TYPE on value.
37193         (_fitoa_word): Likewise.
37194         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
37195         LLONG_MAX != LONG_MAX.
37196         * stdio-common/_itowa.h: Include <_itoa.h>.
37197         (_itowa_word): Use _ITOA_WORD_TYPE on value.
37198         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
37199         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
37200         only if not defined.
37201         (_ITOA_WORD_TYPE): Likewise.
37202         (_itoa_word): Use _ITOA_WORD_TYPE on value.
37203         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
37204
37205 2012-03-21  David S. Miller  <davem@davemloft.net>
37206
37207         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37208
37209 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37210
37211         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
37212         of x86_64 when setting libc_cv_slibdir, libdir and
37213         libc_cv_localedir.
37214         * sysdeps/unix/sysv/linux/configure: Regenerated.
37215
37216 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37217
37218         * manual/lang.texi (Old Varargs): Remove section.
37219         (How Variadic): Update menu.
37220         (va_start): Do not mention varargs.h.
37221
37222 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
37223             Joseph Myers  <joseph@codesourcery.com>
37224
37225         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
37226         link test.
37227         * configure: Regenerated.
37228
37229 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
37230
37231         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
37232         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
37233         conformtest.pl
37234
37235 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37236
37237         * NOTES: Remove.
37238         * Makefile (files-for-dist): Remove NOTES.
37239         (NOTES): Remove rule.
37240         * README: Don't refer to NOTES.
37241         * manual/creature.texi: Don't include macros.texi.
37242         * manual/intro.texi (creature.texi): Remove comment referring to
37243         NOTES.
37244
37245         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
37246         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
37247         * configure: Regenerated.
37248         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
37249         LIBC_TRY_CC_OPTION.
37250         (libc_cv_as_i686): Likewise.
37251         (libc_cv_cc_avx): Likewise.
37252         (libc_cv_cc_sse2avx): Likewise.
37253         (libc_cv_cc_fma4): Likewise.
37254         (libc_cv_cc_novzeroupper): Likewise.
37255         * sysdeps/i386/configure: Regenerated.
37256
37257         [BZ #13883]
37258         * sysdeps/i386/fpu/s_cexp.S: Remove.
37259         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
37260         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
37261         * math/libm-test.inc (cexp_test): Add more tests.
37262         * sysdeps/i386/fpu/libm-test-ulps: Update.
37263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37264
37265 2012-03-21  Allan McRae  <allan@archlinux.org>
37266
37267         * timezone/Makefile: Do not install iso3166.tab and zone.tab
37268
37269 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37270
37271         [BZ #13871]
37272         * math/w_exp2.c: Do not include <float.h>.
37273         (o_threshold, u_threshold): Remove.
37274         (__exp2): Calculate result before checking finiteness and calling
37275         __kernel_standard.
37276         * math/w_exp2f.c: Likewise.
37277         * math/w_exp2l.c: Likewise.
37278         * math/libm-test.inc (exp2_test): Require overflow exception for
37279         1e6 input.
37280
37281         [BZ #3866]
37282         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
37283         range of signed 64-bit integers before using fistpll.  Remove
37284         checks for whether integers fit in mantissa bits.
37285         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
37286         the range of signed 32-bit integers before using fistpl.  Remove
37287         checks for whether integers fit in mantissa bits.
37288         * sysdeps/i386/fpu/e_powl.S (p64): New object.
37289         (__ieee754_powl): Test for y outside the range of signed 64-bit
37290         integers before using fistpll.  Reduce 64-bit values to 63-bit
37291         ones as needed.
37292         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
37293         divide-by-zero is raised for zero to large negative powers.
37294         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
37295         (__ieee754_powl): Test for y outside the range of signed 64-bit
37296         integers before using fistpll.  Reduce 64-bit values to 63-bit
37297         ones as needed.
37298         * math/libm-test.inc (pow_test): Add more tests.
37299
37300 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37301
37302         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
37303         <stdio-common/_itoa.h>.
37304         * debug/segfault.c: Likewise.
37305         * elf/dl-cache.c: Likewise.
37306         * elf/dl-minimal.c: Likewise.
37307         * elf/dl-misc.c: Likewise.
37308         * elf/dl-sysdep.c: Likewise.
37309         * elf/dl-version.c: Likewise.
37310         * elf/rtld.c: Likewise.
37311         * hurd/hurdsock.c: Likewise.
37312         * hurd/lookup-retry.c: Likewise.
37313         * malloc/malloc.c: Likewise.
37314         * malloc/mtrace.c: Likewise.
37315         * nscd/nscd_getgr_r.c: Likewise.
37316         * nscd/nscd_getpw_r.c: Likewise.
37317         * nscd/nscd_getserv_r.c: Likewise.
37318         * posix/getopt_init.c: Likewise.
37319         * posix/wordexp.c: Likewise.
37320         * stdio-common/_itoa.c: Likewise.
37321         * stdio-common/printf_fphex.c: Likewise.
37322         * stdio-common/vfprintf.c: Likewise.
37323         * string/_strerror.c: Likewise.
37324         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
37325         * sysdeps/i386/i686/hp-timing.h: Likewise.
37326         * sysdeps/mach/_strerror.c: Likewise.
37327         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
37328         * sysdeps/mach/hurd/sethostid.c: Likewise.
37329         * sysdeps/mach/hurd/xmknodat.c: Likewise.
37330         * sysdeps/mach/xpg-strerror.c: Likewise.
37331         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
37332         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
37333         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
37334         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
37335         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
37336         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
37337         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
37338         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
37339         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
37340         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
37341         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
37342         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
37343         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
37344         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
37345         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
37346         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
37347         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
37348         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
37349         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
37350         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
37351         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
37352
37353         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
37354
37355         * stdio-common/_itoa.h: Moved to ...
37356         * sysdeps/generic/_itoa.h: Here.
37357
37358         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
37359
37360         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
37361         instead of "_itoa.h" and "_itowa.h".
37362         * stdio-common/vfprintf.: Likewise.
37363
37364 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37365
37366         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
37367         <bits/wordsize.h>.
37368         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
37369         (__signbit): Likwise.
37370         (llrintf): Likwise.
37371         (llrint): Likwise.
37372
37373 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
37374
37375         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
37376         __WORDSIZE != 64.
37377
37378 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
37379
37380         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
37381         OVERFLOW_EXCEPTION_OK.
37382         * math/libm-test.inc ("Philosophy"): Update comment about
37383         exception testing.
37384         (OVERFLOW_EXCEPTION): Define.
37385         (OVERFLOW_EXCEPTION_OK): Likewise.
37386         (INVALID_EXCEPTION_OK): Renumber.
37387         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
37388         (IGNORE_ZERO_INF_SIGN): Likewise.
37389         (test_exceptions): Handle FE_OVERFLOW.
37390         (exp10_test): Expect overflow exceptions.
37391         (exp2_test): Likewise.
37392         (expm1_test): Likewise.
37393         (nextafter_test): Likewise.
37394         (pow_test): Likewise.
37395         (scalbn_test): Likewise.
37396         (scalbln_test): Likewise.
37397
37398 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37399
37400         * sysdeps/x86_64/bits/atomic.h
37401         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
37402         64bit integer.
37403         (atomic_exchange_acq): Likewise.
37404         (__arch_exchange_and_add_body): Likewise.
37405         (__arch_add_body): Likewise.
37406         (atomic_add_negative): Likewise.
37407         (atomic_add_zero): Likewise.
37408
37409 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37410
37411         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
37412         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
37413
37414 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37415
37416         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
37417         Check __x86_64__ instead of __WORDSIZE.
37418
37419 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37420
37421         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
37422
37423 2012-03-19  David S. Miller  <davem@davemloft.net>
37424
37425         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37426
37427         * sysdeps/sparc/fpu/fenv_private.h: New file.
37428         * sysdeps/sparc/fpu/math_private.h: Use it.
37429         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
37430         Remove.
37431         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
37432         (libc_feholdexcept_setroundl): Remove.
37433         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
37434         Remove.
37435         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
37436         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
37437
37438 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37439
37440         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
37441         int64_t instead of long int.
37442         (INSERT_WORDS64): Likwise.
37443
37444 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
37445
37446         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
37447         _Unwind_GetCFA return to _Unwind_Ptr first.
37448
37449 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
37450
37451         [BZ #13629]
37452         * math/s_clog.c: Include <float.h>.
37453         (__clog): Scale large or subnormal inputs.
37454         * math/s_clogf.c: Likewise.
37455         * math/s_clogl.c: Likewise.
37456         * math/s_clog10.c: Include <float.h>.
37457         (M_LOG10_2): Define.
37458         (__clog10): Scale large or subnormal inputs.
37459         * math/s_clog10f.c: Likewise.
37460         * math/s_clog10l.c: Likewise.
37461         * math/libm-test.inc (clog_test): Add more tests.
37462         (clog10_test): Likewise.
37463         * sysdeps/i386/fpu/libm-test-ulps: Update.
37464         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37465
37466         [BZ #11451]
37467         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
37468         x and y.
37469         * math/libm-test.inc (atan2_test): Add another test.
37470
37471         * Makerules (common-objdir-compile): Remove.
37472         * sysdeps/unix/Makefile (config-generated): Do not add
37473         $(unix-generated) to variable.
37474         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
37475         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
37476         Remove rule.
37477         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
37478         Likewise.
37479         [generic bits/local_lim.h] (before-compile): Do not append to
37480         variable.
37481         [generic bits/local_lim.h] (common-generated): Likewise.
37482         [generic sys/param.h] (before-compile): Do not append to variable.
37483         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
37484         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
37485         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
37486         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
37487         include.
37488         [generic sys/param.h] (sys/param.h-includes): Remove variable.
37489         [generic sys/param.h] (sys/param.h-includes): Remove rule.
37490         [generic sys/param.h] ($(addprefix
37491         $(common-objpfx),$(sys/param.h-includes))): Likewise.
37492         [generic sys/param.h] (common-generated): Do not append to
37493         variable.
37494         [generic sys/param.h] (sysdep_headers): Likewise.
37495         [generic bits/errno.h] (before-compile): Do not append to
37496         variable.
37497         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
37498         rule.
37499         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
37500         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
37501         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
37502         [generic bits/errno.h] (common-generated): Do not append to
37503         variable.
37504         [generic bits/ioctls.h] (before-compile): Do not append to
37505         variable.
37506         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
37507         rule.
37508         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
37509         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
37510         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
37511         rule.
37512         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
37513         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
37514         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
37515         [generic bits/ioctls.h] (common-generated): Do not append to
37516         variable.
37517         [generic sys/syscall.h] (syscall.h): Remove variable.
37518         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
37519         rule.
37520         [generic sys/syscall.h] (before-compile): Do not append to
37521         variable.
37522         [generic sys/syscall.h] (common-generated): Likewise.
37523         * sysdeps/unix/errnos-tmpl.c: Remove file.
37524         * sysdeps/unix/errnos.awk: Likewise.
37525         * sysdeps/unix/ioctls-tmpl.c: Likewise.
37526         * sysdeps/unix/ioctls.awk: Likewise.
37527         * sysdeps/unix/mk-local_lim.c: Likewise.
37528         * sysdeps/unix/snarf-ioctls: Likewise.
37529
37530 2012-03-19  Richard Henderson  <rth@twiddle.net>
37531
37532         * sysdeps/i386/fpu/fenv_private.h: New file.
37533         * sysdeps/i386/fpu/math_private.h: Use it.
37534         (math_opt_barrier, math_force_eval): Remove.
37535         (libc_feholdexcept_setround_53bit): Remove.
37536         (libc_feupdateenv_53bit): Remove.
37537         * sysdeps/x86_64/fpu/math_private.h: Likewise.
37538         (math_opt_barrier, math_force_eval): Remove.
37539         (libc_feholdexcept): Remove.
37540         (libc_feholdexcept_setround): Remove.
37541         (libc_fetestexcept, libc_fesetenv): Remove.
37542         (libc_feupdateenv_test): Remove.
37543         (libc_feupdateenv, libc_feholdsetround): Remove.
37544         (libc_feresetround): Remove.
37545
37546         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
37547         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
37548
37549         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
37550         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
37551         (libc_feupdateenv_testl): New.
37552         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
37553         (libc_feupdateenv_testf): New.
37554         (libc_feupdateenv): Use libc_feupdateenv_test.
37555         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
37556         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
37557
37558         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
37559         (libc_feholdsetroundf, libc_feholdsetroundl): New.
37560         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
37561         (libc_feresetround_noex): New.
37562         (libc_feresetround_noexf): New.
37563         (libc_feresetround_noexl): New.
37564         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
37565         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
37566         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
37567         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
37568         SET_RESTORE_ROUND.
37569         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
37570         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
37571         (__cos): Likewise.
37572         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
37573         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
37574         SET_RESTORE_ROUND_NOEX.
37575         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
37576         SET_RESTORE_ROUND_NOEXF.
37577         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
37578         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
37579         (libc_feholdsetroundf): New.
37580         (libc_feresetround, libc_feresetroundf): New.
37581
37582         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
37583         (libc_feholdexcept_setround_53bit): Convert from macro to function.
37584         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
37585
37586         * sysdeps/generic/math_private.h: Include <fenv.h>.
37587         (default_libc_feholdexcept): New.
37588         (default_libc_feholdexcept_setround): New.
37589         (default_libc_fesetenv, default_libc_feupdateenv): New.
37590         (libc_feholdexcept): Only define if undefined.
37591         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
37592         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
37593         (libc_feholdexcept_setroundl): Likewise.
37594         (libc_feholdexcept_setround_53bit): Likewise.
37595         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
37596         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
37597         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
37598         (libc_feupdateenv_53bit): Likewise.
37599         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
37600         (libc_feholdexcept): Convert from macro to inline function.
37601         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
37602         (libc_fesetenv, libc_feupdateenv): Likewise.
37603
37604         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
37605         not previously defined.
37606         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
37607         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
37608         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
37609         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
37610         * sysdeps/ieee754/flt-32/math_private.h: New file.
37611         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
37612         math_private.h below SET_FLOAT_WORD.
37613         (__isnan, __isinf_ns, __finite): Remove.
37614         (__isnanf, __isinf_nsf, __finitef): Remove.
37615
37616 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
37617
37618         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37619
37620 2012-03-17  David S. Miller  <davem@davemloft.net>
37621
37622         [BZ #6471]
37623         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
37624         for 2.16.
37625
37626 2012-03-16  David S. Miller  <davem@davemloft.net>
37627
37628         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
37629         warnings.
37630
37631         [BZ #6471]
37632         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
37633         properly.
37634         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
37635         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
37636         sysdep_routines when subdir is sysvipc.
37637         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
37638         __getshmlba helper.
37639
37640         * sysdeps/sparc/fpu/libm-test/ulps: Update.
37641
37642 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37643
37644         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
37645         [__LP64__].
37646
37647 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37648
37649         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
37650         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
37651         (__lround): Renamed to ...
37652         (__llround): This.  Replace long int with long long int.
37653         Define lround functions as aliases of llround functions.
37654         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
37655
37656 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37657
37658         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
37659         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
37660         adresses to uintptr_t.  Replace "long int" and "unsigned long
37661         int" with "greg_t" on va_arg.
37662
37663 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37664
37665         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
37666         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
37667
37668         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
37669         Move e_machine check before EI_CLASS check.  Handle x32
37670         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
37671         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
37672         SKIP_EM_IA_64 and include
37673         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
37674
37675         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
37676         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
37677         (add_system_dir): New macro.
37678
37679         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
37680         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
37681
37682 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37683
37684         [BZ #2551]
37685         [BZ #2552]
37686         [BZ #2553]
37687         [BZ #2554]
37688         [BZ #2562]
37689         [BZ #2563]
37690         [BZ #2565]
37691         [BZ #2566]
37692         [BZ #2576]
37693         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
37694         (y0): Likewise.
37695         * math/w_j0f.c (j0f): Likewise.
37696         (y0f): Likewise.
37697         * math/w_j0l.c (__j0l): Likewise.
37698         (__y0l): Likewise.
37699         * math/w_j1.c (j1): Likewise.
37700         (y1): Likewise.
37701         * math/w_j1f.c (j1f): Likewise.
37702         (y1f): Likewise.
37703         * math/w_j1l.c (__j1l): Likewise.
37704         (__y1l): Likewise.
37705         * math/w_jn.c (jn): Likewise.
37706         (yn): Likewise.
37707         * math/w_jnf.c (jnf): Likewise.
37708         (ynf): Likewise.
37709         * math/w_jnl.c (__jnl): Likewise.
37710         (__ynl): Likewise.
37711         * math/libm-test.inc (j0_test): Add more tests.
37712         (j1_test): Likewise.
37713         (jn_test): Likewise.  Add trailing semicolon to existing test.
37714         (y0_test): Likewise.
37715         (y1_test): Likewise.
37716         * sysdeps/i386/fpu/libm-test-ulps: Update.
37717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37718
37719         [BZ #13851]
37720         [BZ #13854]
37721         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
37722         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
37723         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
37724         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
37725         (__tanl): Set errno for infinite argument.
37726         * sysdeps/i386/fpu/mptan.c: Remove.
37727         * sysdeps/i386/fpu/s_tan.S: Likewise.
37728         * sysdeps/i386/fpu/s_tanl.S: Likewise.
37729         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
37730         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
37731         * math/libm-test.inc (tan_test): Add more tests and enable more
37732         tests for double and long double.
37733         * sysdeps/i386/fpu/libm-test-ulps: Update.
37734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37735
37736 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
37737
37738         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
37739         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
37740
37741 2012-03-16  Roland McGrath  <roland@hack.frob.com>
37742
37743         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
37744         * configure.in: Use it for both main tree and add-ons.
37745         * configure: Regenerated.
37746
37747 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
37748
37749         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
37750
37751 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
37752
37753         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
37754         in comment.
37755
37756         [BZ #13851]
37757         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
37758         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
37759         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
37760         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
37761         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
37762         infinite argument.
37763         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
37764         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
37765         != 0 for prec == 2.
37766         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
37767         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
37768         * sysdeps/i386/fpu/s_cosl.S: Likewise.
37769         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
37770         * sysdeps/i386/fpu/s_sinl.S: Likewise.
37771         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
37772         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
37773         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
37774         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
37775         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
37776         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
37777         * math/libm-test.inc (cos_test): Add more tests and enable more
37778         tests for long double.
37779         (sin_test): Likewise.
37780         (sincos_test): Likewise.
37781         * sysdeps/i386/fpu/libm-test-ulps: Update.
37782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37783
37784 2012-03-16  David S. Miller  <davem@davemloft.net>
37785
37786         * sysdeps/sparc/fpu/math_private.h: New file.
37787
37788 2012-03-15  David S. Miller  <davem@davemloft.net>
37789
37790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
37791         file.
37792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
37793         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
37794         file.
37795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
37796         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
37797         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
37798         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
37799         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
37800         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
37801         sysdep routines.
37802         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37803
37804         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
37805         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
37806
37807         * sysdeps/sparc/sparc-ifunc.h: New file.
37808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
37809         sparc-ifunc.h
37810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
37811         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
37812         Likewise.
37813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
37814         Likewise.
37815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
37816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
37817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
37818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
37819         Likewise.
37820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
37821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
37822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
37823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
37824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
37825         Likewise.
37826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
37827         Likewise.
37828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
37829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
37830         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
37831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
37832         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
37833         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
37834         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
37835         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
37836         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
37837         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
37838         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
37839         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
37840         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
37841         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
37842         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
37843         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
37844         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
37845         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
37846         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
37847         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
37848         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
37849         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
37850         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
37851         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
37852
37853 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37854
37855         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
37856         scaling.
37857         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37858
37859 2012-03-15  Andreas Jaeger  <aj@suse.de>
37860
37861         [BZ #13852]
37862         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
37863         ieee754/flt-32 implementation for sin, cos and sincos.
37864         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
37865         * sysdeps/i386/fpu/s_cosf.S: Likewise.
37866         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
37867         * sysdeps/i386/fpu/s_sinf.S: Likewise.
37868         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
37869         ieee754/flt-32 implementation for tan.
37870
37871         * math/libm-test.inc (cos_test): Enable some large input tests for
37872         float as well
37873         (sin_test): Likewise.
37874         (sincos_test): Likewise.
37875         (tan_test): Add tests for large input.
37876
37877         * sysdeps/i386/fpu/libm-test-ulps: Update.
37878
37879 2012-03-15  Andreas Jaeger  <aj@suse.de>
37880
37881         [BZ #13658]
37882         * math/libm-test.inc (cos_test): Add more test cases.
37883         (sin_test): Likewise.
37884         (sincos_test): Likewise.
37885
37886 2012-03-15  Andreas Jaeger  <aj@suse.de>
37887
37888         [BZ #13837]
37889         * math/libm-test.inc (cos_test): Add a test case for large input
37890         value.
37891         (sin_test): Likewise.
37892         (sincos_test): Likewise.
37893
37894 2012-03-15  Andreas Jaeger  <aj@suse.de>
37895             Joseph Myers  <joseph@codesourcery.com>
37896
37897         [BZ #13658]
37898         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
37899         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
37900         * sysdeps/i386/fpu/branred.c: Likewise.
37901         * sysdeps/i386/fpu/dosincos.c: Likewise.
37902         * sysdeps/i386/fpu/mpa.c: Likewise.
37903         * sysdeps/i386/fpu/s_cos.S: Likewise.
37904         * sysdeps/i386/fpu/s_sin.S: Likewise.
37905         * sysdeps/i386/fpu/s_sincos.S: Likewise.
37906         * sysdeps/i386/fpu/sincos32.c: Likewise.
37907
37908         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
37909         Define.
37910         (libc_feupdateenv_53bit): Define.
37911         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
37912         Define.
37913         (libc_feupdateenv_53bit): Define.
37914
37915         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
37916         53 bit (without extend i386 double precision).
37917
37918         * math/libm-test.inc (sincos_test): Add tests for large input.
37919         (sin): Likewise.
37920         (cos): Likewise.
37921
37922         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
37923
37924 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
37925
37926         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37927
37928 2012-03-15  David S. Miller  <davem@davemloft.net>
37929
37930         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
37931         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
37932         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
37933         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
37934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
37935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
37936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
37937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
37938         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
37939         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
37940         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
37941         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
37942         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
37943         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
37944         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
37945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
37946         file.
37947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
37948         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
37949         file.
37950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
37951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
37952         file.
37953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
37954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
37955         file.
37956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
37957         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
37958         fmin/fmax sysdep routines.
37959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
37960
37961 2012-03-14  David S. Miller  <davem@davemloft.net>
37962
37963         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
37964         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
37965         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
37966         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
37967         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
37968         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
37969         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
37970         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
37971         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
37972         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
37973         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
37974         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
37975         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
37976         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
37977         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
37978         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
37979         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
37980         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
37981         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
37982         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
37983         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
37984         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
37985         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
37986         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
37987         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
37988         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
37989         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
37990         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
37991         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
37992         routines.
37993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
37994         file.
37995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
37996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
37997         file.
37998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
37999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
38000         file.
38001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
38002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
38003         file.
38004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
38005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
38006         file.
38007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
38008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
38009         file.
38010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
38011         file.
38012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
38013         file.
38014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
38015         file.
38016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
38017         New file.
38018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
38019         file.
38020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
38021         file.
38022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
38023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
38024         file.
38025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
38026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
38027         file.
38028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
38029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
38030         file.
38031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
38032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
38033         VIS3 routines.
38034
38035         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
38036         New file.
38037
38038         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38039
38040         * sysdeps/sparc/configure.in: New file.
38041         * sysdeps/sparc/configure: Generate.
38042         * configure.in (libc_cv_sparc_as_vis3): Substitute.
38043         * configure: Regenerate.
38044         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
38045         * config.make.in (have-as-vis3): New.
38046         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
38047         available use -Av9d instead of -Av9a.
38048         * sysdeps/sparc/sparc64/Makefile: Likewise.
38049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
38050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
38051         New file.
38052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
38053         file.
38054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
38055         New file.
38056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
38057         file.
38058         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
38059         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
38060         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
38061         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
38062         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
38063
38064         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
38065         fzeros/fnegs to load 0x80000000 into a float register instead of
38066         using the stack.
38067         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
38068
38069 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
38070
38071         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38072         bits/syscall.h.
38073         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
38074         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
38075         ($(inst_includedir)/bits/syscall.h): Remove rule.
38076         ($(objpfx)bits/syscall.d): Include instead of
38077         $(objpfx)syscall-list.d.
38078         (generated): Change syscall-list.h and syscall-list.d to
38079         bits/syscall.h and bits/syscall.d.
38080
38081 2012-03-14  Roland McGrath  <roland@hack.frob.com>
38082
38083         [BZ #13846]
38084         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
38085
38086 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
38087
38088         [BZ #13841]
38089         * math/s_csqrt.c: Include <float.h>.
38090         (__csqrt): Scale large or subnormal inputs.
38091         * math/s_csqrtf.c: Likewise.
38092         * math/s_csqrtl.c: Likewise.
38093         * math/libm-test.inc (csqrt_test): Add more tests.
38094         * sysdeps/i386/fpu/libm-test-ulps: Update.
38095         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38096
38097         [BZ #13840]
38098         * math/libm-test.inc (hypot_test): Add more tests.
38099
38100 2012-03-13  David S. Miller  <davem@davemloft.net>
38101
38102         [BZ #13840]
38103         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
38104         double-precision for the calculation instead of scaling.
38105
38106 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
38107
38108         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
38109         manipulate bits before adding and subtracting TWO52[sx].
38110         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
38111         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
38112         Likewise.
38113         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
38114
38115 2012-03-13  David S. Miller  <davem@davemloft.net>
38116
38117         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
38118         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
38119         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
38120         rtld-global-offsets.h
38121         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38122
38123         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
38124         large parameters.
38125
38126         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
38127
38128         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
38129         'err' in the ifdef scope in which it is actually used.
38130
38131         * nss/nss_db/db-init.c: Include string.h
38132
38133 2012-03-12  David S. Miller  <davem@davemloft.net>
38134
38135         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
38136         masking out of the most significant byte of random value used.
38137         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38138         Fix coding style in previous change.
38139
38140         * sysdeps/unix/sysv/linux/kernel-features.h
38141         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
38142         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
38143         expression.
38144         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
38145         later.
38146
38147 2012-03-11  David S. Miller  <davem@davemloft.net>
38148
38149         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
38150         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
38151         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
38152         for 'resultvar' otherwise things get truncated on 64-bit.
38153
38154         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38155         Fix masking out of the most significant byte of random value used.
38156
38157         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38158
38159 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
38160
38161         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38162
38163 2012-03-09  David S. Miller  <davem@davemloft.net>
38164
38165         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
38166         variables with appropriate CPP guards.
38167         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
38168         from the frame pointer, not the stack pointer.  Correct layout
38169         comments.  Fix test on resulting framesize and the management of
38170         the outregs buffer for pltexit.  Preserve floating point return
38171         values across _dl_call_pltexit call.
38172         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
38173         framesize and the management of the outregs buffer for pltexit.
38174         Preserve floating point return values across _dl_call_pltexit
38175         call.
38176         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
38177         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
38178         (la_sparc64_gnu_pltexit): New functions.
38179         (print_exit): Fix format string for return register value.
38180
38181 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
38182
38183         * sunrpc/Makefile (others): Add rpcgen.
38184         ($(objpfx)rpcgen): Remove special build rule and dependency on
38185         libc.
38186         * sunrpc/rpcgen.c: New file.
38187
38188 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38189
38190         [BZ #13673]
38191         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
38192         * stdio-common/bug-vfprintf-nargs.c: Likewise.
38193         * sysdeps/i386/crti.S: Likewise.
38194         * sysdeps/i386/crtn.S: Likewise.
38195         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
38196         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
38197         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
38198         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
38199         * sysdeps/sh/crti.S: Likewise.
38200         * sysdeps/sh/crtn.S: Likewise.
38201         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
38202
38203         [BZ #13673]
38204         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
38205         with URL.
38206         * locale/programs/locfile-kw.gperf: Likewise.
38207         * locale/programs/charmap-kw.h: Regenerated.
38208         * locale/programs/locfile-kw.h: Likewise.
38209
38210         [BZ #13673]
38211         * intl/plural.y: Replace FSF snail mail address with URL.
38212         * intl/plural.c: Regenerated.
38213
38214 2012-03-09  Richard Henderson  <rth@twiddle.net>
38215
38216         * include/math_private.h: Remove file.
38217         * math/math_private.h: Move file ...
38218         * sysdeps/generic/math_private.h: ... here.
38219
38220         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
38221         * sysdeps/powerpc/fpu/math_private.h: Likewise.
38222         * sysdeps/x86_64/fpu/math_private.h: Likewise.
38223
38224         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
38225         and <math_private.h>.
38226         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
38227         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
38228         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
38229         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
38230         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
38231         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
38232         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
38233         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
38234         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
38235         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
38236         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
38237         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38238         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
38239         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
38240         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
38241         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
38242         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
38243         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
38244         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
38245         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
38246         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
38247         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
38248         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
38249         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
38250         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
38251         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
38252         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
38253         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
38254         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
38255         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
38256         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
38257         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
38258         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
38259         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
38260         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
38261         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
38262         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
38263         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
38264         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
38265         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
38266         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
38267         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
38268         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
38269         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
38270         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
38271         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
38272         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
38273         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
38274         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
38275         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
38276         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
38277         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
38278         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
38279         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
38280         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
38281         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
38282         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
38283         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
38284         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
38285         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
38286         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
38287         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
38288         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
38289         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
38290         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
38291         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
38292         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
38293         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
38294         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
38295         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
38296         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
38297         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
38298         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
38299         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
38300         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
38301         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
38302         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
38303         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
38304         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
38305         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
38306         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
38307         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
38308         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
38309         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
38310         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
38311         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
38312         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
38313         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
38314         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
38315         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
38316         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
38317         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
38318         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38319         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
38320         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
38321         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
38322         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
38323         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
38324         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
38325         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
38326         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
38327         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
38328         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
38329         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
38330         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
38331         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
38332         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
38333         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
38334         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
38335         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
38336         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
38337         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
38338         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
38339         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
38340         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
38341         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
38342         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
38343         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
38344         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
38345         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
38346         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
38347         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
38348         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
38349         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
38350         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
38351         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
38352         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
38353         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
38354         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
38355         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
38356         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
38357         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
38358         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
38359         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
38360         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
38361         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
38362         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
38363         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
38364         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
38365         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
38366         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
38367         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
38368         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
38369         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
38370         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
38371         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
38372         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
38373         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
38374         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
38375         * sysdeps/ieee754/k_standard.c: Likewise.
38376         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
38377         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
38378         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
38379         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
38380         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
38381         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
38382         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
38383         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
38384         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
38385         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
38386         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
38387         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
38388         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
38389         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
38390         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
38391         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
38392         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
38393         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
38394         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
38395         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
38396         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
38397         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
38398         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
38399         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
38400         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
38401         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
38402         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
38403         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
38404         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
38405         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
38406         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
38407         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
38408         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
38409         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
38410         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
38411         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
38412         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
38413         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
38414         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
38415         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
38416         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
38417         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
38418         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
38419         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
38420         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
38421         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
38422         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
38423         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
38424         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
38425         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
38426         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
38427         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
38428         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
38429         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
38430         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
38431         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
38432         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
38433         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
38434         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
38435         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
38436         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
38437         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
38438         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
38439         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
38440         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
38441         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
38442         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
38443         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
38444         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
38445         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
38446         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
38447         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
38448         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
38449         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
38450         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
38451         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
38452         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
38453         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
38454         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38455         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
38456         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
38457         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
38458         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
38459         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
38460         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
38461         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
38462         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
38463         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
38464         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
38465         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
38466         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
38467         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
38468         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
38469         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
38470         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
38471         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
38472         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
38473         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
38474         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
38475         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
38476         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
38477         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
38478         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
38479         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
38480         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
38481         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
38482         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
38483         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
38484         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
38485         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
38486         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
38487         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
38488         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
38489         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
38490         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
38491         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
38492         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
38493         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
38494         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
38495         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
38496         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
38497         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
38498         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
38499         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
38500         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
38501         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
38502         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
38503         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
38504         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
38505         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
38506         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
38507         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
38508         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
38509         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
38510         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
38511         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
38512         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
38513         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
38514         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
38515         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
38516         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
38517         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
38518         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
38519         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
38520         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
38521         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
38522         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
38523         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
38524         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
38525         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
38526         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
38527         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
38528         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
38529         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
38530         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
38531         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
38532         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
38533         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
38534         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
38535         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
38536         * sysdeps/ieee754/s_lib_version.c: Likewise.
38537         * sysdeps/ieee754/s_matherr.c: Likewise.
38538         * sysdeps/ieee754/s_signgam.c: Likewise.
38539         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
38540         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
38541         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
38542         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
38543         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
38544         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
38545         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
38546         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
38547         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
38548         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
38549         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
38550         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
38551         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
38552         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
38553         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
38554         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
38555         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
38556         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
38557         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
38558         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
38559         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
38560
38561 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
38562
38563         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
38564         * sunrpc/rpc_main.c: Likewise.
38565         * sunrpc/rpc_svcout.c: Likewise.
38566
38567 2012-03-09  David S. Miller  <davem@davemloft.net>
38568
38569         * include/math_private.h: New file.
38570
38571 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
38572
38573         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
38574         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
38575         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
38576         from <bits/socket_type.h>.
38577         (enum __socket_type): Don't define here.
38578         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
38579         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38580         bits/socket_type.h.
38581
38582         [BZ #13566]
38583         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
38584         checking __USE_GNU.
38585
38586         * Makerules ($(inst_includedir)/%.h): New rule.
38587         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
38588         (install-others): Remove variable setting.
38589         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
38590
38591 2012-03-08  Richard Henderson  <rth@twiddle.net>
38592
38593         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
38594         from macro to inline function; merge with the
38595         !__LIBC_INTERNAL_MATH_INLINES version.
38596         (__ieee754_sqrtf): Likewise.
38597
38598         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
38599         to inline function.
38600         (__rintf, __floor, __floorf): Likewise.
38601
38602         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
38603         macro to inline function.
38604         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
38605
38606         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
38607         not <math/math_private.h>.
38608
38609 2012-03-08  David S. Miller  <davem@davemloft.net>
38610
38611         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
38612         copyright year.
38613         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
38614
38615 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
38616
38617         * resolv/gai_misc.c (handle_requests): Fix struct timespec
38618         normalization.
38619         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
38620         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
38621
38622 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
38623
38624         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
38625         be defined individually, they must be defined as a block.  Define
38626         S for printing a string instead of hidint the different by using a
38627         macro for adding the 'l'.
38628         * stdio-common/tst-fphex-wide.c: Adjust.
38629
38630 2012-03-07  Marek Polacek  <polacek@redhat.com>
38631
38632         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
38633
38634 2012-03-08  Marek Polacek  <polacek@redhat.com>
38635
38636         [BZ #13806]
38637         * stdio-common/Makefile (tests): Add tst-fphex-wide.
38638         * stdio-common/tst-fphex.c: Define a few macros to make the
38639         test reusable.  Use them.
38640         * stdio-common/tst-fphex-wide.c: New file.
38641
38642 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
38643
38644         [BZ #6911]
38645         * manual/macros.texi (gnusystems): New macro.
38646         (nongnusystems): Likewise.
38647         (gnulinuxhurdsystems): Likewise.
38648         (gnuhurdsystems): Likewise..
38649         (gnulinuxsystems): Likewise.
38650         * manual/charset.texi: Use new macros or @theglibc{} to refer to
38651         variants of the GNU system, not "GNU system".
38652         * manual/conf.texi: Likewise.
38653         * manual/errno.texi: Likewise.  Update example of errno macro
38654         expansion.
38655         * manual/filesys.texi: Likewise.
38656         (getumask): Document as specific to GNU/Hurd.
38657         * manual/install.texi: Likewise.  Reword some references to
38658         GNU/Linux.
38659         * manual/intro.texi: Likewise.
38660         * manual/io.texi: Likewise.
38661         (File Name Portability): Detail which constraints are inapplicable
38662         to all GNU systems and which are only inapplicable to GNU/Hurd.
38663         * manual/job.texi: Likewise.
38664         * manual/llio.texi: Likewise.
38665         (O_NOCTTY): Document as present on GNU/Linux.
38666         * manual/maint.texi: Likewise.
38667         * manual/memory.texi: Likewise.
38668         * manual/pattern.texi: Likewise.
38669         * manual/pipe.texi: Likewise.
38670         * manual/process.texi: Likewise.
38671         * manual/resource.texi: Likewise.
38672         (RUSAGE_CHILDREN): Remove statement about specifying a particular
38673         child on GNU/Hurd.
38674         * manual/setjmp.texi: Likewise.
38675         * manual/signal.texi: Likewise.
38676         * manual/startup.texi: Likewise.
38677         * manual/stdio.texi: Likewise.
38678         * manual/terminal.texi: Likewise.
38679         (ONLCR): Document as POSIX.
38680         (OXTABS): Document availability on GNU/Linux as XTABS.
38681         (ONOEOT): Document availability separately from other bits.
38682         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
38683         * manual/time.texi: Likewise.
38684         * manual/users.texi: Likewise.
38685         * INSTALL: Regenerated.
38686         * sysdeps/gnu/errlist.c: Regenerated.
38687
38688         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
38689         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
38690         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
38691         puts.
38692         * configure: Regenerated.
38693
38694 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
38695
38696         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
38697         default includes instead of AC_HEADER_CHECK.
38698         * sysdeps/i386/configure: Regenerated.
38699
38700         [BZ #10716]
38701         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
38702         * math/s_cacoshf.c (__cacoshf): Likewise.
38703         * math/s_cacoshl.c (__cacoshl): Likewise.
38704         * math/s_casinh.c (__casinh): Set signs of result from argument.
38705         * math/s_casinhf.c (__casinhf): Likewise.
38706         * math/s_casinhl.c (__casinhl): Likewise.
38707         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
38708         (casinh_test): Add more tests.
38709         * sysdeps/i386/fpu/libm-test-ulps: Update.
38710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38711
38712 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
38713
38714         * po/zh_TW.po: Update from translation team.
38715
38716         * login/Makefile (distribute): Remove variable.
38717         * catgets/Makefile: Likewise.
38718         * mach/Makefile: Likewise.
38719         * malloc/Makefile: Likewise.
38720         * misc/Makefile: Likewise.
38721         * iconv/Makefile: Likewise.
38722         * nscd/Makefile: Likewise.
38723         * hurd/Makefile: Likewise.
38724         * manual/Makefile: Likewise.
38725         * locale/Makefile: Likewise.
38726         * intl/Makefile: Likewise.
38727         * conform/Makefile: Likewise.
38728         * nss/Makefile: Likewise.
38729         * time/Makefile: Likewise.
38730         * soft-fp/Makefile: Likewise.
38731         * dirent/Makefile: Likewise.
38732         * gmon/Makefile: Likewise.
38733         * po/Makefile: Likewise.
38734         * rt/Makefile: Likewise.
38735         * socket/Makefile: Likewise.
38736         * math/Makefile: Likewise.
38737         * signal/Makefile: Likewise.
38738         * debug/Makefile: Likewise.
38739         * elf/Makefile: Likewise.
38740         * timezone/Makefile: Likewise.
38741         * stdlib/Makefile: Likewise.
38742         * iconvdata/Makefile: Likewise.
38743         * sunrpc/Makefile: Likewise.
38744         * io/Makefile: Likewise.
38745         * argp/Makefile: Likewise.
38746         * inet/Makefile: Likewise.
38747         * hesiod/Makefile: Likewise.
38748         * grp/Makefile: Likewise.
38749         * csu/Makefile: Likewise.
38750         * wctype/Makefile: Likewise.
38751         * crypt/Makefile: Likewise.
38752         * libio/Makefile: Likewise.
38753         * string/Makefile: Likewise.
38754         * nis/Makefile: Likewise.
38755         * resolv/Makefile: Likewise.
38756         * stdio-common/Makefile: Likewise.
38757         * wcsmbs/Makefile: Likewise.
38758         * dlfcn/Makefile: Likewise.
38759         * posix/Makefile: Likewise.
38760
38761         [BZ #6959]
38762         * timezone/Makefile: Don't install timezone files, just the programs
38763         and scripts.
38764
38765 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
38766
38767         * nss/databases.def: Add missing gshadow entry.
38768
38769         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
38770
38771 2012-03-06  Marek Polacek  <polacek@redhat.com>
38772
38773         [BZ #13726]
38774         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
38775         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
38776         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
38777         * stdio-common/tst-long-dbl-fphex.c: New file.
38778
38779 2012-03-06  David S. Miller  <davem@davemloft.net>
38780
38781         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
38782         (set_obp_int): New function.
38783         (get_obp_int): New function.
38784         (__get_clockfreq_via_dev_openprom): Likewise.
38785         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
38786         Avoid unused variable warnings on 'val' and use builtin_expect.
38787         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
38788         __builtin_expect.
38789         (INLINE_CLONE_SYSCALL): Likewise.
38790
38791 2012-03-05  David S. Miller  <davem@davemloft.net>
38792
38793         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38794
38795 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
38796
38797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38798
38799         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
38800         only for |x| >= 40.
38801         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
38802
38803 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
38804
38805         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
38806         Replace gettimeofday with __vdso_gettimeofday.
38807
38808         * sysdeps/unix/sysv/linux/x86_64/init-first.c
38809         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
38810         __vdso_clock_gettime and __vdso_getcpu.
38811
38812         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
38813         time with __vdso_time.
38814
38815 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38816
38817         * manual/lang.texi (size_t): Note types to which size_t may be
38818         equivalent with the GNU C Library, but do not describe when
38819         differences between them are significant.
38820
38821 2012-03-05  Andreas Jaeger  <aj@suse.de>
38822
38823         * sysdeps/i386/fpu/libm-test-ulps: Update.
38824
38825 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
38826
38827         [BZ #3976]
38828         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
38829         (__ieee754_pow): Save and restore rounding mode and use
38830         round-to-nearest for main computations.
38831         * math/libm-test.inc (pow_test_tonearest): New function.
38832         (pow_test_towardzero): Likewise.
38833         (pow_test_downward): Likewise.
38834         (pow_test_upward): Likewise.
38835         (main): Call the new functions.
38836         * sysdeps/i386/fpu/libm-test-ulps: Update.
38837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38838
38839         [BZ #3976]
38840         * math/libm-test.inc (cosh_test_tonearest): New function.
38841         (cosh_test_towardzero): Likewise.
38842         (cosh_test_downward): Likewise.
38843         (cosh_test_upward): Likewise.
38844         (sinh_test_tonearest): Likewise.
38845         (sinh_test_towardzero): Likewise.
38846         (sinh_test_downward): Likewise.
38847         (sinh_test_upward): Likewise.
38848         (main): Call the new functions.
38849         * sysdeps/i386/fpu/libm-test-ulps: Update.
38850         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38851
38852 2012-03-05  Tom de Vries  <tom@codesourcery.com>
38853
38854         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
38855         default stack guard is set in last bytes.
38856         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
38857
38858 2012-03-05  Kees Cook  <keescook@chromium.org>
38859
38860         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
38861
38862         [BZ #13656]
38863         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
38864         possibly allocate from heap instead of stack.
38865         * stdio-common/bug-vfprintf-nargs.c: New file.
38866         * stdio-common/Makefile (tests): Add nargs overflow test.
38867
38868 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
38869
38870         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38871
38872 2012-03-03  Marek Polacek  <polacek@redhat.com>
38873
38874         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
38875         * math/math_private.h: Likewise.
38876         * stdlib/tst-strtod.c: Likewise.
38877         * sysdeps/i386/i486/bits/atomic.h: Likewise.
38878         * sysdeps/x86_64/bits/atomic.h: Likewise.
38879
38880 2012-03-02  David S. Miller  <davem@davemloft.net>
38881
38882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
38883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
38884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
38885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
38886         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
38887         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
38888         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
38889         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
38890
38891 2012-03-02  Roland McGrath  <roland@hack.frob.com>
38892
38893         [BZ #13792]
38894         * manual/examples/README: New file, says the example source files
38895         can be used under GPL>=2.
38896         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
38897         line containing just "*/".
38898         * manual/examples/add.c: Add copyright header (GPL>=2).
38899         * manual/examples/argp-ex1.c: Likewise.
38900         * manual/examples/argp-ex2.c: Likewise.
38901         * manual/examples/argp-ex3.c: Likewise.
38902         * manual/examples/argp-ex4.c: Likewise.
38903         * manual/examples/atexit.c: Likewise.
38904         * manual/examples/db.c: Likewise.
38905         * manual/examples/dir.c: Likewise.
38906         * manual/examples/dir2.c: Likewise.
38907         * manual/examples/execinfo.c: Likewise.
38908         * manual/examples/filecli.c: Likewise.
38909         * manual/examples/filesrv.c: Likewise.
38910         * manual/examples/fmtmsgexpl.c: Likewise.
38911         * manual/examples/genpass.c: Likewise.
38912         * manual/examples/inetcli.c: Likewise.
38913         * manual/examples/inetsrv.c: Likewise.
38914         * manual/examples/isockad.c: Likewise.
38915         * manual/examples/longopt.c: Likewise.
38916         * manual/examples/memopen.c: Likewise.
38917         * manual/examples/memstrm.c: Likewise.
38918         * manual/examples/mkfsock.c: Likewise.
38919         * manual/examples/mkisock.c: Likewise.
38920         * manual/examples/mygetpass.c: Likewise.
38921         * manual/examples/pipe.c: Likewise.
38922         * manual/examples/popen.c: Likewise.
38923         * manual/examples/rprintf.c: Likewise.
38924         * manual/examples/search.c: Likewise.
38925         * manual/examples/select.c: Likewise.
38926         * manual/examples/setjmp.c: Likewise.
38927         * manual/examples/sigh1.c: Likewise.
38928         * manual/examples/sigusr.c: Likewise.
38929         * manual/examples/stpcpy.c: Likewise.
38930         * manual/examples/strdupa.c: Likewise.
38931         * manual/examples/strftim.c: Likewise.
38932         * manual/examples/strncat.c: Likewise.
38933         * manual/examples/subopt.c: Likewise.
38934         * manual/examples/swapcontext.c: Likewise.
38935         * manual/examples/termios.c: Likewise.
38936         * manual/examples/testopt.c: Likewise.
38937         * manual/examples/testpass.c: Likewise.
38938         * manual/examples/timeval_subtract.c: Likewise.
38939
38940         [BZ #13792]
38941         * manual/time.texi (Elapsed Time): Move timeval_subtract example
38942         function to ...
38943         * manual/timeval_subtract.c.texi: ... here, new file.
38944
38945 2012-03-02  David S. Miller  <davem@davemloft.net>
38946
38947         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
38948
38949 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
38950
38951         [BZ #3976]
38952         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
38953         (__sin): Save and restore rounding mode and use round-to-nearest
38954         for all computations.
38955         (__cos): Save and restore rounding mode and use round-to-nearest
38956         for all computations.
38957         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
38958         <fenv.h>.
38959         (tan): Save and restore rounding mode and use round-to-nearest for
38960         all computations.
38961         * math/libm-test.inc (cos_test_tonearest): New function.
38962         (cos_test_towardzero): Likewise.
38963         (cos_test_downward): Likewise.
38964         (cos_test_upward): Likewise.
38965         (sin_test_tonearest): Likewise.
38966         (sin_test_towardzero): Likewise.
38967         (sin_test_downward): Likewise.
38968         (sin_test_upward): Likewise.
38969         (tan_test_tonearest): Likewise.
38970         (tan_test_towardzero): Likewise.
38971         (tan_test_downward): Likewise.
38972         (tan_test_upward): Likewise.
38973         (main): Call the new functions.
38974         * sysdeps/i386/fpu/libm-test-ulps: Update.
38975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38976
38977         [BZ #10135]
38978         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
38979         small n, then large n, before computing and testing k+n.
38980         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38981         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
38982         Likewise.
38983         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
38984         Likewise.
38985         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
38986         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
38987         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
38988         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
38989         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
38990         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
38991         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
38992         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
38993         * math/libm-test.inc (scalbn_test): Add more tests.
38994         (scalbln_test): Likewise.
38995
38996         * manual/filesys.texi (mode_t): Describe constraints on size and
38997         signedness, not exact equivalence to a particular type.
38998         (ino_t): Likewise.
38999         (ino64_t): Likewise.
39000         (dev_t): Likewise.
39001         (nlink_t): Likewise.
39002         (blkcnt_t): Likewise.
39003         (blkcnt64_t): Likewise.
39004         * manual/llio.texi (off_t): Likewise.
39005
39006         [BZ #3976]
39007         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
39008         (__ieee754_exp): Save and restore rounding mode and use
39009         round-to-nearest for all computations.
39010         * math/libm-test.inc (exp_test_tonearest): New function.
39011         (exp_test_towardzero): Likewise.
39012         (exp_test_downward): Likewise.
39013         (exp_test_upward): Likewise.
39014         (main): Call the new functions.
39015         * sysdeps/i386/fpu/libm-test-ulps: Update.
39016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39017
39018 2012-03-01  Chris Demetriou  <cgd@google.com>
39019
39020         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
39021         have predictable order.
39022
39023 2012-03-01  David S. Miller  <davem@davemloft.net>
39024
39025         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
39026
39027         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
39028         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
39029         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
39030         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
39031
39032         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
39033         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
39034         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
39035         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
39036         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
39037         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
39038         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
39039         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
39040         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
39041
39042         * sysdeps/sparc/fpu/libm-test-ulps: Update.
39043
39044         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
39045         * sysdeps/sparc/fpu/libm-test-ulps: to here.
39046         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
39047
39048         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
39049         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
39050         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
39051         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
39052         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
39053         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
39054         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
39055         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
39056         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
39057         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
39058         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
39059         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39060         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
39061         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
39062         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
39063         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39064         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
39065         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
39066         * sysdeps/sparc/elf/configure: Regenerated.
39067
39068 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
39069
39070         * configure.in (AS, LD): Require binutils 2.20 or later.
39071         * configure: Regenerated.
39072         * manual/install.texi (Tools for Compilation): Give binutils 2.20
39073         as required minimum version.
39074         * INSTALL: Regenerated.
39075
39076         [BZ #2541]
39077         [BZ #4108]
39078         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
39079         before squaring exponent.
39080         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
39081         bottom long double and 27 bits of top long double before squaring
39082         exponent.
39083         * math/libm-test.inc (erfc_test): Add more tests.
39084         * sysdeps/i386/fpu/libm-test-ulps: Update.
39085         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39086         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39087
39088 2012-03-01  Kai Tietz  <ktietz@redhat.com>
39089
39090         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
39091         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
39092         containing bit-fields.
39093         * soft-fp/extended.h (_FP_UNION_E): Likewise.
39094         * soft-fp/single.h (_FP_UNION_S): Likewise.
39095         * soft-fp/double.h (_FP_UNION_D): Likewise.
39096
39097 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
39098
39099         [BZ #13786]
39100         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
39101         not include ../strcmp.S.
39102         [USE_AS_STRNCASECMP_L]: Likewise.
39103         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
39104         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
39105         * sysdeps/i386/i686/multiarch/strncase_l-c.c
39106         (__strncasecmp_l_ia32): Define as alias to
39107         __strncasecmp_l_nonascii.
39108
39109         [BZ #5794]
39110         * math/libm-test.inc (expm1_test): Add test for bug 5794.
39111         * sysdeps/i386/fpu/libm-test-ulps: Update.
39112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39113
39114         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
39115         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39116
39117 2012-02-29  Jeff Law  <law@redhat.com>
39118
39119         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
39120         out of bounds read.
39121
39122 2012-02-29  Marek Polacek  <polacek@redhat.com>
39123
39124         [BZ #13706]
39125         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
39126         * elf/Makefile: Add rules to run tst-unused-dep.out.
39127
39128 2012-02-28  David S. Miller  <davem@davemloft.net>
39129
39130         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
39131         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
39132         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
39133         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
39134         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
39135         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
39136
39137 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
39138
39139         * math/libm-test.inc (llround_test): Move one test from
39140         lround_test.  Use TEST_f_L in moved test.
39141         (lround_test): Move misplaced test to llround_test.  Add testcase
39142         from bug 2561.
39143
39144 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
39145
39146         * sysdeps/x86_64/fpu/e_expf.S: New file.
39147         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
39148
39149 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
39150
39151         [BZ #13637]
39152         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
39153         of remain_len that may cause incomplete multi-byte character and
39154         false match.
39155         * posix/bug-regex33.c: New file.
39156         * posix/Makefile (tests): Add bug-regex33.
39157
39158 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
39159
39160         * manual/macros.texi: New file.
39161         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
39162         * manual/libc.texinfo: Include macros.texi.
39163         * manual/creatute.texi: Likewise.
39164         * manual/install.texi: Likewise.
39165         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
39166         @glibcadj{} in references to the GNU C Library.
39167         * manual/charset.texi: Likewise.
39168         * manual/conf.texi: Likewise.
39169         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
39170         when not using those macros.
39171         * manual/creature.texi: Likewise.
39172         * manual/crypt.texi: Likewise.
39173         * manual/errno.texi: Likewise.
39174         * manual/filesys.texi: Likewise.
39175         * manual/header.texi: Likewise.
39176         * manual/install.texi: Likewise.
39177         * manual/intro.texi: Likewise.
39178         * manual/io.texi: Likewise.
39179         * manual/job.texi: Likewise.
39180         * manual/lang.texi: Likewise.
39181         * manual/libc.texiinfo: Likewise.
39182         * manual/llio.texi: Likewise.
39183         * manual/locale.texi: Likewise.
39184         * manual/maint.texi: Likewise.
39185         * manual/math.texi: Likewise.
39186         * manual/memory.texi: Likewise.
39187         * manual/message.texi: Likewise.
39188         * manual/nss.texi: Likewise.
39189         * manual/pattern.texi: Likewise.
39190         * manual/process.texi: Likewise.
39191         * manual/resource.texi: Likewise.
39192         * manual/search.texi: Likewise.
39193         * manual/setjmp.texi: Likewise.
39194         * manual/signal.texi: Likewise.
39195         * manual/socket.texi: Likewise.
39196         * manual/startup.texi: Likewise.
39197         * manual/stdio.texi: Likewise.
39198         * manual/string.texi: Likewise.
39199         * manual/sysinfo.texi: Likewise.
39200         * manual/syslog.texi: Likewise.
39201         * manual/terminal.texi: Likewise.
39202         * manual/time.texi: Likewise.
39203         * manual/users.texi: Likewise.
39204         * INSTALL: Regenerated.
39205         * NOTES: Regenerated.
39206         * sysdeps/gnu/errlist.c: Regenerated.
39207
39208 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
39209
39210         * include/dirent.h: Include <dirstream.h> before
39211         <dirent/dirent.h>.
39212
39213 2012-02-28  David S. Miller  <davem@davemloft.net>
39214
39215         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
39216         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
39217         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
39218         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
39219
39220 2012-02-27  David S. Miller  <davem@davemloft.net>
39221
39222         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
39223         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
39224         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
39225         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
39226
39227         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
39228         frame pointer instead of stack pointer relative arg slot.
39229         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
39230         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
39231         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
39232
39233 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
39234
39235         [BZ #3992]
39236         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
39237
39238 2012-02-27  David S. Miller  <davem@davemloft.net>
39239
39240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
39241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
39242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
39243         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
39244         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
39245         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
39246         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
39247         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
39248
39249 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
39250
39251         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
39252         later.  Allow versions 5-9.
39253         * configure: Regenerated.
39254         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
39255         required minimum version and 4.6 as recommended version.  Do not
39256         mention bugs in GCC 2.7 and 2.8.
39257         * INSTALL: Regenerated.
39258
39259 2012-02-27  David S. Miller  <davem@davemloft.net>
39260
39261         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
39262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
39263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
39264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
39265         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
39266         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
39267         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
39268         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
39269
39270         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
39271         manipulate bits before adding and subtracting TWO112[sx].
39272         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
39273
39274 2012-02-27  Roland McGrath  <roland@hack.frob.com>
39275
39276         [BZ #13775]
39277         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
39278         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
39279         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
39280         being in POSIX, because they are in 1003.1-2008.
39281
39282         * rt/tst-aio.c: Include <fcntl.h>.
39283         * rt/tst-aio7.c: Likewise.
39284         * rt/tst-aio64.c: Likewise.
39285
39286         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
39287
39288 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
39289
39290         * manual/install.texi (--with-headers): Describe headers as
39291         interface headers, not private headers.
39292         (Specific advice for GNU/Linux systems): Describe use of headers
39293         from "make headers_install", not private headers from older
39294         kernels.
39295         * INSTALL: Regenerated.
39296         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
39297         Change to 2.6.19.
39298         * sysdeps/unix/sysv/linux/configure: Regenerated.
39299
39300         * manual/llio.texi (fclean): Remove documentation.
39301
39302         * manual/Makefile (libc-texi-generated): New variable.  Include
39303         version.texi.
39304         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
39305         $(libc-texi-generated), not duplicated list of files.
39306         (version.texi, stamp-version): New rules.
39307         (realclean): Remove $(libc-texi-generated), not individual files
39308         from that list.  Do not remove dir-add.texinfo.
39309         * manual/libc.texinfo: Comment out uses of edition numbers and
39310         references to printed manual.  Remove last-updated dates.
39311         (EDITION): Comment out.
39312         (ISBN): Likewise.
39313         (VERSION, UPDATED): Remove.
39314         (version.texi): Include.
39315
39316 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
39317
39318         * sysdeps/posix/spawni.c: Include <signal.h>.
39319         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
39320         * sysdeps/pthread/aio_fsync.c: Likewise.
39321
39322 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
39323
39324         * conform/Makefile (tests): Run only when not cross-compiling and
39325         when fast-check is not defined.
39326
39327         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
39328         * conform/data/limits.h-data: Fixes for POSIX2008.
39329         * conform/run-conformtest.sh: Run all tests.
39330         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
39331         headers.
39332         * include/bits/dlfcn.h: Likewise.
39333         * include/langinfo.h: Likewise.
39334         * include/monetary.h: Likewise.
39335         * include/sys/poll.h: Likewise.
39336
39337         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
39338         for __USE_GNU.
39339         * posix/spawn.h: Define __need_sigset_t.
39340         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
39341         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
39342         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
39343         to get sigevent_t only.
39344         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
39345         only for __USE_GNU.
39346         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
39347         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
39348         process_vm_writev only for __USE_GNU.
39349         * termios/termios.h: Declare tcgetsid also for POSIX2008.
39350
39351         * conform/Makefile: For now ignore errors from run-conformtest.
39352         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
39353         POSIX to avoid namespace pollution.  Don't prepend headers.
39354         * conform/data/aio.h-data: Fixes for POSIX testing.
39355         * conform/data/fcntl.h-data: Likewise.
39356         * conform/data/glob.h-data: Likewise.
39357         * conform/data/grp.h-data: Likewise.
39358         * conform/data/pthread.h-data: Likewise.
39359         * conform/data/pwd.h-data: Likewise.
39360         * conform/data/signal.h-data: Likewise.
39361         * conform/data/spawn.h-data: Likewise.
39362         * conform/data/stdio.h-data: Likewise.
39363         * conform/data/stdlib.h-data: Likewise.
39364         * conform/data/stropts.h-data: Likewise.
39365         * conform/data/sys/mman.h-data: Likewise.
39366         * conform/data/sys/stat.h-data: Likewise.
39367         * conform/data/sys/types.h-data: Likewise.
39368         * conform/data/sys/wait.h-data: Likewise.
39369         * conform/data/time.h-data: Likewise.
39370         * conform/data/unistd.h-data: Likewise.
39371         * conform/data/utime.h-data: Likewise.
39372
39373         * io/sys/stat.h: fchmod was always in POSIX.
39374         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
39375         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
39376         * rt/aio.h: Define __need_timespec before including <time.h>.
39377         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
39378         struct.  Add forward declaration of pthread_attr_t and use it in
39379         sigevent.
39380         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
39381         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
39382         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
39383         always remove CLK_TCK definition.
39384
39385 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
39386
39387         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
39388
39389 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
39390
39391         * conform/run-conformtest.sh: New file.
39392         * conform/Makefile: Run run-conformtest for tests.
39393         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
39394         support.
39395
39396         * conform/data/uchar.h-data: New file.
39397         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
39398         * conform/data/arpa/inet.h-data: Likewise.
39399         * conform/data/assert.h-data: Likewise.
39400         * conform/data/complex.h-data: Likewise.
39401         * conform/data/cpio.h-data: Likewise.
39402         * conform/data/ctype.h-data: Likewise.
39403         * conform/data/dirent.h-data: Likewise.
39404         * conform/data/dlfcn.h-data: Likewise.
39405         * conform/data/errno.h-data: Likewise.
39406         * conform/data/fcntl.h-data: Likewise.
39407         * conform/data/float.h-data: Likewise.
39408         * conform/data/fmtmsg.h-data: Likewise.
39409         * conform/data/fnmatch.h-data: Likewise.
39410         * conform/data/ftw.h-data: Likewise.
39411         * conform/data/glob.h-data: Likewise.
39412         * conform/data/grp.h-data: Likewise.
39413         * conform/data/iconv.h-data: Likewise.
39414         * conform/data/inttypes.h-data: Likewise.
39415         * conform/data/langinfo.h-data: Likewise.
39416         * conform/data/libgen.h-data: Likewise.
39417         * conform/data/limits.h-data: Likewise.
39418         * conform/data/locale.h-data: Likewise.
39419         * conform/data/math.h-data: Likewise.
39420         * conform/data/monetary.h-data: Likewise.
39421         * conform/data/mqueue.h-data: Likewise.
39422         * conform/data/ndbm.h-data: Likewise.
39423         * conform/data/net/if.h-data: Likewise.
39424         * conform/data/netdb.h-data: Likewise.
39425         * conform/data/netinet/in.h-data: Likewise.
39426         * conform/data/nl_types.h-data: Likewise.
39427         * conform/data/poll.h-data: Likewise.
39428         * conform/data/pthread.h-data: Likewise.
39429         * conform/data/pwd.h-data: Likewise.
39430         * conform/data/regex.h-data: Likewise.
39431         * conform/data/sched.h-data: Likewise.
39432         * conform/data/search.h-data: Likewise.
39433         * conform/data/semaphore.h-data: Likewise.
39434         * conform/data/setjmp.h-data: Likewise.
39435         * conform/data/signal.h-data: Likewise.
39436         * conform/data/spawn.h-data: Likewise.
39437         * conform/data/stdarg.h-data: Likewise.
39438         * conform/data/stdio.h-data: Likewise.
39439         * conform/data/stdlib.h-data: Likewise.
39440         * conform/data/string.h-data: Likewise.
39441         * conform/data/strings.h-data: Likewise.
39442         * conform/data/stropts.h-data: Likewise.
39443         * conform/data/sys/ipc.h-data: Likewise.
39444         * conform/data/sys/mman.h-data: Likewise.
39445         * conform/data/sys/msg.h-data: Likewise.
39446         * conform/data/sys/resource.h-data: Likewise.
39447         * conform/data/sys/select.h-data: Likewise.
39448         * conform/data/sys/sem.h-data: Likewise.
39449         * conform/data/sys/shm.h-data: Likewise.
39450         * conform/data/sys/socket.h-data: Likewise.
39451         * conform/data/sys/stat.h-data: Likewise.
39452         * conform/data/sys/statvfs.h-data: Likewise.
39453         * conform/data/sys/time.h-data: Likewise.
39454         * conform/data/sys/timeb.h-data: Likewise.
39455         * conform/data/sys/times.h-data: Likewise.
39456         * conform/data/sys/types.h-data: Likewise.
39457         * conform/data/sys/uio.h-data: Likewise.
39458         * conform/data/sys/un.h-data: Likewise.
39459         * conform/data/sys/utsname.h-data: Likewise.
39460         * conform/data/sys/wait.h-data: Likewise.
39461         * conform/data/syslog.h-data: Likewise.
39462         * conform/data/tar.h-data: Likewise.
39463         * conform/data/termios.h-data: Likewise.
39464         * conform/data/utime.h-data: Likewise.
39465         * conform/data/utmpx.h-data: Likewise.
39466         * conform/data/varargs.h-data: Likewise.
39467         * conform/data/wchar.h-data: Likewise.
39468         * conform/data/wctype.h-data: Likewise.
39469         * conform/data/wordexp.h-data: Likewise.
39470
39471         * include/stropts.h: New file.
39472         * include/uchar.h: New file.
39473         * include/aio.h: Changes to allow conformtest.pl to use the headers.
39474         * include/assert.h: Likewise.
39475         * include/ctype.h: Likewise.
39476         * include/dirent.h: Likewise.
39477         * include/dlfcn.h: Likewise.
39478         * include/fcntl.h: Likewise.
39479         * include/fnmatch.h: Likewise.
39480         * include/glob.h: Likewise.
39481         * include/grp.h: Likewise.
39482         * include/libio.h: Likewise.
39483         * include/locale.h: Likewise.
39484         * include/math.h: Likewise.
39485         * include/net/if.h: Likewise.
39486         * include/netdb.h: Likewise.
39487         * include/netinet/in.h: Likewise.
39488         * include/pthread.h: Likewise.
39489         * include/pwd.h: Likewise.
39490         * include/regex.h: Likewise.
39491         * include/sched.h: Likewise.
39492         * include/search.h: Likewise.
39493         * include/setjmp.h: Likewise.
39494         * include/signal.h: Likewise.
39495         * include/stdio.h: Likewise.
39496         * include/stdlib.h: Likewise.
39497         * include/string.h: Likewise.
39498         * include/sys/cdefs.h: Likewise.
39499         * include/sys/mman.h: Likewise.
39500         * include/sys/msg.h: Likewise.
39501         * include/sys/resource.h: Likewise.
39502         * include/sys/select.h: Likewise.
39503         * include/sys/socket.h: Likewise.
39504         * include/sys/stat.h: Likewise.
39505         * include/sys/statvfs.h: Likewise.
39506         * include/sys/time.h: Likewise.
39507         * include/sys/times.h: Likewise.
39508         * include/sys/uio.h: Likewise.
39509         * include/sys/utsname.h: Likewise.
39510         * include/sys/wait.h: Likewise.
39511         * include/termios.h: Likewise.
39512         * include/time.h: Likewise.
39513         * include/ulimit.h: Likewise.
39514         * include/unistd.h: Likewise.
39515         * include/utime.h: Likewise.
39516         * include/wchar.h: Likewise.
39517         * include/wctype.h: Likewise.
39518         * include/wordexp.h: Likewise.
39519
39520         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
39521
39522         * time/time.h: TIME_UTC must be a macro.
39523         Make timespec_get available for ISO C11 only as well.
39524
39525 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
39526
39527         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
39528         Reported by Peng Haitao <penght@cn.fujitsu.com>.
39529
39530 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
39531
39532         * configure.in: Use -o not -a in test for unsupported multi-arch.
39533
39534 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
39535
39536         * manual/texinfo.tex: Update to version 2012-01-19.16.
39537
39538 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
39539
39540         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
39541
39542 2012-02-24  Roland McGrath  <roland@hack.frob.com>
39543
39544         [BZ #13738]
39545         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
39546         * manual/fdl-1.3.texi: New file.
39547         * manual/fdl-1.1.texi: File removed.
39548
39549         [BZ #13738]
39550         * manual/libc.texinfo (FDL_VERSION): New @set.
39551         Use it for mention of FDL in cover text.
39552         (Documentation License): Use it in @include file name.
39553
39554 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39555             Roland McGrath  <roland@hack.frob.com>
39556
39557         [BZ #5461]
39558         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
39559         (not LONG_LONG_MAX and LONG_LONG_MIN.
39560         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
39561         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
39562         name.
39563         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
39564
39565 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39566
39567         [BZ #2547]
39568         [BZ #11365]
39569         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
39570         manipulate bits before adding and subtracting TWO23[sx].
39571         * math/libm-test.inc (nearbyint_test): Add more tests.
39572
39573 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39574
39575         [BZ #2548]
39576         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
39577         bits before adding and subtracting TWO23[sx].
39578         * math/libm-test.inc (rint_test): Add more tests.
39579         (rint_test_tonearest): Likewise.
39580         (rint_test_towardzero): Likewise.
39581         (rint_test_downward): Likewise.
39582         (rint_test_upward: Likewise.
39583
39584 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39585
39586         [BZ #10110]
39587         * include/stdc-predef.h: New file.  Extracted from features.h.
39588         * include/features.h: Include stdc-predef.h.
39589         * Makefile (headers): Add stdc-predef.h.
39590         * CONFORMANCE (Compiler limitations): Update.
39591
39592 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
39593
39594         * manual/libc.texinfo (VERSION, UPDATED): Revert.
39595
39596 2012-02-21  David S. Miller  <davem@davemloft.net>
39597
39598         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
39599         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39600
39601 2012-02-20  David S. Miller  <davem@davemloft.net>
39602
39603         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
39604         using a normal save/restore sequence, rather than allocating a
39605         dummy stack frame just to store a frame pointer and restore.
39606         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39607
39608 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39609
39610         * manual/install.texi: Fix stray word in line-wrapped comment.
39611
39612 2012-02-20  David S. Miller  <davem@davemloft.net>
39613
39614         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
39615         both binutils and gcc support GOTDATA.
39616
39617         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
39618         "rd %pc" in the PIC register setup sequences.
39619
39620         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
39621         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
39622         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
39623         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
39624         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
39625         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
39626         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
39627         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39628         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
39629         (SYSCALL_ERROR_HANDLER): Likewise.
39630         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
39631         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
39632         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
39633         (SYSCALL_ERROR_HANDLER): Likewise.
39634
39635         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
39636         (HAVE_GCC_GOTDATA): New.
39637         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
39638         relocation support in both binutils and gcc.
39639         * sysdeps/sparc/elf/configure: Regenerate.
39640
39641         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
39642         * sysdeps/sparc/sparc32/elf/configure: Delete.
39643         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
39644         * sysdeps/sparc/sparc64/elf/configure: Delete.
39645         * sysdeps/sparc/elf/configure.in: New file.
39646         * sysdeps/sparc/elf/configure: Generate.
39647
39648         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
39649         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
39650         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
39651         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
39652         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
39653
39654 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39655
39656         * manual/install.texi: Do not mention specific glibc version
39657         numbers.
39658         * manual/libc.texinfo (VERSION, UPDATED): Update.
39659         (@copying): Use @copyright{} and range of years.
39660
39661 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
39662
39663         [BZ #13695]
39664         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
39665         [crti.S not in sysdirs] (generated): Do not append.
39666         [crti.S not in sysdirs] (omit-deps): Likewise.
39667         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
39668         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
39669         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
39670         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
39671         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
39672         Likewise.
39673         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
39674         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
39675         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
39676         * csu/defs.awk: Remove file.
39677         * sysdeps/generic/initfini.c: Likewise.
39678         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
39679         variable.
39680         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
39681         Likewise.
39682
39683 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39684
39685         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
39686         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
39687         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
39688         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
39689         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39690         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
39691         <bits/epoll.h>.
39692         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
39693         (__EPOLL_PACKED): Define to empty if not defined by
39694         <bits/epoll.h>.
39695         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
39696         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39697         bits/epoll.h.
39698
39699 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39700
39701         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
39702         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
39703         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
39704         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
39705         <bits/timerfd.h>.
39706         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
39707         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39708         bits/timerfd.h.
39709
39710 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
39711
39712         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
39713         in C locale.
39714         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39715         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
39716         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
39717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39718
39719 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
39720
39721         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
39722         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
39723
39724 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
39725
39726         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
39727         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
39728         defined.
39729         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
39730         Likewise.
39731         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
39732         entry for 2.16.
39733
39734 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
39735
39736         * math/w_acos.c: Use non-signaling floating-point comparisons.
39737         * math/w_acosf.c: Likewise.
39738         * math/w_acosh.c: Likewise.
39739         * math/w_acoshf.c: Likewise.
39740         * math/w_acoshl.c: Likewise.
39741         * math/w_acosl.c: Likewise.
39742         * math/w_asin.c: Likewise.
39743         * math/w_asinf.c: Likewise.
39744         * math/w_asinl.c: Likewise.
39745         * math/w_atanh.c: Likewise.
39746         * math/w_atanhf.c: Likewise.
39747         * math/w_atanhl.c: Likewise.
39748         * math/w_exp2.c: Likewise.
39749         * math/w_exp2f.c: Likewise.
39750         * math/w_exp2l.c: Likewise.
39751         * math/w_j0.c: Likewise.
39752         * math/w_j0f.c: Likewise.
39753         * math/w_j0l.c: Likewise.
39754         * math/w_j1.c: Likewise.
39755         * math/w_j1f.c: Likewise.
39756         * math/w_j1l.c: Likewise.
39757         * math/w_jn.c: Likewise.
39758         * math/w_jnf.c: Likewise.
39759         * math/w_log.c: Likewise.
39760         * math/w_log10.c: Likewise.
39761         * math/w_log10f.c: Likewise.
39762         * math/w_log10l.c: Likewise.
39763         * math/w_log2.c: Likewise.
39764         * math/w_log2f.c: Likewise.
39765         * math/w_log2l.c: Likewise.
39766         * math/w_logf.c: Likewise.
39767         * math/w_logl.c: Likewise.
39768         * math/w_sqrt.c: Likewise.
39769         * math/w_sqrtf.c: Likewise.
39770         * math/w_sqrtl.c: Likewise.
39771         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
39772         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
39773         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39774         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
39775         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
39776
39777 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39778
39779         [BZ #9739]
39780         * manual/string.texi (strnlen): Use correct parameter name in
39781         equivalent expression.
39782
39783 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39784
39785         [BZ #11174]
39786         * manual/users.texi (seteuid): Consistently use neweuid for
39787         argument name.
39788
39789 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
39790
39791         [BZ #13704]
39792         * manual/nss.texi (Services in the NSS configuration): Correct
39793         list of services in example configuration file.
39794
39795 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
39796
39797         [BZ #11322]
39798         * manual/arith.texi: Remove statements about negative zero
39799         behaving identically to zero.
39800
39801 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39802
39803         [BZ #5993]
39804         * manual/install.texi: Do not document upgrading from libc5.
39805
39806 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
39807
39808         [BZ #4596]
39809         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
39810
39811 2012-02-18  David S. Miller  <davem@davemloft.net>
39812
39813         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
39814         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
39815         %o7 across the call.
39816         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
39817         instead.
39818         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
39819         SETUP_PIC_REG_LEAF.
39820         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39821         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
39822         * sysdeps/sparc/crtn.S: Likewise.
39823
39824 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
39825
39826         * aout/Makefile: Remove.
39827
39828 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
39829
39830         [BZ #13058]
39831         * manual/examples/argp-ex1.c (main): Format definition in GNU
39832         style.
39833         * manual/examples/argp-ex2.c (main): Likewise.
39834         * manual/examples/argp-ex3.c (main): Likewise.
39835         * manual/examples/argp-ex4.c (main): Likewise.
39836         * manual/examples/longopt.c (main): Use new-style prototype
39837         definition.
39838         * manual/examples/strncat.c (main): Specify return type and use
39839         (void) for arguments.
39840         * manual/examples/subopt.c (main): Use char **argv argument.
39841
39842 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39843
39844         [BZ #5077]
39845         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
39846         rounding modes.
39847
39848 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
39849
39850         [BZ #6907]
39851         * manual/string.texi (strchr): Change when strchrnul is
39852         recommended.
39853
39854 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
39855
39856         [BZ #174]
39857         * manual/locale.texi (setlocale): Document LOCPATH.
39858
39859 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39860
39861         [BZ #10210]
39862         * manual/process.texi (execle): Move @dots{} before last argument.
39863
39864 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
39865
39866         [BZ #12047]
39867         * manual/charset.texi (Generic Charset Conversion): Fix typo
39868         (LC_TYPE -> LC_CTYPE).
39869
39870 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
39871
39872         [BZ #5805]
39873         * manual/arith.texi (scalbn): Use @var{} on parameter names.
39874         (scalbnf): Likewise.
39875         (scalbnl): Likewise.
39876         (scalbln): Likewise.
39877         (scalblnf): Likewise.
39878         (scalblnl): Likewise.
39879         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
39880         (vwarnx): Likewise.
39881         (verr): Likewise.
39882         (verrx): Likewise.
39883         * manual/filesys.texi (telldir): Use braces around return type.
39884         * manual/llio.texi (mmap): Add space after comma.
39885         (mmap64): Likewise.
39886         * manual/math.texi (jn): Use @var{} on parameter names.
39887         (jnf): Likewise.
39888         (jnl): Likewise.
39889         (yn): Likewise.
39890         (ynf): Likewise.
39891         (ynl): Likewise.
39892         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
39893         line.
39894         * manual/resource.texi (ulimit): Use @dots{} instead of literal
39895         "...".
39896         (sched_get_priority_min): Remove semicolon on @deftypefun line.
39897         (sched_get_priority_max): Likewise.
39898         * manual/signal.texi (sigvec): Add space after comma.
39899         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
39900         names.
39901         (if_indextoname): Likewise.
39902         (if_freenameindex): Likewise.
39903         (sendto): Use ',' instead of '.' in prototype.
39904         * manual/startup.texi (syscall): Use @dots{} instead of literal
39905         "...".
39906         * manual/stdio.texi (__fpending): Separate initial words of
39907         paragraph from @deftypefun line.
39908         * manual/syslog.texi (syslog): Use @dots{} instead of literal
39909         "...".
39910         (vsyslog): Use @var{} on parameter names.
39911         * manual/terminal.texi (stty): Use @var{} on parameter names.
39912         * manual/users.texi (getutmp): Use @var{} on parameter names.
39913         (getutmpx): Likewise.
39914
39915 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39916
39917         [BZ #6884]
39918         * manual/stdio.texi (fopen): Fix typos in description of
39919         ",ccs=STRING".
39920
39921 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
39922
39923         [BZ #4026]
39924         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
39925         get clock_id definition.
39926
39927 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
39928
39929         [BZ #4822]
39930         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
39931         (madvise): Cast every argument to void on its own.
39932
39933 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39934
39935         [BZ #9902]
39936         * manual/startup.texi (Exit Status): Fix typo.
39937
39938 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
39939
39940         [BZ #10140]
39941         * manual/examples/argp-ex1.c: Include <stdlib.h>.
39942         * manual/examples/argp-ex2.c: Likewise.
39943         * manual/examples/argp-ex3.c: Likewise.
39944
39945 2012-02-16  Richard Henderson  <rth@redhat.com>
39946
39947         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
39948         * sysdeps/s390/s390-32/initfini.c: Remove.
39949         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
39950         * sysdeps/s390/s390-64/initfini.c: Remove.
39951
39952 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39953
39954         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
39955         compiler output for sysdeps/generic/initfini.c.
39956         * sysdeps/sh/elf/initfini.c: Remove file.
39957
39958 2012-02-16  David S. Miller  <davem@davemloft.net>
39959
39960         [BZ #11494]
39961         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
39962
39963         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
39964         * sysdeps/sparc/crti.S: New file.
39965         * sysdeps/sparc/crtn.S: New file.
39966         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
39967         * sysdeps/sparc/sparc64/Makefile: Likewise.
39968
39969 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
39970
39971         [BZ #3335]
39972         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
39973
39974 2012-02-15  Roland McGrath  <roland@hack.frob.com>
39975
39976         [BZ #4822]
39977         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
39978
39979         * mach/devstream.c (cookie_io_functions_t): Macro removed.
39980         (write, read, close): Likewise.
39981         Patch by Aurelien Jarno <aurelien@aurel32.net>.
39982
39983 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
39984
39985         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
39986         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
39987         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
39988         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
39989         <bits/signalfd.h>.
39990         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
39991         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39992         bits/signalfd.h.
39993
39994 2012-02-14  Marek Polacek  <polacek@redhat.com>
39995
39996         * sysdeps/x86_64/crti.S: New file.
39997         * sysdeps/x86_64/crtn.S: New file.
39998         * sysdeps/x86_64/elf/initfini.c: Remove file.
39999
40000 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
40001
40002         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
40003         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
40004         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
40005         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
40006         <bits/inotify.h>.
40007         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
40008         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
40009         bits/inotify.h.
40010
40011 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
40012
40013         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
40014         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
40015         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
40016         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
40017         <bits/eventfd.h>.
40018         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
40019         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
40020         bits/eventfd.h.
40021
40022 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
40023
40024         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
40025         __feraiseexcept instead of feraiseexcept.
40026
40027         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
40028         nanosleep invocations.
40029         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
40030         strings, and add error checking for a nanosleep invocations.
40031
40032 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40033
40034         Replace FSF snail mail address with URLs, as per GNU coding standards.
40035         Most of the snail mail addresses were wrong anyway, and omitting
40036         them makes the source code easier to maintain.  Almost all of the
40037         changes are to license notices and to locale LC_IDENTIFICATION
40038         addresses, except for this one:
40039         * manual/libc.texinfo: In "Published by", give the FSF's URL,
40040         not its snail mail address.
40041
40042 2012-02-09  Richard Henderson  <rth@twiddle.net>
40043
40044         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
40045         of kernel-features.h.
40046
40047         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
40048
40049 2012-02-08  Marek Polacek  <polacek@redhat.com>
40050
40051         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
40052         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
40053         * sysdeps/gnu/_G_config.h: Likewise.
40054         * sysdeps/generic/_G_config.h: Likewise.
40055
40056 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
40057
40058         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
40059         tests.
40060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40061
40062         * sysdeps/powerpc/powerpc32/crti.S: New file.
40063         * sysdeps/powerpc/powerpc32/crtn.S: New file.
40064         * sysdeps/powerpc/powerpc64/crti.S: New file.
40065         * sysdeps/powerpc/powerpc64/crtn.S: New file.
40066
40067         * Makeconfig (have-initfini): Don't set.
40068         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
40069         * configure.in (nopic_initfini): Don't substitute.
40070         * config.h.in (HAVE_INITFINI): Don't #undef.
40071         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
40072         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
40073
40074 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
40075
40076         Support crti.S and crtn.S provided directly by architectures.
40077         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
40078         [crti.S in sysdirs] (omit-deps): Likewise.
40079         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
40080         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
40081         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
40082         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
40083         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
40084         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
40085         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
40086         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
40087         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
40088         compiler output for sysdeps/generic/initfini.c.
40089         * sysdeps/i386/elf/Makefile: Remove file.
40090         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
40091
40092 2012-02-07  Marek Polacek  <polacek@redhat.com>
40093
40094         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
40095         * sysdeps/gnu/_G_config.h: Likewise.
40096         * sysdeps/mach/hurd/_G_config.h: Likewise.
40097
40098 2012-02-07  Marek Polacek  <polacek@redhat.com>
40099
40100         * math/Makefile (tests): Add tst-CMPLX2.
40101         * math/tst-CMPLX2.c: New file.
40102
40103 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
40104
40105         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40106
40107         * math/libm-test.inc (jn_test): Add missing L suffix.
40108
40109 2012-02-06  Marek Polacek  <polacek@redhat.com>
40110
40111         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
40112         * sysdeps/i386/fpu/e_powf.S: Likewise.
40113         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
40114         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
40115         * sysdeps/i386/fpu/e_acosh.S: Likewise.
40116         * sysdeps/i386/fpu/e_pow.S: Likewise.
40117         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
40118         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
40119         * sysdeps/i386/fpu/s_expm1.S: Likewise.
40120         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
40121         * sysdeps/i386/fpu/e_log2.S: Likewise.
40122         * sysdeps/i386/fpu/e_log2l.S: Likewise.
40123         * sysdeps/i386/fpu/e_scalb.S: Likewise.
40124         * sysdeps/i386/fpu/e_powl.S: Likewise.
40125         * sysdeps/i386/fpu/s_log1p.S: Likewise.
40126         * sysdeps/i386/fpu/e_log10f.S: Likewise.
40127         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
40128         * sysdeps/i386/fpu/e_logl.S: Likewise.
40129         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
40130         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
40131         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
40132         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
40133         * sysdeps/i386/fpu/e_log2f.S: Likewise.
40134         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
40135         * sysdeps/i386/fpu/e_log.S: Likewise.
40136         * sysdeps/i386/fpu/s_cexp.S: Likewise.
40137         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
40138         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
40139         * sysdeps/i386/fpu/e_logf.S: Likewise.
40140         * sysdeps/i386/fpu/e_log10l.S: Likewise.
40141         * sysdeps/i386/fpu/e_atanh.S: Likewise.
40142         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
40143         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
40144         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
40145         * sysdeps/i386/fpu/e_log10.S: Likewise.
40146         * sysdeps/i386/fpu/s_frexp.S: Likewise.
40147         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
40148         * sysdeps/i386/fpu/s_asinh.S: Likewise.
40149         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
40150         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
40151         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
40152         * sysdeps/i386/asm-syntax.h: Likewise.
40153         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
40154         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
40155         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
40156         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
40157         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
40158         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
40159         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
40160         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
40161         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
40162         * sysdeps/powerpc/sysdep.h: Likewise.
40163         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
40164         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
40165
40166 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
40167
40168         [BZ #411]
40169         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
40170
40171 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
40172
40173         * sysdeps/i386/sysdep.h: Include <features.h>.
40174         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
40175         version.
40176
40177 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
40178
40179         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
40180         Define.
40181         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
40182         LOAD_PIC_REG_STR.
40183
40184 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40185
40186         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
40187         (SETUP_PIC_REG): Use GET_PC_THUNK.
40188         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
40189         macro.
40190
40191 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40192
40193         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
40194         for non-PIC compilation.
40195         (SETUP_PIC_REG): Add .p2align directive.
40196         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
40197         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
40198         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
40199         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
40200         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
40201         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
40202         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
40203         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
40204         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
40205         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
40206         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
40207         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
40208         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
40209         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
40210         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
40211         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
40212         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
40213         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
40214         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
40215         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
40216         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
40217         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
40218         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
40219         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
40220         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
40221         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
40222         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40223         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
40224         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
40225         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
40226         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
40227         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40228         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
40229         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
40230         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
40231         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
40232         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
40233         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
40234         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
40235         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
40236         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
40237
40238 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40239
40240         * math/tst-CMPLX.c: Include <stdio.h>.
40241
40242 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
40243
40244         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
40245         float.
40246         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
40247         * sysdeps/sparc/bits/mathdef.h: Likewise.
40248
40249 2012-01-31  Marek Polacek  <polacek@redhat.com>
40250
40251         * libio/libio.h: Don't define _PARAMS.
40252         * locale/programs/config.h: Don't define PARAMS.
40253         * stdlib/strtol_l.c: Likewise.
40254         (__strtol_l): Remove PARAMS from the prototype.
40255
40256 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
40257
40258         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
40259         names.  Just use the correct names.  Remove unnecessary wrapper
40260         functions.
40261         * malloc/arena.c: Likewise.
40262         * malloc/hooks.c: Likewise.
40263
40264         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
40265         ARENA_TEST says not to.  Simplify test for creation of a new arena.
40266         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
40267
40268 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
40269
40270         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
40271         into tail calls.
40272         (update_get_addr): New function.
40273         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
40274         GET_ADDR_MODULE parameter.
40275
40276 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
40277
40278         * crypt/cert.c: Remove __STDC__ conditionals.
40279         * crypt/crypt-entry.c: Likewise.
40280         * crypt/crypt_util.c: Likewise.
40281         * libio/filedoalloc.c: Likewise.
40282         * libio/fileops.c: Likewise.
40283         * libio/genops.c: Likewise.
40284         * libio/iofclose.c: Likewise.
40285         * libio/iofdopen.c: Likewise.
40286         * libio/iofopen.c: Likewise.
40287         * libio/iofopen64.c: Likewise.
40288         * libio/iogetdelim.c: Likewise.
40289         * libio/iopopen.c: Likewise.
40290         * libio/obprintf.c: Likewise.
40291         * libio/oldfileops.c: Likewise.
40292         * libio/oldiofclose.c: Likewise.
40293         * libio/oldiofdopen.c: Likewise.
40294         * libio/oldiofopen.c: Likewise.
40295         * libio/oldiopopen.c: Likewise.
40296         * libio/wfiledoalloc.c: Likewise.
40297         * libio/wgenops.c: Likewise.
40298         * locale/programs/xmalloc.c: Likewise.
40299         * misc/syslog.c: Likewise.
40300         * stdio-common/xbug.c: Likewise.
40301         * string/memchr.c: Likewise.
40302         * string/memcmp.c: Likewise.
40303         * string/memrchr.c: Likewise.
40304         * string/rawmemchr.c: Likewise.
40305         * sysdeps/posix/getcwd.c: Likewise.
40306         * time/strftime_l.c: Likewise.
40307
40308 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
40309
40310         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
40311         * config.make.in (config-cflags-sse2avx): Define.
40312         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
40313         Fix typo.
40314
40315 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
40316
40317         * scripts/config.guess: Update from upstream config git repository.
40318         * scripts/config.sub: Likewise.
40319
40320 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
40321
40322         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
40323         (EM_NUM): Update.
40324         (R_TILEPRO_*, R_TILEGX_*): New macros.
40325
40326         * scripts/firstversions.awk: Fix bug in version range handling.
40327
40328         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
40329
40330         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
40331
40332         * include/sys/epoll.h: New file.
40333         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
40334         libc_hidden_def.
40335
40336 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
40337
40338         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
40339         Avoid unnecessary __WORDSIZE == 64 test.
40340         (fmaxf): Use VEX format if possible.
40341         (fmax): Likewise.
40342         (fminf): Likewise.
40343         (fmin): Likewise.
40344
40345         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
40346         * math/math_private.h: Remove libc_fegetround* and
40347         libc_fesetround*.
40348         * sysdeps/i386/configure.in: Check for -msse2avx.
40349         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
40350         also if SSE2AVX is defined.
40351         Remove libc_fegetround* and libc_fesetround*.
40352         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
40353         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
40354         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
40355         of HAS_YMM_USABLE.
40356         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40357         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40358         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40359         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40360         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40361
40362         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
40363
40364 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40365
40366         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
40367         size is not set.
40368         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
40369
40370 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
40371
40372         [BZ #13618]
40373         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
40374         relocation.
40375         * Makeconfig (libm): Define.
40376         * elf/Makefile: Add rules to build and run tst-relsort1.
40377         * elf/tst-relsort1.c: New file.
40378         * elf/tst-relsort1mod1.c: New file.
40379         * elf/tst-relsort1mod2.c: New file.
40380
40381 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
40382
40383         * math/s_ldexp.c: Remove __STDC__ conditionals.
40384         * math/s_ldexpf.c: Likewise.
40385         * math/s_ldexpl.c: Likewise.
40386         * math/s_nextafter.c: Likewise.
40387         * math/s_nexttowardf.c: Likewise.
40388         * math/s_significand.c: Likewise.
40389         * math/s_significandf.c: Likewise.
40390         * math/s_significandl.c: Likewise.
40391         * math/w_jnl.c: Likewise.
40392         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
40393         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
40394         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
40395         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
40396         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
40397         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
40398         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
40399         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
40400         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
40401         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
40402         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
40403         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40404         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
40405         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
40406         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
40407         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
40408         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
40409         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
40410         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
40411         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
40412         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
40413         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
40414         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
40415         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
40416         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
40417         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
40418         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
40419         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
40420         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
40421         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
40422         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
40423         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
40424         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
40425         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
40426         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
40427         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
40428         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
40429         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
40430         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
40431         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
40432         * sysdeps/ieee754/k_standard.c: Likewise.
40433         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
40434         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
40435         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
40436         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
40437         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
40438         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
40439         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
40440         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
40441         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
40442         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
40443         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
40444         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
40445         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
40446         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
40447         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
40448         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
40449         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
40450         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
40451         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
40452         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
40453         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
40454         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
40455         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
40456         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
40457         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
40458         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
40459         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
40460         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
40461         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
40462         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
40463         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
40464         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
40465         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
40466         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
40467         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
40468         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
40469         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
40470         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
40471         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
40472         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
40473         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
40474         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
40475         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
40476         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
40477         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
40478         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
40479         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
40480         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
40481         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
40482         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
40483         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
40484         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
40485         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
40486         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
40487         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
40488         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
40489         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
40490         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
40491         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
40492         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
40493         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
40494         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
40495         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
40496         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
40497         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
40498         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
40499         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
40500         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
40501         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
40502         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
40503         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
40504         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
40505         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
40506         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
40507         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
40508         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
40509         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
40510         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
40511         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
40512         * sysdeps/ieee754/s_matherr.c: Likewise.
40513         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
40514         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40515         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40516         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40517
40518 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
40519
40520         * crypt/md5.h: Remove __STDC__ conditionals.
40521         * libio/libioP.h: Likewise.
40522         * locale/programs/config.h: Likewise.
40523         * sysdeps/generic/sysdep.h: Likewise.
40524         * sysdeps/i386/asm-syntax.h: Likewise.
40525         * sysdeps/s390/asm-syntax.h: Likewise.
40526         * sysdeps/unix/sysdep.h: Likewise.
40527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
40528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
40529
40530 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
40531
40532         * libio/libio.h: Remove __STDC__ conditionals.
40533         * malloc/obstack.h: Likewise.
40534         * math/complex.h: Likewise.
40535         * math/math.h: Likewise.
40536         * sysdeps/generic/_G_config.h: Likewise.
40537         * sysdeps/gnu/_G_config.h: Likewise.
40538         * sysdeps/mach/hurd/_G_config.h: Likewise.
40539         * sysdeps/powerpc/bits/mathdef.h: Likewise.
40540         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
40541         * sysdeps/sparc/bits/mathdef.h: Likewise.
40542
40543 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
40544
40545         [BZ #13583]
40546         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
40547         Clean up HAS_* macros.
40548         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
40549         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
40550         possible.
40551         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
40552         HAS_AVX.
40553         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40554         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40555         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40556         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40557         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40558
40559 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
40560
40561         * elf/tst-unique3.cc (gets): Remove declaration.
40562         * elf/tst-unique3lib.cc (gets): Likewise.
40563         * elf/tst-unique3lib2.cc (gets): Likewise.
40564         * elf/tst-unique4.cc (gets): Likewise.
40565
40566 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
40567
40568         * include/stdio.h: Add C++ protection.  Add gets declarations and
40569         definitions.
40570         * debug/tst-chk1.c: Don't declare gets here.
40571         * stdio-common/tst-gets.c: Likewise.
40572
40573 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
40574
40575         * posix/glob: Remove directory.
40576
40577 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
40578
40579         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
40580
40581 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
40582
40583         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
40584         of the non-standard EPFNOSUPPORT.
40585
40586 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40587
40588         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
40589         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
40590         ANYWHERE set to 1 only on KERN_NO_SPACE error.
40591
40592 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
40593
40594         * wcsmbs/uchar.h: Test __STDC_VERSION__.
40595
40596 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
40597
40598         * nscd/aicache.c (addhstaiX): Do not cache negative results of
40599         transient errors.
40600         * nscd/grpcache.c (cache_addgr): Likewise.
40601         * nscd/hstcache.c (cache_addhst): Likewise.
40602         * nscd/initgrcache.c (addinitgroupsX): Likewise.
40603         * nscd/pwdcache.c (cache_addpw): Likewise.
40604         * nscd/servicescache.c (cache_addserv): Likewise.
40605
40606 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
40607
40608         * malloc/malloc.c: Various cleanups.
40609         * malloc/hooks.c: Likewise.
40610
40611         * stdlib/Makefile (tests): Add bug-fmtmsg1.
40612         * stdlib/bug-fmtmsg1.c: New file.
40613
40614         * stdlib/fmtmsg.c (init): Add missing unlock.
40615         Patch by Peng Haitao <penght@cn.fujitsu.com>.
40616
40617 2012-01-12  Marek Polacek  <polacek@redhat.com>
40618
40619         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
40620         and _GNU_SOURCE.
40621
40622 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
40623
40624         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
40625         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
40626         macro to ensure uniqueness of label name.
40627         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40628         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40629
40630 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
40631
40632         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
40633
40634         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
40635         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
40636         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
40637         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
40638
40639 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
40640
40641         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
40642
40643         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
40644         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
40645         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
40646
40647         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
40648
40649         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
40650         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
40651         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
40652         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
40653
40654         * math/bits/math-finite.h: Add ldexp support.
40655
40656 2012-01-10  Marek Polacek  <polacek@redhat.com>
40657
40658         * locale/programs/localedef.h (show_archive_content): Add noreturn
40659         attribute.
40660
40661 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
40662
40663         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
40664
40665 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40666
40667         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
40668
40669         * io/Makefile (headers): Add bits/poll2.h.
40670
40671 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
40672
40673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
40674         typo #include statement.
40675
40676 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40677
40678         * include/sys/cdefs.h: Define __attribute_alloc_size.
40679         * catgets/gencat.c: Add alloc_size attribute and apply consistently
40680         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
40681         * elf/pldd.c: Likewise.
40682         * iconv/iconv_charmap.c: Likewise.
40683         * iconv/iconvconfig.c: Likewise.
40684         * iconv/strtab.c: Likewise.
40685         * locale/programs/locale.c: Likewise.
40686         * locale/programs/localedef.h: Likewise.
40687         * locale/programs/simple-hash.c: Likewise.
40688         * nscd/nscd.h: Likewise.
40689         * nss/makedb.c: Likewise.
40690         * sysdeps/generic/ldconfig.h: Likewise.
40691         * locale/programs/localedef.c: Remove xmalloc prototype.
40692         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
40693
40694 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
40695
40696         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
40697         appropriate.
40698
40699 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
40700
40701         * math/Makefile (tests): Add tst-CMPLX.
40702         * math/tst-CMPLX.c: New file.
40703
40704         * math/complex.h (CMPLXL): Fix typo.
40705
40706         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
40707         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
40708         GLIBC_2.16.
40709         * debug/tst-chk1.c: Add poll and ppoll tests.
40710         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
40711         * include/sys/poll.h: Add hidden proto for ppoll.
40712         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
40713         * sysdeps/mach/hurd/ppoll.c: Likewise.
40714         * io/ppoll.c: Likewise.
40715         * debug/poll_chk.c: New file.
40716         * debug/ppoll_chk.c: New file.
40717         * include/bits/poll2.h: New file.
40718         * io/bits/poll2.h: New file.
40719
40720         [BZ #1350]
40721         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
40722
40723         * configure.in: static is always set to yes.  Remove.
40724         * config.make.in: Don't set build-static.
40725         * Makeconfig: Remove use of build-static.
40726         * dlfcn/Makefile: Likewise.
40727         * elf/Makefile: Likewise.
40728         * math/Makefile: Likewise.
40729         * misc/Makefile: Likewise.
40730         * nptl/Makefile: Likewise.
40731         * sysdeps/mach/hurd/Makefile: Likewise.
40732
40733         * configure.in: PWD_P is not used anymore.
40734         * config.make.in: Remove PWD_P entry.
40735
40736         * configure.in: Remove last remnants of RANLIB.
40737         No need to check for signed size_t anymore.
40738         Don't set libc_commonpagesize and libc_relro_required here for Alpha
40739         and IA-64.
40740         Remove __builtin_expect test because we require at least gcc 3.4.
40741         * aclocal.m4: Likewise.
40742
40743         * wcsmbs/mbrtoc16.c: Implement using towc function.
40744         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
40745         * wcsmbs/wcsmbsload.c: Likewise.
40746         * iconv/gconv_simple.c: Likewise.
40747         * iconv/gconv_int.h: Likewise.
40748         * iconv/gconv_builtin.h: Likewise.
40749         * iconv/iconv_prog.c: Remove CHAR16 handling.
40750
40751         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
40752
40753         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
40754
40755         * configure.in: Remove --with-elf and --enable-bounded options.
40756         Dont set base_machine for ia64.  More non-ELF conditions removed.
40757         Remove testing and setting of leading underscore information.
40758         * config.make.in (build-bounded): Set to no.
40759         * config.h.in: Remove NO_UNDERSCORES entry.
40760         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
40761         them.
40762         * csu/start.c: Remove !NO_UNDERSCORE code.
40763         * locale/localeinfo.h: Likewise.
40764         * sysdeps/generic/machine-gmon.h: Likewise.
40765         * sysdeps/generic/sysdep.h: Likewise.
40766         * sysdeps/i386/sysdep.h: Likewise.
40767         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
40768         * sysdeps/mach/sysdep.h: Likewise.
40769         * sysdeps/s390/s390-32/sysdep.h: Likewise.
40770         * sysdeps/s390/s390-64/sysdep.h: Likewise.
40771         * sysdeps/sh/sysdep.h: Likewise.
40772         * sysdeps/sparc/sparc32/alloca.S: Likewise.
40773         * sysdeps/unix/i386/sysdep.S: Likewise.
40774         * sysdeps/unix/sparc/start.c: Likewise.
40775         * sysdeps/unix/sparc/sysdep.S: Likewise.
40776         * sysdeps/unix/sparc/sysdep.h: Likewise.
40777         * sysdeps/unix/start.c: Likewise.
40778         * sysdeps/unix/x86_64/sysdep.S: Likewise.
40779         * sysdeps/x86_64/sysdep.h: Likewise.
40780
40781 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
40782
40783         [BZ #13553]
40784         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
40785         for non-gcc.
40786         * argp/argp-fmtstream.h: Use const instead __const.
40787         * argp/argp.h: Likewise.
40788         * assert/assert.h: Likewise.
40789         * bits/fenv.h: Likewise.
40790         * bits/sched.h: Likewise.
40791         * bits/sigset.h: Likewise.
40792         * bits/sigthread.h: Likewise.
40793         * catgets/nl_types.h: Likewise.
40794         * conform/data/pthread.h-data: Likewise.
40795         * crypt/crypt-private.h: Likewise.
40796         * crypt/crypt.h: Likewise.
40797         * crypt/crypt_util.c: Likewise.
40798         * ctype/ctype.h: Likewise.
40799         * debug/execinfo.h: Likewise.
40800         * debug/mbsnrtowcs_chk.c: Likewise.
40801         * debug/mbsrtowcs_chk.c: Likewise.
40802         * debug/wcsnrtombs_chk.c: Likewise.
40803         * debug/wcsrtombs_chk.c: Likewise.
40804         * debug/wcstombs_chk.c: Likewise.
40805         * dirent/dirent.h: Likewise.
40806         * dlfcn/dlfcn.h: Likewise.
40807         * elf/neededtest4.c: Likewise.
40808         * grp/grp.h: Likewise.
40809         * gshadow/gshadow.h: Likewise.
40810         * iconv/gconv.h: Likewise.
40811         * iconv/gconv_int.h: Likewise.
40812         * iconv/gconv_simple.c: Likewise.
40813         * iconv/iconv.h: Likewise.
40814         * iconv/loop.c: Likewise.
40815         * iconv/skeleton.c: Likewise.
40816         * include/aio.h: Likewise.
40817         * include/aliases.h: Likewise.
40818         * include/argz.h: Likewise.
40819         * include/arpa/inet.h: Likewise.
40820         * include/assert.h: Likewise.
40821         * include/dirent.h: Likewise.
40822         * include/dlfcn.h: Likewise.
40823         * include/execinfo.h: Likewise.
40824         * include/fcntl.h: Likewise.
40825         * include/fenv.h: Likewise.
40826         * include/glob.h: Likewise.
40827         * include/grp.h: Likewise.
40828         * include/libintl.h: Likewise.
40829         * include/mntent.h: Likewise.
40830         * include/netdb.h: Likewise.
40831         * include/pwd.h: Likewise.
40832         * include/rpc/netdb.h: Likewise.
40833         * include/sched.h: Likewise.
40834         * include/search.h: Likewise.
40835         * include/shadow.h: Likewise.
40836         * include/signal.h: Likewise.
40837         * include/stdio.h: Likewise.
40838         * include/stdlib.h: Likewise.
40839         * include/string.h: Likewise.
40840         * include/sys/socket.h: Likewise.
40841         * include/sys/stat.h: Likewise.
40842         * include/sys/statfs.h: Likewise.
40843         * include/sys/statvfs.h: Likewise.
40844         * include/sys/syslog.h: Likewise.
40845         * include/sys/time.h: Likewise.
40846         * include/sys/uio.h: Likewise.
40847         * include/time.h: Likewise.
40848         * include/unistd.h: Likewise.
40849         * include/utmp.h: Likewise.
40850         * include/wchar.h: Likewise.
40851         * include/wctype.h: Likewise.
40852         * inet/aliases.h: Likewise.
40853         * inet/arpa/inet.h: Likewise.
40854         * inet/netinet/ether.h: Likewise.
40855         * inet/netinet/in.h: Likewise.
40856         * intl/libintl.h: Likewise.
40857         * io/bits/fcntl2.h: Likewise.
40858         * io/fcntl.h: Likewise.
40859         * io/ftw.h: Likewise.
40860         * io/sys/poll.h: Likewise.
40861         * io/sys/stat.h: Likewise.
40862         * io/sys/statfs.h: Likewise.
40863         * io/sys/statvfs.h: Likewise.
40864         * io/utime.h: Likewise.
40865         * libio/bits/stdio.h: Likewise.
40866         * libio/bits/stdio2.h: Likewise.
40867         * libio/libio.h: Likewise.
40868         * libio/libioP.h: Likewise.
40869         * libio/stdio.h: Likewise.
40870         * locale/lc-ctype.c: Likewise.
40871         * locale/locale.h: Likewise.
40872         * login/utmp.h: Likewise.
40873         * malloc/arena.c: Likewise.
40874         * malloc/malloc.c: Likewise.
40875         * malloc/malloc.h: Likewise.
40876         * malloc/mcheck.c: Likewise.
40877         * malloc/mtrace.c: Likewise.
40878         * math/bits/mathcalls.h: Likewise.
40879         * math/fenv.h: Likewise.
40880         * math/math_private.h: Likewise.
40881         * misc/bits/error.h: Likewise.
40882         * misc/bits/syslog.h: Likewise.
40883         * misc/err.h: Likewise.
40884         * misc/error.h: Likewise.
40885         * misc/fstab.h: Likewise.
40886         * misc/mntent.h: Likewise.
40887         * misc/regexp.h: Likewise.
40888         * misc/search.h: Likewise.
40889         * misc/sgtty.h: Likewise.
40890         * misc/sys/mman.h: Likewise.
40891         * misc/sys/syslog.h: Likewise.
40892         * misc/sys/uio.h: Likewise.
40893         * misc/sys/xattr.h: Likewise.
40894         * misc/ttyent.h: Likewise.
40895         * nis/rpcsvc/ypclnt.h: Likewise.
40896         * nss/nss.h: Likewise.
40897         * posix/bits/unistd.h: Likewise.
40898         * posix/fnmatch.h: Likewise.
40899         * posix/glob.h: Likewise.
40900         * posix/sched.h: Likewise.
40901         * posix/spawn.h: Likewise.
40902         * posix/sys/wait.h: Likewise.
40903         * posix/unistd.h: Likewise.
40904         * posix/wordexp.h: Likewise.
40905         * pwd/pwd.h: Likewise.
40906         * resolv/netdb.h: Likewise.
40907         * resource/sys/resource.h: Likewise.
40908         * rt/aio.h: Likewise.
40909         * rt/bits/mqueue2.h: Likewise.
40910         * rt/mqueue.h: Likewise.
40911         * shadow/shadow.h: Likewise.
40912         * signal/signal.h: Likewise.
40913         * socket/send.c: Likewise.
40914         * socket/sendto.c: Likewise.
40915         * socket/sys/socket.h: Likewise.
40916         * stdio-common/printf.h: Likewise.
40917         * stdlib/bits/stdlib.h: Likewise.
40918         * stdlib/fmtmsg.h: Likewise.
40919         * stdlib/monetary.h: Likewise.
40920         * stdlib/stdlib.h: Likewise.
40921         * stdlib/ucontext.h: Likewise.
40922         * streams/stropts.h: Likewise.
40923         * string/argz.h: Likewise.
40924         * string/bits/string2.h: Likewise.
40925         * string/string.h: Likewise.
40926         * string/strings.h: Likewise.
40927         * sunrpc/rpc/auth.h: Likewise.
40928         * sunrpc/rpc/auth_des.h: Likewise.
40929         * sunrpc/rpc/clnt.h: Likewise.
40930         * sunrpc/rpc/netdb.h: Likewise.
40931         * sunrpc/rpc/pmap_clnt.h: Likewise.
40932         * sunrpc/rpc/xdr.h: Likewise.
40933         * sysdeps/generic/inttypes.h: Likewise.
40934         * sysdeps/generic/net/if.h: Likewise.
40935         * sysdeps/generic/sys/swap.h: Likewise.
40936         * sysdeps/gnu/net/if.h: Likewise.
40937         * sysdeps/gnu/utmpx.h: Likewise.
40938         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
40939         * sysdeps/i386/i486/bits/string.h: Likewise.
40940         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
40941         * sysdeps/s390/bits/string.h: Likewise.
40942         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
40943         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
40944         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
40945         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
40946         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
40947         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
40948         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
40949         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
40950         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
40951         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
40952         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
40953         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
40954         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
40955         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
40956         * sysdeps/unix/sysv/linux/readv.c: Likewise.
40957         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
40958         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
40959         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40960         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
40961         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
40962         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
40963         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
40964         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
40965         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
40966         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
40967         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
40968         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
40969         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40970         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
40971         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
40972         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
40973         * sysvipc/sys/ipc.h: Likewise.
40974         * sysvipc/sys/msg.h: Likewise.
40975         * sysvipc/sys/sem.h: Likewise.
40976         * sysvipc/sys/shm.h: Likewise.
40977         * termios/termios.h: Likewise.
40978         * time/sys/time.h: Likewise.
40979         * time/time.h: Likewise.
40980         * wcsmbs/bits/wchar2.h: Likewise.
40981         * wcsmbs/uchar.h: Likewise.
40982         * wcsmbs/wchar.h: Likewise.
40983         * wctype/wctype.h: Likewise.
40984
40985         [BZ #13551]
40986         * Makeconfig: Remove all but ELF support including AIX support.
40987         * Makerules: Likewise.
40988         * config.h.in: Likewise.
40989         * config.make.in: Likewise.
40990         * configure: Likewise.
40991         * configure.in: Likewise.
40992         * csu/Makefile: Likewise.
40993         * csu/version.c: Likewise.
40994         * debug/Makefile: Likewise.
40995         * dlfcn/Makefile: Likewise.
40996         * elf/Makefile: Likewise.
40997         * extra-lib.mk: Likewise.
40998         * iconv/Makefile: Likewise.
40999         * include/libc-symbols.h: Likewise.
41000         * include/shlib-compat.h: Likewise.
41001         * resolv/Makefile: Likewise.
41002         * resolv/res_libc.c: Likewise.
41003         * rt/Makefile: Likewise.
41004         * sysdeps/i386/asm-syntax.h: Likewise.
41005         * sysdeps/i386/sysdep.h: Likewise.
41006         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
41007         * sysdeps/mach/sysdep.h: Likewise.
41008         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
41009         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
41010         * sysdeps/s390/asm-syntax.h: Likewise.
41011         * sysdeps/s390/s390-32/sysdep.h: Likewise.
41012         * sysdeps/s390/s390-64/sysdep.h: Likewise.
41013         * sysdeps/sh/sysdep.h: Likewise.
41014         * sysdeps/unix/sparc/sysdep.h: Likewise.
41015         * sysdeps/wordsize-32/divdi3.c: Likewise.
41016         * sysdeps/x86_64/sysdep.h: Likewise.
41017
41018         * argp/Versions: Remove _argp_unlock_xxx.
41019
41020         [BZ #13559]
41021         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
41022         * abilist/libBrokenLocale.abilist: Likewise.
41023         * abilist/libanl.abilist: Likewise.
41024         * abilist/libc.abilist: Likewise.
41025         * abilist/libcrypt.abilist: Likewise.
41026         * abilist/libdl.abilist: Likewise.
41027         * abilist/libm.abilist: Likewise.
41028         * abilist/libnsl.abilist: Likewise.
41029         * abilist/libpthread.abilist: Likewise.
41030         * abilist/libresolv.abilist: Likewise.
41031         * abilist/librt.abilist: Likewise.
41032         * abilist/libthread_db.abilist: Likewise.
41033         * abilist/libutil.abilist: Likewise.
41034         * abilist/libnss_db.abilist: New file.
41035
41036         * scripts/abilist.awk: Add support for indirect functions.
41037
41038         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
41039
41040         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
41041
41042         * shlib-versions: Remove entries for ports architectures.
41043
41044         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
41045         files in ports.
41046         * elf/stackguard-macros.h: Remove support for IA-64.
41047         * elf/tst-auditmod1.c: Likewise.
41048         * sysdeps/generic/ldsodefs.h: Likewise.
41049
41050         * sysdeps/unix/sysv/linux/configure.in: Ports should define
41051         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
41052         configure files.
41053
41054         [BZ #13552]
41055         * configure.in: Remove --enable-omitfp support.
41056         * FAQ.in: Adjust.
41057         * config.make.in: Likewise.
41058         * Makeconfig: Likewise.
41059         * manual/install.texi: Likewise.
41060
41061         In case anyone cares, the IA-64 architecture could move to ports.
41062         * sysdeps/ia64/*: Removed.
41063         * sysdeps/unix/sysv/linux/ia64/*: Removed.
41064         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
41065
41066         [BZ #13555]
41067         * configure.in: Remove entries for unsupported architectures.
41068
41069         [BZ #13533]
41070         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
41071         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
41072         routines.
41073         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
41074         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
41075         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
41076         fall back to using wcrtomb.
41077         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
41078         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
41079         renaming.
41080         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
41081         * wcsmbs/tst-c16c32-1.c: New file.
41082
41083         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
41084         local variable.
41085
41086         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
41087
41088         * elf/tst-unique3.cc: Add explicit declaration of gets.
41089         * elf/tst-unique3lib.cc: Likewise.
41090         * elf/tst-unique3lib2.cc: Likewise.
41091         * elf/tst-unique4.cc: Likewise.
41092
41093         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
41094
41095 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
41096
41097         [BZ #13566]
41098         * assert/assert.h (static_assert): Don't define for C++.
41099         * libio/stdio.h (gets): Do declare for C++ <= C++11.
41100         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
41101
41102 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
41103
41104         * iconv/loop.c (single loop): Fix assertion in storing of
41105         remaining bytes.
41106
41107         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
41108
41109 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
41110
41111         * posix/getconf.c: Update copyright year.
41112         * nss/getent.c: Likewise.
41113         * nss/makedb.c: Likewise.
41114         * iconv/iconvconfig.c: Likewise.
41115         * iconv/iconv_prog.c: Likewise.
41116         * elf/ldconfig.c: Likewise.
41117         * elf/pldd.c: Likewise.
41118         * elf/sotruss.ksh: Likewise.
41119         * catgets/gencat.c: Likewise.
41120         * csu/version.c: Likewise.
41121         * elf/ldd.bash.in: Likewise.
41122         * elf/sprof.c (print_version): Likewise.
41123         * locale/programs/locale.c: Likewise.
41124         * locale/programs/localedef.c: Likewise.
41125         * login/programs/pt_chown.c: Likewise.
41126         * nscd/nscd.c (print_version): Likewise.
41127         * debug/xtrace.sh: Likewise.
41128         * malloc/memusage.sh: Likewise.
41129         * malloc/mtrace.pl: Likewise.
41130         * debug/catchsegv.sh: Likewise.
41131
41132 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
41133
41134         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
41135         pure attribute.
41136
41137 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
41138
41139         [BZ #13533]
41140         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
41141         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
41142         transformations.
41143         * iconv/gconv_int.h: Likewise.
41144         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
41145         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
41146         from libc for GLIBC_2.16.
41147         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
41148         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
41149         * wcsmbs/uchar.h: Really define mbstate_t.
41150         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
41151         * wcsmbs/c16rtomb.c: New file.
41152         * wcsmbs/mbrtoc16.c: New file.
41153         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
41154         for C/POSIX locale.
41155         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
41156         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
41157
41158         * wcsmbs/wchar.h: Add missing __restrict.
41159
41160 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
41161
41162         [BZ #13532]
41163         * time/Makefile (routines): Add timespec_get.
41164         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
41165         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
41166         timespec for ISO C11.
41167         * time/timespec_get.c: New file.
41168         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
41169         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
41170
41171         [BZ #13531]
41172         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
41173         * stdlib/stdlib.h: Declare aligned_alloc.
41174         * Versions.def: Add GLIBC_2.16 for libc.
41175         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
41176
41177         [BZ 13527]
41178         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
41179         ISO C11.
41180
41181         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
41182         code.
41183
41184         [BZ #13528]
41185         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
41186
41187         [BZ #13529]
41188         * assert/assert.h (static_assert): Define.
41189
41190         * version.h: Update for 2.16 development version.
41191
41192         [BZ #13526]
41193         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
41194         _ISOC11_SOURCE.
41195
41196         * version.h (RELEASE): Bump for 2.15 release.
41197         * include/features.h (__GLIBC_MINOR__): Bump to 15.
41198
41199         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
41200         Patch by Marek Polacek <mpolacek@redhat.com>.
41201
41202         * bits/byteswap.h: Protect long long constants with __extension__.
41203         * sysdeps/i386/bits/byteswap.h: Likewise.
41204         * sysdeps/ia64/bits/byteswap.h: Likewise.
41205         * sysdeps/s390/bits/byteswap.h: Likewise.
41206         * sysdeps/x86_64/bits/byteswap.h: Likewise.
41207
41208 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41209
41210         [BZ #13540]
41211         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
41212         destination buffer.
41213         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
41214
41215 2011-12-23  Marek Polacek  <polacek@redhat.com>
41216
41217         * elf/dl-addr.c (determine_info): Add inline keyword.
41218         * elf/tst-auditmod4b.c (check_avx): Likewise.
41219         * elf/tst-auditmod6b.c (check_avx): Likewise.
41220         * elf/tst-auditmod6c.c (check_avx): Likewise.
41221         * elf/tst-auditmod7b.c (check_avx): Likewise.
41222
41223 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
41224
41225         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
41226         !__SSE_MATH__.
41227
41228 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41229
41230         [BZ #13540]
41231         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
41232         processing for last bytes.
41233
41234 2011-08-06  Bruno Haible  <bruno@clisp.org>
41235
41236         [BZ #13061]
41237         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
41238         U+0385, not to U+1FEE.
41239
41240         [BZ #13062]
41241         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
41242         entry for U+00A5 U+0301.
41243
41244 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
41245
41246         [BZ #13166]
41247         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
41248         buffer for the output is too small.
41249
41250         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
41251         optimization.
41252
41253         [BZ #13185]
41254         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
41255         SSE flags if possible.
41256
41257 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41258
41259         [BZ #13540]
41260         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
41261         processing for last bytes.
41262
41263 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
41264
41265         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
41266         (syscall-list-default-options, syscall-list-default-condition)
41267         (syscall-list-includes): Define.
41268         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
41269         list of ABIs and options and #if conditions for each ABI.  Do not
41270         handle common syscalls between ABIs specially.
41271         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
41272         Remove.
41273         (syscall-list-variants, syscall-list-32bit-options)
41274         (syscall-list-32bit-condition, syscall-list-64bit-options)
41275         (syscall-list-64bit-condition): Define.
41276         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
41277         (syscall-list-variants, syscall-list-32bit-options)
41278         (syscall-list-32bit-condition, syscall-list-64bit-options)
41279         (syscall-list-64bit-condition): Define.
41280         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
41281         Remove.
41282         (syscall-list-variants, syscall-list-32bit-options)
41283         (syscall-list-32bit-condition, syscall-list-64bit-options)
41284         (syscall-list-64bit-condition): Define.
41285         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
41286         Remove.
41287         (syscall-list-variants, syscall-list-32bit-options)
41288         (syscall-list-32bit-condition, syscall-list-64bit-options)
41289         (syscall-list-64bit-condition): Define.
41290
41291 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
41292
41293         * locale/iso-639.def: Add brx entry.
41294
41295         [BZ #13328]
41296         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
41297         Proposed by Mariusz_Cukr <marcukr@op.pl>.
41298
41299         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
41300         __feraiseexcept_renamed.
41301
41302 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
41303
41304         [BZ #13538]
41305         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
41306         EPOLLET with unsigned values.
41307         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
41308         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
41309
41310         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
41311         to large cancellation.
41312         * math/s_cacoshf.c: Likewise.
41313         * math/s_cacoshl.c: Likewise.
41314
41315 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
41316
41317         [BZ #13305]
41318         [BZ #12786]
41319         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
41320         * math/s_cacoshf.c: Likewise.
41321         * math/s_cacoshl.c: Likewise.
41322
41323 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
41324
41325         [BZ #13439]
41326         * iconv/gconv.h: Define __GCONV_SWAP.
41327         * iconvdata/unicode.c: The swap bit must be stored in __flags.
41328         * iconvdata/utf-16.c: Likewise.
41329         * iconvdata/utf-32.c: Likewise.
41330
41331 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
41332
41333         [BZ #13524]
41334         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
41335         numerator after shifting it by one limb.
41336
41337 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
41338
41339         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
41340         under [__USE_EXTERN_INLINES].
41341
41342 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
41343
41344         [BZ #13446]
41345         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
41346
41347 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41348
41349         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
41350         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
41351         optimized code.
41352         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
41353         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
41354         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
41355         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
41356         for strncasecmp/strncasecmp_l compilation.
41357         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
41358         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
41359
41360 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
41361
41362         [BZ #13484]
41363         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
41364         of __asm__.
41365
41366 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
41367
41368         [BZ #13506]
41369         * time/tzfile.c (__tzfile_read): Check values from file header.
41370
41371 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
41372
41373         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
41374         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
41375         * powerpc/powerpc32/dl-start.S: Likewise.
41376         * powerpc/powerpc32/elf/start.S: Likewise.
41377         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41378         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
41379         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
41380         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
41381         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
41382         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
41383         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
41384         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
41385         * powerpc/powerpc32/fpu/s_round.S: Likewise.
41386         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
41387         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
41388         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
41389         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
41390         * powerpc/powerpc32/memset.S: Likewise.
41391         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
41392         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
41393         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
41394         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
41395         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
41396         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
41397         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
41398         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
41399         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
41400         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
41401         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
41402         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
41403         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
41404
41405 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41406
41407         * math/libm-test.inc: Added more nearbyint tests.
41408         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
41409         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
41410         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
41411         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
41412
41413 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
41414
41415         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
41416         FD_CLOEXEC.
41417
41418 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41419
41420         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
41421         Add wcscpy-ssse3 wcscpy-c.
41422         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
41423         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
41424         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
41425         * sysdeps/x86_64/wcschr.S: New file.
41426         * sysdeps/x86_64/wcsrchr.S: New file.
41427         * string/test-strcmp.c: Remove checking of wcscmp function for
41428         wrong alignments.
41429         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
41430         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
41431         wcsrchr-sse2 wcsrchr-c.
41432         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
41433         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
41434         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
41435         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
41436         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
41437         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
41438         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
41439         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
41440         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
41441         * wcsmbc/wcschr.c (WCSCHR): New macro.
41442
41443 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41444
41445         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
41446         * wcsmbs/test-wcsrchr.c: New file.
41447         * string/test-strrchr.c: Add wcsrchr support.
41448         (WIDE): New macro.
41449         * wcsmbs/test-wcscpy.c: New file.
41450         * string/test-strcpy.c: Add wcscpy support.
41451         (WIDE): New macro.
41452
41453 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
41454
41455         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
41456         the inner loop.
41457
41458 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
41459
41460         [BZ #13472]
41461         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
41462
41463 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
41464
41465         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
41466         Minor optimizations.
41467
41468         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
41469         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
41470         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
41471
41472 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
41473
41474         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
41475         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
41476         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
41477         for gcc to avoid warnings.
41478         * inet/Makefile (tests): Add tst-checks.
41479         * inet/tst-checks.c: New file.
41480
41481         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
41482         warning.
41483
41484         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
41485         __wmemcmp_sse2.
41486
41487         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
41488         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
41489
41490         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
41491
41492 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
41493
41494         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
41495         problem.
41496
41497         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
41498
41499 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
41500
41501         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
41502         conditional on GCC version.
41503         (__arch_compare_and_exchange_val_8_acq)
41504         (__arch_compare_and_exchange_val_16_acq)
41505         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
41506         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
41507         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
41508
41509 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
41510
41511         * sysdeps/sh/backtrace.c: New file.
41512
41513 2011-12-02  Andreas Schwab  <schwab@redhat.com>
41514
41515         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
41516         parenthesis.
41517
41518 2011-12-01  Andreas Schwab  <schwab@redhat.com>
41519
41520         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
41521         falling back to utime.
41522
41523 2011-11-30  Andreas Schwab  <schwab@redhat.com>
41524
41525         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
41526         expectations for float.
41527
41528 2011-11-29  Andreas Schwab  <schwab@redhat.com>
41529
41530         * locale/weight.h (findidx): Add parameter len.
41531         * locale/weightwc.h (findidx): Likewise.
41532         * posix/fnmatch_loop.c (FCT): Adjust caller.
41533         * posix/regcomp.c (build_equiv_class): Likewise.
41534         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
41535         * posix/regexec.c (check_node_accept_bytes): Likewise.
41536         * string/strcoll_l.c (STRCOLL): Likewise.
41537         * string/strxfrm_l.c (STRXFRM): Likewise.
41538
41539 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
41540
41541         * Makefile.in: Remove CVSOPT handling.
41542         * configure.in: Remove use of AC_REVISION.
41543         * iconvdata/Makefile (distribute): No need to filter out CVS.
41544         * scripts/list-sources.sh: Remove CVS, subversion and monotone
41545         handling.
41546
41547 2011-11-16  Andreas Schwab  <schwab@redhat.com>
41548
41549         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
41550         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
41551         [USE_AS_STRNCASECMP_L]: Likewise.
41552         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
41553         NO_TLS_DIRECT_SEG_REFS.
41554         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
41555         Fix argument offsets for non-PIC.
41556         [USE_AS_STRNCASECMP_L]: Likewise.
41557         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
41558         NO_TLS_DIRECT_SEG_REFS.
41559
41560 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
41561
41562         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
41563         O_CLOEXEC.
41564         * locale/loadlocale.c (_nl_load_locale): Likewise.
41565
41566 2011-11-15  Andreas Schwab  <schwab@redhat.com>
41567
41568         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
41569         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
41570         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
41571         (SYSCALL_GETTIME): Set errno on error.
41572
41573         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
41574         count references to noai6ai_cached.
41575
41576 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
41577
41578         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
41579
41580         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
41581         FD_CLOEXEC for /proc/self/maps.
41582
41583         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
41584         FD_CLOEXEC for /proc/meminfo.
41585
41586         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
41587         gai.conf.
41588
41589         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
41590         FD_CLOEXEC for given file.
41591
41592         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
41593
41594         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
41595         FD_CLOEXEC for /etc/hosts.
41596         (_gethtent): Likewise.
41597
41598         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
41599
41600         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
41601         cancellation and set FD_CLOEXEC for /etc/netgroup.
41602
41603         * nss/nss_files/files-key.c (search): Don't allow cancellation when
41604         reading /etc/publickey.
41605
41606         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
41607         allow cancellation when reading /etc/group.
41608
41609         * nss/nss_files/files-alias.c (internal_setent): Don't allow
41610         cancellation.
41611         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
41612
41613         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
41614         when using data file.
41615
41616         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
41617
41618         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
41619         (write_nis_obj): Use "c" and "e" in fopen.
41620
41621         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
41622
41623         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
41624
41625         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
41626
41627         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
41628
41629         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
41630         locale.alias.
41631
41632         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
41633
41634         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
41635
41636         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
41637
41638         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
41639         file parsing and set FD_CLOEXEC.
41640
41641 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41642
41643         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
41644
41645 2011-11-14  Andreas Schwab  <schwab@redhat.com>
41646
41647         * malloc/arena.c (arena_get2): Don't call reused_arena when
41648         _int_new_arena failed.
41649
41650 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
41651
41652         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
41653         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
41654         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
41655         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
41656         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
41657         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
41658         to compile strcasecmp and strncasecmp.
41659         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
41660         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
41661
41662         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
41663
41664 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
41665
41666         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
41667         locale-defines.sym to gen-as-const-headers.
41668         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
41669         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
41670         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
41671         to compile strcasecmp and strncasecmp.
41672         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
41673         strcasecmp_l and strncasecmp_l.
41674         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
41675         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
41676         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
41677         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
41678         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
41679         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
41680         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
41681         * sysdeps/i386/i686/multiarch/strncase.S: New file.
41682         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
41683         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
41684         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
41685
41686 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
41687
41688         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
41689         result of SYSDEP_GETTIME_CPU to retval.
41690         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
41691         parameter list to macro.  Remove trailing semicolon.  Adjust users.
41692
41693         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
41694         variable.
41695
41696         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
41697         mantissa words.
41698         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
41699
41700         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
41701         from unused variable.
41702
41703         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
41704         DWARF definitions.
41705         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
41706         for assembling.
41707
41708         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
41709         over namespaces.
41710
41711         * sunrpc/rpc_prot.c (rejected): Fix case value.
41712
41713         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
41714         unsigned long long int to avoid warnings in shift.
41715
41716         * posix/regex_internal.c (re_string_reconstruct): Actually use result
41717         of use of trans.
41718         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
41719         variable tmp.
41720
41721         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
41722         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
41723         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
41724
41725         * nis/nis_table.c (nis_list): Use variable of correct type for
41726         result of __follow_path call.
41727
41728 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41729
41730         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
41731         of math functions ceil, trunc, floor, round, and sqrt, when
41732         avaliable on the platform.
41733         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
41734         name clash.
41735         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41736         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41737         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41738
41739 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
41740
41741         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
41742         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
41743
41744 2011-11-11  Roland McGrath  <roland@hack.frob.com>
41745
41746         * include/unistd.h: Fix __readlink return type.
41747         Reported by Chris Metcalf <cmetcalf@tilera.com>.
41748
41749 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
41750
41751         * stdlib/ucontext.h: Undo last change for makecontext.
41752
41753 2011-11-11  Andreas Schwab  <schwab@redhat.com>
41754
41755         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
41756
41757         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
41758         * setjmp/setjmp.h: Mark functions as non-leaf.
41759         * setjmp/bits/setjmp2.h: Likewise.
41760         * stdlib/ucontext.h: Likewise.
41761
41762 2011-11-10  Andreas Schwab  <schwab@redhat.com>
41763
41764         * malloc/arena.c (_int_new_arena): Don't increment narenas.
41765         (reused_arena): Don't check arena limit.
41766         (arena_get2): Atomically check arena limit.
41767
41768 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
41769
41770         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
41771         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
41772
41773         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
41774         instructions.
41775
41776 2011-11-07  Andreas Schwab  <schwab@redhat.com>
41777
41778         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
41779         handler when locking.
41780
41781         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41782         Fix size of allocated buffer.
41783
41784 2011-11-04  Andreas Schwab  <schwab@redhat.com>
41785
41786         [BZ #10103]
41787         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
41788         declarations for long double functions.
41789         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
41790
41791         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
41792
41793 2011-11-03  Andreas Schwab  <schwab@redhat.com>
41794
41795         * nscd/nscd.c (main): Don't start AVC thread until credentials are
41796         installed.
41797
41798         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
41799         is disabled.
41800
41801 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41802
41803         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
41804
41805 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
41806
41807         * include/alloca.h (stackinfo_alloca_round): Define.
41808         (extend_alloca): Use it.
41809         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
41810         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
41811         here.
41812
41813         * scripts/check-local-headers.sh: Ignore libaudit.h.
41814
41815         * nscd/Makefile (extra-objs): Make recursively expanded.
41816
41817 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
41818
41819         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
41820         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
41821
41822         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
41823         * posix/tst-rfc3484-2.c: Likewise.
41824         * posix/tst-rfc3484-3.c: Likewise.
41825
41826         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
41827         process_vm_writev.
41828         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
41829         process_vm_writev.
41830         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
41831         process_vm_writev from libc using GLIBC_2.15 version.
41832
41833         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
41834
41835 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
41836
41837         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
41838         stack usage.
41839
41840 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
41841
41842         [BZ #13367]
41843         * nss/getent.c (initgroups_keys): Show error message in case no group
41844         names are given.
41845
41846         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
41847         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
41848         __bump_nl_timestamp.
41849         * nscd/connections (nscd_init): When host database is served open
41850         netlink socket and request notification about configuration changes.
41851         (main_loop_poll): Track netlink file descriptor and bump timestamp
41852         in case data becomes available.
41853         (main_loop_epoll): Likewise.
41854         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
41855         (database_pers_head): Add extra_data fileds.
41856         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
41857         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
41858         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
41859         Adjust caller.
41860         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
41861         in6ai data, call __free_in6ai.
41862         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
41863         Add -DHAVE_NETLINK.
41864         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
41865         interface information.  Reuse previous data if netlink timestamp
41866         is not changed.
41867         (__bump_nl_timestamp): New function.
41868         (__free_in6ai): New function.
41869
41870 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
41871
41872         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
41873         close_not_cancel_no_status here.
41874         (__check_pf): Reorganize code a bit to not call close twice if OOM.
41875
41876 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41877
41878         [BZ #13276]
41879         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
41880         return value.
41881
41882         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
41883         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
41884         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
41885
41886 2011-07-03  Andreas Jaeger  <aj@suse.de>
41887
41888         [BZ #10709]
41889         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
41890         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
41891         * math/libm-test.inc (sin_test): Add test case.
41892
41893 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
41894
41895         [BZ #13337]
41896         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
41897         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41898
41899         * elf/chroot_canon.c (chroot_canon): Cleanups.
41900
41901         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
41902
41903         [BZ #13335]
41904         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
41905         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
41906
41907         * string/test-strchr.c: Make usable for strchrnul testing.
41908         * string/test-strchrnul.c: New file.
41909         * string/Makefile (strop-tests): Add strchrnul.
41910
41911         * po/it.po: Update from translation team.
41912         * po/es.po: Likewise.
41913
41914 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
41915
41916         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
41917         the three constants needed as parameters.  Drop the others.
41918         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
41919         __m128i_strloadu_tolower.
41920         Create and initialize variable zero and use it in all the places
41921         where _mm_setzero_si128 was used.
41922
41923         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
41924         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
41925         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
41926         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
41927         anymore.
41928         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
41929         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
41930         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
41931         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
41932         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
41933         __mpranred, __mptan.
41934         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
41935         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
41936         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
41937         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
41938         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
41939         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
41940         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
41941         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
41942         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
41943
41944 2011-10-28  Andreas Schwab  <schwab@redhat.com>
41945
41946         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
41947         redefine if SHARED.
41948         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
41949
41950         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
41951         wide char related routines to wcsmbs subdir.
41952
41953 2011-10-27  Andreas Schwab  <schwab@redhat.com>
41954
41955         [BZ #13344]
41956         * misc/sys/cdefs.h (__THROWNL): Define.
41957         * posix/unistd.h: Use __THREADNL instead of __THREAD
41958         for memory synchronization functions.
41959
41960 2011-10-26  Roland McGrath  <roland@hack.frob.com>
41961
41962         [BZ #13349]
41963         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
41964         doesn't exist.
41965         * manual/stdio.texi (Obstack Streams): Node removed.
41966
41967 2011-10-26  Andreas Schwab  <schwab@redhat.com>
41968
41969         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
41970         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
41971         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
41972
41973         * math/math_private.h (math_force_eval): Allow non-addressable
41974         arguments.
41975         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
41976
41977 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
41978
41979         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
41980         file is not needed.
41981
41982         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
41983         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
41984         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41985         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41986         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41987         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41988         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41989         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
41990         Add AVX variants.
41991         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
41992         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
41993         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
41994         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
41995         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
41996         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
41997         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
41998         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
41999         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
42000         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
42001         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
42002         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
42003         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
42004         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
42005         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
42006         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
42007         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
42008         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
42009         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
42010
42011         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
42012         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
42013
42014         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
42015         place.  Use VEX encoding when compiling for AVX.
42016
42017 2011-10-25  Andreas Schwab  <schwab@redhat.com>
42018
42019         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
42020         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
42021
42022         * string/test-strchr.c (do_test): Don't generate NUL bytes.
42023
42024 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
42025
42026         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
42027         useless if() expression.
42028         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42029         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42030         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42031         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42032         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42033         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
42034         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
42035         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
42036         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
42037         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42038         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42039         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
42040         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
42041         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
42042         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
42043         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
42044         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42045         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42046         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
42047
42048         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
42049
42050 2011-10-25  Andreas Schwab  <schwab@redhat.com>
42051
42052         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
42053         condition.
42054         * elf/dl-fini.c (_dl_sort_fini): Likewise.
42055
42056 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
42057
42058         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
42059         .text section.  Avoid duplicate constants.
42060         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
42061         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42062         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42063         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42064         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
42065         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42066         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42067         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42068         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42069         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
42070         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42071         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
42072         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
42073         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
42074         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
42075         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
42076         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
42077         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42078         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42079         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42080         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
42081         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
42082         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
42083         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
42084         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
42085         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
42086         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
42087         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
42088         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
42089         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
42090         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
42091         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
42092         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
42093         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
42094         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
42095         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
42096         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
42097         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
42098         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
42099         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
42100         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
42101         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
42102         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
42103         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
42104         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
42105
42106 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
42107
42108         * sysdeps/x86_64/dla.h: Move to ...
42109         * sysdeps/x86_64/fpu/dla.h: ...here.
42110         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
42111         situations.  Use __builtin_fma only for gcc 4.6 and up.
42112
42113         * config.make.in: Add have-mfma4 entry.
42114         * configure.in: Substitute libc_cv_cc_fma4.
42115         * math/Makefile (dbl-only-routines): Add sincostab.
42116         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
42117         Use __sincostab not sincos.
42118         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
42119         name is a macro.
42120         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
42121         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42122         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42123         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
42124         using __copysign.
42125         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
42126         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
42127         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
42128         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
42129         and __inv.
42130         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
42131         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
42132         __copysign.
42133         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
42134         define aliases when function name is a macro.
42135         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
42136         sysdeps/ieee754/dbl-64/sincos.tbl.
42137         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
42138         fma4-enabled routines.
42139         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
42140         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
42141         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
42142         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
42143         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
42144         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
42145         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
42146         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
42147         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
42148         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
42149         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
42150         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
42151         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
42152         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
42153         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
42154         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
42155         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
42156         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
42157         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
42158         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
42159         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
42160         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
42161         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
42162         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
42163         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
42164         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
42165         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
42166         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
42167         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
42168         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
42169
42170         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
42171         rename.
42172         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42173         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42174         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42175         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42176         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42177         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42178         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42179         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42180
42181 2011-10-24  Andreas Schwab  <schwab@redhat.com>
42182
42183         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
42184
42185 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42186
42187         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
42188
42189         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
42190         prediction.
42191         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
42192
42193         * string/strnlen.c: Don't define STRNLEN, reverse logic.
42194         Remove unused variable magic_bits.
42195         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
42196
42197         * string/strnlen.c: Define and use STRNLEN macro.
42198         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
42199         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
42200         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
42201         * wcsmbs/wcslen.c: Define and use WCSLEN.
42202         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
42203         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
42204         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
42205         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
42206         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
42207         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
42208         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42209
42210 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42211
42212         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42213         strnlen-sse2-no-bsf.
42214         Rename strlen-no-bsf to strlen-sse2-no-bsf.
42215         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
42216         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
42217         Add strnlen support.
42218         (USE_AS_STRNLEN): New macro.
42219         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
42220         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
42221         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
42222         * sysdeps/x86_64/wcslen.S: New file.
42223
42224 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
42225
42226         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
42227         XMM-moves are used for copying on small sizes.
42228
42229 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42230
42231         * wcsmbs/Makefile (strop-tests): Add wcschr.
42232         * wcsmbs/test-wcschr.c: New file.
42233         * string/test-strchr.c: Update.
42234         Add wcschr support.
42235         (WIDE): New macro.
42236
42237 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42238
42239         * wcsmbs/Makefile (strop-tests): Add wcslen.
42240         * wcsmbs/test-wcslen.c: New file.
42241         * string/test-strlen.c: Update.
42242         Add wcslen support.
42243         (WIDE): New macro.
42244
42245 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42246
42247         * po/it.po: Update from translation team.
42248
42249 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42250
42251         * sysdeps/x86_64/wcscmp.S: Update.
42252         Fix wrong comparison semantics.
42253         wcscmp shall use signed comparison not unsigned.
42254         Don't use substraction to avoid overflow bug.
42255         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
42256         * wcsmbc/wcscmp.c: Likewise.
42257         * string/test-strcmp.c: Likewise.
42258         Add new tests to check cases with negative values.
42259
42260 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42261
42262         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
42263         * sysdeps/x86_64/dla.h: ...here.  New file.
42264         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
42265         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42266         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42267         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42268         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42269         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42270         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42271         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42272         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42273
42274 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
42275
42276         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
42277         __ynl_finite aliases.
42278
42279 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
42280
42281         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
42282
42283         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
42284         define DLA_FMA.
42285         [DLA_FMA] (EMULV): Use DLA_FMA.
42286         [DLA_FMA] (MUL12): Use EMULV.
42287         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
42288         that are not needed.
42289         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42290         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42291         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42292         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42293         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42294         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42295         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42296
42297 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
42298
42299         * math/s_nan.c: Undef __nan.
42300         * math/s_nanf.c: Undef __nanf.
42301         * math/s_nanl.c: Undef __nanl.
42302         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
42303         "math_private.h".
42304
42305 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
42306
42307         * math/s_catan.c: Add branch predictions.
42308         * math/s_catanf.c: Likewise.
42309         * math/s_catanh.c: Likewise.
42310         * math/s_catanhf.c: Likewise.
42311         * math/s_catanhl.c: Likewise.
42312         * math/s_catanl.c: Likewise.
42313         * math/s_cexp.c: Likewise.
42314         * math/s_cexpf.c: Likewise.
42315         * math/s_cexpl.c: Likewise.
42316         * math/s_clog.c: Likewise.
42317         * math/s_clog10.c: Likewise.
42318         * math/s_clog10f.c: Likewise.
42319         * math/s_clog10l.c: Likewise.
42320         * math/s_clogf.c: Likewise.
42321         * math/s_clogl.c: Likewise.
42322         * math/s_csqrt.c: Likewise.
42323         * math/s_csqrtf.c: Likewise.
42324         * math/s_csqrtl.c: Likewise.
42325         * math/s_ctanf.c: Likewise.
42326         * math/s_ctanh.c: Likewise.
42327         * math/s_ctanhf.c: Likewise.
42328         * math/s_ctanhl.c: Likewise.
42329         * math/s_ctanl.c: Likewise.
42330
42331         * math/math_private.h: Define __nan, __nanf, __nanl.
42332         * math/s_cacosh.c: Include <math_private.h>.
42333         * math/s_cacoshl.c: Likewise.
42334         * math/s_casinh.c: Likewise.
42335         * math/s_casinhf.c: Likewise.
42336         * math/s_casinhl.c: Likewise.
42337         * math/s_ccos.c: Rely entire on ccosh.
42338         * math/s_ccosf.c: Rely entire on ccoshf.
42339         * math/s_ccosl.c: Rely entirely on ccoshl.
42340         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
42341         Remove tests for FE_INVALID.
42342         * math/s_ccoshf.c: Likewise.
42343         * math/s_ccoshl.c: Likewise.
42344         * math/s_csin.c: Likewise.
42345         * math/s_csinf.c: Likewise.
42346         * math/s_csinh.c Likewise.
42347         * math/s_csinhf.c: Likewise.
42348         * math/s_csinhl.c: Likewise.
42349         * math/s_csinl.c: Likewise.
42350         * math/s_ctan.c: Likewise.
42351         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
42352         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
42353         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
42354
42355 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
42356
42357         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
42358         compilation problems.
42359
42360         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
42361         __builtin_expect.
42362
42363 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
42364
42365         * sysdeps/i386/configure.in: Test for -mfma4 option.
42366         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
42367         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
42368         COMMON_CPUID_INDEX_80000001.
42369         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
42370         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
42371         use it if FMA3 is not supported.
42372         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
42373
42374         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
42375         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
42376
42377 2011-10-20  Andreas Schwab  <schwab@redhat.com>
42378
42379         [BZ #12892]
42380         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
42381         it would create a cycle with a link time dependency.
42382
42383 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
42384
42385         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
42386         instruction.
42387         * string/Makefile (strop-tests): Add rawmemchr.
42388         * string/test-rawmemchr.c: New file.
42389
42390         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
42391         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
42392         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
42393         when compiling str{,n}casecmp and when AVX is available.  Hook up
42394         new optimized code in initializers.
42395
42396 2011-10-19  Andreas Schwab  <schwab@redhat.com>
42397
42398         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
42399         __feraiseexcept instead of feraiseexcept.
42400
42401 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
42402
42403         * math/math_private.h: Define defaults for libc_fetestexcept and
42404         libc_feupdateenv.
42405         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
42406         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
42407         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42408         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
42409         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
42410         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
42411         libc_fetestexcept and libc_feupdateenv.
42412
42413         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
42414         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
42415         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
42416         * sysdeps/x86_64/fpu/math_private.h: Define special version of
42417         libc_feholdexcept_setround.
42418
42419         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
42420         Add s_nearbyint-c and s_nearbyintf-c.
42421         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
42422         nearbyintf inlines.
42423         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
42424         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
42425         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
42426         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
42427
42428         * math/math_private.h: Define defaults for libc_fegetround,
42429         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
42430         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
42431         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
42432         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
42433         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
42434         standard functions.
42435         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42436         Remove comments and hacks for old compiler versions.
42437         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
42438         libc_fegetround, libc_fesetround, libc_feholdexcept, and
42439         libc_feholdexceptl.
42440
42441 2011-10-18  Andreas Schwab  <schwab@redhat.com>
42442
42443         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
42444         (__feraiseexcept_renamed): Add __NTH.
42445         (feraiseexcept): Add __NTH.  Rename local variables to fix
42446         namespace violations.
42447
42448 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
42449
42450         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
42451
42452         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
42453
42454         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
42455         recently added interfaces.
42456         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
42457
42458         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
42459         about macro parameter expansion.
42460
42461         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
42462         __NO_MATH_INLINES is defined.  Cleanups.
42463
42464         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
42465         and __floorf is target has SSE4.1.
42466         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
42467         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
42468         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
42469         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
42470
42471         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
42472         name.
42473         (floorf): Likewise.
42474
42475         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
42476
42477 2011-10-17  Andreas Schwab  <schwab@redhat.com>
42478
42479         * misc/sys/cdefs.h: Fix last change.
42480
42481         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
42482         database lookup.
42483
42484 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
42485
42486         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
42487
42488         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
42489         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42490         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42491         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
42492         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
42493         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
42494         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
42495         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
42496         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
42497         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
42498         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
42499         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
42500         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
42501         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
42502         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
42503         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
42504         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
42505         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
42506         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
42507         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
42508         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
42509         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
42510
42511         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
42512         ceil, ceilf, floor, floorf.
42513
42514         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
42515         Perform IRELATIVE relocations last.
42516
42517         * elf/do-rel.h: Add another parameter nrelative, replacing the
42518         local variable with the same name.  Change name of the function
42519         to end in Rel or Rela (uppercase).
42520         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
42521         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
42522         elf_dynamic_do_##reloc function.
42523
42524 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
42525
42526         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
42527         is sufficient, at least on modern CPUs.
42528
42529         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
42530
42531         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
42532         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
42533
42534         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
42535         __expl_finite.
42536         * math/bits/math-finite.h: Add entries for exp.
42537         * math/e_expl.c: Add __*_finite alias.
42538         * sysdeps/i386/fpu/e_exp.S: Likewise.
42539         * sysdeps/i386/fpu/e_expf.S: Likewise.
42540         * sysdeps/i386/fpu/e_expl.c: Likewise.
42541         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
42542         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
42543         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
42544         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
42545         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
42546         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
42547         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
42548
42549         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
42550         is sufficient, at least on modern CPUs.
42551
42552         * ctype/ctype-info.c (__ctype_init): Define.
42553         * include/ctype.h (__ctype_init): Declare.
42554         (__ctype_b_loc): The variable is always initialized.
42555         (__ctype_toupper_loc): Likewise.
42556         (__ctype_tolower_loc): Likewise.
42557         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
42558         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
42559
42560 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
42561
42562         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
42563
42564         * configure.in: Also look in $cxxmachine/include for C++ system
42565         headers.
42566
42567 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42568
42569         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
42570         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
42571         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
42572         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
42573         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
42574         (USE_AS_WMEMCMP): New macro.
42575         Fixing indents.
42576         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
42577         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
42578         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
42579         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
42580         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42581         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
42582         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
42583         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
42584         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
42585         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
42586         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
42587         (USE_AS_WMEMCMP): New macro.
42588         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
42589         * sysdeps/string/test-memcmp.c: Update.
42590         Fix simple_wmemcmp.
42591         Add new tests.
42592         * wcsmbs/wmemcmp.c: Update.
42593         (WMEMCMP): New macro.
42594         Fix overflow bug.
42595
42596 2011-10-12  Andreas Jaeger  <aj@suse.de>
42597
42598         [BZ #13268]
42599         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
42600
42601 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
42602
42603         * libio/iofwide.c (do_length): Avoid warning.
42604
42605         * ctype/ctype.h (__isctype_f): Add missing __THROW.
42606
42607 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
42608
42609         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
42610
42611         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
42612         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
42613         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
42614         * sysdeps/i386/i686/fpu/e_log.S: New file.
42615         * sysdeps/i386/i686/fpu/e_logf.S: New file.
42616         * sysdeps/i386/i686/fpu/e_logl.S: New file.
42617
42618         * ctype/ctype.h: Add support for inlined isXXX functions when
42619         compiling C++ code.
42620
42621 2011-10-14  Andreas Schwab  <schwab@redhat.com>
42622
42623         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42624
42625         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
42626
42627 2011-10-13  Roland McGrath  <roland@hack.frob.com>
42628
42629         [BZ #13291]
42630         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
42631
42632 2011-10-13  Andreas Schwab  <schwab@redhat.com>
42633
42634         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
42635         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
42636         feraiseexcept.
42637
42638         * sysdeps/x86_64/memrchr.S: Check for zero size.
42639
42640         * string/stratcliff.c: Add memrchr tests.
42641
42642 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42643
42644         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42645         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
42646         rawmemchr-sse2 rawmemchr-sse2-bsf.
42647         * sysdeps/i386/i686/multiarch/memchr.S: New file.
42648         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
42649         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
42650         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
42651         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
42652         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
42653         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
42654         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
42655         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
42656         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
42657         * string/memrchr.c (MEMRCHR): New macro.
42658
42659 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
42660
42661         Add integration with gcc's -ffinite-math-only and optimize wrapper
42662         functions in libm.
42663         * Versions.def: Define GLIBC_2.15 version for libm.
42664         * math/Makefile (headers): Add bits/math-finite.h.
42665         * math/bits/math-finite.h: New file.
42666         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
42667         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
42668         * math/e_acoshl.c: Add __*_finite alias.
42669         * math/e_acosl.c: Likewise.
42670         * math/e_asinl.c: Likewise.
42671         * math/e_atan2l.c: Likewise.
42672         * math/e_atanhl.c: Likewise.
42673         * math/e_coshl.c: Likewise.
42674         * math/e_exp10.c: Likewise.
42675         * math/e_exp10f.c: Likewise.
42676         * math/e_exp10l.c: Likewise.
42677         * math/e_exp2l.c: Likewise.
42678         * math/e_fmodl.c: Likewise.
42679         * math/e_gammal_r.c: Likewise.
42680         * math/e_hypotl.c: Likewise.
42681         * math/e_j0l.c: Likewise.
42682         * math/e_j1l.c: Likewise.
42683         * math/e_jnl.c: Likewise.
42684         * math/e_lgammal_r.c: Likewise.
42685         * math/e_log10l.c: Likewise.
42686         * math/e_log2l.c: Likewise.
42687         * math/e_logl.c: Likewise.
42688         * math/e_powl.c: Likewise.
42689         * math/e_sinhl.c: Likewise.
42690         * math/e_sqrtl.c: Likewise.
42691         * math/e_scalb.c: Completely rewritten and optimized.
42692         * math/e_scalbf.c: Likewise.
42693         * math/e_scalbl.c: Likewise.
42694         * math/w_acos.c: Likewise.
42695         * math/w_acosf.c: Likewise.
42696         * math/w_acosl.c: Likewise.
42697         * math/w_acosh.c: Likewise.
42698         * math/w_acoshf.c: Likewise.
42699         * math/w_acoshl.c: Likewise.
42700         * math/w_asin.c: Likewise.
42701         * math/w_asinf.c: Likewise.
42702         * math/w_asinl.c: Likewise.
42703         * math/w_atan2.c: Likewise.
42704         * math/w_atan2f.c: Likewise.
42705         * math/w_atan2l.c: Likewise.
42706         * math/w_atanh.c: Likewise.
42707         * math/w_atanhf.c: Likewise.
42708         * math/w_atanhl.c: Likewise.
42709         * math/w_exp10.c: Likewise.
42710         * math/w_exp10f.c: Likewise.
42711         * math/w_exp10l.c: Likewise.
42712         * math/w_fmod.c: Likewise.
42713         * math/w_fmodf.c: Likewise.
42714         * math/w_fmodl.c: Likewise.
42715         * math/w_j0.c: Likewise.
42716         * math/w_j0f.c: Likewise.
42717         * math/w_j0l.c: Likewise.
42718         * math/w_j1.c: Likewise.
42719         * math/w_j1f.c: Likewise.
42720         * math/w_j1l.c: Likewise.
42721         * math/w_jn.c: Likewise.
42722         * math/w_jnf.c: Likewise.
42723         * math/w_log.c: Likewise.
42724         * math/w_logf.c: Likewise.
42725         * math/w_logl.c: Likewise.
42726         * math/w_log10.c: Likewise.
42727         * math/w_log10f.c: Likewise.
42728         * math/w_log10l.c: Likewise.
42729         * math/w_log2.c: Likewise.
42730         * math/w_log2f.c: Likewise.
42731         * math/w_log2l.c: Likewise.
42732         * math/w_pow.c: Likewise.
42733         * math/w_powf.c: Likewise.
42734         * math/w_powl.c: Likewise.
42735         * math/w_remainder.c: Likewise.
42736         * math/w_remainderf.c: Likewise.
42737         * math/w_remainderl.c: Likewise.
42738         * math/w_scalb.c: Likewise.
42739         * math/w_scalbf.c: Likewise.
42740         * math/w_scalbl.c: Likewise.
42741         * math/w_sqrt.c: Likewise.
42742         * math/w_sqrtf.c: Likewise.
42743         * math/w_sqrtl.c: Likewise.
42744         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
42745         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
42746         used.
42747         * math/math_private.h: Declare __kernel_standard_f.
42748         * math/w_cosh.c: Remove cruft and optimize a bit.
42749         * math/w_coshf.c: Likewise.
42750         * math/w_coshl.c: Likewise.
42751         * math/w_exp2.c: Likewise.
42752         * math/w_exp2f.c: Likewise.
42753         * math/w_exp2l.c: Likewise.
42754         * math/w_hypot.c: Likewise.
42755         * math/w_hypotf.c: Likewise.
42756         * math/w_hypotl.c: Likewise.
42757         * math/w_lgamma.c: Likewise.
42758         * math/w_lgamma_r.c: Likewise.
42759         * math/w_lgammaf.c: Likewise.
42760         * math/w_lgammaf_r.c: Likewise.
42761         * math/w_lgammal.c: Likewise.
42762         * math/w_lgammal_r.c: Likewise.
42763         * math/w_sinh.c: Likewise.
42764         * math/w_sinhf.c: Likewise.
42765         * math/w_sinhl.c: Likewise.
42766         * math/w_tgamma.c: Likewise.
42767         * math/w_tgammaf.c: Likewise.
42768         * math/w_tgammal.c: Likewise.
42769         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
42770         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42771         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
42772         Minor optimizations.  Pretty printing.  Remove cruft.
42773         * sysdeps/i386/fpu/e_acosf.S: Likewise.
42774         * sysdeps/i386/fpu/e_acosh.S: Likewise.
42775         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
42776         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
42777         * sysdeps/i386/fpu/e_acosl.c: Likewise.
42778         * sysdeps/i386/fpu/e_asin.S: Likewise.
42779         * sysdeps/i386/fpu/e_asinf.S: Likewise.
42780         * sysdeps/i386/fpu/e_atan2.S: Likewise.
42781         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
42782         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
42783         * sysdeps/i386/fpu/e_atanh.S: Likewise.
42784         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
42785         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
42786         * sysdeps/i386/fpu/e_exp10.S: Likewise.
42787         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
42788         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
42789         * sysdeps/i386/fpu/e_exp2.S: Likewise.
42790         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
42791         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
42792         * sysdeps/i386/fpu/e_fmod.S: Likewise.
42793         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
42794         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
42795         * sysdeps/i386/fpu/e_hypot.S: Likewise.
42796         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
42797         * sysdeps/i386/fpu/e_log.S: Likewise.
42798         * sysdeps/i386/fpu/e_log10.S: Likewise.
42799         * sysdeps/i386/fpu/e_log10f.S: Likewise.
42800         * sysdeps/i386/fpu/e_log10l.S: Likewise.
42801         * sysdeps/i386/fpu/e_log2.S: Likewise.
42802         * sysdeps/i386/fpu/e_log2f.S: Likewise.
42803         * sysdeps/i386/fpu/e_log2l.S: Likewise.
42804         * sysdeps/i386/fpu/e_logf.S: Likewise.
42805         * sysdeps/i386/fpu/e_logl.S: Likewise.
42806         * sysdeps/i386/fpu/e_pow.S: Likewise.
42807         * sysdeps/i386/fpu/e_powf.S: Likewise.
42808         * sysdeps/i386/fpu/e_powl.S: Likewise.
42809         * sysdeps/i386/fpu/e_remainder.S: Likewise.
42810         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
42811         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
42812         * sysdeps/i386/fpu/e_scalb.S: Likewise.
42813         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
42814         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
42815         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
42816         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
42817         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
42818         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42819         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42820         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42821         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42822         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42823         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42824         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42825         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42826         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42827         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42828         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42829         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
42830         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42831         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42832         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42833         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42834         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42835         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42836         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42837         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42838         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42839         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
42840         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
42841         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
42842         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
42843         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
42844         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
42845         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
42846         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
42847         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
42848         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42849         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
42850         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42851         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
42852         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
42853         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
42854         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
42855         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
42856         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
42857         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
42858         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
42859         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
42860         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
42861         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
42862         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
42863         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
42864         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
42865         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
42866         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
42867         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
42868         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
42869         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
42870         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
42871         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42872         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
42873         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
42874         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
42875         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
42876         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
42877         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
42878         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
42879         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
42880         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
42881         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
42882         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
42883         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
42884         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
42885         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
42886         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
42887         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
42888         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
42889         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
42890         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
42891         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
42892         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
42893         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
42894         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
42895         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
42896         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
42897         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
42898         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42899         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
42900         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
42901         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
42902         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42903         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
42904         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42905         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
42906         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
42907         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
42908         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
42909         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
42910         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
42911         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
42912         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42913         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42914         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42915         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
42916         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
42917         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
42918         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
42919         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
42920         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
42921         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
42922         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
42923         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
42924         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
42925         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42926         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
42927         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
42928         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
42929         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
42930         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
42931         (__isnanf): Likewise.
42932         (__isinf_ns): Likewise.
42933         (__isinf_nsf): Likewise.
42934         (__finite): Likewise.
42935         (__finitef): Likewise.
42936         (__ieee754_sqrt): Define as macro.
42937         (__ieee754_sqrtf): Define as macro.
42938         (__ieee754_sqrtl): Define as macro.
42939         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
42940         inlined copy.
42941         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
42942         __FINITE_MATH_ONLY__ consistent.
42943         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
42944
42945 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
42946
42947         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
42948         of rawmemchr.
42949
42950         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
42951
42952 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
42953
42954         * po/ja.po: Update from translation team.
42955
42956 2011-10-08  Roland McGrath  <roland@hack.frob.com>
42957
42958         * locale/programs/locarchive.c (prepare_address_space): New function.
42959         (create_archive, enlarge_archive, open_archive): Use it.
42960
42961         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
42962         inside [SHARED], where it is used.
42963
42964         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
42965
42966         * nss/getent.c (netgroup_keys): Remove unused variable.
42967         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
42968
42969 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
42970
42971         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
42972         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
42973         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
42974         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
42975         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
42976         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
42977         * math/Makefile (libm-calls): Add s_isinf_ns.
42978         * math/divtc3.c: Use __isinf_nsl instead of isinf.
42979         * math/multc3.c: Likewise.
42980         * math/s_casin.c: Likewise.
42981         * math/s_casinf.c: Likewise.
42982         * math/s_casinl.c: Likewise.
42983         * math/s_ccos.c: Likewise.
42984         * math/s_ccosf.c: Likewise.
42985         * math/s_ccosl.c: Likewise.
42986         * math/s_ctan.c: Likewise.
42987         * math/s_ctanf.c: Likewise.
42988         * math/s_ctanh.c: Likewise.
42989         * math/s_ctanhf.c: Likewise.
42990         * math/s_ctanhl.c: Likewise.
42991         * math/s_ctanl.c: Likewise.
42992         * math/w_fmod.c: Likewise.
42993         * math/w_fmodf.c: Likewise.
42994         * math/w_fmodl.c: Likewise.
42995         * math/w_remainder.c: Likewise.
42996         * math/w_remainderf.c: Likewise.
42997         * math/w_remainderl.c: Likewise.
42998         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
42999         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
43000         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
43001         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
43002         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
43003         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
43004         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
43005         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
43006
43007         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
43008         of the number.
43009         * stdio-common/printf_fphex.c: Likewise.
43010         * stdio-common/printf_size.c: Likewise.
43011
43012         * math/e_exp10.c: Include math_private.h using <...> not "...".
43013         * math/e_exp10f.c: Likewise.
43014         * math/e_exp10l.c: Likewise.
43015         * math/e_exp2l.c: Likewise.
43016         * math/e_j0l.c: Likewise.
43017         * math/e_j1l.c: Likewise.
43018         * math/e_jnl.c: Likewise.
43019         * math/e_lgammal_r.c: Likewise.
43020         * math/e_rem_pio2l.c: Likewise.
43021         * math/e_scalb.c: Likewise.
43022         * math/e_scalbf.c: Likewise.
43023         * math/e_scalbl.c: Likewise.
43024         * math/k_cosl.c: Likewise.
43025         * math/k_sinl.c: Likewise.
43026         * math/k_tanl.c: Likewise.
43027         * math/s_cacoshf.c: Likewise.
43028         * math/s_catan.c: Likewise.
43029         * math/s_catanf.c: Likewise.
43030         * math/s_catanh.c: Likewise.
43031         * math/s_catanhf.c: Likewise.
43032         * math/s_catanhl.c: Likewise.
43033         * math/s_catanl.c: Likewise.
43034         * math/s_ccosh.c: Likewise.
43035         * math/s_ccoshf.c: Likewise.
43036         * math/s_ccoshl.c: Likewise.
43037         * math/s_cexp.c: Likewise.
43038         * math/s_cexpf.c: Likewise.
43039         * math/s_cexpl.c: Likewise.
43040         * math/s_clog.c: Likewise.
43041         * math/s_clog10.c: Likewise.
43042         * math/s_clog10f.c: Likewise.
43043         * math/s_clog10l.c: Likewise.
43044         * math/s_clogf.c: Likewise.
43045         * math/s_clogl.c: Likewise.
43046         * math/s_csin.c: Likewise.
43047         * math/s_csinf.c: Likewise.
43048         * math/s_csinh.c: Likewise.
43049         * math/s_csinhf.c: Likewise.
43050         * math/s_csinhl.c: Likewise.
43051         * math/s_csinl.c: Likewise.
43052         * math/s_csqrt.c: Likewise.
43053         * math/s_csqrtf.c: Likewise.
43054         * math/s_csqrtl.c: Likewise.
43055         * math/s_ctan.c: Likewise.
43056         * math/s_ctanf.c: Likewise.
43057         * math/s_ctanh.c: Likewise.
43058         * math/s_ctanhf.c: Likewise.
43059         * math/s_ctanhl.c: Likewise.
43060         * math/s_ctanl.c: Likewise.
43061         * math/s_ldexp.c: Likewise.
43062         * math/s_ldexpf.c: Likewise.
43063         * math/s_ldexpl.c: Likewise.
43064         * math/s_significand.c: Likewise.
43065         * math/s_significandf.c: Likewise.
43066         * math/s_significandl.c: Likewise.
43067         * math/w_acos.c: Likewise.
43068         * math/w_acosf.c: Likewise.
43069         * math/w_acosh.c: Likewise.
43070         * math/w_acoshf.c: Likewise.
43071         * math/w_acoshl.c: Likewise.
43072         * math/w_acosl.c: Likewise.
43073         * math/w_asin.c: Likewise.
43074         * math/w_asinf.c: Likewise.
43075         * math/w_asinl.c: Likewise.
43076         * math/w_atan2.c: Likewise.
43077         * math/w_atan2f.c: Likewise.
43078         * math/w_atan2l.c: Likewise.
43079         * math/w_atanh.c: Likewise.
43080         * math/w_atanhf.c: Likewise.
43081         * math/w_atanhl.c: Likewise.
43082         * math/w_cosh.c: Likewise.
43083         * math/w_coshf.c: Likewise.
43084         * math/w_coshl.c: Likewise.
43085         * math/w_dremf.c: Likewise.
43086         * math/w_exp10.c: Likewise.
43087         * math/w_exp10f.c: Likewise.
43088         * math/w_exp10l.c: Likewise.
43089         * math/w_exp2.c: Likewise.
43090         * math/w_exp2f.c: Likewise.
43091         * math/w_fmod.c: Likewise.
43092         * math/w_fmodf.c: Likewise.
43093         * math/w_fmodl.c: Likewise.
43094         * math/w_hypot.c: Likewise.
43095         * math/w_hypotf.c: Likewise.
43096         * math/w_hypotl.c: Likewise.
43097         * math/w_j0.c: Likewise.
43098         * math/w_j0f.c: Likewise.
43099         * math/w_j0l.c: Likewise.
43100         * math/w_j1.c: Likewise.
43101         * math/w_j1f.c: Likewise.
43102         * math/w_j1l.c: Likewise.
43103         * math/w_jn.c: Likewise.
43104         * math/w_jnf.c: Likewise.
43105         * math/w_jnl.c: Likewise.
43106         * math/w_lgamma.c: Likewise.
43107         * math/w_lgamma_r.c: Likewise.
43108         * math/w_lgammaf.c: Likewise.
43109         * math/w_lgammaf_r.c: Likewise.
43110         * math/w_lgammal.c: Likewise.
43111         * math/w_lgammal_r.c: Likewise.
43112         * math/w_log.c: Likewise.
43113         * math/w_log10.c: Likewise.
43114         * math/w_log10f.c: Likewise.
43115         * math/w_log10l.c: Likewise.
43116         * math/w_log2.c: Likewise.
43117         * math/w_log2f.c: Likewise.
43118         * math/w_log2l.c: Likewise.
43119         * math/w_logf.c: Likewise.
43120         * math/w_logl.c: Likewise.
43121         * math/w_pow.c: Likewise.
43122         * math/w_powf.c: Likewise.
43123         * math/w_powl.c: Likewise.
43124         * math/w_remainder.c: Likewise.
43125         * math/w_remainderf.c: Likewise.
43126         * math/w_remainderl.c: Likewise.
43127         * math/w_scalb.c: Likewise.
43128         * math/w_scalbf.c: Likewise.
43129         * math/w_scalbl.c: Likewise.
43130         * math/w_sinh.c: Likewise.
43131         * math/w_sinhf.c: Likewise.
43132         * math/w_sinhl.c: Likewise.
43133         * math/w_sqrt.c: Likewise.
43134         * math/w_sqrtf.c: Likewise.
43135         * math/w_sqrtl.c: Likewise.
43136         * math/w_tgamma.c: Likewise.
43137         * math/w_tgammaf.c: Likewise.
43138         * math/w_tgammal.c: Likewise.
43139
43140         * po/ja.po: Update from translation team.
43141
43142 2011-09-29  Andreas Jaeger  <aj@suse.de>
43143
43144         [BZ #13179]
43145         * sunrpc/netname.c (netname2host): Fix logic.
43146
43147         [BZ #6779]
43148         [BZ #6783]
43149         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
43150         correctly.
43151         * math/w_remainder.c (__remainder): Likewise.
43152         * math/w_remainderf.c (__remainderf): Likewise.
43153         * math/libm-test.inc (remainder_test): Add test cases.
43154
43155 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43156
43157         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
43158         sdiv_qrnnd.
43159
43160 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
43161
43162         * string/test-memcmp.c: Avoid unncessary #defines.
43163         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
43164
43165 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43166
43167         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
43168         Use new sse2 version for core i3 - i7 as it's faster
43169         than sse42 version.
43170         (bit_Prefer_PMINUB_for_stringop): New.
43171         * sysdeps/x86_64/rawmemchr.S: Update.
43172         Replace with faster SSE2 version.
43173         * sysdeps/x86_64/memrchr.S: New file.
43174         * sysdeps/x86_64/memchr.S: Update.
43175         Replace with faster SSE2 version.
43176
43177 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
43178
43179         * elf/dl-load.c (lose): Add cast to avoid warning.
43180
43181 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
43182
43183         * po/ca.po: Update from translation team.
43184
43185         * inet/getnetgrent_r.c: Hook up nscd.
43186         * nscd/Makefile (routines): Add nscd_netgroup.
43187         (nscd-modules): Add netgroupcache.
43188         (CFLAGS-netgroupcache.c): Define.
43189         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
43190         (cache_search): Add const to second parameter.
43191         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
43192         INNETGR.
43193         (dbs): Add netgrdb entry.
43194         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
43195         (verify_persistent_db): Handle netgrdb.
43196         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
43197         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
43198         GETFDNETGR.
43199         (netgroup_response_header): Define.
43200         (innetgroup_response_header): Define.
43201         (datahead): Add netgroup_response_header and innetgroup_response_header
43202         elements.
43203         * nscd/nscd.conf: Add entries for netgroup cache.
43204         * nscd/nscd.h (dbtype): Add netgrdb.
43205         (_PATH_NSCD_NETGROUP_DB): Define.
43206         (netgroup_iov_disabled): Declare.
43207         (xmalloc, xcalloc, xrealloc): Move declarations here.
43208         (cache_search): Adjust prototype.
43209         Add netgroup-related prototypes.
43210         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
43211         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
43212         (__nscd_innetgr): Declare.
43213         * nscd/selinux.c (perms): Use access_vector_t as element type and
43214         add netgroup-related initializers.
43215         * nscd/netgroupcache.c: New file.
43216         * nscd/nscd_netgroup.c: New file.
43217         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
43218         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
43219         For four parameters use innetgr.
43220         * nss/nss_files/files-init.c: Add definition and callback for netgr.
43221         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
43222         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
43223         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
43224
43225         * nscd/connections.c (register_traced_file): Don't register file
43226         for disabled databases.
43227
43228 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
43229
43230         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
43231
43232         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
43233         from tree and freeing node.
43234
43235 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
43236
43237         * nss/nsswitch.c (__nss_database_lookup): Handle
43238         nss_parse_service_list out of memory case.
43239
43240 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
43241
43242         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
43243         out of memory case.
43244
43245 2011-10-04  Andreas Schwab  <schwab@redhat.com>
43246
43247         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
43248         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
43249         pass it down.
43250         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
43251         elf_machine_rela, elf_machine_lazy_rel.
43252         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
43253         (ELF_DYNAMIC_DO_REL): Likewise.
43254         (ELF_DYNAMIC_DO_RELA): Likewise.
43255         (ELF_DYNAMIC_RELOCATE): Likewise.
43256         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
43257         to ELF_DYNAMIC_DO_REL.
43258         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
43259         (dl_main): In trace mode always set __RTLD_NOIFUNC.
43260         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
43261         elf_machine_rela.
43262         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
43263         skip_ifunc, don't call ifunc function if non-zero.
43264         (elf_machine_rela): Likewise.
43265         (elf_machine_lazy_rel): Likewise.
43266         (elf_machine_lazy_rela): Likewise.
43267         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
43268         (elf_machine_lazy_rel): Likewise.
43269         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
43270         Likewise.
43271         (elf_machine_lazy_rel): Likewise.
43272         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
43273         Likewise.
43274         (elf_machine_lazy_rel): Likewise.
43275         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
43276         (elf_machine_lazy_rel): Likewise.
43277         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
43278         (elf_machine_lazy_rel): Likewise.
43279         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
43280         (elf_machine_lazy_rel): Likewise.
43281         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
43282         (elf_machine_lazy_rel): Likewise.
43283         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
43284         (elf_machine_lazy_rel): Likewise.
43285         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
43286         (elf_machine_lazy_rel): Likewise.
43287
43288 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
43289
43290         * nss/nss_files/files-init.c (_nss_files_init): Use static
43291         initialization for all the *_traced_file variables.
43292
43293 2011-09-28  Andreas Schwab  <schwab@redhat.com>
43294
43295         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
43296
43297 2011-09-27  Roland McGrath  <roland@hack.frob.com>
43298
43299         [BZ #13226]
43300         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
43301
43302 2011-09-27  Andreas Schwab  <schwab@redhat.com>
43303
43304         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
43305         Reread the line before reparsing it.
43306
43307 2011-09-26  Andreas Schwab  <schwab@redhat.com>
43308
43309         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
43310
43311 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
43312             Maxim Kuvyrkov  <maxim@codesourcery.com>
43313             Joseph Myers  <joseph@codesourcery.com>
43314
43315         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
43316         if needed for __stack_chk_guard.
43317
43318 2011-09-19  Roland McGrath  <roland@hack.frob.com>
43319
43320         * sysdeps/posix/spawni.c (script_execute): Always define it.
43321         It will be optimized away if unused.
43322         (maybe_script_execute): New function.
43323         (__spawni): Call it.
43324
43325         * Makerules: Don't include tls.make.
43326         (config-tls): Always set to thread.
43327         * tls.make.c: File removed.
43328
43329 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
43330
43331         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
43332         * config.make.in (CPPFLAGS-config): New substituted variable.
43333
43334 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
43335
43336         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
43337
43338         [BZ #13192]
43339         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
43340         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
43341
43342 2011-09-15  Roland McGrath  <roland@hack.frob.com>
43343
43344         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
43345         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
43346         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
43347         (CALL_FAIL): Likewise.
43348         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
43349         (CALL_FAIL): Macro removed.
43350         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
43351
43352 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
43353
43354         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
43355         for __FINITE_MATH_ONLY__ == 1.
43356
43357 2011-09-15  Andreas Schwab  <schwab@redhat.com>
43358
43359         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
43360         __ieee754_sqrt instead of sqrt.
43361         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
43362         __ieee754_sqrtf instead of sqrtf.
43363         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
43364         __floorf instead of floorf.
43365         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
43366         __floorf, __truncf instead of floorf, truncf.
43367
43368 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
43369
43370         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
43371
43372         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
43373         __extern_always_inline.
43374         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
43375         32-bit.
43376
43377 2011-09-14  Andreas Schwab  <schwab@redhat.com>
43378
43379         * elf/rtld.c (dl_main): Also relocate in dependency order when
43380         doing symbol dependency testing.
43381
43382 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
43383
43384         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
43385         Always define `refsym'.
43386
43387 2011-09-13  Andreas Schwab  <schwab@redhat.com>
43388
43389         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
43390         (__FD_ELT): Renamed from __FDELT.
43391         * misc/bits/select2.h (__FD_ELT): Likewise.
43392         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
43393         __FD_MASK instead of __FDELT, __FDMASK.
43394         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
43395         Likewise.
43396         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
43397         Likewise.
43398
43399         * elf/Makefile (gen-ldd): Fix pattern.
43400
43401         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
43402         (init_tls): Likewise.
43403
43404 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
43405
43406         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
43407
43408 2011-09-12  Andreas Schwab  <schwab@redhat.com>
43409
43410         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
43411         `struct cmsghdr *' instead of `void *'.
43412         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
43413         Likewise.
43414
43415 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
43416
43417         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
43418         if non-absolute.
43419         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
43420         ldd_rewrite_script.
43421
43422 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
43423
43424         * configure.in: Remove --with-tls option.
43425         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
43426         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
43427         out in case it is missing.
43428         * sysdeps/ia64/elf/configure.in: Likewise.
43429         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
43430         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
43431         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
43432         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
43433         * sysdeps/sh/elf/configure.in: Likewise.
43434         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
43435         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
43436         * sysdeps/x86_64/elf/configure.in: Likewise.
43437         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
43438         * sysdeps/mach/hurd/tls.h: Likewise.
43439
43440         [BZ #13067]
43441         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
43442
43443         [BZ #13090]
43444         * configure.in: Fix use of AC_INIT.
43445
43446         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
43447
43448 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
43449
43450         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
43451         __set_errno.
43452         * malloc/hooks.c: Likewise.
43453
43454         [BZ #11929]
43455         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
43456         variables statically.
43457         (narenas): Initialize.
43458         (list_lock): Initialize.
43459         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
43460         initializtion of main_arena and list_lock.  Small cleanups.
43461         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
43462         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
43463         Add initializers to main_arena and mp_.
43464         (malloc_state): Remove pagesize member.  Change all users to use
43465         GLRO(dl_pagesize).
43466
43467         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
43468         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
43469         is always initialized.
43470
43471         * malloc/malloc.c: Removed unused configurations and dead code.
43472         * malloc/arena.c: Likewise.
43473         * malloc/hooks.c: Likewise.
43474         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
43475
43476         * include/tls.h: Removed.  USE___THREAD must always be defined.
43477         * bits/libc-tsd.h: Don't handle !USE___THREAD.
43478         * elf/dl-libc.c: Likewise.
43479         * elf/dl-tsd.c: Likewise.
43480         * include/errno.h: Likewise.
43481         * include/netdb.h: Likewise.
43482         * include/resolv.h: Likewise.
43483         * inet/herrno-loc.c: Likewise.
43484         * inet/herrno.c: Likewise.
43485         * malloc/arena.c: Likewise.
43486         * malloc/hooks.c: Likewise.
43487         * malloc/malloc.c: Likewise.
43488         * resolv/res-state.c: Likewise.
43489         * resolv/res_libc.c: Likewise.
43490         * sysdeps/i386/dl-machine.h: Likewise.
43491         * sysdeps/ia64/dl-machine.h: Likewise.
43492         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
43493         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
43494         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
43495         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
43496         * sysdeps/sh/dl-machine.h: Likewise.
43497         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
43498         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
43499         * sysdeps/unix/i386/sysdep.S: Likewise.
43500         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
43501         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
43502         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
43503         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
43504         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
43505         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
43506         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
43507         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
43508         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
43509         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
43510         * sysdeps/unix/x86_64/sysdep.S: Likewise.
43511         * sysdeps/x86_64/dl-machine.h: Likewise.
43512         * tls.make.c: Likewise.
43513
43514         * configure.in: Remove --with-__thread option.  Make tests for
43515         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
43516         tls_model attribute fail if no support is available.  Remove
43517         USE_IN_LIBIO.
43518         * Makeconfig: Adjust for dropped configure option.  All features are
43519         now mandatory.
43520         * Makerules: Likewise.
43521         * Versions.def: Likewise.
43522         * argp/argp-fmtstream.c: Likewise.
43523         * argp/argp-fmtstream.h: Likewise.
43524         * argp/argp-help.c: Likewise.
43525         * assert/assert.c: Likewise.
43526         * config.h.in: Likewise.
43527         * config.make.in: Likewise.
43528         * configure: Likewise.
43529         * configure.in: Likewise.
43530         * csu/Versions: Likewise.
43531         * csu/init.c: Likewise.
43532         * elf/tst-audit2.c: Likewise.
43533         * elf/tst-tls10.c: Likewise.
43534         * elf/tst-tls10.h: Likewise.
43535         * elf/tst-tls11.c: Likewise.
43536         * elf/tst-tls12.c: Likewise.
43537         * elf/tst-tls14.c: Likewise.
43538         * elf/tst-tlsmod11.c: Likewise.
43539         * elf/tst-tlsmod12.c: Likewise.
43540         * elf/tst-tlsmod13.c: Likewise.
43541         * elf/tst-tlsmod13a.c: Likewise.
43542         * elf/tst-tlsmod14a.c: Likewise.
43543         * elf/tst-tlsmod15b.c: Likewise.
43544         * elf/tst-tlsmod16a.c: Likewise.
43545         * elf/tst-tlsmod16b.c: Likewise.
43546         * elf/tst-tlsmod7.c: Likewise.
43547         * elf/tst-tlsmod8.c: Likewise.
43548         * elf/tst-tlsmod9.c: Likewise.
43549         * gmon/gmon.c: Likewise.
43550         * grp/fgetgrent_r.c: Likewise.
43551         * grp/putgrent.c: Likewise.
43552         * hurd/fopenport.c: Likewise.
43553         * include/libc-symbols.h: Likewise.
43554         * include/tls.h: Likewise.
43555         * intl/gettextP.h: Likewise.
43556         * intl/loadinfo.h: Likewise.
43557         * locale/global-locale.c: Likewise.
43558         * locale/localeinfo.h: Likewise.
43559         * mach/devstream.c: Likewise.
43560         * malloc/arena.c: Likewise.
43561         * malloc/set-freeres.c: Likewise.
43562         * misc/err.c: Likewise.
43563         * misc/getttyent.c: Likewise.
43564         * misc/mntent_r.c: Likewise.
43565         * posix/getopt.c: Likewise.
43566         * posix/wordexp.c: Likewise.
43567         * pwd/fgetpwent_r.c: Likewise.
43568         * resolv/Versions: Likewise.
43569         * resolv/res_hconf.c: Likewise.
43570         * shadow/fgetspent_r.c: Likewise.
43571         * shadow/putspent.c: Likewise.
43572         * stdio-common/printf_fphex.c: Likewise.
43573         * stdio-common/tmpfile.c: Likewise.
43574         * stdlib/abort.c: Likewise.
43575         * stdlib/fmtmsg.c: Likewise.
43576         * sunrpc/auth_unix.c: Likewise.
43577         * sunrpc/clnt_perr.c: Likewise.
43578         * sunrpc/clnt_tcp.c: Likewise.
43579         * sunrpc/clnt_udp.c: Likewise.
43580         * sunrpc/clnt_unix.c: Likewise.
43581         * sunrpc/openchild.c: Likewise.
43582         * sunrpc/svc_simple.c: Likewise.
43583         * sunrpc/svc_tcp.c: Likewise.
43584         * sunrpc/svc_udp.c: Likewise.
43585         * sunrpc/svc_unix.c: Likewise.
43586         * sunrpc/xdr.c: Likewise.
43587         * sunrpc/xdr_array.c: Likewise.
43588         * sunrpc/xdr_rec.c: Likewise.
43589         * sunrpc/xdr_ref.c: Likewise.
43590         * sunrpc/xdr_stdio.c: Likewise.
43591
43592 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43593
43594         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
43595
43596 2011-07-03  Andreas Jaeger  <aj@suse.de>
43597
43598         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
43599         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
43600         regenerate with gen-libm-tests.pl.
43601
43602 2010-05-12  Petr Baudis  <pasky@suse.cz>
43603
43604         [BZ #11589]
43605         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
43606         around j0() zero points by switching to j1().
43607         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
43608         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
43609         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
43610         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
43611
43612 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43613
43614         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
43615         instead of 0.
43616         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
43617         instead of 0.
43618         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
43619         Patch in part by Pavel Roskin <proski@gnu.org>.
43620
43621         [BZ #13138]
43622         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
43623         realloc.
43624         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
43625         Free memory block if necessary.
43626
43627         [BZ #12847]
43628         * libio/genops.c (INTDEF): For string streams the _lock pointer can
43629         be NULL.  Don't lock in this case.
43630
43631 2011-09-09  Roland McGrath  <roland@hack.frob.com>
43632
43633         * elf/elf.h (ELFOSABI_GNU): New macro.
43634         (ELFOSABI_LINUX): Define to that.
43635
43636 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
43637
43638         * string/strncat.c (strncat): Undef the symbol in case it has been
43639         defined in bits/string.h.
43640
43641 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
43642
43643         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
43644
43645         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
43646         link map.
43647
43648 2011-08-17  Andreas Jaeger  <aj@suse.de>
43649
43650         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
43651
43652 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
43653             Ian Lance Taylor  <iant@google.com>
43654
43655         * math/libm-test.inc (lround_test): New testcase.
43656         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
43657
43658 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
43659
43660         * Makefile: Remove support for automatic cvs check-ins.
43661         * Makerules: Likewise.
43662         * config.make.in: Likewise.
43663         * configure.in: Likewise.
43664         * intl/Makefile: Likewise.
43665         * locale/Makefile: Likewise.
43666         * po/Makefile: Likewise.
43667         * posix/Makefile: Likewise.
43668         * sysdeps/gnu/Makefile: Likewise.
43669         * sysdeps/mach/hurd/Makefile: Likewise.
43670         * sysdeps/sparc/sparc32/Makefile: Likewise.
43671
43672         [BZ #13118]
43673         * posix/Makefile (bug-regex32-ENV): Define.
43674         Patch by John Stanley <jpsinthemix@verizon.net>.
43675
43676         * misc/Makefile (headers): Add bits/select2.h.
43677         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
43678         * misc/bits/select2.h: New file.
43679         * include/bits/select2.h: New file.
43680         * debug/Makefile (routines): Add fdelt_chk.
43681         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
43682         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
43683         FD_ISSET.
43684         * debug/fdelt_chk.c: New file.
43685
43686         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
43687         * wcsmbs/test-wmemcmp.c: Likewise.
43688         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
43689         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
43690
43691 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43692
43693         * string/Makefile (strop-tests): Add memcmp.
43694         * string/test-wmemcmp.c: New file.
43695         * string/test-memcmp.c: Add wmemcmp support.
43696
43697 2011-09-08  Roland McGrath  <roland@hack.frob.com>
43698
43699         [BZ #13153]
43700         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
43701         2011-07-19 change.
43702
43703         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
43704         garbage value in a __mach_port_mod_refs call in the cases of the
43705         task-self and thread-self ports.
43706
43707 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43708
43709         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
43710
43711 2011-09-08  Andreas Schwab  <schwab@redhat.com>
43712
43713         * elf/dl-load.c (lose): Check for non-null L.
43714
43715 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43716
43717         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
43718
43719         * elf/dl-libc.c (dlerror_run): Pass back error code from
43720         dl_catch_error.
43721
43722         [BZ #13123]
43723         * elf/dl-load.c (lose): Free l_origin if it is valid.
43724
43725         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
43726         names.
43727         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
43728         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43729         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
43730         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43731         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
43732         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
43733
43734 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
43735
43736         * sysdeps/powerpc/fpu/e_hypot.c: New file.
43737         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
43738         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
43739         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
43740         * sysdeps/powerpc/fpu/k_cosf.c: New file.
43741         * sysdeps/powerpc/fpu/k_sinf.c: New file.
43742         * sysdeps/powerpc/fpu/s_cosf.c: New file.
43743         * sysdeps/powerpc/fpu/s_sinf.c: New file.
43744         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
43745         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
43746
43747 2011-08-15  Alan Modra  <amodra@gmail.com>
43748
43749         [BZ #13092]
43750         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
43751         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
43752         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
43753         ppc_mcount to static-only-routines.
43754         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
43755         __mcount_internal.
43756         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
43757         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
43758
43759 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
43760
43761         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
43762         for finite and infinity parameters.
43763
43764 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
43765
43766         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
43767         and add nop instructions for throughput optimization.
43768         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43769
43770 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
43771
43772         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
43773         aligned copy for power7 with vector-scalar instructions.
43774         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43775
43776 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
43777
43778         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
43779         AVX check.
43780
43781 2011-09-07  Andreas Schwab  <schwab@redhat.com>
43782
43783         [BZ #13144]
43784         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
43785         last change.
43786
43787 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
43788
43789         * sysdeps/unix/sysv/linux/x86_64/init-first.c
43790         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
43791         syscall wrapper around clock_gettime in __vdso_clock_gettime.
43792         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
43793         clock_gettime.
43794
43795 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43796
43797         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
43798         Forgot to demangle the pointer.
43799
43800         * sysdeps/i386/sysdep.h: Define atom_text_section.
43801         * sysdeps/x86_64/sysdep.h: Likewise.
43802         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
43803         section with atom_text_section.
43804         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
43805         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
43806         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
43807         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43808         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
43809
43810         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
43811         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
43812         already be defined.  Change to take two parameters and don't assign
43813         result to variable.  Adjust all users.
43814         Define INTERNAL_GETTIME if not already defined.
43815         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
43816         call.
43817         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
43818         HAVE_CLOCK_GETTIME_VSYSCALL.
43819         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
43820
43821         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
43822         gettimeofday vsyscall, just use time.
43823
43824 2011-09-06  Andreas Schwab  <schwab@redhat.com>
43825
43826         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
43827         <errno.h>.
43828
43829 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
43830
43831         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
43832         syscall on x86-64.
43833         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
43834         syscall.
43835         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
43836         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
43837         syscall if possible.
43838
43839 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43840
43841         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
43842         e_ident.  Don't pass to find_mapsXX.
43843         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
43844
43845 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43846
43847         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43848         strchr-sse2-no-bsf strrchr-sse2-no-bsf
43849         * sysdeps/x86_64/multiarch/strchr.S: Update.
43850         Check bit_slow_BSF bit.
43851         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
43852         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
43853         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
43854
43855 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43856
43857         [BZ #13134]
43858         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
43859         before glibc 2.15.
43860         (tryshell): Define.
43861         (__spawni): Change last parameter to be flag.  Test
43862         SPAWN_XFLAGS_USE_PATH flag to use path or not.
43863         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
43864         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
43865         * posix/spawni.c: Likewise.
43866         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
43867         * posix/spawnp.c: Likewise.  Change normal version to use
43868         SPAWN_XFLAGS_USE_PATH.
43869         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
43870         SPAWN_XFLAGS_TRY_SHELL.
43871
43872         [BZ #13150]
43873         * posix/glob.h: Remove gcc 1.x support.
43874
43875         [BZ #13068]
43876         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
43877
43878 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43879
43880         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43881         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
43882         strrchr-sse2-bsf
43883         * sysdeps/i386/i686/multiarch/strchr.S: New file.
43884         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
43885         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
43886         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
43887         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
43888         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
43889
43890 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43891
43892         * sysdeps/x86_64/wcscmp.S: New file.
43893
43894         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
43895         wcscmp-c wcscmp-sse2
43896         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
43897         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
43898         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
43899         * wcsmbs/wcscmp.c: Allow renaming.
43900
43901 2011-09-05  David S. Miller  <davem@davemloft.net>
43902
43903         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
43904         stack slot, rather than the struct return pointer slot.
43905         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
43906         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
43907         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
43908         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
43909
43910 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
43911
43912         * po/ja.po: Update from translation team.
43913
43914         [BZ #13144]
43915         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
43916         kernel in 64-bit binaries.
43917
43918 2011-09-01  David S. Miller  <davem@davemloft.net>
43919
43920         * elf/elf.h (HWCAP_SPARC_*): Move to..
43921         * sysdeps/sparc/sysdep.h: this new file and add new values.
43922         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
43923         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
43924         _DL_HWCAP_COUNT to 24.
43925         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
43926         entries.
43927         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
43928         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
43929         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
43930         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
43931         instead of magic constants.
43932         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
43933
43934 2011-08-31  David S. Miller  <davem@davemloft.net>
43935
43936         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
43937         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
43938         Reimplement to do errno handling inline.
43939         (SYSCALL_ERROR_HANDLER): New macro.
43940         (__SYSCALL_STRING): Do not do errno handling in asm.
43941         (__CLONE_SYSCALL_STRING): Delete.
43942         (__INTERNAL_SYSCALL_STRING): Delete.
43943         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
43944         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
43945         (PSEUDO): Reimplement to do errno handling inline.
43946         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
43947         (SYSCALL_ERROR_HANDLER): New macro.
43948         (__SYSCALL_STRING): Do not do errno handling in asm.
43949         (__CLONE_SYSCALL_STRING): Delete.
43950         (__INTERNAL_SYSCALL_STRING): Delete.
43951         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
43952         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
43953         i386.
43954         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
43955         (inline_syscall*): Add 'err' argument.
43956         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
43957         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
43958         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
43959         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
43960
43961         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
43962         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
43963
43964 2011-08-30  Andreas Schwab  <schwab@redhat.com>
43965
43966         * elf/rtld.c (dl_main): Relocate objects in dependency order.
43967
43968 2011-08-29  Jiri Olsa <jolsa@redhat.com>
43969
43970         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
43971         directive.
43972
43973 2011-08-24  David S. Miller  <davem@davemloft.net>
43974
43975         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
43976
43977 2011-08-24  Andreas Schwab  <schwab@redhat.com>
43978
43979         * elf/Makefile: Add rules to build and run unload8 test.
43980         * elf/unload8.c: New file.
43981         * elf/unload8mod1.c: New file.
43982         * elf/unload8mod1x.c: New file.
43983         * elf/unload8mod2.c: New file.
43984         * elf/unload8mod3.c: New file.
43985
43986         * elf/dl-close.c (_dl_close_worker): Reset private search list if
43987         it wasn't used.
43988
43989 2011-08-23  David S. Miller  <davem@davemloft.net>
43990
43991         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
43992         subtract stack bias.
43993         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
43994         %sp not %fp in calculations.
43995         (_JMPBUF_UNWINDS_ADJ): Likewise.
43996
43997         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
43998         (aio_suspend): Call it to force an exception region around the
43999         AIO_MISC_WAIT() invocation.
44000
44001 2011-08-23  Andreas Schwab  <schwab@redhat.com>
44002
44003         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
44004         backslash.
44005
44006 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
44007
44008         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
44009         protection macro.
44010         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
44011         and <dl-machine.h>.
44012         (Elf64_FuncDesc): Remove.
44013
44014 2011-08-22  David S. Miller  <davem@davemloft.net>
44015
44016         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
44017         sigaltstack check, add missing cfi directives.
44018         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
44019         missing cfi directives, and sigaltstack handling.
44020
44021 2011-08-16  Andreas Schwab  <schwab@redhat.com>
44022
44023         [BZ #11724]
44024         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
44025         object is seen twice.
44026         * elf/dl-fini.c (_dl_sort_fini): Likewise.
44027
44028         * elf/Makefile (distribute): Add tst-initorder2.c.
44029         (tests): Add tst-initorder2.
44030         (modules-names): Add tst-initorder2a tst-initorder2b
44031         tst-initorder2c tst-initorder2d.  Add rules to build them.
44032         ($(objpfx)tst-initorder2.out): New rule.
44033         * elf/tst-initorder2.c: New file.
44034         * elf/tst-initorder2.exp: New file.
44035
44036 2011-08-22  Andreas Schwab  <schwab@redhat.com>
44037
44038         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
44039
44040         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
44041         dependencies back to end of function.
44042
44043         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
44044         $(elfobjdir)/ld.so.
44045
44046 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
44047
44048         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
44049         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
44050         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
44051         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
44052         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
44053         of __vdso_gettimeofday.
44054         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
44055         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
44056         attribute_hidden.
44057         (_libc_vdso_platform_setup): Remove initialization of
44058         __vdso_gettimeofday and __vdso_time.
44059
44060 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
44061
44062         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
44063         and fgetc_unlocked.
44064         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
44065         getc_unlocked.
44066
44067         * elf/dl-open.c (add_to_global): Report additions to the global scope
44068         for LD_DEBUG=scopes.
44069         (dl_open_worker): Also print scope of newly loaded dependencies.
44070         (_dl_show_scope): Indicate if there is no scope.
44071
44072         [BZ #13114]
44073         * stdio-common/Makefile (tests): Add bug24.
44074         * stdio-common/bug24.c: New file.
44075
44076 2011-08-19  Andreas Jaeger  <aj@suse.de>
44077
44078         [BZ #13114]
44079         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
44080         non-existant file when using close-on-exec mode.
44081
44082 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
44083
44084         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
44085         the very first instruction.
44086
44087         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
44088         the CFI state in the end.
44089         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
44090         inclusion of dl-trampoline.h.
44091         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
44092
44093 2011-08-19  Andreas Schwab  <schwab@redhat.com>
44094
44095         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
44096         expectations for long double.
44097
44098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
44099         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
44100
44101 2011-08-14  David S. Miller  <davem@davemloft.net>
44102
44103         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
44104         artificual limit depends upon the system page size.
44105
44106 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
44107
44108         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
44109         * resolv/Makefile: Define CFLAGS-libresolv.
44110
44111 2011-08-17  Andreas Schwab  <schwab@redhat.com>
44112
44113         * nss/makedb.c (compute_tables): Make variables used in nested
44114         function static.
44115
44116 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
44117
44118         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
44119         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
44120         if buffer was too small.
44121
44122         * elf/pldd.c (main): Attach to all threads in the process.
44123         Rewrite /proc handling to use *at functions.
44124
44125 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
44126
44127         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
44128         specifies first scope to show.
44129         (dl_open_worker): Update callers.  Move printing scope of new
44130         object to before the relocation.
44131         * elf/rtld.c (dl_main): Update _dl_show_scope call.
44132         * sysdeps/generic/ldsodefs.h: Update declaration.
44133
44134         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
44135         string for the scope number.
44136
44137 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
44138
44139         * nscd/servicescache.c (cache_addserv): Make sure written is always
44140         initialized.
44141
44142 2011-08-14  Roland McGrath  <roland@hack.frob.com>
44143
44144         * sysdeps/i386/i486/bits/atomic.h
44145         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
44146         statement expression, so as to suppress "set but not used" warning.
44147         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
44148
44149         * string/strncat.c (STRNCAT): Use prototype definition.
44150
44151         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
44152         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
44153         -Iprograms here.
44154         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
44155         (localedef-modules): Add localedef.
44156         (locale-modules): Add locale.
44157
44158         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
44159         * elf/rtld.c (dl_main): Invert order of assignment in last change,
44160         to avoid a warning.
44161
44162 2011-08-14  David S. Miller  <davem@davemloft.net>
44163
44164         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
44165         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
44166
44167 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
44168
44169         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
44170         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
44171         * elf/rtld.c (dl_main): Set l_name of vDSO.
44172         Call _dl_show_scope when DL_DEBUG_SCOPES.
44173         (process_dl_debug): Recognize scopes flag and also set it for all.
44174         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
44175         Declare _dl_show_scope.
44176
44177         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
44178         (do_dlopen): Pass caller_dlopen to dl_open.
44179         (__libc_dlopen_mode): Initialize caller_dlopen.
44180
44181         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
44182         of libc.  Make tolower call locale-independent.  Optimize a bit by
44183         using isdigit instead of isalnum.
44184         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
44185
44186 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
44187
44188         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
44189         was a dependency or dynamically loaded.
44190
44191 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
44192
44193         * intl/l10nflist.c: Allow architecture-specific pop function.
44194         * sysdeps/x86_64/l10nflist.c: New file.
44195
44196         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
44197         classification.
44198
44199 2011-08-10  Andreas Schwab  <schwab@redhat.com>
44200
44201         * include/dirent.h: Add libc_hidden_proto for scandirat and
44202         scandirat64.  Don't declare __scandirat64.
44203         * dirent/scandirat.c: Add libc_hidden_def.
44204         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
44205         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
44206
44207 2011-08-10  David S. Miller  <davem@davemloft.net>
44208
44209         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
44210         enum.
44211         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44212         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44213         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44214
44215 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
44216
44217         * Versions.def [libc]: Add GLIBC_2.15.
44218         * dirent/Makefile (routines): Add scandirat and scandirat64.
44219         * dirent/Versions [libc]: Export scandirat and scandirat64 for
44220         GLIBC_2.15.
44221         * dirent/dirent.h: Declare scandirat and scandirat64.
44222         * dirent/scandirat.c: New file.
44223         * dirent/scandirat64.c: New file.
44224         * sysdeps/wordsize-64/scandirat.c: New file.
44225         * sysdeps/wordsize-64/scandirat64.c: New file.
44226         * dirent/opendir.c: Define opendirat.
44227         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
44228         using scandirat.
44229         * dirent/scandir64.c: Adjust for scandir.c change.
44230         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
44231         __scandirat64, and __scandir_cancel_handler.
44232         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
44233         additional parameter and use openat instead of open (outside of ld.so).
44234         Add new __opendir as wrapper around __opendirat.
44235         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
44236         here without requiring old scandirat implementation.
44237
44238 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
44239
44240         * dirent/scandir.c (cancel_handler): Renamed to
44241         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
44242         defined.  Adjust users.
44243         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
44244         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
44245
44246 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
44247
44248         * string/test-string.h (IMPL): Use __STRING to expand name and then
44249         stringify it.
44250
44251         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
44252         of cleanups.
44253
44254 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
44255
44256         * string/Makefile: Update.
44257         (strop-tests): Append strncat.
44258         * string/test-wcscmp.c: New file.
44259         New comprehensive test for wcscmp.
44260         * string/test-strcmp.c: Update.
44261         (WIDE): New define.
44262
44263 2011-07-22  Andreas Schwab  <schwab@redhat.com>
44264
44265         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
44266         line.
44267
44268 2011-07-26  Andreas Schwab  <schwab@redhat.com>
44269
44270         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
44271         encoding to ACE if AI_IDN.
44272
44273 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
44274
44275         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
44276         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
44277
44278 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44279
44280         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
44281         Fix overflow bug in strncat.
44282         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
44283
44284         * string/test-strncat.c: Update.
44285         Add new tests for checking overflow bugs.
44286
44287 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44288
44289         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44290         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
44291         * sysdeps/i386/i686/multiarch/strcat.S: New file.
44292         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
44293         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
44294         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
44295         * sysdeps/i386/i686/multiarch/strncat.S: New file.
44296         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
44297         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
44298
44299         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
44300         (USE_AS_STRCAT): Define.
44301         Add strcat and strncat support.
44302         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
44303
44304 2011-07-25  Andreas Schwab  <schwab@redhat.com>
44305
44306         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
44307         __n bigger than INT_MAX+1.
44308         (__strncmp_g): Likewise.
44309
44310 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
44311
44312         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
44313         * libio/stido.h: Likewise.
44314
44315         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
44316         (AF_NFC): Define.
44317         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
44318         (AF_NFC): Define.
44319
44320         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
44321         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44322         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44323         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
44324         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44325
44326         [BZ #13021]
44327         * scripts/test-installation.pl: Don't expect libnss_test1 to be
44328         installed.
44329
44330         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
44331         typo.
44332         (_dl_x86_64_save_sse): Likewise.
44333
44334 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
44335
44336         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
44337         OSXSAVE.
44338         (_dl_x86_64_save_sse): Likewise.
44339
44340         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
44341
44342         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
44343
44344 2011-07-21  Andreas Schwab  <schwab@redhat.com>
44345
44346         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
44347         change.
44348         (_dl_x86_64_save_sse): Use correct AVX check.
44349
44350 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
44351
44352         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
44353         bug in strncpy/strncat.
44354         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
44355
44356 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
44357
44358         * string/tester.c (test_strcat): Add tests for different alignments
44359         of source and destination.
44360         (test_strncat): Likewise.
44361
44362 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
44363
44364         [BZ #12852]
44365         * posix/glob.c (glob): Check passed in values before using them in
44366         expressions to avoid some overflows.
44367         (glob_in_dir): Likewise.
44368
44369         [BZ #13007]
44370         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
44371         check for AVX enablement so that we don't crash with old kernels and
44372         new hardware.
44373         * elf/tst-audit4.c: Add same checks here.
44374         * elf/tst-audit6.c: Likewise.
44375
44376         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
44377
44378 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
44379
44380         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
44381
44382 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
44383
44384         * po/cs.po: Update from translation team.
44385         * po/bg.po: Likewise.
44386
44387 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
44388
44389         * misc/sys/cdefs.h: Add support for const attribute.
44390         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
44391         to gnu_dev_{major,minor,makedev} functions.
44392
44393 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
44394
44395         * intl/dcigettext.c (get_output_charset): Add missing bracket.
44396
44397 2011-07-20  Andreas Schwab  <schwab@redhat.com>
44398
44399         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
44400         strlen results.
44401
44402 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44403
44404         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
44405         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
44406         register in order to avoid conflicts with the soft frame pointer
44407         being held in r11 when necessary.
44408         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
44409         (INTERNAL_VSYSCALL_NCS): Likewise.
44410
44411 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
44412
44413         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
44414         * elf/dl-fini.c (_dl_fini): Adjust caller.
44415         * elf/dl-close.c (_dl_close_worker): Likewise.
44416         * sysdeps/generic/ldsodefs.h: Adjust declaration.
44417
44418 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
44419
44420         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
44421         "aux_cache->nlibs < 0".
44422
44423         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
44424         in the reload-count case.
44425
44426 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44427
44428         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44429         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
44430         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
44431         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
44432         * sysdeps/x86_64/multiarch/strcat.S: New file.
44433         * sysdeps/x86_64/multiarch/strncat.S: New file.
44434         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
44435         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
44436         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
44437         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
44438         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
44439         (USE_AS_STRCAT): Define.
44440         Add strcat and strncat support.
44441         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
44442         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
44443         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
44444         * string/strncat.c: Update.
44445         (USE_AS_STRNCAT): Define.
44446         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44447         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
44448         and i7.
44449         * sysdeps/x86_64/multiarch/init-arch.h
44450         (bit_Prefer_PMINUB_for_stringop): New.
44451         (index_Prefer_PMINUB_for_stringop): Likewise.
44452         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
44453         bit_Prefer_PMINUB_for_stringop.
44454
44455 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
44456
44457         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
44458         buffer64.
44459         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
44460         of casting of buffer.
44461         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
44462         buffer32 and buffer64.
44463         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
44464         writes instead of casting of buffer.
44465         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
44466         buffer32.
44467         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
44468         casting of buffer.
44469
44470 2011-07-19  Andreas Schwab  <schwab@redhat.com>
44471
44472         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
44473
44474 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
44475
44476         * nscd/nscd.c (termination_handler): Don't do anything for a database
44477         if it has not yet been initialized.
44478
44479 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
44480
44481         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
44482
44483 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
44484
44485         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
44486
44487 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
44488
44489         * po/nl.po: Update from translation team.
44490         * po/sv.po: Likewise.
44491
44492 2011-07-16  Roland McGrath  <roland@hack.frob.com>
44493
44494         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
44495         now disallowed by GCC.
44496
44497         * configure.in (use-default-link): Default to yes if a test -shared
44498         link meets our qualifications.
44499         * configure: Regenerated.
44500
44501         * config.make.in (output-format): New variable.
44502         * configure.in: Check for ld --print-output-format support.
44503         * configure: Regenerated.
44504         * Makerules ($(common-objpfx)format.lds)
44505         [$(output-format) != unknown]: Just use $(output-format),
44506         instead of the linker-script munging.
44507
44508 2011-07-14  Roland McGrath  <roland@hack.frob.com>
44509
44510         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
44511         of $(common-objpfx)shlib.lds.
44512         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
44513
44514         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
44515         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
44516
44517         * configure.in (-z relro check): Adjust test code to add a large
44518         writable data section after it.
44519         * configure: Regenerated.
44520
44521 2011-07-11  Roland McGrath  <roland@hack.frob.com>
44522
44523         * configure.in (-z relro check): Fix test code to make the variable
44524         truly const.
44525         * configure: Regenerated.
44526
44527 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
44528
44529         * nscd/nscd.h (struct traced_file): Define.
44530         (struct database_dyn): Remove inotify_descr, reset_res, and filename
44531         elements.  Add traced_files.
44532         (inotify_fd): Declare.
44533         (register_traced_file): Declare.
44534         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
44535         (inotify_fd): Export.
44536         (resolv_conf_descr): Remove.
44537         (nscd_init): Move inotify descriptor creation to main.
44538         Don't register files for notification here.
44539         (register_traced_file): New function.
44540         (invalidate_cache): Don't use reset_res to determine whether to call
44541         res_init, go through the list of registered files.
44542         (main_loop_poll): The inotify descriptors are now stored in the
44543         structures for the traced files.
44544         (main_loop_epoll): Likewise
44545         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
44546         to __nss_disable_nscd.
44547         * nscd/cache.c (prune_cache): There is no single inotify descriptor
44548         for a database anymore.  Check the records for all the registered
44549         files instead.
44550         * nss/Makefile (libnss_files-routines): Add files-init.
44551         (libnss_db-routines): Add db-init.
44552         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
44553         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
44554         * nss/nss_db/db-init.c: New file.
44555         * nss/nss_files/files-init.c: New file.
44556         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
44557         __nss_lookup_function.
44558         (__nss_lookup_function): Call nss_load_library.
44559         (nss_load_all_libraries): New function.
44560         (__nss_disable_nscd): Take parameter with callback function for files
44561         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
44562         used for the cached services.
44563         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
44564         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
44565         options for features to all the files in nscd.
44566
44567         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
44568
44569 2011-07-10  Roland McGrath  <roland@hack.frob.com>
44570
44571         * csu/elf-init.c (__libc_csu_init): Comment typo.
44572
44573 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
44574
44575         * po/pl.po: Update from translation team.
44576         * po/ja.po: Likewise.
44577         * po/ru.po: Likewise.
44578         * po/ko.po: Likewise.
44579         * po/fr.po: Likewise.
44580
44581 2011-07-09  Roland McGrath  <roland@hack.frob.com>
44582
44583         * configure.in (.ctors/.dtors header and trailer check):
44584         Use an empirical test on a built program.
44585         * configure: Regenerated.
44586
44587         * configure.in (-z relro check): Use an empirical test on a built DSO.
44588         Detect, but do not require, on ia64.
44589         * configure: Regenerated.
44590
44591         * configure.in (READELF): Find it with AC_CHECK_TOOL.
44592         Update tests that use readelf to use $READELF instead.
44593         * configure: Regenerated.
44594
44595 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
44596
44597         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
44598         if the result is not used.
44599
44600 2011-07-05  Andreas Jaeger  <aj@suse.de>
44601
44602         [BZ#9696]
44603         * stdlib/tst-strtod.c: Add testcase.
44604
44605 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
44606
44607         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
44608         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
44609         The latter has a higher limit.  Take additional parameter to pass to
44610         the new function.
44611         (__pathconf): Pass file to __statfs_link_max.
44612         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
44613         __statfs_link_max.
44614         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
44615         __statfs_link_max.
44616
44617         [BZ #12868]
44618         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
44619         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
44620         Handle Lustre.
44621         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
44622         (__statfs_filesize_max): Likewise.
44623         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
44624
44625 2011-07-05  Andreas Jaeger  <aj@suse.de>
44626
44627         * resolv/res_comp.c (dn_skipname): Remove unused variable.
44628
44629 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
44630
44631         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
44632         `status' variable.
44633         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
44634         Likewise.
44635
44636 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
44637
44638         * Makefile (strop-tests): Add strncat.
44639         * string/test-strncat.c: New file.
44640
44641 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
44642
44643         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
44644
44645 2011-06-21  Andreas Jaeger  <aj@suse.de>
44646
44647         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
44648         Copy rule from iconvdata/Makefile.
44649
44650 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44651
44652         [BZ #12922]
44653         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
44654         but no long options are defined, just return 'W'.
44655
44656 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
44657
44658         [BZ #9696]
44659         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
44660
44661 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
44662
44663         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
44664         netgroups to read.
44665         (innetgr): Likewise.
44666
44667 2011-07-05  Roland McGrath  <roland@hack.frob.com>
44668
44669         * config.make.in (install_root): Default to $(DESTDIR).
44670
44671 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
44672
44673         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
44674
44675 2011-07-02  Roland McGrath  <roland@hack.frob.com>
44676
44677         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
44678
44679         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
44680         containing directory rather than embedding absolute directory names.
44681
44682         * scripts/check-local-headers.sh: Rewritten using awk.
44683         Match by word, not by line.  Print error messages for matches.
44684         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
44685
44686         * Makerules [shlib-lds-flags empty]:
44687         ($(common-objpfx)libc_pic.opts): New target.
44688         ($(common-objpfx)libc_pic.os.clean): New target.
44689         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
44690
44691         * config.make.in (OBJCOPY): New variable.
44692         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
44693         * configure: Regenerated.
44694
44695         * config.make.in (use-default-link): New variable.
44696         * configure.in (use_default_link): Grok --with-default-link to set it.
44697         * configure: Regenerated.
44698         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
44699         (shlib-lds, shlib-lds-flags): Define to empty.
44700
44701         * Makerules (shlib-lds): New variable.
44702         (shlib-lds-flags): New variable.
44703         (build-shlib, build-moduile, build-module-asneeded): Use it.
44704         ($(common-objpfx)libc.so): Use $(shlib-lds).
44705         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
44706         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
44707
44708         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
44709         DT_FLAGS/DT_FLAGS_1 with zero flags.
44710
44711         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
44712         linker script munging.
44713
44714 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
44715
44716         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
44717         as 128-bit value.
44718         * crypt/sha512.c (sha512_process_block): Perform total addition using
44719         128-bit if possible.
44720         (__sha512_finish_ctx): Likewise.
44721         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
44722         as 64-bit value.
44723         * crypt/sha256.c (SWAP64): Define.
44724         (sha256_process_block): Perform total addition using 64-bit if
44725         possible.
44726         (__sha256_finish_ctx): Likewise.
44727
44728 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
44729
44730         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
44731         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44732         * nscd/hstcache.c (cache_addhst): Likewise.
44733         * nscd/grpcache.c (cache_addgr): Likewise.
44734         * nscd/aicache.c (addhstaiX): Likewise
44735         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
44736
44737 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
44738
44739         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
44740         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44741         * nscd/hstcache.c (cache_addhst): Likewise.
44742         * nscd/grpcache.c (cache_addgr): Likewise.
44743         * nscd/aicache.c (addhstaiX): Likewise
44744
44745 2011-07-01  Andreas Schwab  <schwab@redhat.com>
44746
44747         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
44748         domain only when needed.
44749
44750 2011-06-30  Andreas Schwab  <schwab@redhat.com>
44751
44752         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
44753         is always restored.
44754
44755 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
44756
44757         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
44758         are re-adding the entry.
44759         * nscd/servicescache.c (cache_addserv): Likewise.
44760
44761 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
44762
44763         * sysdeps/generic/dl-irel.h: fix protection against multiple
44764         inclusions.
44765         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
44766
44767 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
44768
44769         [BZ #12935]
44770         * malloc/memusage.sh: Fix quoting in message.
44771         * debug/xtrace.sh: Likewise.
44772
44773         * configure.in: Remove support for --experimental-malloc option, make
44774         it the default.
44775         * config.make.in: Likewise.
44776         * malloc/Makefile: Likewise.
44777
44778 2011-06-27  Andreas Schwab  <schwab@redhat.com>
44779
44780         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
44781         two-byte characters.
44782
44783 2011-06-27  Roland McGrath  <roland@hack.frob.com>
44784
44785         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
44786         AC_CACHE_CHECK invocation.
44787         * configure: Regenerated.
44788
44789         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
44790
44791 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
44792
44793         [BZ #12350]
44794         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
44795         bit from old_res_options.
44796
44797         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
44798
44799         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
44800         value type for setfct.
44801
44802 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
44803
44804         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44805         __gettimeofday instead of gettimeofday.
44806
44807 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
44808
44809         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
44810
44811 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
44812
44813         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
44814
44815         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
44816         info.
44817
44818 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44819
44820         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44821         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44822         strcpy-sse2-unaligned strncpy-sse2-unaligned
44823         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
44824         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
44825         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
44826         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
44827         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
44828         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
44829         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
44830         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
44831         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
44832         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
44833         (STRCPY): Support SSE2 and SSSE3 versions.
44834
44835 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
44836
44837         [BZ #12874]
44838         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
44839         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
44840         kernels which artificially limit size of requests.
44841
44842 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
44843
44844         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44845         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
44846         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
44847         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
44848         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
44849         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
44850         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
44851         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
44852         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
44853         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
44854         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
44855         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
44856         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
44857         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
44858         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
44859         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44860         Enable unaligned load optimization for Intel Core i3, i5 and i7
44861         processors.
44862         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
44863         Define.
44864         (index_Fast_Unaligned_Load): Define.
44865         (HAS_FAST_UNALIGNED_LOAD): Define.
44866
44867 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
44868
44869         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
44870
44871 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44872
44873         [BZ #12907]
44874         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
44875         until it is clear that the information is realy needed.
44876         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
44877
44878 2011-06-22  Andreas Schwab  <schwab@redhat.com>
44879
44880         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
44881
44882 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
44883
44884         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
44885         /sys/devices/system/cpu/online if it is usable.
44886
44887         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
44888         reading the information from the /proc filesystem to once a second.
44889
44890 2011-06-21  Andreas Jaeger  <aj@suse.de>
44891
44892         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
44893         NULL after inclusion of kernel headers.
44894
44895 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
44896
44897         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
44898         calls to internal_setent.
44899
44900         [BZ #12885]
44901         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
44902         addresses using gethostbyname4_r ignore IPv4 addresses.
44903
44904         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
44905         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
44906
44907         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
44908
44909 2011-06-20  David S. Miller  <davem@davemloft.net>
44910
44911         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
44912         inclusions.
44913         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
44914
44915         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
44916         (elf_irel): Use it.
44917         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
44918         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
44919         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
44920         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
44921         * sysdeps/x86_64/dl-irel.h: Likewise.
44922
44923         * elf/dl-runtime.c: Use elf_ifunc_invoke.
44924         * elf/dl-sym.c: Likewise.
44925
44926 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44927
44928         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
44929         need to dereference resplen2.
44930
44931 2011-06-14  Andreas Schwab  <schwab@redhat.com>
44932
44933         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
44934
44935 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
44936
44937         * Makeconfig: Define vardbdir and inst_vardbdir.
44938         * nss/Makefile: Add rules to install db-Makefile.
44939
44940         * nss/nss_db/db-XXX.c: Cleanup.
44941
44942         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
44943         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
44944         GLIBC_PRIVATE.
44945         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
44946         * nss/makedb.c: Implement -g option to specify that value strings
44947         are generated and should not be added to table iterated over for
44948         get*ent calls.
44949         * nss/nss_db/db-initgroups.c: New file.
44950
44951         * nss/getent.c: Add support for initgroups lookups through getgrouplist
44952         interface.
44953
44954         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
44955         (internal_getgrouplist): Adjust to name change.
44956         Update use_initgroups_entry if this is not the first call.
44957         * nss/databases.def: Add initgroups entry.
44958
44959         * nss/makedb.c (compute_tables): Check result of multiple hash table
44960         sizes to minimize maximum chain length.
44961
44962 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
44963
44964         * Versions.def: Add entry for libnss_db.
44965         * shlib-versions: Likewise.
44966         * nss/Makefile: Add rules to build libnss_db.
44967         * nss/Versions: Add libnss_db information.  Organize libnss_files
44968         entries better.
44969         * nss/db-Makefile: Add gshadow support.  Change rules for the new
44970         makedb progra.  Some minor improvements to generate smaller files.
44971         * nss/nss_db/nss_db.h: Move NSS database header data structures to
44972         here from...
44973         * nss/makedb.c: ...here.
44974         Improve database format to be smaller and require less memory at
44975         runtime.
44976         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
44977         db anymore.
44978         * nss/nss_db/db-netgrp.c: Likewise.
44979         * nss/nss_db/db-open.c: Likewise.
44980         * nss/nss_files/flies-XXX.x: Adjust comments.
44981         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
44982         * nss/nss_files/files-grp.c: Likewise.
44983         * nss/nss_files/files-hosts.c: Likewise.
44984         * nss/nss_files/files-network.c: Likewise.
44985         * nss/nss_files/files-proto.c: Likewise.
44986         * nss/nss_files/files-pwd.c: Likewise.
44987         * nss/nss_files/files-rpc.c: Likewise.
44988         * nss/nss_files/files-service.c: Likewise.
44989         * nss/nss_files/files-sgrp.c: Likewise.
44990         * nss/nss_files/files-spwd.c: Likewise.
44991         * nss/nss_db/db-alias.c: Removed.
44992         * nss/nss_db/dummy-db.h: Removed.
44993
44994 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
44995
44996         * nss/makedb.c: Rewritten to not use database library.
44997         * nss/Makefile: Update to build new makedb program.
44998
44999 2011-06-14  Andreas Jaeger  <aj@suse.de>
45000
45001         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
45002         memset declaration.
45003
45004 2011-06-10  Andreas Schwab  <schwab@redhat.com>
45005
45006         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
45007         tmpbuf.
45008
45009 2011-06-10  Roland McGrath  <roland@hack.frob.com>
45010
45011         * Makerules (shlib.lds): Fail if the linker script comes out empty.
45012         * elf/Makefile ($(objpfx)ld.so): Likewise.
45013
45014         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
45015         Don't list ld.so twice in dependencies.
45016
45017         * posix/bug-regex31.c: Include <stdlib.h>.
45018
45019         * nscd/hstcache.c (cache_addhst): Remove unused variable.
45020
45021         * nis/nss_compat/compat-spwd.c
45022         (getspent_next_nss_netgr): Remove unused variable.
45023         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
45024
45025         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
45026         nonmembers" output to use the right array.
45027
45028         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
45029
45030         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
45031
45032         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
45033         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
45034         * catgets/gencat.c (read_input_file): Likewise.
45035         * locale/programs/locarchive.c (enlarge_archive): Likewise.
45036
45037         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
45038         variable definition inside #if's controlling its use.
45039
45040         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
45041
45042         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
45043
45044         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
45045
45046         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
45047         unreachable code.
45048
45049         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
45050
45051         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
45052         * configure: Regenerated.
45053
45054         * Makerules: Revert last change.
45055         * elf/Makefile: Likewise.
45056
45057 2011-06-09  Roland McGrath  <roland@hack.frob.com>
45058
45059         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
45060         * elf/Makefile ($(objpfx)librtld.os): Likewise.
45061         (reloc-link): Likewise.
45062
45063 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
45064
45065         * elf/Makefile: Add rules to build pldd.
45066         * elf/pldd.c: New file.
45067         * elf/pldd-xx.c: New file.
45068
45069 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
45070
45071         * version.h: Update for 2.15 development version.
45072
45073 2011-06-07  David S. Miller  <davem@davemloft.net>
45074
45075         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
45076         ifuncs.
45077         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
45078         elf_machine_lazy_rel): Likewise.
45079         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
45080         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
45081         elf_machine_lazy_rel): Likewise.
45082         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
45083         dl_hwcap via passed in argument.
45084         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
45085         Likewise.
45086
45087 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45088
45089         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
45090
45091 2011-06-06  Roland McGrath  <roland@hack.frob.com>
45092
45093         [BZ #12849]
45094         * manual/fdl-1.1.texi: New file, verbatim from:
45095         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
45096         * manual/lgpl-2.1.texi: New file, verbatim from:
45097         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
45098         * manual/Makefile (licenses): New variable, list those new file names.
45099         (texis): Use it.
45100         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
45101
45102         * manual/fdl.texi: File removed.
45103         * manual/lesser.texi: File removed.
45104         * manual/libc.texinfo (Copying, Documentation License):
45105         Use new @include file names, put @appendix directive before @include.
45106
45107 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
45108
45109         [BZ #12841]
45110         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
45111         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
45112         (mq_open): Add __NTH.
45113
45114 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
45115
45116         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45117         Assume Intel Core i3/i5/i7 processor if AVX is available.
45118
45119 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
45120
45121         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
45122         typo.
45123
45124 2011-05-31  Andreas Schwab  <schwab@redhat.com>
45125
45126         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
45127         memory.  Use alloca_account.  Fix memory leak when retrying.
45128
45129 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
45130
45131         * version.h (RELEASE): Bump for 2.14 release.
45132         * include/features.h (__GLIBC_MINOR__): Bump to 14.
45133
45134         * config.make.in (RANLIB): Remove entry.
45135
45136 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
45137
45138         * po/Makefile (po-sed-cmd): Add ksh to extensions.
45139         (libc.pot): Work around missing support for .ksh extension in xgettext.
45140
45141         [BZ #12684]
45142         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
45143         if both request failed.
45144         (send_dg): In case of server errors clear resplen or *resplen2.
45145
45146         [BZ #12454]
45147         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
45148         when there are multiple maps.
45149         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
45150         (_dl_fini): Remove test here.
45151
45152         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
45153
45154 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
45155
45156         [BZ #12350]
45157         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
45158         bit from old_res_options.
45159         (gaih_inet): Likewise.
45160
45161         [BZ #11099]
45162         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
45163         as signed.
45164
45165         * resolv/res_init.c (res_setoptions): Make the code more compact.
45166
45167         [BZ #11558]
45168         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
45169         set RES_USEVC.
45170
45171         [BZ #11634]
45172         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
45173
45174         * malloc/malloc.h: Mark malloc hook variables as deprecated.
45175
45176         [BZ #11781]
45177         * malloc/malloc.h: Declare malloc hook variables as volatile.
45178
45179         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
45180         in last patch.
45181
45182         [BZ #11799]
45183         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
45184         raise in the comment.
45185         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
45186         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
45187         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
45188
45189 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
45190
45191         [BZ #12811]
45192         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
45193         grow the buffers more if it already has to be sufficient.
45194         (build_wcs_upper_buffer): Likewise.
45195         * posix/regexec.c (check_matching): Likewise.
45196         (clean_state_log_if_needed): Likewise.
45197         (extend_buffers): Don't enlarge buffers beyond size of the input
45198         buffer.
45199         Patches mostly by Emil Wojak <emil@wojak.eu>.
45200         * posix/bug-regex32.c: New file.
45201         * posix/Makefile (tests): Add bug-regex32.
45202
45203         * locale/findlocale.c (_nl_find_locale): Return right away if
45204         _nl_explode_name failed.
45205         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
45206
45207         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
45208
45209         * debug/xtrace.sh: Unify messages.
45210         * malloc/memusage.sh: Likewise.
45211
45212         [BZ #12813]
45213         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
45214         time symbol from vDSO.  Substitute with vsyscall if not available.
45215         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
45216         __vdso_time.
45217
45218         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
45219         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
45220         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
45221         Add sendmmsg and internal_sendmmsg.
45222         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
45223         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
45224         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
45225
45226         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
45227         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
45228         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
45229
45230 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
45231
45232         [BZ #12813]
45233         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
45234         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
45235         available.
45236         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
45237         __vdso_getcpu.
45238
45239         [BZ #12814]
45240         * iconvdata/Makefile (tests): Add bug-iconv9.
45241         * iconvdata/bug-iconv9.c: New file.
45242
45243 2011-05-27  Andreas Schwab  <schwab@redhat.com>
45244
45245         [BZ #12814]
45246         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
45247
45248 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
45249
45250         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
45251         (struct user_regs_struct): Change intcs field back to cs.
45252
45253 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
45254
45255         * po/ja.po: Update from translation team.
45256
45257 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
45258
45259         [BZ #12795]
45260         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
45261         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
45262
45263 2011-05-20  Andreas Schwab  <schwab@redhat.com>
45264
45265         * stdlib/longlong.h: Update from GCC.
45266
45267 2011-05-23  Andreas Schwab  <schwab@redhat.com>
45268
45269         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
45270         parameter name.
45271         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
45272         Add parameter name.
45273         (__sysconf): Pass it down.
45274
45275 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
45276
45277         [BZ #12671]
45278         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
45279         some situations.
45280         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
45281         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
45282         add in in __libc_use_alloca calls.  Adjust callers.
45283         (glob): Use malloc in some situations.
45284
45285         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
45286         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
45287         pltexit.
45288
45289 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
45290
45291         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
45292         and CLOCK_BOOTTIME_ALARM.
45293
45294         [BZ #12782]
45295         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
45296         is returned.
45297
45298         * string/_strerror.c (__strerror_r): Print negative errors as signed
45299         numbers.
45300
45301         [BZ #12777]
45302         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
45303         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
45304         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
45305
45306         * configure.in: Fix typo in redirection and correct removal of test
45307         files in two cases.
45308
45309         [BZ #12788]
45310         * locale/setlocale.c (new_composite_name): Fix test to check for
45311         identical name of all categories.
45312
45313         [BZ #12792]
45314         * libio/filedoalloc.c (local_isatty): New function.
45315         (_IO_file_doallocate): Use local_isatty.
45316         * stdio-common/perror.c (perror): In case a new stream is used
45317         forward the stream error.
45318         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
45319         error flag.
45320
45321 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
45322
45323         [BZ #11869]
45324         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
45325         alloca.
45326         * include/alloca.h (extend_alloca_account): Define.
45327
45328         [BZ #11857]
45329         * posix/regex.h: Fix comments with documentation of user-accessible
45330         fields after compilation and describe correct free'ing of pattern
45331         after re_compile_pattern.
45332         Patch by Reuben Thomas <rrt@sc3d.org>.
45333
45334 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
45335
45336         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
45337         and -mno-altivec to prevent the compiler from using Altivec and/or
45338         VSX instructions when the corresponding registers are not available.
45339
45340 2011-05-19  Andreas Schwab  <schwab@redhat.com>
45341
45342         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
45343
45344 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
45345
45346         * libio/freopen.c (freopen): Use __dup2, not dup2.
45347         * libio/freopen64.c (freopen64): Likewise.
45348
45349 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
45350
45351         [BZ #12775]
45352         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
45353         * math/Makefile (tests): Add test-powl.
45354         (CFLAGS-test-powl.c): Define.
45355         * math/test-powl.c: New file.
45356
45357 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
45358
45359         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
45360
45361 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
45362
45363         [BZ #11837]
45364         * iconvdata/gb18030.c: Update to GB18020-2005.
45365
45366 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
45367
45368         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
45369         RE_SYNTAX_POSIX_AWK): Update to match recent development.
45370         Patch by Aharon Robbins <arnold@skeeve.com>.
45371
45372         [BZ #11892]
45373         * stdlib/putenv.c (putenv): Don't always create copy of the variable
45374         on the stack.
45375
45376         [BZ #11895]
45377         * misc/pselect.c (__pselect): Handle timeout value errors hidden
45378         through underflows.
45379
45380         [BZ #12766]
45381         * misc/error.c (error_at_line): Ensure file_name and old_file_name
45382         point to strings before performing equality test for error_one_per_line
45383         mode.
45384
45385         [BZ #11697]
45386         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
45387
45388         [BZ #11820]
45389         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
45390         (struct user_fpregs_struct): Avoid __uint*_t types.
45391
45392         [BZ #6420]
45393         * malloc/mtrace.c (tr_where): Add additional parameter to point to
45394         symbol info.  Use it instead of calling _dl_addr locally.
45395         (lock_and_info): New function.
45396         (tr_freehook): Call lock_and_info and pass symbol info as additional
45397         parameter to tr_where.
45398         (tr_mallochook): Likewise.
45399         (tr_reallochook): Likewise.
45400         (tr_memalignhook): Likewise.
45401
45402         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
45403         used and couldn't be at all thread-safe.
45404
45405 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
45406
45407         * libio/freopen.c (freopen): Don't close old file descriptor
45408         before the new one is opened.  Instead dup the new file descriptor
45409         to the old one after the new stream is created.
45410         * libio/freopen64.c (freopen64): Likewise.
45411         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
45412         * libio/fileops.c (_IO_new_file_close_it): Handle new
45413         _IO_FLAGS2_NOCLOSE flag.
45414         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
45415         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
45416         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
45417         _IO_FLAGS2_NOCLOSE flag.
45418         * include/unistd.h: Add hidden_proto for dup3.
45419         Define __have_dup3.
45420         * io/dup3.c: Define hidden symbol.
45421         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
45422
45423         [BZ #7101]
45424         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
45425         when an incomplete long option is used.
45426         * posix/tst-getopt_long1.c: New file.
45427         * posix/Makefile (tests): Add tst-getopt_long1.
45428
45429         [BZ #10138]
45430         * scripts/config.guess: Update from autoconf-2.68.
45431         * scripts/config.sub: Likewise.
45432
45433         [BZ #10157]
45434         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
45435         tests into ...
45436         (has_cpuclock): ...this.  New function.
45437         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
45438         macro here based on has_cpuclock code.
45439
45440         [BZ #10149]
45441         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
45442         First byte (not low byte) is now always NUL.
45443         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
45444
45445         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
45446         Use non-cancelable interfaces.
45447
45448         [BZ #9809]
45449         * locale/iso-639.def: Add entry for Sorani.
45450
45451         [BZ #11901]
45452         * include/stdlib.h: Move include protection to the right place.
45453         Define abort_msg_s.  Declare __abort_msg with it.
45454         * stdlib/abort.c (__abort_msg): Adjust type.
45455         * assert/assert.c (__assert_fail_base): New function.  Majority
45456         of code from __assert_fail.  Allocate memory for __abort_msg with
45457         mmap.
45458         (__assert_fail): Now call __assert_fail_base.
45459         * assert/assert-perr.c: Remove bulk of implementation.  Use
45460         __assert_fail_base.
45461         * include/assert.hL Declare __assert_fail_base.
45462         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
45463         mmap.
45464         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
45465
45466 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
45467
45468         [BZ #11952]
45469         [BZ #12453]
45470         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
45471         until all modules are registered in the DTV.
45472         * elf/Makefile: Add rules to build and run tst-tls19.
45473         * elf/tst-tls19.c: New file.
45474         * elf/tst-tls19mod1.c: New file.
45475         * elf/tst-tls19mod2.c: New file.
45476         * elf/tst-tls19mod3.c: New file.
45477         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
45478
45479         [BZ #12083]
45480         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
45481         correctly.
45482
45483         [BZ #12601]
45484         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
45485         two-byte sequence errors.
45486         * iconvdata/Makefile (tests): Add bug-iconv8.
45487         * iconvdata/bug-iconv8.c: New file.
45488
45489         [BZ #12626]
45490         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
45491         buf2 definition.
45492
45493         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
45494
45495         [BZ #12432]
45496         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
45497         (dummy_getcfa): New function.
45498         (init): Get _Unwind_GetCFA address, use dummy if not found.
45499         (backtrace_helper): In recursion check, also check whether CFA changes.
45500         (__backtrace): Completely initialize arg.
45501
45502         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
45503         storing incomplete byte sequence in state object.  Avoid testing for
45504         guaranteed too small input if we know there is enough data available.
45505
45506 2011-05-11  Andreas Schwab  <schwab@redhat.com>
45507
45508         * Makeconfig (+link-pie): Indent.
45509         * Rules (binaries-pie): Define if $(have-fpie) and
45510         $(build-shared).
45511         (binaries-shared): Also filter out $(binaries-pie).
45512         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
45513         * nscd/Makefile (others-pie): Add nscd.
45514         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
45515         ($(objpfx)nscd): Remove command override.
45516         * login/Makefile (others-pie): Add pt_chown.
45517         ($(objpfx)pt_chown): Remove command override.
45518         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
45519         remove command overrides.
45520
45521 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
45522
45523         * libio/tst_putwc.c: Fix error messages.
45524
45525         [BZ #12724]
45526         * libio/fileops.c (_IO_new_file_close_it): Always flush when
45527         currently writing and seek to current position when not.
45528         * libio/Makefile (tests): Add bug-fclose1.
45529         * libio/bug-fclose1.c: New file.
45530
45531 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
45532
45533         [BZ #12511]
45534         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
45535         don't set DF_1_NODELETE here.
45536         (do_lookup_x): When entering new entry test for copy relocation
45537         and if necessary set DF_1_NODELETE flag.
45538         * elf/tst-unique4.cc: New file.
45539         * elf/tst-unique4.h: New file.
45540         * elf/tst-unique4lib.cc: New file.
45541         * elf/Makefile: Add rules to build and run tst-unique4.
45542         Patch by Piotr Bury <pbury@goahead.com>.
45543
45544 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
45545
45546         [BZ #12052]
45547         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
45548
45549         [BZ #12625]
45550         * misc/mntent_r.c (addmntent): Flush the stream after the output
45551
45552         [BZ #12393]
45553         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
45554         (is_trusted_path_normalize): Skip initial colon.  Append slash
45555         to empty buffer.  Duplicate is_trusted_path code but allow
45556         constructed patch to be prefix.
45557         (is_dst): Allow $ORIGIN followed by /.
45558         (_dl_dst_substitute): Correct clearing of check_for_trusted.
45559         Correct testing of result of is_trusted_path_normalize
45560         (decompose_rpath): Fix warning.
45561
45562 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
45563
45564         [BZ #11257]
45565         * grp/initgroups.c (internal_getgrouplist): When we found the service
45566         list through the initgroups entry in nsswitch.conf do not always
45567         continue on a successful lookup.  Don't always use the
45568         __nss_group_database value if it is set.
45569         * nss/nsswitch.conf (initgroups): Change action for successful db
45570         lookup to continue for compatibility.
45571
45572 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
45573
45574         [BZ #11532]
45575         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
45576         and CP774 modules.
45577         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
45578         and CP774 modules.
45579         * iconvdata/tst-tables.sh: Likewise.
45580         * iconvdata/cp770.c: New file.
45581         * iconvdata/cp771.c: New file.
45582         * iconvdata/cp772.c: New file.
45583         * iconvdata/cp773.c: New file.
45584         * iconvdata/cp774.c: New file.
45585         * iconvdata/testdata/CP770: New file.
45586         * iconvdata/testdata/CP770..UTF8: New file.
45587         * iconvdata/testdata/CP771: New file.
45588         * iconvdata/testdata/CP771..UTF8: New file.
45589         * iconvdata/testdata/CP772: New file.
45590         * iconvdata/testdata/CP772..UTF8: New file.
45591         * iconvdata/testdata/CP773: New file.
45592         * iconvdata/testdata/CP773..UTF8: New file.
45593         * iconvdata/testdata/CP774: New file.
45594         * iconvdata/testdata/CP774..UTF8: New file.
45595
45596         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
45597         END CHARMAP line.
45598         * iconvdata/gen-8bit-gap.sh: Likewise.
45599         * iconvdata/gen-8bit.sh: Likewise.
45600
45601         * locale/iso-639.def: Add ary entry.
45602
45603         [BZ #11258]
45604         * locale/C-translit.h.in: Add U20A1 transliteration.
45605
45606         [BZ #12178]
45607         * locale/iso-639.def: Add wae entry.
45608         Patch by Kevin Bortis <bortis@translate-wae.ch>.
45609
45610         [BZ #12545]
45611         * locale/programs/localedef.c (construct_output_path): Use ssize_t
45612         for n.
45613
45614         [BZ #12711]
45615         * locale/C-translit.h.in: Add entry for U20B9.
45616         Patch by pravin.d.s@gmail.com.
45617
45618 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
45619
45620         [BZ #12713]
45621         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
45622         ENAMETOOLONG use generic getcwd.
45623         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
45624         in rtld.  Use *stat64.
45625         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
45626         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
45627         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
45628         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
45629         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
45630         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
45631         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
45632         __fstatat64 macros.
45633         * include/dirent.h: Add libc_hidden_proto for rewinddir.
45634         * dirent/rewinddir.c: Add libc_hidden_def.
45635         * sysdeps/mach/hurd/rewinddir.c: Likewise.
45636         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
45637
45638         * include/dirent.h (__alloc_dir): Add flags parameter.
45639         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
45640         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
45641         __alloc_dir.
45642         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
45643         from fdopendir if O_CLOEXEC is already set.
45644
45645 2011-03-15  Alan Modra  <amodra@gmail.com>
45646
45647         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
45648         l_tls_firstbyte_offset non-zero.  Save padding offset in
45649         l_tls_firstbyte_offset for later use.
45650         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
45651         freeing static tls block.
45652
45653 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
45654
45655         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
45656         where #ifdef was intended.  The intent is to prevent ARG_MAX from
45657         being defined by the kernel headers.
45658
45659 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
45660
45661         [BZ #12734]
45662         * resolv/resolv.h: Define RES_NOTLDQUERY.
45663         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
45664         no-tld-query and set RES_NOTLDQUERY.
45665         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
45666         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
45667         modern BIND to search name as TLD unless forbidden.
45668
45669 2011-05-07  Petr Baudis  <pasky@suse.cz>
45670             Ulrich Drepper  <drepper@gmail.com>
45671
45672         [BZ #12393]
45673         * elf/dl-load.c (fillin_rpath): Move trusted path check...
45674         (is_trusted_path): ...to here.
45675         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
45676         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
45677         using is_trusted_path_normalize() in setuid scripts.
45678
45679 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
45680
45681         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
45682         __BEGIN/__END_DECLS.
45683
45684 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
45685
45686         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
45687         NSS_STATUS_NOTFOUND if no record was found.
45688
45689 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45690
45691         * sunrpc/Makefile (headers): Add rpc/netdb.h.
45692         (headers-not-in-tirpc): Remove rpc/netdb.h
45693         * resolv/netdb.h: Revert last change.
45694
45695 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
45696
45697         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
45698         circular dependency between libgcc.a and libc.a.
45699
45700 2011-05-05  Andreas Schwab  <schwab@redhat.com>
45701
45702         * resolv/netdb.h: Don't include <rpc/netdb.h>.
45703         * nis/Makefile: Don't install rpcsvc/*.
45704         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
45705         instead of <rpc/types.h>.
45706         (MAXHOSTNAMELEN): Define.
45707
45708 2011-05-03  Andreas Schwab  <schwab@redhat.com>
45709
45710         * elf/ldconfig.c (add_dir): Don't crash on empty path.
45711
45712 2011-04-28  Maciej Babinski  <mbabinski@google.com>
45713
45714         [BZ #12714]
45715         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
45716         gethostbyname4_r when IPv6 results are possible.
45717
45718 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
45719
45720         [BZ #12723]
45721         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
45722         _PC_PIPE_BUF handling.
45723
45724 2011-04-30  Bruno Haible  <bruno@clisp.org>
45725
45726         [BZ #12717]
45727         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
45728         * resolv/netdb.h (getnameinfo): Change type of flags parameter
45729         to 'int'.
45730         * inet/getnameinfo.c (getnameinfo): Likewise.
45731
45732 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
45733
45734         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
45735         to groups setting in database lookup.
45736         * nss/nsswitch.conf: Add initgroups entry.
45737
45738 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
45739
45740         [BZ #12685]
45741         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
45742         mode string.
45743         Patch by Eric Blake <eblake@redhat.com>.
45744
45745 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
45746
45747         * sunrpc/Makefile (need-export-routines): Add svc_run.
45748         (routines): Remove svc_run.
45749         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
45750         * sunrpc/clnt_perr.c (clnt_perrno): Export.
45751         * sunrpc/svc_run.c (svc_run): Likewise.
45752         * sunrpc/svc_udp.c (svcudp_create): Likewise.
45753
45754 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
45755
45756         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
45757         problem in reallocation in last patch.
45758
45759 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
45760
45761         * sunrpc/Makefile: Move inclusion of Rules.
45762
45763 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45764
45765         * nss/nss_files/files-initgroups.c: New file.
45766         * nss/Makefile (libnss_files-routines): Add files-initgroups.
45767         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
45768         _nss_files_initgroups_dyn.
45769
45770 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
45771
45772         * elf/elf.h (R_ARM_IRELATIVE): Define.
45773
45774 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
45775
45776         * po/ru.po: Update from translation team.
45777
45778 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45779
45780         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
45781         dependencies.
45782
45783 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
45784
45785         [BZ #12653]
45786         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
45787         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
45788         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
45789         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
45790         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
45791
45792 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
45793
45794         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
45795         differing bytes.
45796         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
45797         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
45798         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
45799
45800 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
45801
45802         [BZ #12420]
45803         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
45804         storing it.
45805         * stdlib/bug-getcontext.c: New file.
45806         * stdlib/Makefile: Add rules to build and run bug-getcontext.
45807
45808 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45809
45810         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
45811         instructions into .machine "z9-109".
45812         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
45813         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
45814
45815 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45816
45817         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
45818         between environment variables and auxiliary vector.
45819
45820 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
45821
45822         * Makefile: Add rules to build linkobj/libc.so.
45823         * include/libc-symbols.h: Define libc_hidden_nolink.
45824         * include/rpc/auth.h: Mark functions which are to be hidden.
45825         * include/rpc/auth_des.h: Likewise.
45826         * include/rpc/auth_unix.h: Likewise.
45827         * include/rpc/clnt.h: Likewise.
45828         * include/rpc/des_crypt.h: Likewise.
45829         * include/rpc/key_prot.h: Likewise.
45830         * include/rpc/pmap_clnt.h: Likewise.
45831         * include/rpc/pmap_prot.h: Likewise.
45832         * include/rpc/pmap_rmt.h: Likewise.
45833         * include/rpc/rpc_msg.h: Likewise.
45834         * include/rpc/svc.h: Likewise.
45835         * include/rpc/svc_auth.h: Likewise.
45836         * include/rpc/xdr.h: Likewise.
45837         * nis/Makefile: Link all DSOs against linkobj/libc.so.
45838         * nss/Makefile: Likewise.
45839         * sunrpc/Makefile: Don't install headers.  Build library with normal
45840         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
45841         * sunrpc/auth_des.c: Hide exported symbols by default, export some
45842         for the compat linking library.  Remove use of INTDEF/INTUSE.
45843         * sunrpc/auth_none.c: Likewise.
45844         * sunrpc/auth_unix.c: Likewise.
45845         * sunrpc/authdes_prot.c: Likewise.
45846         * sunrpc/authuxprot.c: Likewise.
45847         * sunrpc/clnt_gen.c: Likewise.
45848         * sunrpc/clnt_perr.c: Likewise.
45849         * sunrpc/clnt_raw.c: Likewise.
45850         * sunrpc/clnt_simp.c: Likewise.
45851         * sunrpc/clnt_tcp.c: Likewise.
45852         * sunrpc/clnt_udp.c: Likewise.
45853         * sunrpc/clnt_unix.c: Likewise.
45854         * sunrpc/des_crypt.c: Likewise.
45855         * sunrpc/des_soft.c: Likewise.
45856         * sunrpc/get_myaddr.c: Likewise.
45857         * sunrpc/key_call.c: Likewise.
45858         * sunrpc/key_prot.c: Likewise.
45859         * sunrpc/netname.c: Likewise.
45860         * sunrpc/pm_getmaps.c: Likewise.
45861         * sunrpc/pm_getport.c: Likewise.
45862         * sunrpc/pmap_clnt.c: Likewise.
45863         * sunrpc/pmap_prot.c: Likewise.
45864         * sunrpc/pmap_prot2.c: Likewise.
45865         * sunrpc/pmap_rmt.c: Likewise.
45866         * sunrpc/publickey.c: Likewise.
45867         * sunrpc/rpc_cmsg.c: Likewise.
45868         * sunrpc/rpc_common.c: Likewise.
45869         * sunrpc/rpc_dtable.c: Likewise.
45870         * sunrpc/rpc_prot.c: Likewise.
45871         * sunrpc/rpc_thread.c: Likewise.
45872         * sunrpc/rtime.c: Likewise.
45873         * sunrpc/svc.c: Likewise.
45874         * sunrpc/svc_auth.c: Likewise.
45875         * sunrpc/svc_authux.c: Likewise.
45876         * sunrpc/svc_raw.c: Likewise.
45877         * sunrpc/svc_run.c: Likewise.
45878         * sunrpc/svc_simple.c: Likewise.
45879         * sunrpc/svc_tcp.c: Likewise.
45880         * sunrpc/svc_udp.c: Likewise.
45881         * sunrpc/svc_unix.c: Likewise.
45882         * sunrpc/svcauth_des.c: Likewise.
45883         * sunrpc/xcrypt.c: Likewise.
45884         * sunrpc/xdr.c: Likewise.
45885         * sunrpc/xdr_array.c: Likewise.
45886         * sunrpc/xdr_float.c: Likewise.
45887         * sunrpc/xdr_intXX_t.c: Likewise.
45888         * sunrpc/xdr_mem.c: Likewise.
45889         * sunrpc/xdr_rec.c: Likewise.
45890         * sunrpc/xdr_ref.c: Likewise.
45891         * sunrpc/xdr_sizeof.c: Likewise.
45892         * sunrpc/xdr_stdio.c: Likewise.
45893
45894 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
45895
45896         [BZ #12650]
45897         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
45898         * sysdeps/ia64/dl-tls.h: Likewise.
45899         * sysdeps/powerpc/dl-tls.h: Likewise.
45900         * sysdeps/s390/dl-tls.h: Likewise.
45901         * sysdeps/sh/dl-tls.h: Likewise.
45902         * sysdeps/sparc/dl-tls.h: Likewise.
45903         * sysdeps/x86_64/dl-tls.h: Likewise.
45904         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
45905
45906 2011-03-14  Andreas Schwab  <schwab@redhat.com>
45907
45908         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
45909         rpath element also skip the following colon.
45910         (expand_dynamic_string_token): Add is_path parameter and pass
45911         down to DL_DST_REQUIRED and _dl_dst_substitute.
45912         (decompose_rpath): Call expand_dynamic_string_token with
45913         non-zero is_path.  Ignore empty rpaths.
45914         (_dl_map_object_from_fd): Call expand_dynamic_string_token
45915         with zero is_path.
45916
45917 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
45918
45919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
45920         Make cancelable.
45921
45922 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
45923
45924         [BZ #12655]
45925         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
45926         Patch by Filipe David Manana <fdmanana@apache.org>.
45927
45928 2011-04-07  Andreas Schwab  <schwab@redhat.com>
45929
45930         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
45931         Maintain aligned stack.
45932         (CHECK_RSP): Remove unused macro.
45933
45934 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
45935
45936         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
45937         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
45938
45939 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
45940
45941         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
45942
45943         * include/features.h: Mention __USE_XOPEN2K8 in comment.
45944
45945 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
45946
45947         [BZ #12518]
45948         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
45949         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
45950         * sysdeps/x86_64/memmove.c: New file.
45951         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
45952         (memcpy): Renamed to ...
45953         (__new_memcpy): This.
45954         (memcpy): Provide GLIBC_2_14 memcpy.
45955         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
45956         (memcpy): Provide GLIBC_2_2_5 memcpy.
45957
45958 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45959
45960         [BZ #12631]
45961         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
45962
45963 2011-03-30  Andreas Schwab  <schwab@redhat.com>
45964
45965         * misc/syncfs.c: New file.
45966         * misc/Makefile (routines): Add syncfs.
45967         * posix/unistd.h: Declare syncfs.
45968         * sysdeps/unix/syscalls.list: Add syncfs.
45969
45970 2011-04-01  Andreas Schwab  <schwab@redhat.com>
45971
45972         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
45973         open_by_handle_at.
45974         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
45975         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45976         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45977         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45978         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45979         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
45980         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45981
45982 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
45983
45984         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
45985         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
45986         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
45987         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
45988         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
45989         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
45990         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
45991
45992         * io/Makefile: Compile fallocate.c, fallocate64.c, and
45993         sync_file_range.c with -fexceptions.
45994         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
45995         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
45996         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
45997         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
45998         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
45999         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
46000         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
46001         sync_file_range as cancellation point
46002         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
46003         now a wrapper around __call_sync_file_range with cancellation handling.
46004         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
46005         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
46006         function name to __call_sync_file_range.
46007         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
46008         Add call_sync_file_range.
46009
46010 2011-04-01  Andreas Schwab  <schwab@redhat.com>
46011
46012         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
46013         bits/timex.h.
46014
46015 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
46016
46017         * iconv/iconv.h: Fix typo in comment.
46018         * io/fcntl.h: Likewise.
46019         * libio/stdio.h: Likewise.
46020         * posix/spawn.h: Likewise.
46021         * posix/unistd.h: Likewise.
46022         * stdlib/stdlib.h: Likewise.
46023         * time/time.h: Likewise.
46024         * wcsmbs/wchar.h: Likewise.
46025
46026         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
46027         open_by_handle): Add.
46028         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
46029         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
46030         Augment a few comments.
46031         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
46032         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46033         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46034         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46035         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46036         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
46037         open_by_handle.
46038
46039         * io/fcntl.h (AT_EMPTY_PATH): Define.
46040
46041 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
46042
46043         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
46044         * sysdeps/unix/sysv/linux/bits/time.h: New file.
46045         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
46046         to...
46047         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
46048         * Versions.def: Add GLIBC_2.14.
46049         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
46050         Export.
46051
46052 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
46053
46054         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
46055         round counter.
46056         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
46057
46058 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
46059
46060         [BZ #12597]
46061         * string/test-strncmp.c (do_page_test): New function.
46062         (check2): Likewise.
46063         (test_main): Call check2.
46064         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
46065
46066 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
46067
46068         [BZ #12587]
46069         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
46070         Handle cache information in CPU leaf 4.
46071         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
46072
46073 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
46074
46075         [BZ #12583]
46076         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
46077         character representation.
46078         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
46079
46080 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
46081
46082         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
46083         END(__isnan) to END(__isnanf) to match function entry point/label
46084         EALIGN(__isnanf,...).
46085
46086 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
46087
46088         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
46089
46090 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
46091
46092         [BZ #12510]
46093         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
46094         copy from the symbol referenced in the relocation to initialize the
46095         used variable.
46096         Patch by Piotr Bury <pbury@goahead.com>.
46097         * elf/Makefile: Add rules to build and tst-unique3.
46098         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
46099         * elf/tst-unique3.cc: New file.
46100         * elf/tst-unique3.h: New file.
46101         * elf/tst-unique3lib.cc: New file.
46102         * elf/tst-unique3lib2.cc: New file.
46103
46104         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
46105
46106 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
46107
46108         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
46109         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
46110         to _start.
46111
46112 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
46113
46114         * elf/dl-load.c (_dl_map_object): If we are looking for the first
46115         to-be-loaded object along a path to loader is ld.so.
46116
46117 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
46118             Ulrich Drepper  <drepper@gmail.com>
46119
46120         * sysdeps/x86_64/memset.S: After aligning destination, code
46121         branches to different locations depending on the value of
46122         misalignment, when multiarch is enabled. Fix this.
46123
46124 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
46125
46126         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
46127         Set _x86_64_preferred_memory_instruction for AMD processsors.
46128         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46129         Set bit_Prefer_SSE_for_memop for AMD processors.
46130
46131 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
46132
46133         * libio/fmemopen.c (fmemopen): Optimize a bit.
46134
46135 2011-03-03  Andreas Schwab  <schwab@redhat.com>
46136
46137         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
46138
46139 2011-03-03  Roland McGrath  <roland@redhat.com>
46140
46141         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
46142
46143 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
46144
46145         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
46146         __bzero_ultra1 instead of __memset_ultra1.
46147
46148 2011-02-23  Andreas Schwab  <schwab@redhat.com>
46149             Ulrich Drepper  <drepper@gmail.com>
46150
46151         [BZ #12509]
46152         * include/link.h (struct link_map): Add l_orig_initfini.
46153         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
46154         returning unsuccessfully.
46155         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
46156         close of a file loaded at startup, restore the original l_initfini
46157         list.
46158         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
46159         list, store the pointer.
46160         * elf/Makefile ($(objpfx)noload-mem): New rule.
46161         (noload-ENV): Define.
46162         (tests): Add $(objpfx)noload-mem.
46163         * elf/noload.c: Include <memcheck.h>.
46164         (main): Call mtrace.  Close all opened handles.
46165
46166 2011-02-17  Andreas Schwab  <schwab@redhat.com>
46167
46168         [BZ #12454]
46169         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
46170         dependencies are missing.
46171
46172 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46173
46174         Fix __if_freereq crash: Unlike the generic version which uses free,
46175         Hurd needs munmap.
46176         * sysdeps/mach/hurd/ifreq.h: New file.
46177
46178 2011-01-27  Petr Baudis  <pasky@suse.cz>
46179             Ulrich Drepper  <drepper@gmail.com>
46180
46181         [BZ 12445]#
46182         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
46183         to extend_alloca().
46184         * stdio-common/bug23.c: New file.
46185         * stdio-common/Makefile (tests): Add bug23.
46186
46187 2010-09-28  Andreas Schwab  <schwab@redhat.com>
46188             Ulrich Drepper  <drepper@gmail.com>
46189
46190         [BZ #12489]
46191         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
46192         before performing relro protection.  At old place add assertion
46193         to make sure nothing changed.
46194
46195 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
46196             Glauber de Oliveira Costa  <glommer@gmail.com>
46197
46198         * elf/elf.h: Add new ARM TLS relocs.
46199
46200 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
46201
46202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
46203         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
46204         cast from r3.
46205         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
46206         'tests' variable.
46207         * sysdeps/wordsize-64/tst-writev.c: New file.
46208
46209 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
46210
46211         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
46212         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
46213         insns in _dl_start to prevent a TOC reference before relocs are
46214         resolved.
46215
46216 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
46217
46218         [BZ #12469]
46219         * Makeconfig: Remove RANLIB definition.
46220         * Makerules: Don't use RANLIB.
46221         * aclocal.m4: Remove ranlib test.
46222         * configure.in: No need to check for ranlib.
46223         * elf/rtld-Rules: Don't use RANLIB.
46224
46225 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46226
46227         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
46228         protection macro.
46229         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
46230         inclusion protection macro.
46231
46232         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
46233         SIGRTMIN and SIGRTMAX and print information in that case only when
46234         SIGRTMIN is defined.
46235
46236 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
46237
46238         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
46239         arginfo fn returning -1.
46240
46241         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
46242         and thousands string is zero terminated.
46243
46244 2011-02-03  Andreas Schwab  <schwab@redhat.com>
46245
46246         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
46247         sysdeps/unix/sysv/linux/bits/socket.h.
46248
46249 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46250
46251         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
46252         (__CPU_COUNT): Remove old macros.
46253         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
46254         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
46255         (__CPU_ALLOC, __CPU_FREE): Add macros.
46256         (__sched_cpualloc, __sched_cpufree): Add declarations.
46257
46258 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
46259
46260         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
46261         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
46262         * nscd/aicache.c (addhstaiX): Return timeout of added value.
46263         (readdhstai): Return value of addhstaiX call.
46264         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
46265         (addgrbyX): Return value returned by cache_addgr.
46266         (readdgrbyname): Return value returned by addgrbyX.
46267         (readdgrbygid): Likewise.
46268         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
46269         (addpwbyX): Return value returned by cache_addpw.
46270         (readdpwbyname): Return value returned by addhstbyX.
46271         (readdpwbyuid): Likewise.
46272         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
46273         (addservbyX): Return value returned by cache_addserv.
46274         (readdservbyname): Return value returned by addservbyX:
46275         (readdservbyport): Likewise.
46276         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
46277         (addhstbyX): Return value returned by cache_addhst.
46278         (readdhstbyname): Return value returned by addhstbyX.
46279         (readdhstbyaddr): Likewise.
46280         (readdhstbynamev6): Likewise.
46281         (readdhstbyaddrv6): Likewise.
46282         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
46283         (readdinitgroups): Return value returned by addinitgroupsX.
46284         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
46285         (prune_cache): Keep track of timeout value of re-added entries.
46286         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
46287         * nscd/nscd.h: Adjust prototypes of readd* functions.
46288
46289 2011-02-04  Roland McGrath  <roland@redhat.com>
46290
46291         * nis/nis_server.c (nis_servstate): Use the right name for 0.
46292         (nis_stats): Likewise.
46293         * nis/nis_modify.c (nis_modify): Likewise.
46294         * nis/nis_remove.c (nis_remove): Likewise.
46295         * nis/nis_add.c (nis_add): Likewise.
46296
46297         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
46298
46299         * posix/fnmatch_loop.c: Add some consts.
46300
46301         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
46302
46303 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
46304
46305         [BZ #12460]
46306         * config.make.in (config-cflags-novzeroupper): Define.
46307         * configure.in: Substitute libc_cv_cc_novzeroupper.
46308         * elf/Makefile (AVX-CFLAGS): Define.
46309         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
46310         (CFLAGS-tst-auditmod4a.c): Likewise.
46311         (CFLAGS-tst-auditmod4b.c): Likewise.
46312         (CFLAGS-tst-auditmod6b.c): Likewise.
46313         (CFLAGS-tst-auditmod6c.c): Likewise.
46314         (CFLAGS-tst-auditmod7b.c): Likewise.
46315         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
46316
46317 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
46318
46319         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
46320         function to the callback.
46321         Patch partly by Jiri Olsa <jolsa@redhat.com>.
46322
46323 2011-02-02  Andreas Schwab  <schwab@redhat.com>
46324
46325         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
46326         of errno.
46327
46328 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
46329
46330         [BZ #11724]
46331         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
46332         of constructors.
46333         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
46334         of destructors.
46335         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
46336
46337         [BZ #11724]
46338         * elf/Makefile: Add rules to build and run new test.
46339         * elf/tst-initorder.c: New file.
46340         * elf/tst-initorder.exp: New file.
46341         * elf/tst-initordera1.c: New file.
46342         * elf/tst-initordera2.c: New file.
46343         * elf/tst-initordera3.c: New file.
46344         * elf/tst-initordera4.c: New file.
46345         * elf/tst-initorderb1.c: New file.
46346         * elf/tst-initorderb2.c: New file.
46347         * elf/tst-order-a1.c: New file.
46348         * elf/tst-order-a2.c: New file.
46349         * elf/tst-order-a3.c: New file.
46350         * elf/tst-order-a4.c: New file.
46351         * elf/tst-order-b1.c: New file.
46352         * elf/tst-order-b2.c: New file.
46353         * elf/tst-order-main.c: New file.
46354         New test case by George Gensure <werkt0@gmail.com>.
46355
46356 2010-10-01  Andreas Schwab  <schwab@redhat.com>
46357
46358         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
46359         decoding ACE if AI_CANONIDN.
46360
46361 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
46362
46363         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
46364
46365 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
46366
46367         * version.h (RELEASE): Bump for 2.13 release.
46368         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
46369
46370         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
46371
46372         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
46373         MADV_NOHUGEPAGE.
46374         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
46375         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
46376         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
46377         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
46378         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
46379         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
46380
46381         * posix/getconf.c: Update copyright year.
46382         * catgets/gencat.c: Likewise.
46383         * csu/version.c: Likewise.
46384         * debug/catchsegv.sh: Likewise.
46385         * debug/xtrace.sh: Likewise.
46386         * elf/ldconfig.c: Likewise.
46387         * elf/ldd.bash.in: Likewise.
46388         * elf/sprof.c (print_version): Likewise.
46389         * iconv/iconv_prog.c: Likewise.
46390         * iconv/iconvconfig.c: Likewise.
46391         * locale/programs/locale.c: Likewise.
46392         * locale/programs/localedef.c: Likewise.
46393         * malloc/memusage.sh: Likewise.
46394         * malloc/mtrace.pl: Likewise.
46395         * nscd/nscd.c (print_version): Likewise.
46396         * nss/getent.c: Likewise.
46397
46398         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
46399         PF_CAIF, and PF_ALG.
46400         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
46401
46402 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
46403
46404         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
46405         (modules-names): Use them.
46406         (ifunc-test-modules, ifunc-pie-tests): Define.
46407         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
46408         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
46409         (test-extras): Likewise.
46410         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
46411         $(compile-command.c).
46412         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
46413         (all-built-dso): Define.
46414         (check-textrel.out, check-execstack.out): Depend on it.
46415
46416         * configure.in: Don't override --enable-multi-arch.
46417
46418 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
46419
46420         [BZ #6812]
46421         * nscd/hstcache.c (tryagain): Define.
46422         (cache_addhst): Return tryagain not notfound for temporary errors.
46423         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
46424         failed.
46425
46426 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
46427
46428         [BZ #10563]
46429         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
46430         to make the syscall.
46431         * sysdeps/unix/sysv/linux/setgroups.c: New file.
46432
46433         [BZ #12378]
46434         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
46435         and fall back to matching as normal character if the string ends before
46436         the matching ']' is found.  This is what POSIX requires.
46437         * posix/testfnm.c: Adjust test result.
46438         * posix/globtest.sh: Adjust test result.  Add new test.
46439         * posix/tst-fnmatch.input: Likewise.
46440         * posix/tst-fnmatch2.c: Add new test.
46441
46442 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
46443
46444         * elf/Makefile (check-execstack): Revert last change.  Depend on
46445         check-execstack.h.
46446         (check-execstack.h): New target.
46447         (generated): Add check-execstack.h.
46448         * elf/check-execstack.c: Include "check-execstack.h".
46449         (main): Revert last change.
46450         (handle_file): Return zero if GNU_STACK is absent and
46451         DEFAULT_STACK_PERMS doesn't include PF_X.
46452
46453 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
46454
46455         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
46456         in child fails because the descriptor is already closed.
46457         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
46458         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
46459         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
46460
46461         [BZ #12397]
46462         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
46463         syscall.
46464
46465         [BZ #10484]
46466         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
46467         temporary buffer used to handle multi lookups locally.
46468         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
46469
46470 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
46471
46472         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
46473         loader is ld.so.
46474
46475 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
46476
46477         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
46478         alignment for SSE2.
46479
46480 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
46481
46482         [BZ #12394]
46483         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
46484         characters.  When rounding increased number of integer digits recompute
46485         number of groups.
46486         * stdio-common/tst-grouping.c: New file.
46487         * stdio-common/Makefile: Add rules to build and run tst-grouping.
46488
46489 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
46490
46491         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
46492         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
46493
46494         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
46495         void.
46496         * bits/select.h: Likewise.
46497
46498 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
46499
46500         * po/ja.po: Update from translation team.
46501
46502 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
46503
46504         [BZ #11155]
46505         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
46506         implementation just like for lxstat, fxstatat, et al.
46507
46508 2010-12-27  Jim Meyering  <meyering@redhat.com>
46509
46510         [BZ #12348]
46511         * posix/regexec.c (build_trtable): Return failure indication upon
46512         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
46513
46514 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
46515
46516         [BZ #12201]
46517         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
46518         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
46519         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
46520         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
46521
46522         [BZ #12207]
46523         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
46524
46525         [BZ #12204]
46526         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
46527         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
46528
46529 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
46530
46531         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
46532         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
46533         script has SORT_BY_INIT_PRIORITY.
46534         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
46535         NO_CTORS_DTORS_SECTIONS is defined.
46536         * elf/soinit.c: Likewise.
46537         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
46538         NO_CTORS_DTORS_SECTIONS is defined.
46539         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
46540         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
46541         * sysdeps/sh/init-first.c: Likewise.
46542         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
46543
46544 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
46545
46546         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
46547         always use the slow path.
46548
46549 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
46550
46551         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
46552         similar rule which adds the sysdep directories to the header search in
46553         order to pick up the correct platform stackinfo.h.
46554         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
46555         perform test if it is, otherwise return successfully without testing.
46556         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
46557         DEFAULT_STACK_PERMS define in stackinfo.h.
46558         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
46559         defined in stackinfo.h.
46560         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
46561         DEFAULT_STACK_PERMS defined in stackinfo.h.
46562         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
46563         * sysdeps/ia64/stackinfo.h: Likewise.
46564         * sysdeps/s390/stackinfo.h: Likewise.
46565         * sysdeps/sh/stackinfo.h: Likewise.
46566         * sysdeps/sparc/stackinfo.h: Likewise.
46567         * sysdeps/x86_64/stackinfo.h: Likewise.
46568         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
46569         PF_X for powerpc64.  Retain PF_X for powerpc32.
46570
46571 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
46572
46573         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
46574         accurately.
46575         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
46576         GETDENTS_64BIT_ALIGNED.
46577
46578 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
46579
46580         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
46581
46582 2010-12-10  Andreas Schwab  <schwab@redhat.com>
46583
46584         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
46585         _GNU_SOURCE.
46586
46587         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
46588         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
46589         Remove __restrict.
46590         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
46591         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
46592
46593 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
46594
46595         [BZ #11655]
46596         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
46597         are initialized.
46598
46599 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
46600
46601         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
46602
46603 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
46604
46605         * po/it.po: Update from translation team.
46606
46607 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
46608
46609         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
46610         unused codes.
46611
46612 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
46613
46614         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
46615
46616 2010-11-24  Andreas Schwab  <schwab@redhat.com>
46617
46618         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
46619         specially.
46620         (gaih_getanswer_slice): Likewise.
46621
46622 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
46623
46624         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
46625
46626 2010-05-31  Petr Baudis  <pasky@suse.cz>
46627
46628         [BZ #11149]
46629         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
46630         silently even in the chroot mode.
46631
46632 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
46633
46634         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
46635         last patch a bit.  Pretty printing
46636
46637 2010-05-31  Petr Baudis <pasky@suse.cz>
46638
46639         [BZ #10085]
46640         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
46641         initialization of skip_initgroups_dyn.
46642
46643 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
46644
46645         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
46646         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
46647
46648 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
46649
46650         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
46651
46652 2010-11-11  Andreas Schwab  <schwab@redhat.com>
46653
46654         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
46655         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
46656         (tst-fnmatch-ENV): Set MALLOC_TRACE.
46657         ($(objpfx)tst-fnmatch-mem): New rule.
46658         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
46659         * posix/tst-fnmatch.c (main): Call mtrace.
46660
46661 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
46662
46663         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46664         Support Intel processor model 6 and model 0x2c.
46665
46666 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
46667
46668         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
46669           signed comparison.
46670
46671 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
46672
46673         [BZ #12205]
46674         * string/test-strncasecmp.c (check_result): New function.
46675         (do_one_test): Use it.
46676         (check1): New function.
46677         (test_main): Use it.
46678         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
46679         Support strcasecmp and strncasecmp.
46680
46681 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
46682
46683         [BZ #12194]
46684         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
46685         * sysdeps/x86_64/bits/byteswap.h: Likewise.
46686
46687 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
46688
46689         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
46690         IFUNC support.
46691         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46692         memset-x86-64.
46693         * sysdeps/x86_64/multiarch/bzero.S: New file.
46694         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
46695         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
46696         * sysdeps/x86_64/multiarch/memset.S: New file.
46697         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
46698         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46699         Set bit_Prefer_SSE_for_memop for Intel processors.
46700         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
46701         Define.
46702         (index_Prefer_SSE_for_memop): Define.
46703         (HAS_PREFER_SSE_FOR_MEMOP): Define.
46704
46705 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
46706
46707         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
46708         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
46709
46710 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
46711
46712         [BZ #12191]
46713         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46714         (__x86_64_raw_data_cache_size_half): Likewise.
46715         (__x86_64_raw_shared_cache_size): Likewise.
46716         (__x86_64_raw_shared_cache_size_half): Likewise.
46717
46718         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
46719         (__x86_64_raw_data_cache_size_half): Likewise.
46720         (__x86_64_raw_shared_cache_size): Likewise.
46721         (__x86_64_raw_shared_cache_size_half): Likewise.
46722         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
46723         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
46724         and __x86_64_raw_shared_cache_size_half.  Round
46725         __x86_64_data_cache_size_half, __x86_64_data_cache_size
46726         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
46727         to multiple of 256 bytes.
46728
46729 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
46730
46731         [BZ #12167]
46732         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
46733         of inacessible symlinks.  Verify result of symlink before returning it.
46734         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
46735         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
46736
46737 2010-10-28  Erich Ritz  <erichritz@gmail.com>
46738
46739         * math/math.h (isinf): Fix typo in comment.
46740
46741 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
46742
46743         * po/da.po: Update from translation team.
46744
46745 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
46746
46747         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
46748         is added to the list.
46749
46750 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46751             Ulrich Drepper  <drepper@gmail.com>
46752
46753         * elf/dl-object.c (_dl_new_object): Don't append the new object to
46754         the global list here.  Move code to...
46755         (_dl_add_to_namespace_list): ...here.  New function.
46756         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
46757         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
46758         * elf/dl-load.c (lose): Don't remove the element from the list.
46759         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
46760         (_dl_map_object): Likewise.
46761
46762 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
46763
46764         [BZ #12159]
46765         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
46766         into all bytes of SSE register.
46767         Patch by Richard Li <richardpku@gmail.com>.
46768
46769 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
46770
46771         [BZ #12140]
46772         * malloc/malloc.c (_int_free): Fill correct number of bytes when
46773         perturbing.
46774
46775 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
46776
46777         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
46778         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
46779         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
46780         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
46782         submachine.
46783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
46784
46785 2010-10-22  Andreas Schwab  <schwab@redhat.com>
46786
46787         * include/dlfcn.h (__RTLD_SECURE): Define.
46788         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
46789         mode & __RTLD_SECURE instead.
46790         (open_path): Rename preloaded parameter to secure.
46791         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
46792         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
46793         * elf/dl-deps.c (openaux): Likewise.
46794         * elf/rtld.c (struct map_args): Remove is_preloaded.
46795         (map_doit): Don't use it.
46796         (dl_main): Likewise.
46797         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
46798         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
46799
46800 2010-09-09  Andreas Schwab  <schwab@redhat.com>
46801
46802         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
46803         (sysd-rules-targets): Remove duplicates.
46804         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
46805         rtld-%.$o dependency.
46806
46807 2010-10-18  Andreas Schwab  <schwab@redhat.com>
46808
46809         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
46810         _dl_map_object do it.
46811
46812 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
46813
46814         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
46815         fast fma builtins, define the macros in the C99 standard.
46816         (FP_FAST_FMAF): Likewise.
46817         (FP_FAST_FMAL): Likewise.
46818         * sysdeps/x86_64/bits/mathdef.h: Likewise.
46819
46820         * bits/mathdef.h: Update copyright year.
46821         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46822
46823 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
46824
46825         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
46826         builtins, define the macros in the C99 standard.
46827         (FP_FAST_FMAF): Likewise.
46828         (FP_FAST_FMAL): Likewise.
46829         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
46830         multiply/add.
46831         (FP_FAST_FMAF): Likewise.
46832
46833 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
46834
46835         [BZ #3268]
46836         * math/libm-test.inc (fma_test): Some new testcases.
46837         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
46838         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
46839         y and infinite z.  Do multiplication by C already in long double.
46840         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
46841         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
46842         y and infinite z.  Do bitwise or of inexact bit into u.d.
46843         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
46844         * sysdeps/i386/fpu/s_fmaf.S: Removed.
46845         * sysdeps/i386/fpu/s_fma.S: Removed.
46846         * sysdeps/i386/fpu/s_fmal.S: Removed.
46847
46848 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
46849
46850         [BZ #3268]
46851         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
46852         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
46853         computation is not scheduled after fetestexcept.  Fix value
46854         of minimum denormal long double.
46855
46856 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
46857
46858         [BZ #3268]
46859         * math/libm-test.inc (fma_test): Add some more tests.
46860         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
46861         correctly.
46862
46863 2010-10-15  Andreas Schwab  <schwab@redhat.com>
46864
46865         * scripts/data/localplt-s390-linux-gnu.data: New file.
46866         * scripts/data/localplt-s390x-linux-gnu.data: New file.
46867
46868 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
46869
46870         [BZ #3268]
46871         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
46872         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
46873         instead of dbl-64.
46874         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
46875         inlines.
46876         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
46877         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
46878         if one of x and y is very large and the other is subnormal.
46879         * sysdeps/s390/fpu/s_fmaf.c: New file.
46880         * sysdeps/s390/fpu/s_fma.c: New file.
46881         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
46882         * sysdeps/powerpc/fpu/s_fma.S: New file.
46883         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
46884         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
46885         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
46886
46887 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
46888
46889         [BZ #3268]
46890         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
46891         fma tests.
46892         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
46893         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
46894         * sysdeps/i386/i686/multiarch/s_fma.c: Include
46895         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
46896         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
46897         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
46898         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
46899
46900 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
46901
46902         [BZ #12078]
46903         * posix/regcomp.c (parse_branch): One more memory leak plugged.
46904         * posix/bug-regex31.input: Add test case.
46905
46906 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46907
46908         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
46909         * posix/bug-regex31.input: New file.
46910
46911         [BZ #12078]
46912         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
46913         (parse_sub_exp): Fix last change, use postorder.
46914
46915         * posix/bug-regex31.c: New file.
46916         * posix/Makefile: Add rules to build and run bug-regex31.
46917
46918         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
46919
46920         [BZ #12078]
46921         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
46922
46923         [BZ #12108]
46924         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
46925         to have entries in sys_siglist.
46926
46927         [BZ #12093]
46928         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
46929         be NULL.
46930
46931 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
46932
46933         [BZ #3268]
46934         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
46935         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
46936         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
46937         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
46938         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
46939         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
46940         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
46941         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
46942         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
46943         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
46944         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
46945         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
46946         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
46947         * math/ftestexcept.c (fetestexcept): Likewise.
46948         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
46949         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
46950         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
46951         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
46952         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
46953         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
46954         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
46955
46956 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
46957
46958         [BZ #12107]
46959         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
46960         newline.
46961
46962 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
46963
46964         * string/bug-strstr1.c: New file.
46965         * string/Makefile: Add rules to build and run bug-strstr1.
46966
46967 2010-10-05  Eric Blake  <eblake@redhat.com>
46968
46969         [BZ #12092]
46970         * string/str-two-way.h (two_way_long_needle): Always clear memory
46971         when skipping input due to the shift table.
46972
46973 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
46974
46975         [BZ #12005]
46976         * malloc/mcheck.c: Handle large requests.
46977
46978         [BZ #12077]
46979         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
46980         for strncmp and strncasecmp.
46981         * string/stratcliff.c: Add tests for strcmp and strncmp.
46982         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
46983
46984 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
46985
46986         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
46987         __set_fpscr.
46988
46989 2010-09-30  Andreas Jaeger  <aj@suse.de>
46990
46991         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
46992         (CGROUP_SUPER_MAGIC): Define.
46993         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46994         Handle btrfs and cgroup file systems.
46995         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46996         Likewise.
46997
46998 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
46999
47000         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
47001         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
47002
47003 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47004
47005         [BZ #12067]
47006         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
47007         trying to locate the ELF header.
47008
47009 2010-09-27  Andreas Schwab  <schwab@redhat.com>
47010
47011         [BZ #11611]
47012         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
47013         Mask out sign-bit copies when constructing f_fsid.
47014
47015 2010-09-24  Petr Baudis <pasky@suse.cz>
47016
47017         * debug/stack_chk_fail_local.c: Add missing licence exception.
47018         * debug/warning-nop.c: Likewise.
47019
47020 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
47021
47022         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
47023         implementing getdents64 using getdents syscall, set d_type if
47024         __ASSUME_GETDENTS32_D_TYPE.
47025
47026 2010-09-16  Andreas Schwab  <schwab@redhat.com>
47027
47028         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
47029         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
47030
47031 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
47032
47033         [BZ #12037]
47034         * posix/unistd.h: Undo change of feature selection for ftruncate from
47035         2010-01-11.
47036
47037 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
47038
47039         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
47040         detection.
47041
47042 2010-09-20  Andreas Schwab  <schwab@redhat.com>
47043
47044         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
47045         fanotify_mark.
47046         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
47047
47048 2010-09-14  Andreas Schwab  <schwab@redhat.com>
47049
47050         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
47051         variables after CHECK_SP call.
47052         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
47053
47054 2010-09-13  Andreas Schwab  <schwab@redhat.com>
47055             Ulrich Drepper  <drepper@redhat.com>
47056
47057         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
47058         re-relocationg ld.so.
47059         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
47060         _dl_init_paths call.
47061         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
47062         here anymore.
47063
47064 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
47065
47066         * resolv/res_init.c (__res_vinit): Count the default server we added.
47067
47068 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
47069             Ulrich Drepper  <drepper@redhat.com>
47070
47071         [BZ #11968]
47072         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
47073         (____longjmp_chk): Use %ebx for saving value across system call.
47074         Add unwind info.
47075
47076 2010-09-06  Andreas Schwab  <schwab@redhat.com>
47077
47078         * manual/Makefile: Don't mix pattern rules with normal rules.
47079
47080 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
47081
47082         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
47083         operation.
47084         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
47085         * libio/iofopncook.c (_IO_cookie_init): Likewise.
47086         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
47087         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
47088         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
47089         Likewise.
47090
47091 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
47092
47093         [BZ #11979]
47094         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
47095         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
47096
47097 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
47098
47099         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
47100         * sysdeps/x86_64/addmul_1.S: Likewise.
47101         * sysdeps/x86_64/lshift.S: Likewise.
47102         * sysdeps/x86_64/mul_1.S: Likewise.
47103         * sysdeps/x86_64/rshift.S: Likewise.
47104         * sysdeps/x86_64/sub_n.S: Likewise.
47105         * sysdeps/x86_64/submul_1.S: Likewise.
47106
47107 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47108
47109         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
47110         Define __sched_param instead of SCHED_* and sched_param when
47111         <bits/sched.h> is included with __need_schedparam defined.
47112         * bits/sched.h [__need_schedparam]
47113         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
47114         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
47115         (__defined_schedparam): Define to 1.
47116         (__sched_param): New structure, identical to sched_param.
47117         (__need_schedparam): Undefine.
47118
47119 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
47120
47121         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
47122         (epoll_create1): Declare.
47123
47124         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
47125
47126 2010-08-31  Andreas Schwab  <schwab@redhat.com>
47127
47128         [BZ #7066]
47129         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
47130         shifting retval into place.
47131
47132 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
47133
47134         * nis/rpcsvc/nis.h: Update copyright notice.
47135         * nis/rpcsvc/nis.x: Likewise.
47136         * nis/rpcsvc/nis_callback.h: Likewise.
47137         * nis/rpcsvc/nis_callback.x: Likewise.
47138         * nis/rpcsvc/nis_object.x: Likewise.
47139         * nis/rpcsvc/nis_tags.h: Likewise.
47140         * nis/rpcsvc/yp.h: Likewise.
47141         * nis/rpcsvc/yp.x: Likewise.
47142         * nis/rpcsvc/ypupd.h: Likewise.
47143         * nis/yp_xdr.c: Likewise.
47144         * nis/ypupdate_xdr.c: Likewise.
47145
47146         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
47147         mainly the body of pmap_getport.  Add parameters to specify timeouts.
47148         (pmap_getport): Use __libc_rpc_getport.
47149         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
47150         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
47151         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
47152
47153 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
47154
47155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
47156         fanotify_mark.
47157
47158 2010-08-27  Roland McGrath  <roland@redhat.com>
47159
47160         * sysdeps/i386/i686/multiarch/Makefile
47161         (CFLAGS-varshift.c): New variable.
47162
47163 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
47164
47165         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
47166         * sysdeps/i386/i686/multiarch/varshift.c: New file.
47167
47168         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
47169
47170         * sysdeps/x86_64/strlen.S: Minimal code improvement.
47171
47172 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
47173
47174         * sysdeps/x86_64/strlen.S: Unroll the loop.
47175         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47176         strlen-sse2 strlen-sse2-bsf.
47177         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
47178         __strlen_no_bsf if bit_Slow_BSF is set.
47179         (__strlen_sse42): Removed.
47180         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
47181         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
47182
47183 2010-08-25  Roland McGrath  <roland@redhat.com>
47184
47185         * sysdeps/x86_64/multiarch/varshift.S: File removed.
47186         * sysdeps/x86_64/multiarch/varshift.c: New file.
47187         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
47188         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
47189         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
47190         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
47191
47192 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
47193
47194         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
47195         strlen-sse2 strlen-sse2-bsf.
47196         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
47197         __strlen_sse2_bsf if bit_Slow_BSF is unset.
47198         (__strlen_sse2): Removed.
47199         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
47200         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
47201         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
47202         bit_Slow_BSF for Atom.
47203         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
47204         (index_Slow_BSF): Define.
47205         (HAS_SLOW_BSF): Define.
47206
47207 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
47208
47209         [BZ #10851]
47210         * resolv/res_init.c (__res_vinit): When no server address at all
47211         is given default to loopback.
47212
47213 2010-08-24  Roland McGrath  <roland@redhat.com>
47214
47215         * configure.in: Remove config-name.h generation.
47216         * configure: Regenerated.
47217         * config-name.in: File removed.
47218         * scripts/config-uname.sh: New file.
47219         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
47220         ($(objdir)config-name.h): New target.
47221
47222         * sunrpc/rpc_parse.h: Avoid nested comment.
47223
47224 2010-08-24  Richard Henderson  <rth@redhat.com>
47225             Ulrich Drepper  <drepper@redhat.com>
47226             H.J. Lu  <hongjiu.lu@intel.com>
47227
47228         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
47229         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
47230         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
47231         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
47232         _mm_alignr_epi8 with _mm_loadu_si128.
47233         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
47234         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
47235         (__m128i_shift_right): Removed.
47236         * sysdeps/i386/i686/multiarch/varshift.h: New file.
47237         * sysdeps/i386/i686/multiarch/varshift.S: New file.
47238         * sysdeps/x86_64/multiarch/varshift.h: New file.
47239         * sysdeps/x86_64/multiarch/varshift.S: New file.
47240
47241 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
47242
47243         * configure.in: Move assembler checks to before sysdep dir checking.
47244
47245 2010-08-20  Petr Baudis  <pasky@suse.cz>
47246
47247         * LICENSES: Sync the sunrpc license.
47248
47249 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
47250
47251         * sunrpc/auth_des.c: Update copyright notice once again.
47252         * sunrpc/auth_none.c: Likewise.
47253         * sunrpc/auth_unix.c: Likewise.
47254         * sunrpc/authdes_prot.c: Likewise.
47255         * sunrpc/authuxprot.c: Likewise.
47256         * sunrpc/bindrsvprt.c: Likewise.
47257         * sunrpc/clnt_gen.c: Likewise.
47258         * sunrpc/clnt_perr.c: Likewise.
47259         * sunrpc/clnt_raw.c: Likewise.
47260         * sunrpc/clnt_simp.c: Likewise.
47261         * sunrpc/clnt_tcp.c: Likewise.
47262         * sunrpc/clnt_udp.c: Likewise.
47263         * sunrpc/clnt_unix.c: Likewise.
47264         * sunrpc/des_crypt.c: Likewise.
47265         * sunrpc/des_soft.c: Likewise.
47266         * sunrpc/get_myaddr.c: Likewise.
47267         * sunrpc/getrpcport.c: Likewise.
47268         * sunrpc/key_call.c: Likewise.
47269         * sunrpc/key_prot.c: Likewise.
47270         * sunrpc/openchild.c: Likewise.
47271         * sunrpc/pm_getmaps.c: Likewise.
47272         * sunrpc/pm_getport.c: Likewise.
47273         * sunrpc/pmap_clnt.c: Likewise.
47274         * sunrpc/pmap_prot.c: Likewise.
47275         * sunrpc/pmap_prot2.c: Likewise.
47276         * sunrpc/pmap_rmt.c: Likewise.
47277         * sunrpc/rpc/auth.h: Likewise.
47278         * sunrpc/rpc/auth_unix.h: Likewise.
47279         * sunrpc/rpc/clnt.h: Likewise.
47280         * sunrpc/rpc/des_crypt.h: Likewise.
47281         * sunrpc/rpc/key_prot.h: Likewise.
47282         * sunrpc/rpc/netdb.h: Likewise.
47283         * sunrpc/rpc/pmap_clnt.h: Likewise.
47284         * sunrpc/rpc/pmap_prot.h: Likewise.
47285         * sunrpc/rpc/pmap_rmt.h: Likewise.
47286         * sunrpc/rpc/rpc.h: Likewise.
47287         * sunrpc/rpc/rpc_des.h: Likewise.
47288         * sunrpc/rpc/rpc_msg.h: Likewise.
47289         * sunrpc/rpc/svc.h: Likewise.
47290         * sunrpc/rpc/svc_auth.h: Likewise.
47291         * sunrpc/rpc/types.h: Likewise.
47292         * sunrpc/rpc/xdr.h: Likewise.
47293         * sunrpc/rpc_clntout.c: Likewise.
47294         * sunrpc/rpc_cmsg.c: Likewise.
47295         * sunrpc/rpc_common.c: Likewise.
47296         * sunrpc/rpc_cout.c: Likewise.
47297         * sunrpc/rpc_dtable.c: Likewise.
47298         * sunrpc/rpc_hout.c: Likewise.
47299         * sunrpc/rpc_main.c: Likewise.
47300         * sunrpc/rpc_parse.c: Likewise.
47301         * sunrpc/rpc_parse.h: Likewise.
47302         * sunrpc/rpc_prot.c: Likewise.
47303         * sunrpc/rpc_sample.c: Likewise.
47304         * sunrpc/rpc_scan.c: Likewise.
47305         * sunrpc/rpc_scan.h: Likewise.
47306         * sunrpc/rpc_svcout.c: Likewise.
47307         * sunrpc/rpc_tblout.c: Likewise.
47308         * sunrpc/rpc_util.c: Likewise.
47309         * sunrpc/rpc_util.h: Likewise.
47310         * sunrpc/rpcinfo.c: Likewise.
47311         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
47312         * sunrpc/rpcsvc/key_prot.x: Likewise.
47313         * sunrpc/rpcsvc/klm_prot.x: Likewise.
47314         * sunrpc/rpcsvc/mount.x: Likewise.
47315         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
47316         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
47317         * sunrpc/rpcsvc/rex.x: Likewise.
47318         * sunrpc/rpcsvc/rstat.x: Likewise.
47319         * sunrpc/rpcsvc/rusers.x: Likewise.
47320         * sunrpc/rpcsvc/sm_inter.x: Likewise.
47321         * sunrpc/rpcsvc/spray.x: Likewise.
47322         * sunrpc/rpcsvc/yppasswd.x: Likewise.
47323         * sunrpc/rtime.c: Likewise.
47324         * sunrpc/svc.c: Likewise.
47325         * sunrpc/svc_auth.c: Likewise.
47326         * sunrpc/svc_authux.c: Likewise.
47327         * sunrpc/svc_raw.c: Likewise.
47328         * sunrpc/svc_run.c: Likewise.
47329         * sunrpc/svc_simple.c: Likewise.
47330         * sunrpc/svc_tcp.c: Likewise.
47331         * sunrpc/svc_udp.c: Likewise.
47332         * sunrpc/svc_unix.c: Likewise.
47333         * sunrpc/svcauth_des.c: Likewise.
47334         * sunrpc/xcrypt.c: Likewise.
47335         * sunrpc/xdr.c: Likewise.
47336         * sunrpc/xdr_array.c: Likewise.
47337         * sunrpc/xdr_float.c: Likewise.
47338         * sunrpc/xdr_mem.c: Likewise.
47339         * sunrpc/xdr_rec.c: Likewise.
47340         * sunrpc/xdr_ref.c: Likewise.
47341         * sunrpc/xdr_sizeof.c: Likewise.
47342         * sunrpc/xdr_stdio.c: Likewise.
47343
47344         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
47345         handling.
47346
47347 2010-08-19  Andreas Schwab  <schwab@redhat.com>
47348
47349         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
47350
47351 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
47352
47353         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
47354         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
47355         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
47356         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
47357         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
47358         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
47359         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
47360         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
47361         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
47362         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
47363         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
47364         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
47365         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
47366         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
47367
47368 2010-07-26  Anton Blanchard  <anton@samba.org>
47369
47370         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
47371         * malloc/arena.c (heap_trim): Likewise.
47372
47373 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
47374
47375         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
47376         here.  Not...
47377         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
47378         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
47379
47380 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
47381
47382         * sysdeps/i386/elf/Makefile: New file.
47383
47384 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
47385
47386         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
47387         from fanotify_init.
47388         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
47389         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
47390
47391 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
47392
47393         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
47394         of strncasecmp_l.
47395         * sysdeps/multiarch/strcmp.S: Likewise.
47396
47397 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
47398
47399         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
47400         strncase_l-nonascii.
47401         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
47402         Add strncase_l-ssse3.
47403         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
47404         * sysdeps/x86_64/strcmp.S: Likewise.
47405         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
47406         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
47407         * sysdeps/x86_64/strncase.S: New file.
47408         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
47409         * sysdeps/x86_64/strncase_l.S: New file.
47410         * string/Makefile (strop-tests): Add strncasecmp.
47411         * string/test-strncasecmp.c: New file.
47412
47413         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
47414         warning.
47415
47416         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
47417         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
47418
47419 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
47420
47421         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
47422
47423 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
47424
47425         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
47426         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
47427         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
47428
47429 2010-05-01  Alan Modra  <amodra@gmail.com>
47430
47431         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
47432         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
47433         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
47434         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
47435         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
47436         tidying.  Don't tail-call __sigjmp_save for static lib.
47437         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
47438         save location.
47439         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
47440         (CALL_MCOUNT): Add eh info, and nop after bl.
47441         (TAIL_CALL_SYSCALL_ERROR): New macro.
47442         (PSEUDO_RET): Use it.
47443         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
47444         Correct save location of integer regs and cr.
47445         (_dl_profile_resolve): Correct cr save location.  Delete nops
47446         after bl when SHARED.  Reduce cfi size a little by better
47447         placement of cfi directives.
47448         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
47449         make a stack frame.  Instead use parm save area as a temp.
47450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
47451         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
47452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
47453         Don't make a stack frame for parent, use parm save area.
47454         Increase child stack frame to 112 bytes.  Don't save unused reg,
47455         and adjust reg usage.  Set up cfi on error recovery and
47456         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
47457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
47458         (__makecontext): Add dummy nop after jump to exit.
47459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
47460         Use correct parm save area and cr save, reduce stack frame.
47461         Correct cfi for possible PSEUDO_RET frame setup.
47462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
47463         Branch to local label emitted by PSEUDO_RET rather than
47464         __syscall_error.
47465
47466 2010-08-12  Andreas Schwab  <schwab@redhat.com>
47467
47468         [BZ #11904]
47469         * locale/programs/locale.c (print_assignment): New function.
47470         (show_locale_vars): Use it.
47471
47472 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
47473
47474         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
47475         field.
47476         (struct statfs64): Likewise.
47477         (_STATFS_F_FLAGS): Define.
47478         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
47479         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
47480         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
47481         (ST_VALID): Define locally.
47482         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
47483         __statvfs_getflags, use the provided value.
47484         * sysdeps/unix/sysv/linux/kernel-features.h: Define
47485         __ASSUME_STATFS_F_FLAGS.
47486
47487         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
47488
47489         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
47490         Add sys/fanotify.h.
47491         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
47492         fanotify_mask for GLIBC_2.13.
47493         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
47494         fanotify_init and fanotify_mark.
47495         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
47496         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
47497
47498         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
47499         Add prlimit.
47500         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
47501         prlimit64 for GLIBC_2.13.
47502         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
47503         prlimit64.
47504         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
47505         syscall.
47506         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
47507         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
47508         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
47509         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
47510         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
47511         add prlimit alias.
47512         * sysdeps/unix/sysv/linux/prlimit.c: New file.
47513
47514         [BZ #11903]
47515         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
47516         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
47517
47518         * nss/Makefile: Add rules to build and run tst-nss-test1.
47519         * shlib-versions: Add entry for libnss_test1.
47520         * nss/nss_test1.c: New file.
47521         * nss/tst-nss-test1.c: New file.
47522
47523         * nss/nsswitch.c (__nss_database_custom): Define new variable.
47524         (__nss_configure_lookup): Set appropriate entry in
47525         __nss_configure_lookup to true.
47526         * nss/nsswitch.h: Define enum with indeces of databases in
47527         databases and __nss_database_custom arrays.  Declare
47528         __nss_database_custom.
47529         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
47530         to avoid using nscd when custom rules are installed.
47531         * nss/getXXbyYY_r.c: Likewise.
47532         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
47533
47534         * nss/nss_files/files-parse.c: Whitespace fixes.
47535
47536 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
47537
47538         [BZ #11883]
47539         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
47540         * posix/fnmatch_loop.c: Likewise.
47541
47542 2010-07-17  Andi Kleen  <ak@linux.intel.com>
47543
47544         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
47545         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
47546         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
47547         * Versions.def [GLIBC_2.13]: Add.
47548
47549 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
47550
47551         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47552         Also fail if tpwd after pwuid call is NULL.
47553
47554 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47555
47556         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
47557         when converting to ms.
47558
47559 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47560
47561         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
47562         EOPNOTSUPP errors with ENOTTY.
47563         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
47564         EOPNOTSUPP errors with ENOTTY.
47565
47566 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
47567
47568         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
47569         Add strcasecmp_l-ssse3.
47570         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
47571         strcasecmp.
47572         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
47573         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
47574         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
47575
47576 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
47577
47578         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
47579
47580         * string/Makefile (strop-tests): Add strcasecmp.
47581         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
47582         strcasecmp_l-nonascii.
47583         (gen-as-const-headers): Add locale-defines.sym.
47584         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
47585         * sysdeps/x86_64/strcasecmp.S: New file.
47586         * sysdeps/x86_64/strcasecmp_l.S: New file.
47587         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
47588         * sysdeps/x86_64/locale-defines.sym: New file.
47589         * string/test-strcasecmp.c: New file.
47590
47591         * string/test-strcasestr.c: Test both ends of the range of characters.
47592         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
47593
47594 2010-07-29  Roland McGrath  <roland@redhat.com>
47595
47596         [BZ #11856]
47597         * manual/locale.texi (Yes-or-No Questions): Fix example code.
47598
47599 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
47600
47601         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
47602         for ld.so.
47603
47604 2010-07-27  Andreas Schwab  <schwab@redhat.com>
47605
47606         * manual/memory.texi (Malloc Tunable Parameters): Document
47607         M_PERTURB.
47608
47609 2010-07-26  Roland McGrath  <roland@redhat.com>
47610
47611         [BZ #11840]
47612         * configure.in (-fgnu89-inline check): Set and substitute
47613         gnu89_inline, not libc_cv_gnu89_inline.
47614         * configure: Regenerated.
47615         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
47616
47617 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
47618
47619         * string/test-strnlen.c: New file.
47620         * string/Makefile (strop-tests): Add strnlen.
47621         * string/tester.c (test_strnlen): Add a few more test cases.
47622         * string/tst-strlen.c: Better error reporting.
47623
47624         * sysdeps/x86_64/strnlen.S: New file.
47625
47626 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
47627
47628         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
47629         lower-latency instructions.
47630
47631 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
47632
47633         * string/test-strcasestr.c: New file.
47634         * string/test-strstr.c: New file.
47635         * string/Makefile (strop-tests): Add strstr and strcasestr.
47636         * string/str-two-way.h: Don't undefine MAX.
47637         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
47638
47639 2010-07-21  Andreas Schwab  <schwab@redhat.com>
47640
47641         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
47642         strcasestr-nonascii.
47643         (CFLAGS-strcasestr-nonascii.c): Define.
47644         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
47645         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
47646         Remove unused attribute.
47647
47648 2010-07-20  Roland McGrath  <roland@redhat.com>
47649
47650         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
47651         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
47652         ld.so.cache was broken.  With it, there is no way to disable dsocaps
47653         like LD_HWCAP_MASK can disable hwcaps.
47654
47655 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47656
47657         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
47658
47659 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
47660
47661         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
47662         call in strcasestr.
47663         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
47664         __strcasestr_sse42_nonascii.
47665         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
47666         strcasestr-nonascii.c.
47667         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
47668
47669 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
47670
47671         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
47672         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
47673         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
47674         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
47675
47676 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
47677
47678         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
47679         fcntl.
47680
47681 2010-07-06  Andreas Schwab  <schwab@redhat.com>
47682
47683         [BZ #11577]
47684         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
47685         dl_signal_cerror.
47686
47687 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
47688
47689         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
47690         _PC_PIPE_BUF using F_GETPIPE_SZ.
47691
47692 2010-07-05  Roland McGrath  <roland@redhat.com>
47693
47694         * manual/arith.texi (Rounding Functions): Fix rint description
47695         implicit in round description.
47696
47697 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
47698
47699         * elf/Makefile: Fix linking for a few tests to make recent linker
47700         happy.
47701
47702 2010-06-30  Andreas Schwab  <schwab@redhat.com>
47703
47704         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
47705         $(common-objpfx)libc_nonshared.a.
47706
47707 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
47708
47709         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
47710         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
47711         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47712         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47713         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
47714         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
47715         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47716         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
47718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
47719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
47720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
47721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
47722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
47723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
47724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
47725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
47726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
47727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
47728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
47729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
47730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
47731         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
47732         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
47733         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
47734         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
47735         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
47736         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
47737         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
47738         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
47739         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
47740         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
47741         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
47742         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
47743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
47744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
47745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
47746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
47747         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
47748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
47749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
47750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
47751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
47752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
47753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
47754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
47755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
47756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
47757
47758 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
47759
47760         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
47761         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
47762         * string/memmove.c (memmove): Renamed to ...
47763         (MEMMOVE): ...this.  Default to memmove.
47764         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
47765         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
47766         (END_CHK): Define.
47767         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47768         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
47769         mempcpy-ssse3-back memmove-ssse3-back.
47770         * sysdeps/x86_64/multiarch/bcopy.S: New file .
47771         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
47772         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
47773         * sysdeps/x86_64/multiarch/memcpy.S: New file.
47774         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
47775         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
47776         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
47777         * sysdeps/x86_64/multiarch/memmove.c: New file.
47778         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
47779         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
47780         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
47781         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
47782         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
47783         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
47784         Define.
47785         (index_Fast_Copy_Backward): Define.
47786         (HAS_ARCH_FEATURE): Define.
47787         (HAS_FAST_REP_STRING): Define.
47788         (HAS_FAST_COPY_BACKWARD): Define.
47789
47790 2010-06-21  Andreas Schwab  <schwab@redhat.com>
47791
47792         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
47793         Restore proper fallback handling.
47794
47795 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
47796
47797         [BZ #11701]
47798         * posix/group_member.c (__group_member): Correct checking loop.
47799
47800         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
47801         OOM in getpwuid_r correctly.  Return error number when the caller
47802         should return, otherwise -1.
47803         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
47804         call returning > 0 value.
47805         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
47806
47807 2010-06-07  Andreas Schwab  <schwab@redhat.com>
47808
47809         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
47810         libc_nonshared.a from targets in modules-names.
47811
47812 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
47813
47814         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
47815         requires it.
47816
47817 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
47818
47819         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
47820         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
47821         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
47822         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
47823
47824 2010-06-02  Andreas Schwab  <schwab@redhat.com>
47825
47826         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
47827
47828 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
47829
47830         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
47831         and F_GETPIPE_SZ.
47832         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
47833         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
47834         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
47835         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
47836         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
47837         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
47838
47839 2010-06-14  Roland McGrath  <roland@redhat.com>
47840
47841         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
47842
47843 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
47844
47845         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
47846         __REDIRECT followed by __THROW.
47847         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
47848         * posix/getopt.h (getopt): Likewise.
47849
47850 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
47851
47852         * hurd/lookup-at.c (__file_name_lookup_at): Accept
47853         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
47854         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
47855         in AT_FLAGS.
47856         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
47857         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
47858
47859 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
47860
47861         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
47862
47863 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
47864
47865         [BZ #11640]
47866         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47867         Properly check family and model.
47868
47869 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
47870
47871         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
47872
47873 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
47874
47875         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
47876
47877 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
47878
47879         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
47880         symbol reference.
47881
47882 2010-05-19  Andreas Schwab  <schwab@redhat.com>
47883
47884         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
47885         symbol reference.
47886
47887 2010-05-21  Andreas Schwab  <schwab@redhat.com>
47888
47889         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
47890         and internal_recvmmsg.
47891         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
47892         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
47893         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
47894         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
47895
47896         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
47897         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
47898         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
47899
47900 2010-05-20  Andreas Schwab  <schwab@redhat.com>
47901
47902         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
47903
47904 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
47905
47906         POWER7 optimizations.
47907         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
47908         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
47909
47910 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
47911
47912         * version.h: Update for 2.13 development version.
47913
47914 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
47915
47916         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
47917         exceptions.  Return 0.
47918
47919 2010-05-07  Roland McGrath  <roland@redhat.com>
47920
47921         * elf/ldconfig.c (main): Add a const.
47922
47923 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
47924
47925         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
47926         (args_options): Add no-idn option.
47927         (ahosts_keys_int): Add idn_flags to ai_flags.
47928         (parse_option): Handle 'i' option to clear idn_flags.
47929
47930         * malloc/malloc.c (_int_free): Possible race in the most recently
47931         added check.  Only act on the data if no current modification
47932         happened.
47933
47934 See ChangeLog.17 for earlier changes.